daily update
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
8a6ee3ab 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
18f6b6ee
PB
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9a819804
AO
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
0c24b341
NC
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
9a819804
AO
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
0c24b341
NC
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
c6b750e1
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
880_ACEOF
881
882 cat <<_ACEOF
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
a0da8069 923fi
a0da8069 924
c6b750e1
DJ
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
521ec477
DD
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 935 stage1. Mostly useful for compiler development.
521ec477
DD
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
c6b750e1 941 sub-packages for the host, target or build
521ec477 942 machine, or all sub-packages
c6b750e1
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
521ec477
DD
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
c6b750e1
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
521ec477
DD
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
521ec477
DD
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
521ec477
DD
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
c6b750e1 967 use sysroot as the system root during the build
8a6ee3ab
JM
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
521ec477 970 --with-build-time-tools=PATH
c6b750e1 971 use given path to find target tools during the build
521ec477
DD
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
c6b750e1
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
18f6b6ee
PB
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
9a819804
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
0c24b341 995 WINDMC WINDMC for the host
9a819804
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
0c24b341
NC
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
c6b750e1
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1105esac
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1121 fi
1122 cd $ac_popdir
1123 done
1124fi
1125
1126test -n "$ac_init_help" && exit 0
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
1130Copyright (C) 2003 Free Software Foundation, Inc.
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
1134 exit 0
1135fi
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
1142generated by GNU Autoconf 2.59. Invocation command line was
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
1200ac_sep=
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
1260{
1261 (set) 2>&1 |
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1264 sed -n \
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1268 *)
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1271 ;;
1272 esac;
1273}
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
1311 sed "/^$/d" confdefs.h | sort
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1320 exit $exit_status
1321 ' 0
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
a0da8069 1360# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1366 fi
1367fi
1368for ac_site_file in $CONFIG_SITE; do
1369 if test -r "$ac_site_file"; then
c6b750e1
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
c6b750e1
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1386 esac
1387 fi
a0da8069 1388else
c6b750e1
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
a0da8069
NN
1443fi
1444
1445ac_ext=c
a0da8069 1446ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
a0da8069
NN
1463
1464
75778ec4 1465
c6b750e1
DJ
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
a0da8069 1472ac_aux_dir=
315b3b02 1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1474 if test -f $ac_dir/install-sh; then
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
1478 elif test -f $ac_dir/install.sh; then
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
c6b750e1
DJ
1482 elif test -f $ac_dir/shtool; then
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
a0da8069
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
a0da8069 1492fi
c6b750e1
DJ
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1496
c6b750e1
DJ
1497# Make sure we can run config.sub.
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1519
1520fi
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1523build=$ac_cv_build
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1527
a0da8069 1528
c6b750e1
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1532esac
1533
1534
cac3d6c4 1535
c6b750e1
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1539esac
1540
cac3d6c4 1541
c6b750e1
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1546esac
1547
cac3d6c4 1548
c6b750e1
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
c6b750e1 1554 program_transform_name=s,y,y,
cac3d6c4 1555
c6b750e1
DJ
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1560else
c6b750e1
DJ
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1567 { (exit 1); exit 1; }; }
1568
1569fi
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1572host=$ac_cv_host
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1590
cac3d6c4 1591fi
c6b750e1
DJ
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1594target=$ac_cv_target
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
a0da8069 1606test "$program_prefix" != NONE &&
c6b750e1 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
c6b750e1
DJ
1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1617rm conftest.sed
cac3d6c4 1618
a0da8069
NN
1619
1620
e5c3f801
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
c6b750e1 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1633# OS/2's system install, which has a completely different semantic
e5c3f801 1634# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1637if test -z "$INSTALL"; then
c6b750e1
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1659 if test $ac_prog = install &&
c6b750e1 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
c6b750e1
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
e5c3f801 1667 else
c6b750e1
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
e5c3f801
NN
1670 fi
1671 fi
1672 done
c6b750e1
DJ
1673 done
1674 ;;
1675esac
1676done
1677
e5c3f801
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1681 INSTALL=$ac_cv_path_install
e5c3f801
NN
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
c6b750e1 1687 INSTALL=$ac_install_sh
e5c3f801
NN
1688 fi
1689fi
c6b750e1
DJ
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
c6b750e1 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
c6b750e1
DJ
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
c6b750e1
DJ
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1721else
1722 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
656fdd47
PB
1725fi
1726
c6b750e1
DJ
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
cac3d6c4 1733else
c6b750e1
DJ
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1736fi
1737
e5c3f801 1738
252b5132 1739### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
a0da8069
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
252b5132
RH
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
a0da8069 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1776
92f01d61
JM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
a4708fba
JM
1781for ac_arg
1782do
92f01d61 1783 case "$ac_arg" in
ffa8bd48 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
92f01d61
JM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
2444379b
BE
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
92f01d61
JM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
586c0873 1799
75205f78 1800
a0da8069 1801moveifchange=${srcdir}/move-if-change
252b5132 1802
0fdbe983
DJ
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
a0da8069
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
a0da8069
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
252b5132
RH
1816fi
1817
a0da8069 1818topsrcdir=$srcpwd
252b5132 1819
a0da8069 1820extra_host_args=
afefada0 1821
a0da8069
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
252b5132 1825
c6b750e1 1826# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1827# configdirs, or target_configdirs; see the serialization section below.
252b5132 1828
c6b750e1
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
a0da8069 1831# the Makefile, whether or not it's implicitly specified here.
252b5132 1832
a0da8069
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
252b5132 1835
6a9cf61e
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
ee025550 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1843
a0da8069
NN
1844# these libraries are used by various programs built for the host environment
1845#
4b900473 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1847
a0da8069
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
b00612cc 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
a0da8069
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
b1299c4e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
a0da8069
NN
1866 target-libgloss \
1867 target-newlib \
b9459e83 1868 target-libstdc++-v3 \
4b1cb4fe 1869 target-libmudflap \
bb780410 1870 target-libssp \
4b1cb4fe 1871 target-libgfortran \
4f0ef2d8 1872 target-boehm-gc \
83326456 1873 ${libgcj} \
a2592b1b 1874 target-libobjc \
b3ded179
PB
1875 target-libada \
1876 target-libgomp"
a0da8069 1877
9c14acb8
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
a0da8069 1880#
9c14acb8 1881# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
a3dd767d 1885target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1886
a0da8069 1887################################################################################
252b5132 1888
a0da8069
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
a0da8069 1894configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1896build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1897
a0da8069 1898################################################################################
252b5132 1899
a0da8069 1900srcname="gnu development package"
252b5132 1901
a0da8069
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
252b5132 1904
a0da8069
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
252b5132 1909else
a0da8069 1910 is_cross_compiler=yes
c6b750e1 1911fi
252b5132 1912
9175bfc0 1913# Find the build and target subdir names.
dd12c3a8 1914
66a79c16
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1925build_subdir="build-${build_noncanonical}"
c6b750e1 1926
66a79c16
DJ
1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1928if test "${with_build_libsubdir+set}" = set; then
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
1931else
1932 build_libsubdir="$build_subdir"
c6b750e1 1933fi;
b00612cc
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
dd12c3a8
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
c6b750e1 1943
252b5132 1944
a0da8069
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
252b5132 1949
a0da8069
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1955fi
1956
a0da8069
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1962fi
1963
c6b750e1 1964# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1965# it's not even worth trying to configure, much less build, that tool.
252b5132 1966
a0da8069
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
675c6968 1970 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1971 # We won't be able to build gdbtk without X.
c6b750e1 1972 enable_gdbtk=no
a0da8069
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
252b5132 1976
a0da8069 1977# Some tools are only suitable for building in a "native" situation.
c6b750e1 1978# Remove these if host!=target.
701628f5 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 1980
a0da8069
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
252b5132 1989
a0da8069
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
32be62b5
RS
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
252b5132
RH
1997fi
1998
a0da8069
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
252b5132 2004
a0da8069 2005# Configure extra directories which are host specific
252b5132 2006
a0da8069
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
252b5132 2011
59f7ec45
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
c6b750e1 2016# Remove more programs from consideration, based on the host or
a0da8069
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
252b5132 2019
a0da8069
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
ec11bdc6 2024 i[3456789]86-*-vsta)
675c6968 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2026 ;;
ec11bdc6 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2029 ;;
2d1e8239
NC
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
ec11bdc6 2033 i[3456789]86-*-mingw32*)
675c6968 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2036 ;;
ec11bdc6 2037 i[3456789]86-*-beos*)
675c6968 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2039 ;;
a0da8069 2040 *-*-cygwin*)
a92834c8 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2042 ;;
2043 *-*-netbsd*)
a92834c8 2044 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2045 ;;
2046 ppc*-*-pe)
675c6968 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2048 ;;
2049 powerpc-*-beos*)
675c6968 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2051 ;;
a0da8069 2052esac
252b5132 2053
4b1cb4fe 2054
a2592b1b
DD
2055# Check whether --enable-libada or --disable-libada was given.
2056if test "${enable_libada+set}" = set; then
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
2059else
2060 ENABLE_LIBADA=yes
c6b750e1 2061fi;
a2592b1b 2062if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2063 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2064fi
2065
5f128533
KH
2066# Check whether --enable-libssp or --disable-libssp was given.
2067if test "${enable_libssp+set}" = set; then
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
2070else
2071 ENABLE_LIBSSP=yes
c6b750e1 2072fi;
5f128533 2073
a0da8069
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
252b5132 2089
4b1cb4fe 2090
a6df5a19
PB
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
3e707e94 2093 case "${target}" in
0ebe98fb 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
3d6dfe0f 2095 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2096 ;;
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
a6df5a19 2105fi
4b1cb4fe 2106
a6df5a19
PB
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
b3ded179
PB
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
64ce424c 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2116 ;;
2117 *-*-darwin* | *-*-aix*)
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
a6df5a19 2123fi
b3ded179 2124
4b1cb4fe 2125
a0da8069
NN
2126case "${target}" in
2127 *-*-chorusos)
54d1c879 2128 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2129 ;;
790c0838 2130 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 2131 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 2132 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2133 ;;
04d1ab34 2134 *-*-darwin*)
d320aacb 2135 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2136 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2137 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2138 ;;
a0da8069 2139 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2140 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2141 ;;
de0b4a87 2142 *-*-freebsd*)
4b1cb4fe
DD
2143 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2144 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2145 && test -f /usr/local/include/gmp.h; then
2146 with_gmp=/usr/local
2147 fi
2148
2149 # Skip some stuff that's unsupported on some FreeBSD configurations.
2150 case "${target}" in
2151 i*86-*-*) ;;
2152 alpha*-*-*) ;;
2153 *)
54d1c879 2154 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2155 ;;
2156 esac
2157 ;;
f8a495c8
NC
2158 *-*-kaos*)
2159 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2160 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2161 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2162 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2163 noconfigdirs="$noconfigdirs target-libgloss"
2164 ;;
a0da8069
NN
2165 *-*-netbsd*)
2166 # Skip some stuff on all NetBSD configurations.
2167 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2168
2169 # Skip some stuff that's unsupported on some NetBSD configurations.
2170 case "${target}" in
2171 i*86-*-netbsdelf*) ;;
5b474aa8 2172 arm*-*-netbsdelf*) ;;
a0da8069 2173 *)
54d1c879 2174 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2175 ;;
2176 esac
2177 ;;
2a3124ca 2178 *-*-netware*)
54d1c879 2179 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2180 ;;
2181 *-*-rtems*)
54d1c879 2182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2183 ;;
1587117a
EC
2184 # The tpf target doesn't support gdb yet.
2185 *-*-tpf*)
54d1c879 2186 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2187 ;;
c1968181 2188 *-*-uclinux*)
54d1c879 2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2190 ;;
a0da8069 2191 *-*-vxworks*)
54d1c879 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2193 ;;
2194 alpha*-dec-osf*)
2195 # ld works, but does not support shared libraries.
2196 # newlib is not 64 bit ready. I'm not sure about fileutils.
2197 # gas doesn't generate exception information.
2198 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2199 ;;
2200 alpha*-*-*vms*)
54d1c879 2201 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2202 ;;
2203 alpha*-*-linux*)
2204 # newlib is not 64 bit ready
2205 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2206 ;;
a0da8069
NN
2207 alpha*-*-*)
2208 # newlib is not 64 bit ready
54d1c879 2209 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2210 ;;
4a18bd6b 2211 am33_2.0-*-linux*)
54d1c879 2212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2213 ;;
a0da8069 2214 sh-*-linux*)
54d1c879 2215 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2216 ;;
a0da8069 2217 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2218 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2219 noconfigdirs="$noconfigdirs target-examples"
2220 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2221 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2222 noconfigdirs="$noconfigdirs expect dejagnu"
2223 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2224 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2225 noconfigdirs="$noconfigdirs target-newlib"
2226 case "${host}" in
2227 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2228 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2229 ;;
2230 esac
2231 ;;
2232 arc-*-*)
54d1c879 2233 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2234 ;;
caeba88f 2235 arm-semi-aof )
caeba88f 2236 ;;
a0da8069 2237 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2238 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2239 ;;
11b04d1f 2240 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2241 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2242 ;;
bd70a46f 2243 arm*-*-linux-gnueabi)
6d18b86b
AH
2244 noconfigdirs="$noconfigdirs target-qthreads"
2245 noconfigdirs="$noconfigdirs target-libobjc"
a5b3b4dd
DD
2246 case ${with_newlib} in
2247 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2248 esac
bd70a46f 2249 ;;
df4a6958 2250 arm*-*-symbianelf*)
54d1c879 2251 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2252 ;;
a0da8069 2253 arm-*-pe*)
54d1c879 2254 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2255 ;;
a0da8069 2256 thumb-*-coff)
54d1c879 2257 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2258 ;;
2259 thumb-*-elf)
54d1c879 2260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2261 ;;
a0da8069 2262 thumb-*-pe)
54d1c879 2263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2264 ;;
2265 arm-*-riscix*)
54d1c879 2266 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2267 ;;
2268 avr-*-*)
54d1c879 2269 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2270 ;;
376a0e54 2271 bfin-*-*)
00d89675 2272 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2273 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2274 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2275 fi
2276 ;;
a0da8069 2277 c4x-*-* | tic4x-*-*)
54d1c879 2278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2279 ;;
2280 c54x*-*-* | tic54x-*-*)
54d1c879 2281 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2282 ;;
c7e66c6d 2283 cris-*-* | crisv32-*-*)
59f7ec45 2284 unsupported_languages="$unsupported_languages java"
c7e66c6d 2285 case "${target}" in
2faa2958 2286 *-*-aout)
096f7d00 2287 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2288 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2289 *-*-elf)
096f7d00 2290 unsupported_languages="$unsupported_languages fortran"
5e818318 2291 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2292 *-*-linux*)
5e818318 2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2294 *)
096f7d00 2295 unsupported_languages="$unsupported_languages fortran"
54d1c879 2296 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2297 esac
a0da8069 2298 ;;
3e707e94 2299 crx-*-*)
54d1c879 2300 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2301 ;;
a0da8069 2302 d10v-*-*)
54d1c879 2303 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2304 ;;
2305 d30v-*-*)
54d1c879 2306 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2307 ;;
2308 fr30-*-elf*)
54d1c879 2309 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2310 ;;
2311 frv-*-*)
54d1c879 2312 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2313 ;;
2314 h8300*-*-*)
54d1c879 2315 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2316 ;;
2317 h8500-*-*)
54d1c879 2318 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2319 ;;
caeba88f 2320 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2321 ;;
a0da8069
NN
2322 hppa*64*-*-linux* | parisc*64*-*-linux*)
2323 # In this case, it's because the hppa64-linux target is for
2324 # the kernel only at this point and has no libc, and thus no
2325 # headers, crt*.o, etc., all of which are needed by these.
2326 noconfigdirs="$noconfigdirs target-zlib"
2327 ;;
5dcac624
DA
2328 parisc*-*-linux* | hppa*-*-linux*)
2329 ;;
a0da8069 2330 hppa*-*-*elf* | \
a0da8069
NN
2331 hppa*-*-lites* | \
2332 hppa*-*-openbsd* | \
2333 hppa*64*-*-*)
54d1c879 2334 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2335 ;;
2336 hppa*-hp-hpux11*)
2337 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2338 ;;
2339 hppa*-*-*)
2340 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2341 # build on HP-UX 10.20.
54d1c879 2342 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2343 ;;
b07c2aad 2344 i960-*-*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2346 ;;
a0da8069
NN
2347 ia64*-*-elf*)
2348 # No gdb support yet.
675c6968 2349 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2350 ;;
2351 ia64*-**-hpux*)
2352 # No gdb or ld support yet.
54d1c879 2353 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2354 ;;
caeba88f 2355 i370-*-opened*)
caeba88f 2356 ;;
ec11bdc6 2357 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2358 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2359 ;;
ec11bdc6 2360 i[3456789]86-*-linux*)
a0da8069
NN
2361 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2362 # not build java stuff by default.
2363 case "${target}" in
2364 *-*-*libc1*)
54d1c879 2365 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2366 esac
2367
2368 # This section makes it possible to build newlib natively on linux.
2369 # If we are using a cross compiler then don't configure newlib.
2370 if test x${is_cross_compiler} != xno ; then
bba45b8b 2371 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2372 fi
2373 noconfigdirs="$noconfigdirs target-libgloss"
2374 # If we are not using a cross compiler, do configure newlib.
2375 # Note however, that newlib will only be configured in this situation
2376 # if the --with-newlib option has been given, because otherwise
2377 # 'target-newlib' will appear in skipdirs.
2378 ;;
ec11bdc6 2379 i[3456789]86-*-mingw32*)
45055374
CV
2380 target_configdirs="$target_configdirs target-winsup"
2381 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2382 ;;
2d1e8239
NC
2383 x86_64-*-mingw*)
2384 target_configdirs="$target_configdirs target-winsup"
2385 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2386 ;;
a0da8069
NN
2387 *-*-cygwin*)
2388 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2389 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2390 # always build newlib if winsup directory is present.
45055374 2391 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2392 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2393 elif test -d "$srcdir/newlib"; then
45055374 2394 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2395 fi
c6b750e1 2396 ;;
caeba88f
AL
2397 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2398 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2399 ;;
ec11bdc6 2400 i[3456789]86-*-pe)
54d1c879 2401 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2402 ;;
ec11bdc6 2403 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2404 # The linker does not yet know about weak symbols in COFF,
2405 # and is not configured to handle mixed ELF and COFF.
54d1c879 2406 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2407 ;;
ec11bdc6 2408 i[3456789]86-*-sco*)
54d1c879 2409 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2410 ;;
ec11bdc6 2411 i[3456789]86-*-solaris2*)
a0da8069
NN
2412 noconfigdirs="$noconfigdirs target-libgloss"
2413 ;;
ec11bdc6 2414 i[3456789]86-*-sysv4*)
54d1c879 2415 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2416 ;;
ec11bdc6 2417 i[3456789]86-*-beos*)
54d1c879 2418 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2419 ;;
b59bea8a 2420 i[3456789]86-*-rdos*)
2429c060
PB
2421 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2422 ;;
b07c2aad 2423 m32r-*-*)
54d1c879 2424 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2425 ;;
a0da8069 2426 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2427 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2428 ;;
2429 m68k-*-elf*)
54d1c879 2430 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2431 ;;
2432 m68k-*-coff*)
54d1c879 2433 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2434 ;;
2435 mcore-*-pe*)
2436 # The EPOC C++ environment does not support exceptions or rtti,
2437 # and so building libstdc++-v3 tends not to always work.
2438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2439 ;;
2440 mmix-*-*)
59f7ec45 2441 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2442 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2443 ;;
2444 mn10200-*-*)
54d1c879 2445 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2446 ;;
2447 mn10300-*-*)
54d1c879 2448 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2449 ;;
4970f871 2450 mt-*-*)
cdb9b172
AH
2451 noconfigdirs="$noconfigdirs sim"
2452 ;;
a0da8069
NN
2453 powerpc-*-aix*)
2454 # copied from rs6000-*-* entry
54d1c879 2455 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2456 ;;
2457 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2458 target_configdirs="$target_configdirs target-winsup"
54d1c879 2459 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2460 # always build newlib.
2461 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2462 ;;
2463 # This is temporary until we can link against shared libraries
2464 powerpcle-*-solaris*)
54d1c879 2465 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2466 ;;
2467 powerpc-*-beos*)
54d1c879 2468 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2469 ;;
a0da8069 2470 powerpc-*-eabi)
54d1c879 2471 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2472 ;;
2473 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2474 ;;
a0da8069 2475 rs6000-*-lynxos*)
54d1c879 2476 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2477 ;;
2478 rs6000-*-aix*)
54d1c879 2479 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2480 ;;
2481 rs6000-*-*)
54d1c879 2482 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2483 ;;
2484 m68k-apollo-*)
54d1c879 2485 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2486 ;;
2487 mips*-*-irix5*)
54d1c879 2488 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2489 ;;
2490 mips*-*-irix6*)
a0da8069
NN
2491 # Linking libjava exceeds command-line length limits on at least
2492 # IRIX 6.2, but not on IRIX 6.5.
2493 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2494 # <oldham@codesourcery.com>
54d1c879 2495 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2496 ;;
a0da8069 2497 mips*-*-bsd*)
54d1c879 2498 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2499 ;;
1712ab83 2500 mips64*-*-linux*)
f3529cf1 2501 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2502 ;;
a0da8069
NN
2503 mips*-*-linux*)
2504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2505 ;;
2506 mips*-*-*)
54d1c879 2507 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2508 ;;
2509 romp-*-*)
54d1c879 2510 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2511 ;;
dbf85af7 2512 sh-*-* | sh64-*-*)
a0da8069 2513 case "${host}" in
ec11bdc6
DD
2514 i[3456789]86-*-vsta) ;; # don't add gprof back in
2515 i[3456789]86-*-go32*) ;; # don't add gprof back in
2516 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2517 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2518 esac
54d1c879 2519 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2520 ;;
a0da8069 2521 sparc-*-elf*)
54d1c879 2522 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2523 ;;
2524 sparc64-*-elf*)
54d1c879 2525 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2526 ;;
2527 sparclite-*-*)
54d1c879 2528 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2529 ;;
2530 sparc-*-sunos4*)
54d1c879 2531 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2532 if test x${is_cross_compiler} != xno ; then
2533 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2534 else
2535 use_gnu_ld=no
2536 fi
2537 ;;
e3c770b1 2538 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2539 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2540 ;;
a0da8069
NN
2541 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2542 ;;
2839fe5d
BE
2543 spu-*-*)
2544 skipdirs="target-libssp"
2545 ;;
a0da8069 2546 v810-*-*)
54d1c879 2547 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2548 ;;
2549 v850-*-*)
54d1c879 2550 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2551 ;;
2552 v850e-*-*)
54d1c879 2553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2554 ;;
2555 v850ea-*-*)
54d1c879 2556 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2557 ;;
2558 vax-*-vms)
54d1c879 2559 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2560 ;;
2561 vax-*-*)
54d1c879 2562 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2563 ;;
fbd1054d 2564 xtensa-*-*)
54d1c879 2565 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2566 ;;
a0da8069 2567 ip2k-*-*)
54d1c879 2568 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2569 ;;
de0b4a87 2570 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2572 ;;
2573 *-*-lynxos*)
54d1c879 2574 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2575 ;;
a0da8069 2576 *-*-*)
54d1c879 2577 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2578 ;;
2579esac
252b5132 2580
a0da8069
NN
2581# If we aren't building newlib, then don't build libgloss, since libgloss
2582# depends upon some newlib header files.
2583case "${noconfigdirs}" in
2584 *target-libgloss*) ;;
2585 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2586esac
2587
a0da8069
NN
2588# Work in distributions that contain no compiler tools, like Autoconf.
2589tentative_cc=""
2590host_makefile_frag=/dev/null
2591if test -d ${srcdir}/config ; then
2592case "${host}" in
2593 m68k-hp-hpux*)
2594 # Avoid "too much defining" errors from HPUX compiler.
2595 tentative_cc="cc -Wp,-H256000"
2596 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2597 # If it's HP/UX ar, this should be harmless.
2598 RANLIB="ar ts"
2599 ;;
2600 m68k-apollo-sysv*)
2601 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2602 ;;
2603 m68k-apollo-bsd*)
2604 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2605 # chokes on bfd, the compiler won't let you assign integers to enums, and
2606 # other problems. Defining CC to gcc is a questionable way to say "don't use
2607 # the apollo compiler" (the preferred version of GCC could be called cc,
2608 # or whatever), but I'm not sure leaving CC as cc is any better...
2609 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2610 # Used to have BISON=yacc.
2611 tentative_cc=gcc
2612 ;;
2613 m88k-dg-dgux*)
2614 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2615 ;;
2616 m88k-harris-cxux*)
2617 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2618 tentative_cc="cc -Xa"
2619 host_makefile_frag="config/mh-cxux"
2620 ;;
2621 m88k-motorola-sysv*)
2622 ;;
2623 mips*-dec-ultrix*)
2624 tentative_cc="cc -Wf,-XNg1000"
2625 host_makefile_frag="config/mh-decstation"
2626 ;;
2627 mips*-nec-sysv4*)
2628 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2629 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2630 host_makefile_frag="config/mh-necv4"
2631 ;;
2632 mips*-sgi-irix4*)
2633 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2634 # environment. Also bump switch table size so that cp-parse will
2635 # compile. Bump string length limit so linker builds.
2636 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2637 ;;
2638 mips*-*-sysv4*)
2639 host_makefile_frag="config/mh-sysv4"
2640 ;;
2641 mips*-*-sysv*)
2642 # This is for a MIPS running RISC/os 4.52C.
2643
2644 # This is needed for GDB, but needs to be in the top-level make because
2645 # if a library is compiled with the bsd headers and gets linked with the
2646 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2647 # a different size).
2648 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2649 # known except to select the sysv environment. Could we use /proc instead?
2650 # These "sysv environments" and "bsd environments" often end up being a pain.
2651 #
2652 # This is not part of CFLAGS because perhaps not all C compilers have this
2653 # option.
2654 tentative_cc="cc -systype sysv"
2655 ;;
2656 i370-ibm-opened*)
2657 tentative_cc="c89"
2658 ;;
ec11bdc6 2659 i[3456789]86-*-sysv5*)
a0da8069
NN
2660 host_makefile_frag="config/mh-sysv5"
2661 ;;
ec11bdc6 2662 i[3456789]86-*-dgux*)
a0da8069
NN
2663 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2664 host_makefile_frag="config/mh-dgux386"
2665 ;;
ec11bdc6 2666 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2667 # The MetaWare compiler will generate a copyright message unless you
2668 # turn it off by adding the -Hnocopyr flag.
2669 tentative_cc="cc -Hnocopyr"
2670 ;;
ec11bdc6 2671 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2672 # for an NCR 3000 (i486/SVR4) system.
2673 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2674 # This compiler not only emits obnoxious copyright messages every time
2675 # you run it, but it chokes and dies on a whole bunch of GNU source
2676 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2677 tentative_cc="/usr/ccs/ATT/cc"
2678 host_makefile_frag="config/mh-ncr3000"
2679 ;;
ec11bdc6 2680 i[3456789]86-*-sco3.2v5*)
a0da8069 2681 ;;
ec11bdc6 2682 i[3456789]86-*-sco*)
a0da8069
NN
2683 # The native C compiler botches some simple uses of const. Unfortunately,
2684 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2685 tentative_cc="cc -Dconst="
2686 host_makefile_frag="config/mh-sco"
2687 ;;
ec11bdc6 2688 i[3456789]86-*-udk*)
a0da8069
NN
2689 host_makefile_frag="config/mh-sysv5"
2690 ;;
ec11bdc6 2691 i[3456789]86-*-solaris2*)
a0da8069
NN
2692 host_makefile_frag="config/mh-sysv4"
2693 ;;
ec11bdc6 2694 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2695 host_makefile_frag="config/mh-djgpp"
2696 ;;
2697 *-cygwin*)
2698 host_makefile_frag="config/mh-cygwin"
2699 ;;
2700 *-mingw32*)
a0da8069 2701 ;;
2d1e8239
NC
2702 *-mingw64*)
2703 ;;
a0da8069
NN
2704 *-interix*)
2705 host_makefile_frag="config/mh-interix"
2706 ;;
2707 vax-*-ultrix2*)
2708 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2709 tentative_cc=gcc
2710 ;;
2711 *-*-solaris2*)
2712 host_makefile_frag="config/mh-solaris"
2713 ;;
2714 m68k-sun-sunos*)
2715 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2716 # without overflowing the jump tables (-J says to use a 32 bit table)
2717 tentative_cc="cc -J"
2718 ;;
2719 *-hp-hpux*)
2720 tentative_cc="cc -Wp,-H256000"
2721 ;;
2722 *-*-hiux*)
2723 tentative_cc="cc -Wp,-H256000"
2724 ;;
2725 rs6000-*-lynxos*)
2726 # /bin/cc is less than useful for our purposes. Always use GCC
2727 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2728 host_makefile_frag="config/mh-lynxrs6k"
2729 ;;
0df3d27f
PB
2730 powerpc-*-darwin*)
2731 host_makefile_frag="config/mh-ppc-darwin"
2732 ;;
f6d183c0
PB
2733 powerpc-*-aix*)
2734 host_makefile_frag="config/mh-ppc-aix"
2735 ;;
2736 rs6000-*-aix*)
2737 host_makefile_frag="config/mh-ppc-aix"
2738 ;;
a0da8069
NN
2739 *-*-lynxos*)
2740 # /bin/cc is less than useful for our purposes. Always use GCC
2741 tentative_cc="/bin/gcc"
2742 ;;
2743 *-*-sysv4*)
2744 host_makefile_frag="config/mh-sysv4"
2745 ;;
fe69863c
DD
2746 # This is placed last to prevent interfering with the cases above.
2747 i[3456789]86-*-*)
2748 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2749 host_makefile_frag="config/mh-x86omitfp"
2750 ;;
a0da8069
NN
2751esac
2752fi
2753
9e07f89d
NN
2754# If we aren't going to be using gcc, see if we can extract a definition
2755# of CC from the fragment.
2756# Actually, use the 'pre-extracted' version above.
2757if test -z "${CC}" && test "${build}" = "${host}" ; then
2758 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2759 found=
2760 for dir in $PATH; do
2761 test -z "$dir" && dir=.
2762 if test -f $dir/gcc; then
2763 found=yes
2764 break
2765 fi
2766 done
2767 IFS="$save_ifs"
2768 if test -z "${found}" && test -n "${tentative_cc}" ; then
2769 CC=$tentative_cc
2770 fi
2771fi
2772
2773if test "${build}" != "${host}" ; then
9e07f89d 2774 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2775else
512b7dfb 2776 CC_FOR_BUILD="\$(CC)"
18f6b6ee
PB
2777fi
2778
2779ac_ext=c
c6b750e1
DJ
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}gcc; ac_word=$2
2787echo "$as_me:$LINENO: checking for $ac_word" >&5
2788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806done
2807done
2808
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813 echo "$as_me:$LINENO: result: $CC" >&5
2814echo "${ECHO_T}$CC" >&6
2815else
2816 echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6
2818fi
2819
2820fi
2821if test -z "$ac_cv_prog_CC"; then
2822 ac_ct_CC=$CC
6a9cf61e 2823 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2824set dummy gcc; ac_word=$2
c6b750e1
DJ
2825echo "$as_me:$LINENO: checking for $ac_word" >&5
2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_CC="gcc"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844done
2845done
2846
2847fi
2848fi
2849ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850if test -n "$ac_ct_CC"; then
2851 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2852echo "${ECHO_T}$ac_ct_CC" >&6
2853else
2854 echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856fi
2857
2858 CC=$ac_ct_CC
2859else
2860 CC="$ac_cv_prog_CC"
2861fi
2862
2863if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2866set dummy ${ac_tool_prefix}cc; ac_word=$2
2867echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869if test "${ac_cv_prog_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2871else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874else
c6b750e1
DJ
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_CC="${ac_tool_prefix}cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
2887done
2888
9e07f89d
NN
2889fi
2890fi
c6b750e1 2891CC=$ac_cv_prog_CC
9e07f89d 2892if test -n "$CC"; then
c6b750e1
DJ
2893 echo "$as_me:$LINENO: result: $CC" >&5
2894echo "${ECHO_T}$CC" >&6
9e07f89d 2895else
c6b750e1
DJ
2896 echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
9e07f89d
NN
2898fi
2899
c6b750e1
DJ
2900fi
2901if test -z "$ac_cv_prog_CC"; then
2902 ac_ct_CC=$CC
2903 # Extract the first word of "cc", so it can be a program name with args.
2904set dummy cc; ac_word=$2
2905echo "$as_me:$LINENO: checking for $ac_word" >&5
2906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_CC="cc"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924done
2925done
2926
2927fi
2928fi
2929ac_ct_CC=$ac_cv_prog_ac_ct_CC
2930if test -n "$ac_ct_CC"; then
2931 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2932echo "${ECHO_T}$ac_ct_CC" >&6
2933else
2934 echo "$as_me:$LINENO: result: no" >&5
2935echo "${ECHO_T}no" >&6
2936fi
2937
2938 CC=$ac_ct_CC
2939else
2940 CC="$ac_cv_prog_CC"
2941fi
2942
2943fi
9e07f89d
NN
2944if test -z "$CC"; then
2945 # Extract the first word of "cc", so it can be a program name with args.
2946set dummy cc; ac_word=$2
c6b750e1
DJ
2947echo "$as_me:$LINENO: checking for $ac_word" >&5
2948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2949if test "${ac_cv_prog_CC+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2951else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954else
9e07f89d 2955 ac_prog_rejected=no
c6b750e1
DJ
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2964 ac_prog_rejected=yes
2965 continue
2966 fi
2967 ac_cv_prog_CC="cc"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971done
2972done
2973
9e07f89d
NN
2974if test $ac_prog_rejected = yes; then
2975 # We found a bogon in the path, so make sure we never use it.
2976 set dummy $ac_cv_prog_CC
2977 shift
c6b750e1 2978 if test $# != 0; then
9e07f89d
NN
2979 # We chose a different compiler from the bogus one.
2980 # However, it has the same basename, so the bogon will be chosen
2981 # first if we set CC to just the basename; use the full file name.
2982 shift
c6b750e1 2983 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2984 fi
2985fi
2986fi
2987fi
c6b750e1 2988CC=$ac_cv_prog_CC
9e07f89d 2989if test -n "$CC"; then
c6b750e1
DJ
2990 echo "$as_me:$LINENO: result: $CC" >&5
2991echo "${ECHO_T}$CC" >&6
9e07f89d 2992else
c6b750e1
DJ
2993 echo "$as_me:$LINENO: result: no" >&5
2994echo "${ECHO_T}no" >&6
9e07f89d
NN
2995fi
2996
c6b750e1
DJ
2997fi
2998if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 for ac_prog in cl
3001 do
3002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006if test "${ac_cv_prog_CC+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3008else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
c6b750e1
DJ
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
376a0e54 3022 fi
c6b750e1
DJ
3023done
3024done
cac3d6c4 3025
c6b750e1
DJ
3026fi
3027fi
3028CC=$ac_cv_prog_CC
3029if test -n "$CC"; then
3030 echo "$as_me:$LINENO: result: $CC" >&5
3031echo "${ECHO_T}$CC" >&6
cac3d6c4 3032else
c6b750e1
DJ
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
9e07f89d 3035fi
cac3d6c4 3036
c6b750e1
DJ
3037 test -n "$CC" && break
3038 done
cac3d6c4 3039fi
c6b750e1
DJ
3040if test -z "$CC"; then
3041 ac_ct_CC=$CC
3042 for ac_prog in cl
3043do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045set dummy $ac_prog; ac_word=$2
3046echo "$as_me:$LINENO: checking for $ac_word" >&5
3047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3048if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 3050else
c6b750e1
DJ
3051 if test -n "$ac_ct_CC"; then
3052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3053else
c6b750e1
DJ
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_CC="$ac_prog"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066done
3067
cac3d6c4
CM
3068fi
3069fi
c6b750e1
DJ
3070ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071if test -n "$ac_ct_CC"; then
3072 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 3074else
c6b750e1
DJ
3075 echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
cac3d6c4 3077fi
376a0e54 3078
c6b750e1
DJ
3079 test -n "$ac_ct_CC" && break
3080done
3081
3082 CC=$ac_ct_CC
3083fi
3084
3085fi
3086
3087
3088test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3089See \`config.log' for more details." >&5
3090echo "$as_me: error: no acceptable C compiler found in \$PATH
3091See \`config.log' for more details." >&2;}
3092 { (exit 1); exit 1; }; }
3093
3094# Provide some information about the compiler.
3095echo "$as_me:$LINENO:" \
3096 "checking for C compiler version" >&5
3097ac_compiler=`set X $ac_compile; echo $2`
3098{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3099 (eval $ac_compiler --version </dev/null >&5) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }
3103{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3104 (eval $ac_compiler -v </dev/null >&5) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }
3108{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3109 (eval $ac_compiler -V </dev/null >&5) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }
3113
3114cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129ac_clean_files_save=$ac_clean_files
3130ac_clean_files="$ac_clean_files a.out a.exe b.out"
3131# Try to create an executable without -o first, disregard a.out.
3132# It will help us diagnose broken compilers, and finding out an intuition
3133# of exeext.
3134echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3135echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3136ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3137if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3138 (eval $ac_link_default) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # Find the output, starting from the most likely. This scheme is
3143# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3144# resort.
3145
3146# Be careful to initialize this variable, since it used to be cached.
3147# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3148ac_cv_exeext=
3149# b.out is created by i960 compilers.
3150for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3151do
3152 test -f "$ac_file" || continue
3153 case $ac_file in
3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3155 ;;
3156 conftest.$ac_ext )
3157 # This is the source file.
3158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
3164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3165 # FIXME: I believe we export ac_cv_exeext for Libtool,
3166 # but it would be cool to find out if it's true. Does anybody
3167 # maintain Libtool? --akim.
3168 export ac_cv_exeext
3169 break;;
3170 * )
3171 break;;
3172 esac
3173done
3174else
3175 echo "$as_me: failed program was:" >&5
3176sed 's/^/| /' conftest.$ac_ext >&5
3177
3178{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3179See \`config.log' for more details." >&5
3180echo "$as_me: error: C compiler cannot create executables
3181See \`config.log' for more details." >&2;}
3182 { (exit 77); exit 77; }; }
3183fi
3184
3185ac_exeext=$ac_cv_exeext
3186echo "$as_me:$LINENO: result: $ac_file" >&5
3187echo "${ECHO_T}$ac_file" >&6
3188
3189# Check the compiler produces executables we can run. If not, either
3190# the compiler is broken, or we cross compile.
3191echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3192echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3193# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3194# If not cross compiling, check that we can run a simple program.
3195if test "$cross_compiling" != yes; then
3196 if { ac_try='./$ac_file'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 cross_compiling=no
3203 else
3204 if test "$cross_compiling" = maybe; then
3205 cross_compiling=yes
3206 else
3207 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3208If you meant to cross compile, use \`--host'.
3209See \`config.log' for more details." >&5
3210echo "$as_me: error: cannot run C compiled programs.
3211If you meant to cross compile, use \`--host'.
3212See \`config.log' for more details." >&2;}
3213 { (exit 1); exit 1; }; }
3214 fi
3215 fi
3216fi
3217echo "$as_me:$LINENO: result: yes" >&5
3218echo "${ECHO_T}yes" >&6
3219
3220rm -f a.out a.exe conftest$ac_cv_exeext b.out
3221ac_clean_files=$ac_clean_files_save
3222# Check the compiler produces executables we can run. If not, either
3223# the compiler is broken, or we cross compile.
3224echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3225echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3226echo "$as_me:$LINENO: result: $cross_compiling" >&5
3227echo "${ECHO_T}$cross_compiling" >&6
3228
3229echo "$as_me:$LINENO: checking for suffix of executables" >&5
3230echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232 (eval $ac_link) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); }; then
3236 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3237# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3238# work properly (i.e., refer to `conftest.exe'), while it won't with
3239# `rm'.
3240for ac_file in conftest.exe conftest conftest.*; do
3241 test -f "$ac_file" || continue
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245 export ac_cv_exeext
3246 break;;
3247 * ) break;;
3248 esac
3249done
3250else
3251 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3252See \`config.log' for more details." >&5
3253echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3254See \`config.log' for more details." >&2;}
3255 { (exit 1); exit 1; }; }
3256fi
3257
3258rm -f conftest$ac_cv_exeext
3259echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3260echo "${ECHO_T}$ac_cv_exeext" >&6
3261
3262rm -f conftest.$ac_ext
3263EXEEXT=$ac_cv_exeext
3264ac_exeext=$EXEEXT
3265echo "$as_me:$LINENO: checking for suffix of object files" >&5
3266echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3267if test "${ac_cv_objext+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270 cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
3276
3277int
3278main ()
3279{
3280
3281 ;
3282 return 0;
3283}
3284_ACEOF
3285rm -f conftest.o conftest.obj
3286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3287 (eval $ac_compile) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; then
3291 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3295 break;;
3296 esac
3297done
cac3d6c4 3298else
c6b750e1
DJ
3299 echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
3302{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3303See \`config.log' for more details." >&5
3304echo "$as_me: error: cannot compute suffix of object files: cannot compile
3305See \`config.log' for more details." >&2;}
3306 { (exit 1); exit 1; }; }
3307fi
3308
3309rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310fi
3311echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3312echo "${ECHO_T}$ac_cv_objext" >&6
3313OBJEXT=$ac_cv_objext
3314ac_objext=$OBJEXT
3315echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3316echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3317if test "${ac_cv_c_compiler_gnu+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326
3327int
3328main ()
3329{
3330#ifndef __GNUC__
3331 choke me
3332#endif
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_compiler_gnu=yes
3361else
3362 echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365ac_compiler_gnu=no
3366fi
3367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3368ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369
3370fi
3371echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3372echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3373GCC=`test $ac_compiler_gnu = yes && echo yes`
3374ac_test_CFLAGS=${CFLAGS+set}
3375ac_save_CFLAGS=$CFLAGS
3376CFLAGS="-g"
3377echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3378echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3379if test "${ac_cv_prog_cc_g+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388
3389int
3390main ()
3391{
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
9e07f89d
NN
3419 ac_cv_prog_cc_g=yes
3420else
c6b750e1
DJ
3421 echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3423
c6b750e1 3424ac_cv_prog_cc_g=no
376a0e54 3425fi
c6b750e1
DJ
3426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3427fi
3428echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3430if test "$ac_test_CFLAGS" = set; then
c6b750e1 3431 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3432elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3434 CFLAGS="-g -O2"
3435 else
3436 CFLAGS="-g"
3437 fi
3438else
3439 if test "$GCC" = yes; then
3440 CFLAGS="-O2"
3441 else
3442 CFLAGS=
3443 fi
3444fi
c6b750e1
DJ
3445echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3446echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3447if test "${ac_cv_prog_cc_stdc+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450 ac_cv_prog_cc_stdc=no
3451ac_save_CC=$CC
3452cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h. */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h. */
3458#include <stdarg.h>
3459#include <stdio.h>
3460#include <sys/types.h>
3461#include <sys/stat.h>
3462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463struct buf { int x; };
3464FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465static char *e (p, i)
3466 char **p;
3467 int i;
3468{
3469 return p[i];
3470}
3471static char *f (char * (*g) (char **, int), char **p, ...)
3472{
3473 char *s;
3474 va_list v;
3475 va_start (v,p);
3476 s = g (p, va_arg (v,int));
3477 va_end (v);
3478 return s;
3479}
3480
3481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std1 is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std1. */
3488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489
3490int test (int i, double x);
3491struct s1 {int (*f) (int a);};
3492struct s2 {int (*f) (double a);};
3493int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3494int argc;
3495char **argv;
3496int
3497main ()
3498{
3499return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3500 ;
3501 return 0;
3502}
3503_ACEOF
3504# Don't try gcc -ansi; that turns off useful extensions and
3505# breaks some systems' header files.
3506# AIX -qlanglvl=ansi
3507# Ultrix and OSF/1 -std1
3508# HP-UX 10.20 and later -Ae
3509# HP-UX older versions -Aa -D_HPUX_SOURCE
3510# SVR4 -Xc -D__EXTENSIONS__
3511for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512do
3513 CC="$ac_save_CC $ac_arg"
3514 rm -f conftest.$ac_objext
3515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>conftest.er1
3517 ac_status=$?
3518 grep -v '^ *+' conftest.er1 >conftest.err
3519 rm -f conftest.er1
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -z "$ac_c_werror_flag"
3524 || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try='test -s conftest.$ac_objext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_prog_cc_stdc=$ac_arg
3537break
3538else
3539 echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542fi
3543rm -f conftest.err conftest.$ac_objext
3544done
3545rm -f conftest.$ac_ext conftest.$ac_objext
3546CC=$ac_save_CC
3547
3548fi
3549
3550case "x$ac_cv_prog_cc_stdc" in
3551 x|xno)
3552 echo "$as_me:$LINENO: result: none needed" >&5
3553echo "${ECHO_T}none needed" >&6 ;;
3554 *)
3555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3556echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3557 CC="$CC $ac_cv_prog_cc_stdc" ;;
3558esac
3559
3560# Some people use a C++ compiler to compile C. Since we use `exit',
3561# in C++ we need to declare it. In case someone uses the same compiler
3562# for both compiling C and C++ we need to have the C++ compiler decide
3563# the declaration of exit, since it's the most demanding environment.
3564cat >conftest.$ac_ext <<_ACEOF
3565#ifndef __cplusplus
3566 choke me
3567#endif
3568_ACEOF
3569rm -f conftest.$ac_objext
3570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 for ac_declaration in \
3592 '' \
3593 'extern "C" void std::exit (int) throw (); using std::exit;' \
3594 'extern "C" void std::exit (int); using std::exit;' \
3595 'extern "C" void exit (int) throw ();' \
3596 'extern "C" void exit (int);' \
3597 'void exit (int);'
3598do
3599 cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
3605$ac_declaration
3606#include <stdlib.h>
3607int
3608main ()
3609{
3610exit (42);
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_c_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 :
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642continue
3643fi
3644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645 cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h. */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h. */
3651$ac_declaration
3652int
3653main ()
3654{
3655exit (42);
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 break
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687fi
3688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3689done
3690rm -f conftest*
3691if test -n "$ac_declaration"; then
3692 echo '#ifdef __cplusplus' >>confdefs.h
3693 echo $ac_declaration >>confdefs.h
3694 echo '#endif' >>confdefs.h
3695fi
3696
3697else
3698 echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701fi
3702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703ac_ext=c
3704ac_cpp='$CPP $CPPFLAGS'
3705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3708
18f6b6ee
PB
3709ac_ext=cc
3710ac_cpp='$CXXCPP $CPPFLAGS'
3711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3714if test -n "$ac_tool_prefix"; then
3715 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3716 do
3717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3719echo "$as_me:$LINENO: checking for $ac_word" >&5
3720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3721if test "${ac_cv_prog_CXX+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724 if test -n "$CXX"; then
3725 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3726else
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738done
3739done
512b7dfb 3740
18f6b6ee
PB
3741fi
3742fi
3743CXX=$ac_cv_prog_CXX
3744if test -n "$CXX"; then
3745 echo "$as_me:$LINENO: result: $CXX" >&5
3746echo "${ECHO_T}$CXX" >&6
3747else
3748 echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
3750fi
3751
3752 test -n "$CXX" && break
3753 done
3754fi
3755if test -z "$CXX"; then
3756 ac_ct_CXX=$CXX
3757 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3758do
3759 # Extract the first word of "$ac_prog", so it can be a program name with args.
3760set dummy $ac_prog; ac_word=$2
3761echo "$as_me:$LINENO: checking for $ac_word" >&5
3762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766 if test -n "$ac_ct_CXX"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_CXX="$ac_prog"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
512b7dfb 3779 fi
18f6b6ee
PB
3780done
3781done
512b7dfb 3782
18f6b6ee
PB
3783fi
3784fi
3785ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3786if test -n "$ac_ct_CXX"; then
3787 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3788echo "${ECHO_T}$ac_ct_CXX" >&6
3789else
3790 echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6
3792fi
3793
3794 test -n "$ac_ct_CXX" && break
3795done
3796test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3797
3798 CXX=$ac_ct_CXX
3799fi
3800
3801
3802# Provide some information about the compiler.
3803echo "$as_me:$LINENO:" \
3804 "checking for C++ compiler version" >&5
3805ac_compiler=`set X $ac_compile; echo $2`
3806{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3807 (eval $ac_compiler --version </dev/null >&5) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }
3811{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3812 (eval $ac_compiler -v </dev/null >&5) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }
3816{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3817 (eval $ac_compiler -V </dev/null >&5) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }
3821
3822echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3823echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3824if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h. */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h. */
3833
3834int
3835main ()
3836{
3837#ifndef __GNUC__
3838 choke me
3839#endif
3840
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_compiler_gnu=yes
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872ac_compiler_gnu=no
3873fi
3874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3876
3877fi
3878echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3879echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3880GXX=`test $ac_compiler_gnu = yes && echo yes`
3881ac_test_CXXFLAGS=${CXXFLAGS+set}
3882ac_save_CXXFLAGS=$CXXFLAGS
3883CXXFLAGS="-g"
3884echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3885echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3886if test "${ac_cv_prog_cxx_g+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889 cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h. */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h. */
3895
3896int
3897main ()
3898{
3899
3900 ;
3901 return 0;
3902}
3903_ACEOF
3904rm -f conftest.$ac_objext
3905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
3907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_cxx_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_prog_cxx_g=yes
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931ac_cv_prog_cxx_g=no
3932fi
3933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934fi
3935echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3936echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3937if test "$ac_test_CXXFLAGS" = set; then
3938 CXXFLAGS=$ac_save_CXXFLAGS
3939elif test $ac_cv_prog_cxx_g = yes; then
3940 if test "$GXX" = yes; then
3941 CXXFLAGS="-g -O2"
3942 else
3943 CXXFLAGS="-g"
3944 fi
3945else
3946 if test "$GXX" = yes; then
3947 CXXFLAGS="-O2"
3948 else
3949 CXXFLAGS=
3950 fi
3951fi
3952for ac_declaration in \
3953 '' \
3954 'extern "C" void std::exit (int) throw (); using std::exit;' \
3955 'extern "C" void std::exit (int); using std::exit;' \
3956 'extern "C" void exit (int) throw ();' \
3957 'extern "C" void exit (int);' \
3958 'void exit (int);'
3959do
3960 cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h. */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h. */
3966$ac_declaration
3967#include <stdlib.h>
3968int
3969main ()
3970{
3971exit (42);
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext
3977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_cxx_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 :
3999else
4000 echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003continue
4004fi
4005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4006 cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012$ac_declaration
4013int
4014main ()
4015{
4016exit (42);
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 break
4044else
4045 echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048fi
4049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050done
4051rm -f conftest*
4052if test -n "$ac_declaration"; then
4053 echo '#ifdef __cplusplus' >>confdefs.h
4054 echo $ac_declaration >>confdefs.h
4055 echo '#endif' >>confdefs.h
4056fi
4057
4058ac_ext=c
4059ac_cpp='$CPP $CPPFLAGS'
4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063
4064
4065# We must set the default linker to the linker used by gcc for the correct
4066# operation of libtool. If LD is not defined and we are using gcc, try to
4067# set the LD default to the ld used by gcc.
4068if test -z "$LD"; then
4069 if test "$GCC" = yes; then
4070 case $build in
4071 *-*-mingw*)
4072 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4073 *)
4074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4075 esac
4076 case $gcc_prog_ld in
4077 # Accept absolute paths.
4078 [\\/]* | [A-Za-z]:[\\/]*)
4079 LD="$gcc_prog_ld" ;;
4080 esac
4081 fi
512b7dfb
PB
4082fi
4083
4084
4085
4086
c6b750e1 4087if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4088 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4089set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
4090echo "$as_me:$LINENO: checking for $ac_word" >&5
4091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4092if test "${ac_cv_prog_GNATBIND+set}" = set; then
c6b750e1 4093 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4094else
512b7dfb
PB
4095 if test -n "$GNATBIND"; then
4096 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4097else
c6b750e1
DJ
4098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099for as_dir in $PATH
4100do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4105 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
c6b750e1
DJ
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109done
4110done
4111
9e07f89d
NN
4112fi
4113fi
512b7dfb
PB
4114GNATBIND=$ac_cv_prog_GNATBIND
4115if test -n "$GNATBIND"; then
4116 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4117echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 4118else
c6b750e1
DJ
4119 echo "$as_me:$LINENO: result: no" >&5
4120echo "${ECHO_T}no" >&6
9e07f89d
NN
4121fi
4122
c6b750e1 4123fi
512b7dfb
PB
4124if test -z "$ac_cv_prog_GNATBIND"; then
4125 ac_ct_GNATBIND=$GNATBIND
4126 # Extract the first word of "gnatbind", so it can be a program name with args.
4127set dummy gnatbind; ac_word=$2
c6b750e1
DJ
4128echo "$as_me:$LINENO: checking for $ac_word" >&5
4129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4130if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
c6b750e1 4131 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 4132else
512b7dfb
PB
4133 if test -n "$ac_ct_GNATBIND"; then
4134 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4135else
c6b750e1
DJ
4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4143 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
c6b750e1
DJ
4144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147done
4148done
4149
512b7dfb 4150 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
4151fi
4152fi
512b7dfb
PB
4153ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4154if test -n "$ac_ct_GNATBIND"; then
4155 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4156echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 4157else
c6b750e1
DJ
4158 echo "$as_me:$LINENO: result: no" >&5
4159echo "${ECHO_T}no" >&6
9e07f89d
NN
4160fi
4161
512b7dfb 4162 GNATBIND=$ac_ct_GNATBIND
24ff9987 4163else
512b7dfb 4164 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4165fi
4166
7df2cd5d 4167if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4168 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4169set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
7df2cd5d
PB
4170echo "$as_me:$LINENO: checking for $ac_word" >&5
4171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4172if test "${ac_cv_prog_GNATMAKE+set}" = set; then
7df2cd5d
PB
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174else
512b7dfb
PB
4175 if test -n "$GNATMAKE"; then
4176 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4185 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
7df2cd5d
PB
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4188 fi
4189done
4190done
4191
4192fi
4193fi
512b7dfb
PB
4194GNATMAKE=$ac_cv_prog_GNATMAKE
4195if test -n "$GNATMAKE"; then
4196 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4197echo "${ECHO_T}$GNATMAKE" >&6
7df2cd5d
PB
4198else
4199 echo "$as_me:$LINENO: result: no" >&5
4200echo "${ECHO_T}no" >&6
4201fi
4202
4203fi
512b7dfb
PB
4204if test -z "$ac_cv_prog_GNATMAKE"; then
4205 ac_ct_GNATMAKE=$GNATMAKE
4206 # Extract the first word of "gnatmake", so it can be a program name with args.
4207set dummy gnatmake; ac_word=$2
7df2cd5d
PB
4208echo "$as_me:$LINENO: checking for $ac_word" >&5
4209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
512b7dfb 4210if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
7df2cd5d
PB
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
512b7dfb
PB
4213 if test -n "$ac_ct_GNATMAKE"; then
4214 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4215else
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 4223 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
7df2cd5d
PB
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227done
4228done
4229
512b7dfb 4230 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
7df2cd5d
PB
4231fi
4232fi
512b7dfb
PB
4233ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4234if test -n "$ac_ct_GNATMAKE"; then
4235 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4236echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
7df2cd5d
PB
4237else
4238 echo "$as_me:$LINENO: result: no" >&5
4239echo "${ECHO_T}no" >&6
4240fi
4241
512b7dfb 4242 GNATMAKE=$ac_ct_GNATMAKE
7df2cd5d 4243else
512b7dfb 4244 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4245fi
4246
c6b750e1
DJ
4247echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4248echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4249if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4250 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
4251else
4252 cat >conftest.adb <<EOF
4253procedure conftest is begin null; end conftest;
4254EOF
4255acx_cv_cc_gcc_supports_ada=no
4256# There is a bug in old released versions of GCC which causes the
4257# driver to exit successfully when the appropriate language module
4258# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4259# Therefore we must check for the error message as well as an
4260# unsuccessful exit.
b8908782
DD
4261# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4262# given a .adb file, but produce no object file. So we must check
4263# if an object file was really produced to guard against this.
9e07f89d 4264errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4265if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4266 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4267fi
4268rm -f conftest.*
4269fi
c6b750e1
DJ
4270echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4271echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4272
512b7dfb 4273if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4274 have_gnat=yes
4275else
4276 have_gnat=no
4277fi
4278
c6b750e1
DJ
4279echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4280echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4281if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4283else
4284 echo abfoo >t1
4285 echo cdfoo >t2
4286 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4287 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4288 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4289 :
4290 else
4291 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4292 fi
4293 fi
b8908782
DD
4294 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4295 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4296 :
b8908782
DD
4297 else
4298 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4299 fi
4300 fi
4301 rm t1 t2
4302
4303fi
c6b750e1
DJ
4304echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4305echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4306do_compare="$gcc_cv_prog_cmp_skip"
4307
4308
9e07f89d 4309
11b04d1f 4310# Check for GMP and MPFR
4b900473 4311gmplibs="-lmpfr -lgmp"
4b1cb4fe 4312gmpinc=
4b900473
PB
4313have_gmp=no
4314
11b04d1f
DD
4315# Specify a location for mpfr
4316# check for this first so it ends up on the link line before gmp.
c6b750e1 4317
11b04d1f
DD
4318# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4319if test "${with_mpfr_dir+set}" = set; then
4320 withval="$with_mpfr_dir"
c6b750e1
DJ
4321 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4322Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4323echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4324Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4325 { (exit 1); exit 1; }; }
4326fi;
11b04d1f
DD
4327
4328
11b04d1f
DD
4329# Check whether --with-mpfr or --without-mpfr was given.
4330if test "${with_mpfr+set}" = set; then
4331 withval="$with_mpfr"
c6b750e1
DJ
4332
4333fi;
11b04d1f 4334
8a0d8a5c
PB
4335# Check whether --with-mpfr_include or --without-mpfr_include was given.
4336if test "${with_mpfr_include+set}" = set; then
4337 withval="$with_mpfr_include"
c6b750e1
DJ
4338
4339fi;
8a0d8a5c
PB
4340
4341# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4342if test "${with_mpfr_lib+set}" = set; then
4343 withval="$with_mpfr_lib"
8a0d8a5c 4344
c6b750e1 4345fi;
11b04d1f
DD
4346
4347if test "x$with_mpfr" != x; then
4348 gmplibs="-L$with_mpfr/lib $gmplibs"
4349 gmpinc="-I$with_mpfr/include"
4350fi
8a0d8a5c
PB
4351if test "x$with_mpfr_include" != x; then
4352 gmpinc="-I$with_mpfr_include"
4353fi
4354if test "x$with_mpfr_lib" != x; then
4355 gmplibs="-L$with_mpfr_lib $gmplibs"
4356fi
4b900473
PB
4357if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4358 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4359 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4360 # Do not test the mpfr version. Assume that it is sufficient, since
4361 # it is in the source tree, and the library has not been built yet
4362 # but it would be included on the link line in the version check below
4363 # hence making the test fail.
4364 have_gmp=yes
4365fi
11b04d1f 4366
4b1cb4fe 4367# Specify a location for gmp
c6b750e1 4368
4b1cb4fe
DD
4369# Check whether --with-gmp-dir or --without-gmp-dir was given.
4370if test "${with_gmp_dir+set}" = set; then
4371 withval="$with_gmp_dir"
c6b750e1
DJ
4372 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4373Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4374echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4375Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4376 { (exit 1); exit 1; }; }
4377fi;
4b1cb4fe
DD
4378
4379
4b1cb4fe
DD
4380# Check whether --with-gmp or --without-gmp was given.
4381if test "${with_gmp+set}" = set; then
4382 withval="$with_gmp"
c6b750e1
DJ
4383
4384fi;
4b1cb4fe 4385
8a0d8a5c
PB
4386# Check whether --with-gmp_include or --without-gmp_include was given.
4387if test "${with_gmp_include+set}" = set; then
4388 withval="$with_gmp_include"
c6b750e1
DJ
4389
4390fi;
8a0d8a5c
PB
4391
4392# Check whether --with-gmp_lib or --without-gmp_lib was given.
4393if test "${with_gmp_lib+set}" = set; then
4394 withval="$with_gmp_lib"
8a0d8a5c 4395
c6b750e1 4396fi;
8a0d8a5c 4397
4b1cb4fe 4398
11b04d1f
DD
4399if test "x$with_gmp" != x; then
4400 gmplibs="-L$with_gmp/lib $gmplibs"
4401 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4402fi
8a0d8a5c
PB
4403if test "x$with_gmp_include" != x; then
4404 gmpinc="-I$with_gmp_include $gmpinc"
4405fi
4406if test "x$with_gmp_lib" != x; then
4407 gmplibs="-L$with_gmp_lib $gmplibs"
4408fi
4b900473
PB
4409if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4410 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4411 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4412 # Do not test the gmp version. Assume that it is sufficient, since
4413 # it is in the source tree, and the library has not been built yet
4414 # but it would be included on the link line in the version check below
4415 # hence making the test fail.
4416 have_gmp=yes
4417fi
4b1cb4fe 4418
ceb92e78 4419if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4420 have_gmp=yes
4421 saved_CFLAGS="$CFLAGS"
4422 CFLAGS="$CFLAGS $gmpinc"
4423 # Check GMP actually works
c6b750e1
DJ
4424 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4425echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4426
4427cat >conftest.$ac_ext <<_ACEOF
4428/* confdefs.h. */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h. */
4b1cb4fe 4433#include "gmp.h"
c6b750e1
DJ
4434int
4435main ()
4436{
4b1cb4fe 4437
4b900473
PB
4438 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4439 choke me
4440 #endif
c6b750e1
DJ
4441
4442 ;
4443 return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext
4447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_c_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 echo "$as_me:$LINENO: result: yes" >&5
4469echo "${ECHO_T}yes" >&6
4470else
4471 echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6; have_gmp=no
4476fi
4477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4478
4b900473
PB
4479 if test x"$have_gmp" = xyes; then
4480 saved_LIBS="$LIBS"
4481 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4482 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4483echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4484 cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
9b134994 4490#include <gmp.h>
4b900473 4491 #include <mpfr.h>
c6b750e1
DJ
4492int
4493main ()
4494{
9b134994 4495
4b900473
PB
4496 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4497 choke me
4498 #endif
a3ca38d2
DD
4499 mpfr_t n;
4500 mpfr_t x;
4b900473 4501 int t;
a3ca38d2
DD
4502 mpfr_init (n);
4503 mpfr_init (x);
4b900473
PB
4504 mpfr_atan2 (n, n, x, GMP_RNDN);
4505 mpfr_erfc (n, x, GMP_RNDN);
4506 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4507
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512rm -f conftest.$ac_objext conftest$ac_exeext
4513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4514 (eval $ac_link) 2>conftest.er1
4515 ac_status=$?
4516 grep -v '^ *+' conftest.er1 >conftest.err
4517 rm -f conftest.er1
4518 cat conftest.err >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } &&
4521 { ac_try='test -z "$ac_c_werror_flag"
4522 || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest$ac_exeext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h. */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h. */
4b1cb4fe 4540#include <gmp.h>
4b900473 4541 #include <mpfr.h>
c6b750e1
DJ
4542int
4543main ()
4544{
9dbaa842 4545
4b900473
PB
4546 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4547 choke me
4548 #endif
4549 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext conftest$ac_exeext
4556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4557 (eval $ac_link) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4584echo "${ECHO_T}buggy but acceptable" >&6
4585fi
4586rm -f conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext conftest.$ac_ext
4588else
4589 echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6; have_gmp=no
4594fi
4595rm -f conftest.err conftest.$ac_objext \
4596 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4597 LIBS="$saved_LIBS"
4598 fi
4599 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4600
4b900473 4601 if test x$have_gmp != xyes; then
c6b750e1
DJ
4602 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4603Try the --with-gmp and/or --with-mpfr options to specify their locations.
4604Copies of these libraries' source code can be found at their respective
4605hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4606See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4607If you obtained GMP and/or MPFR from a vendor distribution package, make
4608sure that you have installed both the libraries and the header files.
4609They may be located in separate packages." >&5
4610echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4611Try the --with-gmp and/or --with-mpfr options to specify their locations.
4612Copies of these libraries' source code can be found at their respective
4613hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4614See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4615If you obtained GMP and/or MPFR from a vendor distribution package, make
4616sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4617They may be located in separate packages." >&2;}
4618 { (exit 1); exit 1; }; }
4b900473 4619 fi
9dbaa842
DD
4620fi
4621
11b04d1f 4622# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4623
4624
4625
947f426e 4626# By default, C is the only stage 1 language.
9b134994 4627stage1_languages=,c,
1d39f329 4628
9e07f89d
NN
4629# Figure out what language subdirectories are present.
4630# Look if the user specified --enable-languages="..."; if not, use
4631# the environment variable $LANGUAGES if defined. $LANGUAGES might
4632# go away some day.
4633# NB: embedded tabs in this IF block -- do not untabify
4634if test -d ${srcdir}/gcc; then
4635 if test x"${enable_languages+set}" != xset; then
4636 if test x"${LANGUAGES+set}" = xset; then
4637 enable_languages="${LANGUAGES}"
4638 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4639 else
4640 enable_languages=all
4641 fi
4642 else
4643 if test x"${enable_languages}" = x ||
4644 test x"${enable_languages}" = xyes;
4645 then
4646 echo configure.in: --enable-languages needs at least one language argument 1>&2
4647 exit 1
4648 fi
4649 fi
4650 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4651
096f7d00
DE
4652 # 'f95' is the old name for the 'fortran' language. We issue a warning
4653 # and make the substitution.
4654 case ,${enable_languages}, in
4655 *,f95,*)
4656 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4657 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4658 ;;
4659 esac
4660
9e07f89d
NN
4661 # First scan to see if an enabled language requires some other language.
4662 # We assume that a given config-lang.in will list all the language
4663 # front ends it requires, even if some are required indirectly.
4664 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4665 case ${lang_frag} in
4666 ..) ;;
4667 # The odd quoting in the next line works around
4668 # an apparent bug in bash 1.12 on linux.
4669 ${srcdir}/gcc/[*]/config-lang.in) ;;
4670 *)
4671 # From the config-lang.in, get $language, $lang_requires
4672 language=
4673 lang_requires=
4674 . ${lang_frag}
4675 for other in ${lang_requires} ; do
4676 case ,${enable_languages}, in
4677 *,$other,*) ;;
4678 *,all,*) ;;
4679 *,$language,*)
4680 echo " \`$other' language required by \`$language'; enabling" 1>&2
4681 enable_languages="${enable_languages},${other}"
4682 ;;
4683 esac
4684 done
4685 ;;
4686 esac
4687 done
4688
9b134994 4689 new_enable_languages=,c,
9e07f89d 4690 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4691 potential_languages=,c,
9e07f89d
NN
4692
4693 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4694 case ${lang_frag} in
4695 ..) ;;
4696 # The odd quoting in the next line works around
4697 # an apparent bug in bash 1.12 on linux.
4698 ${srcdir}/gcc/[*]/config-lang.in) ;;
4699 *)
c6b750e1 4700 # From the config-lang.in, get $language, $target_libs,
1d39f329 4701 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4702 language=
4703 target_libs=
4704 lang_dirs=
64ce424c 4705 subdir_requires=
9b134994
PB
4706 boot_language=no
4707 build_by_default=yes
9e07f89d 4708 . ${lang_frag}
9b134994
PB
4709 if test x${language} = x; then
4710 echo "${lang_frag} doesn't set \$language." 1>&2
4711 exit 1
4712 fi
4713
4714 case ,${enable_languages}, in
4715 *,${language},*)
9e07f89d
NN
4716 # Language was explicitly selected; include it.
4717 add_this_lang=yes
4718 ;;
9b134994
PB
4719 *,all,*)
4720 # 'all' was selected, select it if it is a default language
4721 add_this_lang=${build_by_default}
9e07f89d
NN
4722 ;;
4723 *)
4724 add_this_lang=no
4725 ;;
4726 esac
4b1cb4fe 4727
64ce424c 4728 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4729 for i in $subdir_requires; do
3d3adb43 4730 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4731 case ,${enable_languages}, in
4732 *,${language},*)
4733 # Specifically requested language; tell them.
c6b750e1
DJ
4734 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4735echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4736 { (exit 1); exit 1; }; }
64ce424c
PB
4737 ;;
4738 *)
4739 # Silently disable.
9b134994 4740 add_this_lang=unsupported
64ce424c
PB
4741 ;;
4742 esac
4743 done
4744
9b134994
PB
4745 # Disable Ada if no preexisting GNAT is available.
4746 case ,${enable_languages},:${language}:${have_gnat} in
4747 *,${language},*:ada:no)
4748 # Specifically requested language; tell them.
c6b750e1
DJ
4749 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4750echo "$as_me: error: GNAT is required to build $language" >&2;}
4751 { (exit 1); exit 1; }; }
9b134994
PB
4752 ;;
4753 *:ada:no)
4754 # Silently disable.
4755 add_this_lang=unsupported
4756 ;;
4757 esac
4758
59f7ec45
HPN
4759 # Disable a language that is unsupported by the target.
4760 case " $unsupported_languages " in
4761 *" $language "*)
9b134994 4762 add_this_lang=unsupported
59f7ec45
HPN
4763 ;;
4764 esac
4765
4b1cb4fe 4766 case $add_this_lang in
9b134994 4767 unsupported)
9e07f89d 4768 # Remove language-dependent dirs.
1d39f329
NN
4769 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4770 ;;
9b134994
PB
4771 no)
4772 # Remove language-dependent dirs; still show language as supported.
4773 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4774 potential_languages="${potential_languages}${language},"
4775 ;;
4776 yes)
4777 new_enable_languages="${new_enable_languages}${language},"
4778 potential_languages="${potential_languages}${language},"
1d39f329
NN
4779 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4780 case ${boot_language} in
4781 yes)
4fa63067 4782 # Add to (comma-separated) list of stage 1 languages.
9b134994 4783 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4784 ;;
4785 esac
4786 ;;
9e07f89d
NN
4787 esac
4788 ;;
4789 esac
4790 done
4791
9b134994
PB
4792 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4793if test "${enable_stage1_languages+set}" = set; then
4794 enableval="$enable_stage1_languages"
4795 case ,${enable_stage1_languages}, in
4796 ,no,|,,)
4797 # Set it to something that will have no effect in the loop below
4798 enable_stage1_languages=c ;;
4799 ,yes,)
4800 enable_stage1_languages=`echo $new_enable_languages | \
4801 sed -e "s/^,//" -e "s/,$//" ` ;;
4802 *,all,*)
4803 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4804 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4805 esac
4806
4807 # Add "good" languages from enable_stage1_languages to stage1_languages,
4808 # while "bad" languages go in missing_languages. Leave no duplicates.
4809 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4810 case $potential_languages in
4811 *,$i,*)
4812 case $stage1_languages in
4813 *,$i,*) ;;
4814 *) stage1_languages="$stage1_languages$i," ;;
4815 esac ;;
4816 *)
4817 case $missing_languages in
4818 *,$i,*) ;;
4819 *) missing_languages="$missing_languages$i," ;;
4820 esac ;;
4821 esac
4822 done
c6b750e1 4823fi;
9b134994
PB
4824
4825 # Remove leading/trailing commas that were added for simplicity
4826 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4827 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4828 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4829 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4830
9e07f89d 4831 if test "x$missing_languages" != x; then
c6b750e1 4832 { { echo "$as_me:$LINENO: error:
27258dd4 4833The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4834Supported languages are: ${potential_languages}" >&5
4835echo "$as_me: error:
4836The following requested languages could not be built: ${missing_languages}
4837Supported languages are: ${potential_languages}" >&2;}
4838 { (exit 1); exit 1; }; }
9e07f89d 4839 fi
9e07f89d
NN
4840 if test "x$new_enable_languages" != "x$enable_languages"; then
4841 echo The following languages will be built: ${new_enable_languages}
9b134994 4842 enable_languages="$new_enable_languages"
9e07f89d 4843 fi
9b134994 4844
c6b750e1 4845
81ec575a 4846 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
4847fi
4848
a6df5a19
PB
4849# Handle --disable-<component> generically.
4850for dir in $configdirs $build_configdirs $target_configdirs ; do
4851 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4852 if eval test x\${enable_${dirname}} "=" xno ; then
4853 noconfigdirs="$noconfigdirs $dir"
4854 fi
4855done
4856
4f0ef2d8
CD
4857# Check for Boehm's garbage collector
4858# Check whether --enable-objc-gc or --disable-objc-gc was given.
4859if test "${enable_objc_gc+set}" = set; then
4860 enableval="$enable_objc_gc"
4861 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4862 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4863 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4864echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4865 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4866 ;;
4867esac
c6b750e1 4868fi;
4f0ef2d8
CD
4869
4870# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4871case ,${enable_languages},:${enable_objc_gc} in
4872 *,objc,*:yes)
4f0ef2d8
CD
4873 # Keep target-boehm-gc if requested for Objective-C.
4874 ;;
4f0ef2d8 4875 *)
d42c4017
DA
4876 # Otherwise remove target-boehm-gc depending on target-libjava.
4877 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4878 noconfigdirs="$noconfigdirs target-boehm-gc"
4879 fi
4f0ef2d8
CD
4880 ;;
4881esac
4882
caeba88f
AL
4883# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4884# $build_configdirs and $target_configdirs.
9e07f89d
NN
4885# If we have the source for $noconfigdirs entries, add them to $notsupp.
4886
4887notsupp=""
4888for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4889 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4890 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4891 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4892 if test -r $srcdir/$dirname/configure ; then
4893 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4894 true
4895 else
4896 notsupp="$notsupp $dir"
4897 fi
4898 fi
4899 fi
caeba88f
AL
4900 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4901 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4902 if test -r $srcdir/$dirname/configure ; then
4903 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4904 true
4905 else
4906 notsupp="$notsupp $dir"
4907 fi
4908 fi
4909 fi
9e07f89d
NN
4910 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4911 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4912 if test -r $srcdir/$dirname/configure ; then
4913 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4914 true
4915 else
4916 notsupp="$notsupp $dir"
4917 fi
4918 fi
4919 fi
4920done
4921
4922# Sometimes the tools are distributed with libiberty but with no other
4923# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4924# Don't let libgcc imply libiberty either.
9e07f89d 4925if test -n "${target_configdirs}" ; then
f86e35b8 4926 libgcc=
9e07f89d
NN
4927 others=
4928 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4929 if test "$i" = "libgcc"; then
4930 libgcc=target-libgcc
4931 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4932 if test -r $srcdir/$i/configure ; then
4933 others=yes;
4934 break;
4935 fi
4936 fi
4937 done
4938 if test -z "${others}" ; then
f86e35b8 4939 target_configdirs=$libgcc
9e07f89d
NN
4940 fi
4941fi
4942
4943# Quietly strip out all directories which aren't configurable in this tree.
4944# This relies on all configurable subdirectories being autoconfiscated, which
4945# is now the case.
6a9cf61e
PB
4946build_configdirs_all="$build_configdirs"
4947build_configdirs=
4948for i in ${build_configdirs_all} ; do
c6b750e1 4949 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4950 if test -f ${srcdir}/$j/configure ; then
4951 build_configdirs="${build_configdirs} $i"
4952 fi
4953done
4954
9e07f89d
NN
4955configdirs_all="$configdirs"
4956configdirs=
4957for i in ${configdirs_all} ; do
4958 if test -f ${srcdir}/$i/configure ; then
4959 configdirs="${configdirs} $i"
4960 fi
4961done
6a9cf61e 4962
9e07f89d
NN
4963target_configdirs_all="$target_configdirs"
4964target_configdirs=
4965for i in ${target_configdirs_all} ; do
c6b750e1 4966 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4967 if test -f ${srcdir}/$j/configure ; then
4968 target_configdirs="${target_configdirs} $i"
4969 fi
4970done
4971
4972# Produce a warning message for the subdirs we can't configure.
4973# This isn't especially interesting in the Cygnus tree, but in the individual
4974# FSF releases, it's important to let people know when their machine isn't
4975# supported by the one or two programs in a package.
4976
4977if test -n "${notsupp}" && test -z "${norecursion}" ; then
4978 # If $appdirs is non-empty, at least one of those directories must still
4979 # be configured, or we error out. (E.g., if the gas release supports a
4980 # specified target in some subdirs but not the gas subdir, we shouldn't
4981 # pretend that all is well.)
4982 if test -n "$appdirs" ; then
4983 for dir in $appdirs ; do
4984 if test -r $dir/Makefile.in ; then
4985 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4986 appdirs=""
4987 break
4988 fi
6a9cf61e 4989 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4990 appdirs=""
4991 break
4992 fi
4993 fi
4994 done
4995 if test -n "$appdirs" ; then
4996 echo "*** This configuration is not supported by this package." 1>&2
4997 exit 1
4998 fi
4999 fi
5000 # Okay, some application will build, or we don't care to check. Still
5001 # notify of subdirs not getting built.
5002 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5003 echo " ${notsupp}" 1>&2
5004 echo " (Any other directories should still work fine.)" 1>&2
5005fi
5006
5007case "$host" in
5008 *msdosdjgpp*)
5009 enable_gdbtk=no ;;
5010esac
5011
18f6b6ee
PB
5012# To find our prefix, in gcc_cv_tool_prefix.
5013
5014# The user is always right.
5015if test "${PATH_SEPARATOR+set}" != set; then
5016 echo "#! /bin/sh" >conf$$.sh
5017 echo "exit 0" >>conf$$.sh
5018 chmod +x conf$$.sh
5019 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5020 PATH_SEPARATOR=';'
5021 else
5022 PATH_SEPARATOR=:
5023 fi
5024 rm -f conf$$.sh
5025fi
5026
5027
5028
5029if test "x$exec_prefix" = xNONE; then
5030 if test "x$prefix" = xNONE; then
5031 gcc_cv_tool_prefix=$ac_default_prefix
5032 else
5033 gcc_cv_tool_prefix=$prefix
5034 fi
5035else
5036 gcc_cv_tool_prefix=$exec_prefix
5037fi
5038
5039# If there is no compiler in the tree, use the PATH only. In any
5040# case, if there is no compiler in the tree nobody should use
5041# AS_FOR_TARGET and LD_FOR_TARGET.
5042if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5043 gcc_version=`cat $srcdir/gcc/BASE-VER`
5044 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5045 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5046 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5048 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5049 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5050else
5051 gcc_cv_tool_dirs=
5052fi
5053
5054if test x$build = x$target && test -n "$md_exec_prefix"; then
5055 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5056fi
5057
5058
5059
9e07f89d
NN
5060copy_dirs=
5061
c6b750e1 5062
a19b6204
MM
5063# Check whether --with-build-sysroot or --without-build-sysroot was given.
5064if test "${with_build_sysroot+set}" = set; then
5065 withval="$with_build_sysroot"
5066 if test x"$withval" != x ; then
5067 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5068 fi
5069else
5070 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 5071fi;
a19b6204
MM
5072
5073
8a6ee3ab
JM
5074
5075# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5076if test "${with_debug_prefix_map+set}" = set; then
5077 withval="$with_debug_prefix_map"
5078 if test x"$withval" != x; then
5079 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5080 for debug_map in $withval; do
5081 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5082 done
5083 fi
5084else
5085 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5086fi;
5087
5088
9e07f89d
NN
5089# Handle --with-headers=XXX. If the value is not "yes", the contents of
5090# the named directory are copied to $(tooldir)/sys-include.
5091if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5092 if test x${is_cross_compiler} = xno ; then
5093 echo 1>&2 '***' --with-headers is only supported when cross compiling
5094 exit 1
5095 fi
5096 if test x"${with_headers}" != xyes ; then
18f6b6ee 5097 x=${gcc_cv_tool_prefix}
c6b750e1 5098 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
5099 fi
5100fi
5101
5102# Handle --with-libs=XXX. If the value is not "yes", the contents of
5103# the name directories are copied to $(tooldir)/lib. Multiple directories
5104# are permitted.
5105if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5106 if test x${is_cross_compiler} = xno ; then
5107 echo 1>&2 '***' --with-libs is only supported when cross compiling
5108 exit 1
5109 fi
5110 if test x"${with_libs}" != xyes ; then
5111 # Copy the libraries in reverse order, so that files in the first named
5112 # library override files in subsequent libraries.
18f6b6ee 5113 x=${gcc_cv_tool_prefix}
9e07f89d 5114 for l in ${with_libs}; do
c6b750e1 5115 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
5116 done
5117 fi
5118fi
5119
2429c060
PB
5120# Set with_gnu_as and with_gnu_ld as appropriate.
5121#
5122# This is done by determining whether or not the appropriate directory
5123# is available, and by checking whether or not specific configurations
5124# have requested that this magic not happen.
c6b750e1
DJ
5125#
5126# The command line options always override the explicit settings in
2429c060
PB
5127# configure.in, and the settings in configure.in override this magic.
5128#
c6b750e1 5129# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
5130# want to do that, then you should use the --without-gnu-as and
5131# --without-gnu-ld options for the configure script.
5132
5133if test x${use_gnu_as} = x &&
5134 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5135 with_gnu_as=yes
5136 extra_host_args="$extra_host_args --with-gnu-as"
5137fi
5138
5139if test x${use_gnu_ld} = x &&
5140 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5141 with_gnu_ld=yes
5142 extra_host_args="$extra_host_args --with-gnu-ld"
5143fi
5144
5145# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5146# can detect this case.
5147
5148if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5149 with_newlib=yes
5150 extra_host_args="$extra_host_args --with-newlib"
5151fi
5152
9e07f89d
NN
5153# Handle ${copy_dirs}
5154set fnord ${copy_dirs}
5155shift
5156while test $# != 0 ; do
5157 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5158 :
5159 else
5160 echo Copying $1 to $2
5161
5162 # Use the install script to create the directory and all required
5163 # parent directories.
5164 if test -d $2 ; then
5165 :
5166 else
5167 echo >config.temp
5168 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5169 fi
5170
5171 # Copy the directory, assuming we have tar.
5172 # FIXME: Should we use B in the second tar? Not all systems support it.
5173 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5174
5175 # It is the responsibility of the user to correctly adjust all
5176 # symlinks. If somebody can figure out how to handle them correctly
5177 # here, feel free to add the code.
5178
5179 echo $1 > $2/COPIED
5180 fi
5181 shift; shift
5182done
5183
2429c060
PB
5184# Determine a target-dependent exec_prefix that the installed
5185# gcc will search in. Keep this list sorted by triplet, with
5186# the *-*-osname triplets last.
5187md_exec_prefix=
5188case "${target}" in
5189 alpha*-*-*vms*)
5190 md_exec_prefix=/gnu/lib/gcc-lib
5191 ;;
521ec477 5192 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
5193 md_exec_prefix=/dev/env/DJDIR/bin
5194 ;;
521ec477 5195 i[34567]86-*-sco3.2v5*)
2429c060
PB
5196 if test $with_gnu_as = yes; then
5197 md_exec_prefix=/usr/gnu/bin
5198 else
5199 md_exec_prefix=/usr/ccs/bin/elf
5200 fi
5201 ;;
5202
5203 mn10300-*-* | \
5204 powerpc-*-chorusos* | \
5205 powerpc*-*-eabi* | \
5206 powerpc*-*-sysv* | \
5207 powerpc*-*-kaos* | \
5208 s390x-ibm-tpf*)
5209 md_exec_prefix=/usr/ccs/bin
5210 ;;
5211 sparc64-*-elf*)
5212 ;;
5213 v850*-*-*)
5214 md_exec_prefix=/usr/ccs/bin
5215 ;;
5216 xtensa-*-elf*)
5217 ;;
5218
5219 *-*-beos* | \
5220 *-*-elf* | \
5221 *-*-hpux* | \
5222 *-*-netware* | \
5223 *-*-nto-qnx* | \
5224 *-*-rtems* | \
5225 *-*-solaris2* | \
521ec477 5226 *-*-sysv[45]* | \
2429c060
PB
5227 *-*-vxworks* | \
5228 *-wrs-windiss)
5229 md_exec_prefix=/usr/ccs/bin
5230 ;;
5231esac
5232
a0da8069
NN
5233extra_arflags_for_target=
5234extra_nmflags_for_target=
5235extra_ranlibflags_for_target=
5236target_makefile_frag=/dev/null
5237case "${target}" in
4e206d7e
DB
5238 mep*-*-*)
5239 target_makefile_frag="config/mt-mep"
5240 ;;
77d7106f
AM
5241 spu-*-*)
5242 target_makefile_frag="config/mt-spu"
5243 ;;
429acdec
RS
5244 mips*-sde-elf*)
5245 target_makefile_frag="config/mt-sde"
5246 ;;
2a3124ca 5247 *-*-netware*)
a0da8069
NN
5248 target_makefile_frag="config/mt-netware"
5249 ;;
3d6dfe0f
NN
5250 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5251 target_makefile_frag="config/mt-gnu"
a0da8069
NN
5252 ;;
5253 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 5254 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
5255 # commands to handle both 32-bit and 64-bit objects. These flags are
5256 # harmless if we're using GNU nm or ar.
5257 extra_arflags_for_target=" -X32_64"
5258 extra_nmflags_for_target=" -B -X32_64"
5259 ;;
5260 *-*-darwin*)
5261 # ranlib from Darwin requires the -c flag to look at common symbols.
5262 extra_ranlibflags_for_target=" -c"
5263 ;;
5264 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5265 target_makefile_frag="config/mt-wince"
5266 ;;
5267esac
5268
5269alphaieee_frag=/dev/null
5270case $target in
5271 alpha*-*-*)
5272 # This just makes sure to use the -mieee option to build target libs.
5273 # This should probably be set individually by each library.
5274 alphaieee_frag="config/mt-alphaieee"
5275 ;;
5276esac
5277
5278# If --enable-target-optspace always use -Os instead of -O2 to build
5279# the target libraries, similarly if it is not specified, use -Os
5280# on selected platforms.
5281ospace_frag=/dev/null
5282case "${enable_target_optspace}:${target}" in
5283 yes:*)
5284 ospace_frag="config/mt-ospace"
5285 ;;
5286 :d30v-*)
5287 ospace_frag="config/mt-d30v"
5288 ;;
5289 :m32r-* | :d10v-* | :fr30-*)
5290 ospace_frag="config/mt-ospace"
5291 ;;
5292 no:* | :*)
5293 ;;
5294 *)
5295 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5296 ;;
5297esac
5298
a0da8069
NN
5299# Default to using --with-stabs for certain targets.
5300if test x${with_stabs} = x ; then
5301 case "${target}" in
e31d1ea3 5302 mips*-*-irix[56]*)
a0da8069
NN
5303 ;;
5304 mips*-*-* | alpha*-*-osf*)
5305 with_stabs=yes;
5306 extra_host_args="${extra_host_args} --with-stabs"
5307 ;;
5308 esac
5309fi
5310
5311# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5312# them automatically.
5313case "${host}" in
c6b750e1 5314 hppa*64*-*-hpux11*)
a0da8069
NN
5315 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5316 ;;
5317esac
5318
a0da8069
NN
5319# Some systems (e.g., one of the i386-aix systems the gas testers are
5320# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5321tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5322build_tooldir=${tooldir}
5323
a0da8069
NN
5324# Create a .gdbinit file which runs the one in srcdir
5325# and tells GDB to look there for source files.
5326
5327if test -r ${srcdir}/.gdbinit ; then
5328 case ${srcdir} in
5329 .) ;;
5330 *) cat > ./.gdbinit <<EOF
5331# ${NO_EDIT}
5332dir ${srcdir}
5333dir .
5334source ${srcdir}/.gdbinit
5335EOF
5336 ;;
5337 esac
5338fi
5339
a0da8069
NN
5340# Make sure that the compiler is able to generate an executable. If it
5341# can't, we are probably in trouble. We don't care whether we can run the
5342# executable--we might be using a cross compiler--we only care whether it
5343# can be created. At this point the main configure script has set CC.
5344we_are_ok=no
5345echo "int main () { return 0; }" > conftest.c
5346${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5347if test $? = 0 ; then
5348 if test -s conftest || test -s conftest.exe ; then
5349 we_are_ok=yes
5350 fi
c6b750e1 5351fi
a0da8069
NN
5352case $we_are_ok in
5353 no)
5354 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5355 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5356 rm -f conftest*
5357 exit 1
5358 ;;
5359esac
5360rm -f conftest*
5361
5362# The Solaris /usr/ucb/cc compiler does not appear to work.
5363case "${host}" in
5364 sparc-sun-solaris2*)
5365 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5366 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5367 could_use=
5368 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5369 if test -d /opt/cygnus/bin ; then
5370 if test "$could_use" = "" ; then
5371 could_use="/opt/cygnus/bin"
5372 else
5373 could_use="$could_use or /opt/cygnus/bin"
5374 fi
5375 fi
5376 if test "$could_use" = "" ; then
5377 echo "Warning: compilation may fail because you're using"
5378 echo "/usr/ucb/cc. You should change your PATH or CC "
5379 echo "variable and rerun configure."
5380 else
5381 echo "Warning: compilation may fail because you're using"
5382 echo "/usr/ucb/cc, when you should use the C compiler from"
5383 echo "$could_use. You should change your"
5384 echo "PATH or CC variable and rerun configure."
5385 fi
5386 fi
5387 ;;
5388esac
5389
a0da8069
NN
5390case "${host}" in
5391 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5392 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5393 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5394esac
5395
5396# Record target_configdirs and the configure arguments for target and
5397# build configuration in Makefile.
5398target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5399build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5400
a0da8069
NN
5401# Determine whether gdb needs tk/tcl or not.
5402# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5403# and in that case we want gdb to be built without tk. Ugh!
5404# In fact I believe gdb is the *only* package directly dependent on tk,
5405# so we should be able to put the 'maybe's in unconditionally and
5406# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5407# 100% sure that that's safe though.
c180f501 5408
675c6968 5409gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5410case "$enable_gdbtk" in
5411 no)
5412 GDB_TK="" ;;
c180f501
AC
5413 yes)
5414 GDB_TK="${gdb_tk}" ;;
a0da8069 5415 *)
c180f501
AC
5416 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5417 # distro. Eventually someone will fix this and move Insight, nee
5418 # gdbtk to a separate directory.
5419 if test -d ${srcdir}/gdb/gdbtk ; then
5420 GDB_TK="${gdb_tk}"
5421 else
5422 GDB_TK=""
5423 fi
5424 ;;
a0da8069 5425esac
907be67c
DJ
5426CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5427INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5428
6bd3dfaa 5429# Strip out unwanted targets.
dd12c3a8
NN
5430
5431# While at that, we remove Makefiles if we were started for recursive
5432# configuration, so that the top-level Makefile reconfigures them,
5433# like we used to do when configure itself was recursive.
dd12c3a8 5434
6bd3dfaa
PB
5435# Loop over modules. $extrasub must be used with care, limiting as
5436# much as possible the usage of range addresses. That's because autoconf
5437# splits the sed script to overcome limits in the number of commands,
5438# and relying on carefully-timed sed passes may turn out to be very hard
5439# to maintain later. In this particular case, you just have to be careful
5440# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5441
319cab08
PB
5442# Check whether --enable-bootstrap or --disable-bootstrap was given.
5443if test "${enable_bootstrap+set}" = set; then
5444 enableval="$enable_bootstrap"
c6b750e1 5445
319cab08 5446else
9cb3fa6f 5447 enable_bootstrap=default
c6b750e1 5448fi;
319cab08 5449
9cb3fa6f
PB
5450# Issue errors and warnings for invalid/strange bootstrap combinations.
5451case "$configdirs" in
5452 *gcc*) have_compiler=yes ;;
5453 *) have_compiler=no ;;
5454esac
5455
5456case "$have_compiler:$host:$target:$enable_bootstrap" in
5457 *:*:*:no) ;;
5458
0aed8855 5459 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5460 # and we are in a native configuration.
5461 yes:$build:$build:default)
0aed8855 5462 enable_bootstrap=yes ;;
9cb3fa6f
PB
5463
5464 *:*:*:default)
5465 enable_bootstrap=no ;;
5466
5467 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5468 yes:$build:$build:yes)
9cb3fa6f
PB
5469 ;;
5470
5471 # Other configurations, but we have a compiler. Assume the user knows
5472 # what he's doing.
80911fe1 5473 yes:*:*:yes)
c6b750e1
DJ
5474 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5475echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5476 ;;
5477
5478 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5479 no:*:*:yes)
c6b750e1
DJ
5480 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5481echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5482 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5483
5484 # Fail if wrong command line
5485 *)
c6b750e1
DJ
5486 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5487echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5488 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5489 ;;
5490esac
5491
5492# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5493case "$enable_bootstrap" in
5494 yes)
498d4a71 5495 bootstrap_suffix=bootstrap ;;
319cab08 5496 no)
498d4a71 5497 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5498esac
5499
6a9cf61e 5500for module in ${build_configdirs} ; do
498d4a71
CF
5501 if test -z "${no_recursion}" \
5502 && test -f ${build_subdir}/${module}/Makefile; then
5503 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5504 rm -f ${build_subdir}/${module}/Makefile
5505 fi
5506 extrasub="$extrasub
5507/^@if build-$module\$/d
5508/^@endif build-$module\$/d
5509/^@if build-$module-$bootstrap_suffix\$/d
5510/^@endif build-$module-$bootstrap_suffix\$/d"
5511done
5512for module in ${configdirs} ; do
80911fe1 5513 if test -z "${no_recursion}"; then
8cf39b1b 5514 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5515 if test -f ${file}; then
5516 echo 1>&2 "*** removing ${file} to force reconfigure"
5517 rm -f ${file}
5518 fi
5519 done
498d4a71
CF
5520 fi
5521 extrasub="$extrasub
5522/^@if $module\$/d
5523/^@endif $module\$/d
5524/^@if $module-$bootstrap_suffix\$/d
5525/^@endif $module-$bootstrap_suffix\$/d"
5526done
5527for module in ${target_configdirs} ; do
5528 if test -z "${no_recursion}" \
5529 && test -f ${target_subdir}/${module}/Makefile; then
5530 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5531 rm -f ${target_subdir}/${module}/Makefile
5532 fi
5533 extrasub="$extrasub
5534/^@if target-$module\$/d
5535/^@endif target-$module\$/d
5536/^@if target-$module-$bootstrap_suffix\$/d
5537/^@endif target-$module-$bootstrap_suffix\$/d"
5538done
5539
6bd3dfaa
PB
5540extrasub="$extrasub
5541/^@if /,/^@endif /d"
a0da8069
NN
5542
5543# Create the serialization dependencies. This uses a temporary file.
5544
e6bfb94a
AO
5545# Check whether --enable-serial-configure or --disable-serial-configure was given.
5546if test "${enable_serial_configure+set}" = set; then
5547 enableval="$enable_serial_configure"
e6bfb94a 5548
c6b750e1 5549fi;
e6bfb94a 5550
1047cb91
DD
5551case ${enable_serial_configure} in
5552 yes)
5553 enable_serial_build_configure=yes
5554 enable_serial_host_configure=yes
5555 enable_serial_target_configure=yes
5556 ;;
5557esac
5558
a0da8069
NN
5559# These force 'configure's to be done one at a time, to avoid problems
5560# with contention over a shared config.cache.
5561rm -f serdep.tmp
e6bfb94a 5562echo '# serdep.tmp' > serdep.tmp
a0da8069 5563olditem=
1047cb91 5564test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5565for item in ${build_configdirs} ; do
5566 case ${olditem} in
5567 "") ;;
e6bfb94a 5568 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5569 esac
5570 olditem=${item}
5571done
5572olditem=
1047cb91 5573test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5574for item in ${configdirs} ; do
5575 case ${olditem} in
5576 "") ;;
e6bfb94a 5577 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5578 esac
5579 olditem=${item}
5580done
5581olditem=
1047cb91 5582test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5583for item in ${target_configdirs} ; do
5584 case ${olditem} in
5585 "") ;;
e6bfb94a 5586 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5587 esac
5588 olditem=${item}
5589done
5590serialization_dependencies=serdep.tmp
5591
5592
e6bfb94a 5593# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5594# target, nonopt, and variable assignments. These are the ones we
5595# might not want to pass down to subconfigures. Also strip
5596# program-prefix, program-suffix, and program-transform-name, so that
5597# we can pass down a consistent program-transform-name.
5598baseargs=
5599keep_next=no
5600skip_next=no
5601eval "set -- $ac_configure_args"
18f6b6ee
PB
5602for ac_arg
5603do
c6b750e1
DJ
5604 if test X"$skip_next" = X"yes"; then
5605 skip_next=no
5606 continue
5607 fi
5608 if test X"$keep_next" = X"yes"; then
5609 case $ac_arg in
5610 *\'*)
5611 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5612 esac
5613 baseargs="$baseargs '$ac_arg'"
5614 keep_next=no
5615 continue
5616 fi
5617
5618 # Handle separated arguments. Based on the logic generated by
5619 # autoconf 2.59.
5620 case $ac_arg in
5621 *=* | --config-cache | -C | -disable-* | --disable-* \
5622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5624 | -with-* | --with-* | -without-* | --without-* | --x)
5625 separate_arg=no
5626 ;;
5627 -*)
5628 separate_arg=yes
5629 ;;
5630 *)
5631 separate_arg=no
5632 ;;
5633 esac
5634
5635 case "$ac_arg" in
5636 --no*)
5637 continue
5638 ;;
5639 --c* | \
5640 --sr* | \
5641 --ho* | \
5642 --bu* | \
5643 --t* | \
5644 --program-* | \
5645 -cache_file* | \
5646 -srcdir* | \
5647 -host* | \
5648 -build* | \
5649 -target* | \
5650 -program-prefix* | \
5651 -program-suffix* | \
5652 -program-transform-name* )
5653 skip_next=$separate_arg
5654 continue
5655 ;;
5656 -*)
5657 # An option. Add it.
5658 case $ac_arg in
5659 *\'*)
5660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5661 esac
5662 baseargs="$baseargs '$ac_arg'"
5663 keep_next=$separate_arg
5664 ;;
5665 *)
5666 # Either a variable assignment, or a nonopt (triplet). Don't
5667 # pass it down; let the Makefile handle this.
5668 continue
5669 ;;
5670 esac
5671done
5672# Remove the initial space we just introduced and, as these will be
5673# expanded by make, quote '$'.
5674baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5675
f27d4f92
DJ
5676# Add in --program-transform-name, after --program-prefix and
5677# --program-suffix have been applied to it. Autoconf has already
5678# doubled dollar signs and backslashes in program_transform_name; we want
5679# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5680# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5681# Also, because we want to override the logic in subdir configure scripts to
5682# choose program_transform_name, replace any s,x,x, with s,y,y,.
5683sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5684${program_transform_name}
5685EOF_SED
5686gcc_transform_name=`cat conftestsed.out`
5687rm -f conftestsed.out
5688baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
5689if test "$silent" = yes; then
5690 baseargs="$baseargs --silent"
5691fi
f27d4f92 5692
a0da8069
NN
5693# For the build-side libraries, we just need to pretend we're native,
5694# and not use the same cache file. Multilibs are neither needed nor
5695# desired.
4b900473 5696build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5697
5698# For host modules, accept cache file option, or specification as blank.
5699case "${cache_file}" in
5700"") # empty
5701 cache_file_option="" ;;
5702/* | [A-Za-z]:[\\/]* ) # absolute path
5703 cache_file_option="--cache-file=${cache_file}" ;;
5704*) # relative path
5705 cache_file_option="--cache-file=../${cache_file}" ;;
5706esac
5707
82252c06
NN
5708# Host dirs don't like to share a cache file either, horribly enough.
5709# This seems to be due to autoconf 2.5x stupidity.
4b900473 5710host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5711
5712target_configargs=${baseargs}
5713
5714# Passing a --with-cross-host argument lets the target libraries know
5715# whether they are being built with a cross-compiler or being built
5716# native. However, it would be better to use other mechanisms to make the
5717# sorts of decisions they want to make on this basis. Please consider
5718# this option to be deprecated. FIXME.
5719if test x${is_cross_compiler} = xyes ; then
c6b750e1 5720 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5721fi
5722
5723# Default to --enable-multilib.
5724if test x${enable_multilib} = x ; then
5725 target_configargs="--enable-multilib ${target_configargs}"
5726fi
5727
5728# Pass --with-newlib if appropriate. Note that target_configdirs has
5729# changed from the earlier setting of with_newlib.
5730if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5731 target_configargs="--with-newlib ${target_configargs}"
5732fi
5733
95036d20
NN
5734# Different target subdirs use different values of certain variables
5735# (notably CXX). Worse, multilibs use *lots* of different values.
5736# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5737# it doesn't automatically accept command-line overrides of them.
5738# This means it's not safe for target subdirs to share a cache file,
5739# which is disgusting, but there you have it. Hopefully this can be
5740# fixed in future. It's still worthwhile to use a cache file for each
5741# directory. I think.
5742
ae380b45
MS
5743# Pass the appropriate --build, --host, --target and --cache-file arguments.
5744# We need to pass --target, as newer autoconf's requires consistency
5745# for target_alias and gcc doesn't manage it consistently.
4b900473 5746target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5747
a0da8069
NN
5748FLAGS_FOR_TARGET=
5749case " $target_configdirs " in
5750 *" newlib "*)
5751 case " $target_configargs " in
5752 *" --with-newlib "*)
5753 case "$target" in
5754 *-cygwin*)
564b43e5 5755 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
5756 esac
5757
5758 # If we're not building GCC, don't discard standard headers.
5759 if test -d ${srcdir}/gcc; then
5760 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5761
5762 if test "${build}" != "${host}"; then
5763 # On Canadian crosses, CC_FOR_TARGET will have already been set
5764 # by `configure', so we won't have an opportunity to add -Bgcc/
5765 # to it. This is right: we don't want to search that directory
5766 # for binaries, but we want the header files in there, so add
5767 # them explicitly.
b00612cc 5768 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5769
5770 # Someone might think of using the pre-installed headers on
5771 # Canadian crosses, in case the installed compiler is not fully
5772 # compatible with the compiler being built. In this case, it
5773 # would be better to flag an error than risking having
5774 # incompatible object files being constructed. We can't
5775 # guarantee that an error will be flagged, but let's hope the
5776 # compiler will do it, when presented with incompatible header
5777 # files.
5778 fi
5779 fi
5780
5781 case "${target}-${is_cross_compiler}" in
ec11bdc6 5782 i[3456789]86-*-linux*-no)
a0da8069
NN
5783 # Here host == target, so we don't need to build gcc,
5784 # so we don't want to discard standard headers.
5785 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5786 ;;
5787 *)
5788 # If we're building newlib, use its generic headers last, but search
5789 # for any libc-related directories first (so make it the last -B
5790 # switch).
5791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5792 ;;
5793 esac
5794 ;;
5795 esac
5796 ;;
5797esac
45055374
CV
5798case "$target" in
5799*-mingw*)
5800 # Can't be handled as Cygwin above since Mingw does not use newlib.
5801 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;;
5802esac
a0da8069 5803
5fbad20a
DD
5804# Allow the user to override the flags for
5805# our build compiler if desired.
5806CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5807
a0da8069
NN
5808# On Canadian crosses, we'll be searching the right directories for
5809# the previously-installed cross compiler, so don't bother to add
5810# flags for directories within the install tree of the compiler
5811# being built; programs in there won't even run.
5812if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5813 # Search for pre-installed headers if nothing else fits.
bba45b8b 5814 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
5815fi
5816
5817if test "x${use_gnu_ld}" = x &&
5818 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5819 # Arrange for us to find uninstalled linker scripts.
b00612cc 5820 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5821fi
5822
a481dbb7
DD
5823# Search for other target-specific linker scripts and such.
5824case "${target}" in
5825 m32c-*-* )
5826 if test -d ${srcdir}/libgloss/m32c; then
5827 # This is for crt0.o
5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5829 # This is for r8c.ld
5830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5831 # This is for libnosys.a
5832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5833 fi
5834 ;;
4e206d7e
DB
5835 mep*)
5836 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5837 ;;
5838esac
5839
a0da8069 5840# Makefile fragments.
3e707e94
PB
5841for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5842do
5843 eval fragval=\$$frag
5844 if test $fragval != /dev/null; then
5845 eval $frag=${srcdir}/$fragval
5846 fi
5847done
a0da8069
NN
5848
5849
5850
5851
5852
5853# Miscellanea: directories, flags, etc.
5854
5855
5856
5857
5858
5859
5860
6a9cf61e 5861# Build module lists & subconfigure args.
a0da8069
NN
5862
5863
5864
be01d343
PB
5865# Host module lists & subconfigure args.
5866
5867
5868
5869# Target module lists & subconfigure args.
5870
5871
5872
5873# Build tools.
5874
5875
5876
5877# Generate default definitions for YACC, M4, LEX and other programs that run
5878# on the build machine. These are used if the Makefile can't locate these
5879# programs in objdir.
5880MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5881
5882for ac_prog in 'bison -y' byacc yacc
5883do
c6b750e1 5884 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5885set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5886echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888if test "${ac_cv_prog_YACC+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5890else
5891 if test -n "$YACC"; then
5892 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5893else
c6b750e1
DJ
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_YACC="$ac_prog"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905done
5906done
5907
be01d343
PB
5908fi
5909fi
c6b750e1 5910YACC=$ac_cv_prog_YACC
be01d343 5911if test -n "$YACC"; then
c6b750e1
DJ
5912 echo "$as_me:$LINENO: result: $YACC" >&5
5913echo "${ECHO_T}$YACC" >&6
be01d343 5914else
c6b750e1
DJ
5915 echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6
be01d343
PB
5917fi
5918
c6b750e1 5919 test -n "$YACC" && break
be01d343
PB
5920done
5921test -n "$YACC" || YACC="$MISSING bison -y"
5922
5923case " $build_configdirs " in
5924 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5925 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5926esac
5927
5928for ac_prog in bison
5929do
c6b750e1 5930 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5931set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5932echo "$as_me:$LINENO: checking for $ac_word" >&5
5933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5934if test "${ac_cv_prog_BISON+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5936else
5937 if test -n "$BISON"; then
5938 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5939else
c6b750e1
DJ
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_BISON="$ac_prog"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951done
5952done
5953
be01d343
PB
5954fi
5955fi
c6b750e1 5956BISON=$ac_cv_prog_BISON
be01d343 5957if test -n "$BISON"; then
c6b750e1
DJ
5958 echo "$as_me:$LINENO: result: $BISON" >&5
5959echo "${ECHO_T}$BISON" >&6
be01d343 5960else
c6b750e1
DJ
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
be01d343
PB
5963fi
5964
c6b750e1 5965 test -n "$BISON" && break
be01d343
PB
5966done
5967test -n "$BISON" || BISON="$MISSING bison"
5968
5969case " $build_configdirs " in
5970 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5971esac
5972
5973for ac_prog in gm4 gnum4 m4
5974do
c6b750e1 5975 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5976set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5977echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979if test "${ac_cv_prog_M4+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5981else
5982 if test -n "$M4"; then
5983 ac_cv_prog_M4="$M4" # Let the user override the test.
5984else
c6b750e1
DJ
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_M4="$ac_prog"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996done
5997done
5998
be01d343
PB
5999fi
6000fi
c6b750e1 6001M4=$ac_cv_prog_M4
be01d343 6002if test -n "$M4"; then
c6b750e1
DJ
6003 echo "$as_me:$LINENO: result: $M4" >&5
6004echo "${ECHO_T}$M4" >&6
be01d343 6005else
c6b750e1
DJ
6006 echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6
be01d343
PB
6008fi
6009
c6b750e1 6010 test -n "$M4" && break
be01d343
PB
6011done
6012test -n "$M4" || M4="$MISSING m4"
6013
6014case " $build_configdirs " in
6015 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6016esac
6017
6018for ac_prog in flex lex
6019do
c6b750e1 6020 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6021set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6022echo "$as_me:$LINENO: checking for $ac_word" >&5
6023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024if test "${ac_cv_prog_LEX+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6026else
6027 if test -n "$LEX"; then
6028 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6029else
c6b750e1
DJ
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_LEX="$ac_prog"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041done
6042done
6043
be01d343
PB
6044fi
6045fi
c6b750e1 6046LEX=$ac_cv_prog_LEX
be01d343 6047if test -n "$LEX"; then
c6b750e1
DJ
6048 echo "$as_me:$LINENO: result: $LEX" >&5
6049echo "${ECHO_T}$LEX" >&6
be01d343 6050else
c6b750e1
DJ
6051 echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6
be01d343
PB
6053fi
6054
c6b750e1 6055 test -n "$LEX" && break
be01d343
PB
6056done
6057test -n "$LEX" || LEX="$MISSING flex"
6058
6059case " $build_configdirs " in
6060 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6061 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6062esac
6063
6064for ac_prog in flex
6065do
c6b750e1 6066 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6067set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6068echo "$as_me:$LINENO: checking for $ac_word" >&5
6069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6070if test "${ac_cv_prog_FLEX+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6072else
6073 if test -n "$FLEX"; then
6074 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6075else
c6b750e1
DJ
6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077for as_dir in $PATH
6078do
6079 IFS=$as_save_IFS
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_FLEX="$ac_prog"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 break 2
6086 fi
6087done
6088done
6089
be01d343
PB
6090fi
6091fi
c6b750e1 6092FLEX=$ac_cv_prog_FLEX
be01d343 6093if test -n "$FLEX"; then
c6b750e1
DJ
6094 echo "$as_me:$LINENO: result: $FLEX" >&5
6095echo "${ECHO_T}$FLEX" >&6
be01d343 6096else
c6b750e1
DJ
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
be01d343
PB
6099fi
6100
c6b750e1 6101 test -n "$FLEX" && break
be01d343
PB
6102done
6103test -n "$FLEX" || FLEX="$MISSING flex"
6104
6105case " $build_configdirs " in
6106 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6107esac
6108
6109for ac_prog in makeinfo
6110do
c6b750e1 6111 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6112set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6113echo "$as_me:$LINENO: checking for $ac_word" >&5
6114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6117else
6118 if test -n "$MAKEINFO"; then
6119 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6120else
c6b750e1
DJ
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_MAKEINFO="$ac_prog"
6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132done
6133done
6134
be01d343
PB
6135fi
6136fi
c6b750e1 6137MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 6138if test -n "$MAKEINFO"; then
c6b750e1
DJ
6139 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6140echo "${ECHO_T}$MAKEINFO" >&6
be01d343 6141else
c6b750e1
DJ
6142 echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6
be01d343
PB
6144fi
6145
c6b750e1 6146 test -n "$MAKEINFO" && break
be01d343
PB
6147done
6148test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6149
6150case " $build_configdirs " in
6151 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6152 *)
6153
a4ef73e9 6154 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
6155 # higher, else we use the "missing" dummy.
6156 if ${MAKEINFO} --version \
a4ef73e9 6157 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
6158 :
6159 else
6160 MAKEINFO="$MISSING makeinfo"
6161 fi
6162 ;;
6163
6164esac
a0da8069 6165
be01d343 6166# FIXME: expect and dejagnu may become build tools?
a0da8069 6167
be01d343
PB
6168for ac_prog in expect
6169do
c6b750e1 6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6171set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6172echo "$as_me:$LINENO: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174if test "${ac_cv_prog_EXPECT+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6176else
6177 if test -n "$EXPECT"; then
6178 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6179else
c6b750e1
DJ
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_EXPECT="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192done
6193
be01d343
PB
6194fi
6195fi
c6b750e1 6196EXPECT=$ac_cv_prog_EXPECT
be01d343 6197if test -n "$EXPECT"; then
c6b750e1
DJ
6198 echo "$as_me:$LINENO: result: $EXPECT" >&5
6199echo "${ECHO_T}$EXPECT" >&6
be01d343 6200else
c6b750e1
DJ
6201 echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6
be01d343 6203fi
a0da8069 6204
c6b750e1 6205 test -n "$EXPECT" && break
be01d343
PB
6206done
6207test -n "$EXPECT" || EXPECT="expect"
a0da8069 6208
be01d343
PB
6209case " $configdirs " in
6210 *" expect "*)
6211 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6212 ;;
6213esac
a0da8069 6214
be01d343
PB
6215for ac_prog in runtest
6216do
c6b750e1 6217 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6218set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
6219echo "$as_me:$LINENO: checking for $ac_word" >&5
6220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6221if test "${ac_cv_prog_RUNTEST+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6223else
6224 if test -n "$RUNTEST"; then
6225 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6226else
c6b750e1
DJ
6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_RUNTEST="$ac_prog"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238done
6239done
6240
be01d343
PB
6241fi
6242fi
c6b750e1 6243RUNTEST=$ac_cv_prog_RUNTEST
be01d343 6244if test -n "$RUNTEST"; then
c6b750e1
DJ
6245 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6246echo "${ECHO_T}$RUNTEST" >&6
be01d343 6247else
c6b750e1
DJ
6248 echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
be01d343 6250fi
a0da8069 6251
c6b750e1 6252 test -n "$RUNTEST" && break
be01d343
PB
6253done
6254test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 6255
be01d343
PB
6256case " $configdirs " in
6257 *" dejagnu "*)
6b89cc21 6258 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
6259 ;;
6260esac
a0da8069
NN
6261
6262
a0da8069 6263# Host tools.
859789af
AC
6264ncn_tool_prefix=
6265test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6266ncn_target_tool_prefix=
6267test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6268
9a819804
AO
6269
6270
6271if test -n "$AR"; then
6272 ac_cv_prog_AR=$AR
6273elif test -n "$ac_cv_prog_AR"; then
6274 AR=$ac_cv_prog_AR
6275fi
6276
6277if test -n "$ac_cv_prog_AR"; then
6278 for ncn_progname in ar; do
6279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6280set dummy ${ncn_progname}; ac_word=$2
6281echo "$as_me:$LINENO: checking for $ac_word" >&5
6282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6283if test "${ac_cv_prog_AR+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR="$AR" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_AR="${ncn_progname}"
6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301done
6302
6303fi
6304fi
6305AR=$ac_cv_prog_AR
6306if test -n "$AR"; then
6307 echo "$as_me:$LINENO: result: $AR" >&5
6308echo "${ECHO_T}$AR" >&6
6309else
6310 echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312fi
6313
6314 done
6315fi
6316
6317for ncn_progname in ar; do
05cbd757
PB
6318 if test -n "$ncn_tool_prefix"; then
6319 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6320set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6321echo "$as_me:$LINENO: checking for $ac_word" >&5
6322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6323if test "${ac_cv_prog_AR+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6325else
6326 if test -n "$AR"; then
6327 ac_cv_prog_AR="$AR" # Let the user override the test.
6328else
c6b750e1
DJ
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341done
6342
859789af
AC
6343fi
6344fi
c6b750e1 6345AR=$ac_cv_prog_AR
859789af 6346if test -n "$AR"; then
c6b750e1
DJ
6347 echo "$as_me:$LINENO: result: $AR" >&5
6348echo "${ECHO_T}$AR" >&6
859789af 6349else
c6b750e1
DJ
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
859789af
AC
6352fi
6353
05cbd757
PB
6354 fi
6355 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6357set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6358echo "$as_me:$LINENO: checking for $ac_word" >&5
6359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6360if test "${ac_cv_prog_AR+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6362else
05cbd757
PB
6363 if test -n "$AR"; then
6364 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6365else
c6b750e1
DJ
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373 ac_cv_prog_AR="${ncn_progname}"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378done
6379
859789af
AC
6380fi
6381fi
c6b750e1 6382AR=$ac_cv_prog_AR
05cbd757 6383if test -n "$AR"; then
c6b750e1
DJ
6384 echo "$as_me:$LINENO: result: $AR" >&5
6385echo "${ECHO_T}$AR" >&6
859789af 6386else
c6b750e1
DJ
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
859789af 6389fi
c6b750e1 6390
05cbd757
PB
6391 fi
6392 test -n "$ac_cv_prog_AR" && break
6393done
6394
6395if test -z "$ac_cv_prog_AR" ; then
6396 set dummy ar
6397 if test $build = $host ; then
6398 AR="$2"
859789af 6399 else
05cbd757 6400 AR="${ncn_tool_prefix}$2"
859789af 6401 fi
859789af
AC
6402fi
6403
9a819804
AO
6404
6405
6406if test -n "$AS"; then
6407 ac_cv_prog_AS=$AS
6408elif test -n "$ac_cv_prog_AS"; then
6409 AS=$ac_cv_prog_AS
6410fi
6411
6412if test -n "$ac_cv_prog_AS"; then
6413 for ncn_progname in as; do
6414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6415set dummy ${ncn_progname}; ac_word=$2
6416echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418if test "${ac_cv_prog_AS+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421 if test -n "$AS"; then
6422 ac_cv_prog_AS="$AS" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_AS="${ncn_progname}"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435done
6436done
6437
6438fi
6439fi
6440AS=$ac_cv_prog_AS
6441if test -n "$AS"; then
6442 echo "$as_me:$LINENO: result: $AS" >&5
6443echo "${ECHO_T}$AS" >&6
6444else
6445 echo "$as_me:$LINENO: result: no" >&5
6446echo "${ECHO_T}no" >&6
6447fi
6448
6449 done
6450fi
6451
6452for ncn_progname in as; do
05cbd757
PB
6453 if test -n "$ncn_tool_prefix"; then
6454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6456echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458if test "${ac_cv_prog_AS+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6460else
6461 if test -n "$AS"; then
6462 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475done
6476done
6477
859789af
AC
6478fi
6479fi
c6b750e1 6480AS=$ac_cv_prog_AS
859789af 6481if test -n "$AS"; then
c6b750e1
DJ
6482 echo "$as_me:$LINENO: result: $AS" >&5
6483echo "${ECHO_T}$AS" >&6
859789af 6484else
c6b750e1
DJ
6485 echo "$as_me:$LINENO: result: no" >&5
6486echo "${ECHO_T}no" >&6
859789af
AC
6487fi
6488
05cbd757
PB
6489 fi
6490 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6492set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6493echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495if test "${ac_cv_prog_AS+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6497else
05cbd757
PB
6498 if test -n "$AS"; then
6499 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6500else
c6b750e1
DJ
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_AS="${ncn_progname}"
6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512done
6513done
6514
859789af
AC
6515fi
6516fi
c6b750e1 6517AS=$ac_cv_prog_AS
05cbd757 6518if test -n "$AS"; then
c6b750e1
DJ
6519 echo "$as_me:$LINENO: result: $AS" >&5
6520echo "${ECHO_T}$AS" >&6
859789af 6521else
c6b750e1
DJ
6522 echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6
859789af 6524fi
c6b750e1 6525
05cbd757
PB
6526 fi
6527 test -n "$ac_cv_prog_AS" && break
6528done
6529
6530if test -z "$ac_cv_prog_AS" ; then
6531 set dummy as
6532 if test $build = $host ; then
6533 AS="$2"
859789af 6534 else
05cbd757 6535 AS="${ncn_tool_prefix}$2"
859789af 6536 fi
859789af
AC
6537fi
6538
9a819804
AO
6539
6540
6541if test -n "$DLLTOOL"; then
6542 ac_cv_prog_DLLTOOL=$DLLTOOL
6543elif test -n "$ac_cv_prog_DLLTOOL"; then
6544 DLLTOOL=$ac_cv_prog_DLLTOOL
6545fi
6546
6547if test -n "$ac_cv_prog_DLLTOOL"; then
6548 for ncn_progname in dlltool; do
6549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6550set dummy ${ncn_progname}; ac_word=$2
6551echo "$as_me:$LINENO: checking for $ac_word" >&5
6552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556 if test -n "$DLLTOOL"; then
6557 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_DLLTOOL="${ncn_progname}"
6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570done
6571done
6572
6573fi
6574fi
6575DLLTOOL=$ac_cv_prog_DLLTOOL
6576if test -n "$DLLTOOL"; then
6577 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6578echo "${ECHO_T}$DLLTOOL" >&6
6579else
6580 echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
6582fi
6583
6584 done
6585fi
6586
6587for ncn_progname in dlltool; do
05cbd757
PB
6588 if test -n "$ncn_tool_prefix"; then
6589 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6590set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6591echo "$as_me:$LINENO: checking for $ac_word" >&5
6592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6595else
6596 if test -n "$DLLTOOL"; then
6597 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6598else
c6b750e1
DJ
6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600for as_dir in $PATH
6601do
6602 IFS=$as_save_IFS
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610done
6611done
6612
859789af
AC
6613fi
6614fi
c6b750e1 6615DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6616if test -n "$DLLTOOL"; then
c6b750e1
DJ
6617 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6618echo "${ECHO_T}$DLLTOOL" >&6
859789af 6619else
c6b750e1
DJ
6620 echo "$as_me:$LINENO: result: no" >&5
6621echo "${ECHO_T}no" >&6
859789af
AC
6622fi
6623
05cbd757
PB
6624 fi
6625 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6627set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6628echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6630if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6632else
05cbd757
PB
6633 if test -n "$DLLTOOL"; then
6634 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6635else
c6b750e1
DJ
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639 IFS=$as_save_IFS
6640 test -z "$as_dir" && as_dir=.
6641 for ac_exec_ext in '' $ac_executable_extensions; do
6642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6643 ac_cv_prog_DLLTOOL="${ncn_progname}"
6644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 break 2
6646 fi
6647done
6648done
6649
859789af
AC
6650fi
6651fi
c6b750e1 6652DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6653if test -n "$DLLTOOL"; then
c6b750e1
DJ
6654 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6655echo "${ECHO_T}$DLLTOOL" >&6
859789af 6656else
c6b750e1
DJ
6657 echo "$as_me:$LINENO: result: no" >&5
6658echo "${ECHO_T}no" >&6
859789af 6659fi
c6b750e1 6660
05cbd757
PB
6661 fi
6662 test -n "$ac_cv_prog_DLLTOOL" && break
6663done
6664
6665if test -z "$ac_cv_prog_DLLTOOL" ; then
6666 set dummy dlltool
6667 if test $build = $host ; then
6668 DLLTOOL="$2"
859789af 6669 else
05cbd757 6670 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6671 fi
859789af
AC
6672fi
6673
9a819804
AO
6674
6675
6676if test -n "$LD"; then
6677 ac_cv_prog_LD=$LD
6678elif test -n "$ac_cv_prog_LD"; then
6679 LD=$ac_cv_prog_LD
6680fi
6681
6682if test -n "$ac_cv_prog_LD"; then
6683 for ncn_progname in ld; do
6684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6685set dummy ${ncn_progname}; ac_word=$2
6686echo "$as_me:$LINENO: checking for $ac_word" >&5
6687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6688if test "${ac_cv_prog_LD+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691 if test -n "$LD"; then
6692 ac_cv_prog_LD="$LD" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701 ac_cv_prog_LD="${ncn_progname}"
6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705done
6706done
6707
6708fi
6709fi
6710LD=$ac_cv_prog_LD
6711if test -n "$LD"; then
6712 echo "$as_me:$LINENO: result: $LD" >&5
6713echo "${ECHO_T}$LD" >&6
6714else
6715 echo "$as_me:$LINENO: result: no" >&5
6716echo "${ECHO_T}no" >&6
6717fi
6718
6719 done
6720fi
6721
6722for ncn_progname in ld; do
05cbd757
PB
6723 if test -n "$ncn_tool_prefix"; then
6724 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6725set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6726echo "$as_me:$LINENO: checking for $ac_word" >&5
6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6728if test "${ac_cv_prog_LD+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6730else
6731 if test -n "$LD"; then
6732 ac_cv_prog_LD="$LD" # Let the user override the test.
6733else
c6b750e1
DJ
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746done
6747
859789af
AC
6748fi
6749fi
c6b750e1 6750LD=$ac_cv_prog_LD
859789af 6751if test -n "$LD"; then
c6b750e1
DJ
6752 echo "$as_me:$LINENO: result: $LD" >&5
6753echo "${ECHO_T}$LD" >&6
859789af 6754else
c6b750e1
DJ
6755 echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6
859789af
AC
6757fi
6758
05cbd757
PB
6759 fi
6760 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6762set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6763echo "$as_me:$LINENO: checking for $ac_word" >&5
6764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6765if test "${ac_cv_prog_LD+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6767else
05cbd757
PB
6768 if test -n "$LD"; then
6769 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6770else
c6b750e1
DJ
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_LD="${ncn_progname}"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782done
6783done
6784
859789af
AC
6785fi
6786fi
c6b750e1 6787LD=$ac_cv_prog_LD
05cbd757 6788if test -n "$LD"; then
c6b750e1
DJ
6789 echo "$as_me:$LINENO: result: $LD" >&5
6790echo "${ECHO_T}$LD" >&6
859789af 6791else
c6b750e1
DJ
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
859789af 6794fi
c6b750e1 6795
05cbd757
PB
6796 fi
6797 test -n "$ac_cv_prog_LD" && break
6798done
6799
6800if test -z "$ac_cv_prog_LD" ; then
6801 set dummy ld
6802 if test $build = $host ; then
6803 LD="$2"
859789af 6804 else
05cbd757 6805 LD="${ncn_tool_prefix}$2"
859789af 6806 fi
859789af
AC
6807fi
6808
9a819804
AO
6809
6810
6811if test -n "$LIPO"; then
6812 ac_cv_prog_LIPO=$LIPO
6813elif test -n "$ac_cv_prog_LIPO"; then
6814 LIPO=$ac_cv_prog_LIPO
6815fi
6816
6817if test -n "$ac_cv_prog_LIPO"; then
6818 for ncn_progname in lipo; do
6819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6820set dummy ${ncn_progname}; ac_word=$2
6821echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6823if test "${ac_cv_prog_LIPO+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 if test -n "$LIPO"; then
6827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_LIPO="${ncn_progname}"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840done
6841done
6842
6843fi
6844fi
6845LIPO=$ac_cv_prog_LIPO
6846if test -n "$LIPO"; then
6847 echo "$as_me:$LINENO: result: $LIPO" >&5
6848echo "${ECHO_T}$LIPO" >&6
6849else
6850 echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6
6852fi
6853
6854 done
6855fi
6856
6857for ncn_progname in lipo; do
be01d343
PB
6858 if test -n "$ncn_tool_prefix"; then
6859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6860set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6861echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6863if test "${ac_cv_prog_LIPO+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6865else
6866 if test -n "$LIPO"; then
6867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6868else
c6b750e1
DJ
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881done
6882
be01d343
PB
6883fi
6884fi
c6b750e1 6885LIPO=$ac_cv_prog_LIPO
be01d343 6886if test -n "$LIPO"; then
c6b750e1
DJ
6887 echo "$as_me:$LINENO: result: $LIPO" >&5
6888echo "${ECHO_T}$LIPO" >&6
be01d343 6889else
c6b750e1
DJ
6890 echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6
be01d343
PB
6892fi
6893
6894 fi
6895 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6897set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6898echo "$as_me:$LINENO: checking for $ac_word" >&5
6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6900if test "${ac_cv_prog_LIPO+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6902else
6903 if test -n "$LIPO"; then
6904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6905else
c6b750e1
DJ
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_LIPO="${ncn_progname}"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917done
6918done
6919
be01d343
PB
6920fi
6921fi
c6b750e1 6922LIPO=$ac_cv_prog_LIPO
be01d343 6923if test -n "$LIPO"; then
c6b750e1
DJ
6924 echo "$as_me:$LINENO: result: $LIPO" >&5
6925echo "${ECHO_T}$LIPO" >&6
be01d343 6926else
c6b750e1
DJ
6927 echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6
be01d343 6929fi
c6b750e1 6930
be01d343
PB
6931 fi
6932 test -n "$ac_cv_prog_LIPO" && break
6933done
6934
6935if test -z "$ac_cv_prog_LIPO" ; then
6936 set dummy lipo
6937 if test $build = $host ; then
6938 LIPO="$2"
6939 else
6940 LIPO="${ncn_tool_prefix}$2"
6941 fi
6942fi
6943
9a819804
AO
6944
6945
6946if test -n "$NM"; then
6947 ac_cv_prog_NM=$NM
6948elif test -n "$ac_cv_prog_NM"; then
6949 NM=$ac_cv_prog_NM
6950fi
6951
6952if test -n "$ac_cv_prog_NM"; then
6953 for ncn_progname in nm; do
6954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6955set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6956echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958if test "${ac_cv_prog_NM+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6960else
6961 if test -n "$NM"; then
6962 ac_cv_prog_NM="$NM" # Let the user override the test.
6963else
c6b750e1
DJ
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 6971 ac_cv_prog_NM="${ncn_progname}"
c6b750e1
DJ
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976done
6977
859789af
AC
6978fi
6979fi
c6b750e1 6980NM=$ac_cv_prog_NM
859789af 6981if test -n "$NM"; then
c6b750e1
DJ
6982 echo "$as_me:$LINENO: result: $NM" >&5
6983echo "${ECHO_T}$NM" >&6
859789af 6984else
c6b750e1
DJ
6985 echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
859789af
AC
6987fi
6988
9a819804
AO
6989 done
6990fi
6991
6992for ncn_progname in nm; do
6993 if test -n "$ncn_tool_prefix"; then
6994 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6995set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6996echo "$as_me:$LINENO: checking for $ac_word" >&5
6997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998if test "${ac_cv_prog_NM+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7000else
05cbd757
PB
7001 if test -n "$NM"; then
7002 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 7003else
c6b750e1
DJ
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 7011 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
c6b750e1
DJ
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015done
7016done
7017
859789af
AC
7018fi
7019fi
c6b750e1 7020NM=$ac_cv_prog_NM
05cbd757 7021if test -n "$NM"; then
c6b750e1
DJ
7022 echo "$as_me:$LINENO: result: $NM" >&5
7023echo "${ECHO_T}$NM" >&6
859789af 7024else
c6b750e1
DJ
7025 echo "$as_me:$LINENO: result: no" >&5
7026echo "${ECHO_T}no" >&6
859789af 7027fi
c6b750e1 7028
05cbd757 7029 fi
9a819804
AO
7030 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7032set dummy ${ncn_progname}; ac_word=$2
7033echo "$as_me:$LINENO: checking for $ac_word" >&5
7034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7035if test "${ac_cv_prog_NM+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037else
7038 if test -n "$NM"; then
7039 ac_cv_prog_NM="$NM" # Let the user override the test.
7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_NM="${ncn_progname}"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052done
7053done
7054
7055fi
7056fi
7057NM=$ac_cv_prog_NM
7058if test -n "$NM"; then
7059 echo "$as_me:$LINENO: result: $NM" >&5
7060echo "${ECHO_T}$NM" >&6
7061else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064fi
7065
7066 fi
7067 test -n "$ac_cv_prog_NM" && break
7068done
7069
7070if test -z "$ac_cv_prog_NM" ; then
7071 set dummy nm
7072 if test $build = $host ; then
7073 NM="$2"
7074 else
7075 NM="${ncn_tool_prefix}$2"
7076 fi
7077fi
7078
7079
7080
7081if test -n "$RANLIB"; then
7082 ac_cv_prog_RANLIB=$RANLIB
7083elif test -n "$ac_cv_prog_RANLIB"; then
7084 RANLIB=$ac_cv_prog_RANLIB
7085fi
7086
7087if test -n "$ac_cv_prog_RANLIB"; then
7088 for ncn_progname in ranlib; do
7089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7090set dummy ${ncn_progname}; ac_word=$2
7091echo "$as_me:$LINENO: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093if test "${ac_cv_prog_RANLIB+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096 if test -n "$RANLIB"; then
7097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7098else
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_RANLIB="${ncn_progname}"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110done
7111done
7112
7113fi
7114fi
7115RANLIB=$ac_cv_prog_RANLIB
7116if test -n "$RANLIB"; then
7117 echo "$as_me:$LINENO: result: $RANLIB" >&5
7118echo "${ECHO_T}$RANLIB" >&6
7119else
7120 echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6
7122fi
7123
7124 done
7125fi
859789af 7126
9a819804 7127for ncn_progname in ranlib; do
05cbd757
PB
7128 if test -n "$ncn_tool_prefix"; then
7129 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7130set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7131echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133if test "${ac_cv_prog_RANLIB+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7135else
7136 if test -n "$RANLIB"; then
7137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7138else
c6b750e1
DJ
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150done
7151done
7152
859789af
AC
7153fi
7154fi
c6b750e1 7155RANLIB=$ac_cv_prog_RANLIB
859789af 7156if test -n "$RANLIB"; then
c6b750e1
DJ
7157 echo "$as_me:$LINENO: result: $RANLIB" >&5
7158echo "${ECHO_T}$RANLIB" >&6
859789af 7159else
c6b750e1
DJ
7160 echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
859789af
AC
7162fi
7163
05cbd757
PB
7164 fi
7165 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7167set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7168echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170if test "${ac_cv_prog_RANLIB+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7172else
05cbd757
PB
7173 if test -n "$RANLIB"; then
7174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 7175else
c6b750e1
DJ
7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_RANLIB="${ncn_progname}"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187done
7188done
7189
859789af
AC
7190fi
7191fi
c6b750e1 7192RANLIB=$ac_cv_prog_RANLIB
05cbd757 7193if test -n "$RANLIB"; then
c6b750e1
DJ
7194 echo "$as_me:$LINENO: result: $RANLIB" >&5
7195echo "${ECHO_T}$RANLIB" >&6
859789af 7196else
c6b750e1
DJ
7197 echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6
859789af 7199fi
c6b750e1 7200
859789af 7201 fi
05cbd757
PB
7202 test -n "$ac_cv_prog_RANLIB" && break
7203done
7204
7205if test -z "$ac_cv_prog_RANLIB" ; then
7206 RANLIB=":"
859789af
AC
7207fi
7208
9a819804
AO
7209
7210
7211if test -n "$STRIP"; then
7212 ac_cv_prog_STRIP=$STRIP
7213elif test -n "$ac_cv_prog_STRIP"; then
7214 STRIP=$ac_cv_prog_STRIP
7215fi
7216
7217if test -n "$ac_cv_prog_STRIP"; then
7218 for ncn_progname in strip; do
7219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7220set dummy ${ncn_progname}; ac_word=$2
7221echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7223if test "${ac_cv_prog_STRIP+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 if test -n "$STRIP"; then
7227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7228else
7229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230for as_dir in $PATH
7231do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_STRIP="${ncn_progname}"
7237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240done
7241done
7242
7243fi
7244fi
7245STRIP=$ac_cv_prog_STRIP
7246if test -n "$STRIP"; then
7247 echo "$as_me:$LINENO: result: $STRIP" >&5
7248echo "${ECHO_T}$STRIP" >&6
7249else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252fi
7253
7254 done
7255fi
7256
7257for ncn_progname in strip; do
be01d343
PB
7258 if test -n "$ncn_tool_prefix"; then
7259 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7260set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7261echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263if test "${ac_cv_prog_STRIP+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7265else
7266 if test -n "$STRIP"; then
7267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7268else
c6b750e1
DJ
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280done
7281done
7282
be01d343
PB
7283fi
7284fi
c6b750e1 7285STRIP=$ac_cv_prog_STRIP
be01d343 7286if test -n "$STRIP"; then
c6b750e1
DJ
7287 echo "$as_me:$LINENO: result: $STRIP" >&5
7288echo "${ECHO_T}$STRIP" >&6
be01d343 7289else
c6b750e1
DJ
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
be01d343
PB
7292fi
7293
7294 fi
7295 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7297set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7298echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300if test "${ac_cv_prog_STRIP+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
7302else
7303 if test -n "$STRIP"; then
7304 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7305else
c6b750e1
DJ
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_STRIP="${ncn_progname}"
7314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 break 2
7316 fi
7317done
7318done
7319
be01d343
PB
7320fi
7321fi
c6b750e1 7322STRIP=$ac_cv_prog_STRIP
be01d343 7323if test -n "$STRIP"; then
c6b750e1
DJ
7324 echo "$as_me:$LINENO: result: $STRIP" >&5
7325echo "${ECHO_T}$STRIP" >&6
be01d343 7326else
c6b750e1
DJ
7327 echo "$as_me:$LINENO: result: no" >&5
7328echo "${ECHO_T}no" >&6
be01d343 7329fi
c6b750e1 7330
be01d343
PB
7331 fi
7332 test -n "$ac_cv_prog_STRIP" && break
7333done
7334
7335if test -z "$ac_cv_prog_STRIP" ; then
7336 STRIP=":"
7337fi
7338
9a819804
AO
7339
7340
7341if test -n "$WINDRES"; then
7342 ac_cv_prog_WINDRES=$WINDRES
7343elif test -n "$ac_cv_prog_WINDRES"; then
7344 WINDRES=$ac_cv_prog_WINDRES
7345fi
7346
7347if test -n "$ac_cv_prog_WINDRES"; then
7348 for ncn_progname in windres; do
7349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7350set dummy ${ncn_progname}; ac_word=$2
7351echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353if test "${ac_cv_prog_WINDRES+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356 if test -n "$WINDRES"; then
7357 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_WINDRES="${ncn_progname}"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371done
7372
7373fi
7374fi
7375WINDRES=$ac_cv_prog_WINDRES
7376if test -n "$WINDRES"; then
7377 echo "$as_me:$LINENO: result: $WINDRES" >&5
7378echo "${ECHO_T}$WINDRES" >&6
7379else
7380 echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
7382fi
7383
7384 done
7385fi
7386
7387for ncn_progname in windres; do
05cbd757
PB
7388 if test -n "$ncn_tool_prefix"; then
7389 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7390set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7391echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393if test "${ac_cv_prog_WINDRES+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7395else
7396 if test -n "$WINDRES"; then
7397 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7398else
c6b750e1
DJ
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411done
7412
859789af
AC
7413fi
7414fi
c6b750e1 7415WINDRES=$ac_cv_prog_WINDRES
859789af 7416if test -n "$WINDRES"; then
c6b750e1
DJ
7417 echo "$as_me:$LINENO: result: $WINDRES" >&5
7418echo "${ECHO_T}$WINDRES" >&6
859789af 7419else
c6b750e1
DJ
7420 echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6
859789af
AC
7422fi
7423
05cbd757
PB
7424 fi
7425 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7427set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7428echo "$as_me:$LINENO: checking for $ac_word" >&5
7429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430if test "${ac_cv_prog_WINDRES+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7432else
05cbd757
PB
7433 if test -n "$WINDRES"; then
7434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 7435else
c6b750e1
DJ
7436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_WINDRES="${ncn_progname}"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449
859789af
AC
7450fi
7451fi
c6b750e1 7452WINDRES=$ac_cv_prog_WINDRES
05cbd757 7453if test -n "$WINDRES"; then
c6b750e1
DJ
7454 echo "$as_me:$LINENO: result: $WINDRES" >&5
7455echo "${ECHO_T}$WINDRES" >&6
859789af 7456else
c6b750e1
DJ
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
859789af 7459fi
c6b750e1 7460
05cbd757
PB
7461 fi
7462 test -n "$ac_cv_prog_WINDRES" && break
7463done
7464
7465if test -z "$ac_cv_prog_WINDRES" ; then
7466 set dummy windres
7467 if test $build = $host ; then
7468 WINDRES="$2"
859789af 7469 else
05cbd757 7470 WINDRES="${ncn_tool_prefix}$2"
859789af 7471 fi
859789af
AC
7472fi
7473
9a819804
AO
7474
7475
0c24b341
NC
7476if test -n "$WINDMC"; then
7477 ac_cv_prog_WINDMC=$WINDMC
7478elif test -n "$ac_cv_prog_WINDMC"; then
7479 WINDMC=$ac_cv_prog_WINDMC
7480fi
7481
7482if test -n "$ac_cv_prog_WINDMC"; then
7483 for ncn_progname in windmc; do
7484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7485set dummy ${ncn_progname}; ac_word=$2
7486echo "$as_me:$LINENO: checking for $ac_word" >&5
7487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488if test "${ac_cv_prog_WINDMC+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491 if test -n "$WINDMC"; then
7492 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_WINDMC="${ncn_progname}"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506done
7507
7508fi
7509fi
7510WINDMC=$ac_cv_prog_WINDMC
7511if test -n "$WINDMC"; then
7512 echo "$as_me:$LINENO: result: $WINDMC" >&5
7513echo "${ECHO_T}$WINDMC" >&6
7514else
7515 echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
7517fi
7518
7519 done
7520fi
7521
7522for ncn_progname in windmc; do
7523 if test -n "$ncn_tool_prefix"; then
7524 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7525set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7526echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528if test "${ac_cv_prog_WINDMC+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 if test -n "$WINDMC"; then
7532 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547
7548fi
7549fi
7550WINDMC=$ac_cv_prog_WINDMC
7551if test -n "$WINDMC"; then
7552 echo "$as_me:$LINENO: result: $WINDMC" >&5
7553echo "${ECHO_T}$WINDMC" >&6
7554else
7555 echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
7557fi
7558
7559 fi
7560 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7562set dummy ${ncn_progname}; ac_word=$2
7563echo "$as_me:$LINENO: checking for $ac_word" >&5
7564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7565if test "${ac_cv_prog_WINDMC+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567else
7568 if test -n "$WINDMC"; then
7569 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578 ac_cv_prog_WINDMC="${ncn_progname}"
7579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7581 fi
7582done
7583done
7584
7585fi
7586fi
7587WINDMC=$ac_cv_prog_WINDMC
7588if test -n "$WINDMC"; then
7589 echo "$as_me:$LINENO: result: $WINDMC" >&5
7590echo "${ECHO_T}$WINDMC" >&6
7591else
7592 echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
7594fi
7595
7596 fi
7597 test -n "$ac_cv_prog_WINDMC" && break
7598done
7599
7600if test -z "$ac_cv_prog_WINDMC" ; then
7601 set dummy windmc
7602 if test $build = $host ; then
7603 WINDMC="$2"
7604 else
7605 WINDMC="${ncn_tool_prefix}$2"
7606 fi
7607fi
7608
7609
7610
9a819804
AO
7611if test -n "$OBJCOPY"; then
7612 ac_cv_prog_OBJCOPY=$OBJCOPY
7613elif test -n "$ac_cv_prog_OBJCOPY"; then
7614 OBJCOPY=$ac_cv_prog_OBJCOPY
7615fi
7616
7617if test -n "$ac_cv_prog_OBJCOPY"; then
7618 for ncn_progname in objcopy; do
7619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7620set dummy ${ncn_progname}; ac_word=$2
7621echo "$as_me:$LINENO: checking for $ac_word" >&5
7622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7623if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7625else
7626 if test -n "$OBJCOPY"; then
7627 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_OBJCOPY="${ncn_progname}"
7637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640done
7641done
7642
7643fi
7644fi
7645OBJCOPY=$ac_cv_prog_OBJCOPY
7646if test -n "$OBJCOPY"; then
7647 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7648echo "${ECHO_T}$OBJCOPY" >&6
7649else
7650 echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6
7652fi
7653
7654 done
7655fi
7656
7657for ncn_progname in objcopy; do
05cbd757
PB
7658 if test -n "$ncn_tool_prefix"; then
7659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7660set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7661echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7665else
7666 if test -n "$OBJCOPY"; then
7667 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7668else
c6b750e1
DJ
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680done
7681done
7682
859789af
AC
7683fi
7684fi
c6b750e1 7685OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 7686if test -n "$OBJCOPY"; then
c6b750e1
DJ
7687 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7688echo "${ECHO_T}$OBJCOPY" >&6
859789af 7689else
c6b750e1
DJ
7690 echo "$as_me:$LINENO: result: no" >&5
7691echo "${ECHO_T}no" >&6
859789af
AC
7692fi
7693
05cbd757
PB
7694 fi
7695 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7697set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7698echo "$as_me:$LINENO: checking for $ac_word" >&5
7699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7700if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7702else
05cbd757
PB
7703 if test -n "$OBJCOPY"; then
7704 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 7705else
c6b750e1
DJ
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_OBJCOPY="${ncn_progname}"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717done
7718done
7719
859789af
AC
7720fi
7721fi
c6b750e1 7722OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 7723if test -n "$OBJCOPY"; then
c6b750e1
DJ
7724 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7725echo "${ECHO_T}$OBJCOPY" >&6
859789af 7726else
c6b750e1
DJ
7727 echo "$as_me:$LINENO: result: no" >&5
7728echo "${ECHO_T}no" >&6
859789af 7729fi
c6b750e1 7730
05cbd757
PB
7731 fi
7732 test -n "$ac_cv_prog_OBJCOPY" && break
7733done
7734
7735if test -z "$ac_cv_prog_OBJCOPY" ; then
7736 set dummy objcopy
7737 if test $build = $host ; then
7738 OBJCOPY="$2"
859789af 7739 else
05cbd757 7740 OBJCOPY="${ncn_tool_prefix}$2"
859789af 7741 fi
859789af
AC
7742fi
7743
9a819804
AO
7744
7745
7746if test -n "$OBJDUMP"; then
7747 ac_cv_prog_OBJDUMP=$OBJDUMP
7748elif test -n "$ac_cv_prog_OBJDUMP"; then
7749 OBJDUMP=$ac_cv_prog_OBJDUMP
7750fi
7751
7752if test -n "$ac_cv_prog_OBJDUMP"; then
7753 for ncn_progname in objdump; do
7754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7755set dummy ${ncn_progname}; ac_word=$2
7756echo "$as_me:$LINENO: checking for $ac_word" >&5
7757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7758if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761 if test -n "$OBJDUMP"; then
7762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_OBJDUMP="${ncn_progname}"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775done
7776done
7777
7778fi
7779fi
7780OBJDUMP=$ac_cv_prog_OBJDUMP
7781if test -n "$OBJDUMP"; then
7782 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7783echo "${ECHO_T}$OBJDUMP" >&6
7784else
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
7787fi
7788
7789 done
7790fi
7791
7792for ncn_progname in objdump; do
05cbd757
PB
7793 if test -n "$ncn_tool_prefix"; then
7794 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7795set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7796echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
7800else
7801 if test -n "$OBJDUMP"; then
7802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7803else
c6b750e1
DJ
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815done
7816done
7817
859789af
AC
7818fi
7819fi
c6b750e1 7820OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 7821if test -n "$OBJDUMP"; then
c6b750e1
DJ
7822 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7823echo "${ECHO_T}$OBJDUMP" >&6
859789af 7824else
c6b750e1
DJ
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
859789af
AC
7827fi
7828
05cbd757
PB
7829 fi
7830 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7832set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7833echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7837else
05cbd757
PB
7838 if test -n "$OBJDUMP"; then
7839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 7840else
c6b750e1
DJ
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_OBJDUMP="${ncn_progname}"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852done
7853done
7854
859789af
AC
7855fi
7856fi
c6b750e1 7857OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 7858if test -n "$OBJDUMP"; then
c6b750e1
DJ
7859 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7860echo "${ECHO_T}$OBJDUMP" >&6
859789af 7861else
c6b750e1
DJ
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
859789af 7864fi
c6b750e1 7865
05cbd757
PB
7866 fi
7867 test -n "$ac_cv_prog_OBJDUMP" && break
7868done
7869
7870if test -z "$ac_cv_prog_OBJDUMP" ; then
7871 set dummy objdump
7872 if test $build = $host ; then
7873 OBJDUMP="$2"
859789af 7874 else
05cbd757 7875 OBJDUMP="${ncn_tool_prefix}$2"
859789af 7876 fi
859789af
AC
7877fi
7878
a0da8069
NN
7879
7880
7881
7882
7883
7884
be01d343 7885# Target tools.
c6b750e1 7886
2429c060
PB
7887# Check whether --with-build-time-tools or --without-build-time-tools was given.
7888if test "${with_build_time_tools+set}" = set; then
7889 withval="$with_build_time_tools"
7890 case x"$withval" in
7891 x/*) ;;
7892 *)
7893 with_build_time_tools=
c6b750e1
DJ
7894 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7895echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
7896 ;;
7897 esac
859789af 7898else
2429c060 7899 with_build_time_tools=
c6b750e1 7900fi;
859789af 7901
9a819804
AO
7902
7903
7904if test -n "$CC_FOR_TARGET"; then
7905 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7906elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7907 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7908fi
7909
7910if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7911 for ncn_progname in cc gcc; do
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913set dummy ${ncn_progname}; ac_word=$2
7914echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919 if test -n "$CC_FOR_TARGET"; then
7920 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934done
7935
7936fi
7937fi
7938CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7939if test -n "$CC_FOR_TARGET"; then
7940 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7941echo "${ECHO_T}$CC_FOR_TARGET" >&6
7942else
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
7945fi
7946
7947 done
7948fi
7949
7950if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 7951 for ncn_progname in cc gcc; do
c6b750e1
DJ
7952 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7953echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7954 if test -x $with_build_time_tools/${ncn_progname}; then
7955 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7956 echo "$as_me:$LINENO: result: yes" >&5
7957echo "${ECHO_T}yes" >&6
cac3d6c4 7958 break
2429c060 7959 else
c6b750e1
DJ
7960 echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6
cac3d6c4
CM
7962 fi
7963 done
55db4b87
PB
7964fi
7965
2429c060
PB
7966if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7967 for ncn_progname in cc gcc; do
7968 if test -n "$ncn_target_tool_prefix"; then
7969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7970set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7971echo "$as_me:$LINENO: checking for $ac_word" >&5
7972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7973if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7975else
7976 if test -n "$CC_FOR_TARGET"; then
7977 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7978else
c6b750e1
DJ
7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990done
7991done
7992
55db4b87
PB
7993fi
7994fi
c6b750e1 7995CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7996if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7997 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7998echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7999else
c6b750e1
DJ
8000 echo "$as_me:$LINENO: result: no" >&5
8001echo "${ECHO_T}no" >&6
55db4b87
PB
8002fi
8003
2429c060
PB
8004 fi
8005 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8007set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8008echo "$as_me:$LINENO: checking for $ac_word" >&5
8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8012else
05cbd757
PB
8013 if test -n "$CC_FOR_TARGET"; then
8014 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 8015else
c6b750e1
DJ
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028done
8029
55db4b87
PB
8030fi
8031fi
c6b750e1 8032CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 8033if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
8034 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8035echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 8036else
c6b750e1
DJ
8037 echo "$as_me:$LINENO: result: no" >&5
8038echo "${ECHO_T}no" >&6
55db4b87 8039fi
c6b750e1 8040
2429c060
PB
8041 fi
8042 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8043 done
8044fi
c6b750e1 8045
05cbd757
PB
8046if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8047 set dummy cc gcc
8048 if test $build = $target ; then
8049 CC_FOR_TARGET="$2"
55db4b87 8050 else
05cbd757 8051 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8052 fi
d3f5afc4
MS
8053else
8054 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
8055fi
8056
9a819804
AO
8057
8058
8059if test -n "$CXX_FOR_TARGET"; then
8060 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8061elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8062 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8063fi
8064
8065if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8066 for ncn_progname in c++ g++ cxx gxx; do
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068set dummy ${ncn_progname}; ac_word=$2
8069echo "$as_me:$LINENO: checking for $ac_word" >&5
8070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8071if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073else
8074 if test -n "$CXX_FOR_TARGET"; then
8075 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8087 fi
8088done
8089done
8090
8091fi
8092fi
8093CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8094if test -n "$CXX_FOR_TARGET"; then
8095 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8096echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8097else
8098 echo "$as_me:$LINENO: result: no" >&5
8099echo "${ECHO_T}no" >&6
8100fi
8101
8102 done
8103fi
8104
8105if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8106 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
8107 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8108echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8109 if test -x $with_build_time_tools/${ncn_progname}; then
8110 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
2429c060
PB
8113 break
8114 else
c6b750e1
DJ
8115 echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
2429c060
PB
8117 fi
8118 done
8119fi
8120
8121if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8122 for ncn_progname in c++ g++ cxx gxx; do
8123 if test -n "$ncn_target_tool_prefix"; then
8124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8125set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8126echo "$as_me:$LINENO: checking for $ac_word" >&5
8127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8128if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8130else
8131 if test -n "$CXX_FOR_TARGET"; then
8132 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8133else
c6b750e1
DJ
8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135for as_dir in $PATH
8136do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8144 fi
8145done
8146done
8147
55db4b87
PB
8148fi
8149fi
c6b750e1 8150CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 8151if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8152 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8153echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8154else
c6b750e1
DJ
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
55db4b87
PB
8157fi
8158
2429c060
PB
8159 fi
8160 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8162set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8163echo "$as_me:$LINENO: checking for $ac_word" >&5
8164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8165if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8167else
05cbd757
PB
8168 if test -n "$CXX_FOR_TARGET"; then
8169 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 8170else
c6b750e1
DJ
8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172for as_dir in $PATH
8173do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182done
8183done
8184
55db4b87
PB
8185fi
8186fi
c6b750e1 8187CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 8188if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
8189 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8190echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 8191else
c6b750e1
DJ
8192 echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6
55db4b87 8194fi
c6b750e1 8195
2429c060
PB
8196 fi
8197 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8198 done
8199fi
c6b750e1 8200
05cbd757
PB
8201if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8202 set dummy c++ g++ cxx gxx
8203 if test $build = $target ; then
8204 CXX_FOR_TARGET="$2"
55db4b87 8205 else
05cbd757 8206 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8207 fi
d3f5afc4
MS
8208else
8209 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
8210fi
8211
9a819804
AO
8212
8213
8214if test -n "$GCC_FOR_TARGET"; then
8215 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8216elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8217 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8218fi
8219
8220if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8221 for ncn_progname in gcc; do
8222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8223set dummy ${ncn_progname}; ac_word=$2
8224echo "$as_me:$LINENO: checking for $ac_word" >&5
8225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8226if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 if test -n "$GCC_FOR_TARGET"; then
8230 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8231else
8232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244done
8245
8246fi
8247fi
8248GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8249if test -n "$GCC_FOR_TARGET"; then
8250 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8251echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8252else
8253 echo "$as_me:$LINENO: result: no" >&5
8254echo "${ECHO_T}no" >&6
8255fi
8256
8257 done
8258fi
8259
8260if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8261 for ncn_progname in gcc; do
c6b750e1
DJ
8262 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8263echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8264 if test -x $with_build_time_tools/${ncn_progname}; then
8265 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8266 echo "$as_me:$LINENO: result: yes" >&5
8267echo "${ECHO_T}yes" >&6
2429c060
PB
8268 break
8269 else
c6b750e1
DJ
8270 echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6
2429c060
PB
8272 fi
8273 done
8274fi
8275
8276if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8277 for ncn_progname in gcc; do
8278 if test -n "$ncn_target_tool_prefix"; then
8279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8280set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8281echo "$as_me:$LINENO: checking for $ac_word" >&5
8282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8285else
2429c060
PB
8286 if test -n "$GCC_FOR_TARGET"; then
8287 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8288else
c6b750e1
DJ
8289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290for as_dir in $PATH
8291do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300done
8301done
8302
55db4b87
PB
8303fi
8304fi
c6b750e1 8305GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 8306if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8307 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8308echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8309else
c6b750e1
DJ
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
55db4b87
PB
8312fi
8313
2429c060
PB
8314 fi
8315 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8317set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8318echo "$as_me:$LINENO: checking for $ac_word" >&5
8319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8320if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8322else
05cbd757
PB
8323 if test -n "$GCC_FOR_TARGET"; then
8324 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 8325else
c6b750e1
DJ
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338done
8339
55db4b87
PB
8340fi
8341fi
c6b750e1 8342GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 8343if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
8344 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8345echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 8346else
c6b750e1
DJ
8347 echo "$as_me:$LINENO: result: no" >&5
8348echo "${ECHO_T}no" >&6
55db4b87 8349fi
c6b750e1 8350
2429c060
PB
8351 fi
8352 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8353 done
8354fi
c6b750e1 8355
05cbd757
PB
8356if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8357 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
8358else
8359 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
8360fi
8361
9a819804
AO
8362
8363
8364if test -n "$GCJ_FOR_TARGET"; then
8365 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8366elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8367 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8368fi
8369
8370if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8371 for ncn_progname in gcj; do
8372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8373set dummy ${ncn_progname}; ac_word=$2
8374echo "$as_me:$LINENO: checking for $ac_word" >&5
8375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8376if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 if test -n "$GCJ_FOR_TARGET"; then
8380 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8381else
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393done
8394done
8395
8396fi
8397fi
8398GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8399if test -n "$GCJ_FOR_TARGET"; then
8400 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8401echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8402else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405fi
8406
8407 done
8408fi
8409
8410if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8411 for ncn_progname in gcj; do
c6b750e1
DJ
8412 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8413echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8414 if test -x $with_build_time_tools/${ncn_progname}; then
8415 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8416 echo "$as_me:$LINENO: result: yes" >&5
8417echo "${ECHO_T}yes" >&6
2429c060
PB
8418 break
8419 else
c6b750e1
DJ
8420 echo "$as_me:$LINENO: result: no" >&5
8421echo "${ECHO_T}no" >&6
2429c060
PB
8422 fi
8423 done
8424fi
8425
8426if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8427 for ncn_progname in gcj; do
8428 if test -n "$ncn_target_tool_prefix"; then
8429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8430set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8431echo "$as_me:$LINENO: checking for $ac_word" >&5
8432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8433if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8435else
8436 if test -n "$GCJ_FOR_TARGET"; then
8437 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8438else
c6b750e1
DJ
8439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450done
8451done
8452
55db4b87
PB
8453fi
8454fi
9a819804
AO
8455GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8456if test -n "$GCJ_FOR_TARGET"; then
8457 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8458echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8459else
8460 echo "$as_me:$LINENO: result: no" >&5
8461echo "${ECHO_T}no" >&6
8462fi
8463
8464 fi
8465 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8467set dummy ${ncn_progname}; ac_word=$2
8468echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8470if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473 if test -n "$GCJ_FOR_TARGET"; then
8474 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8475else
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8483 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487done
8488done
8489
8490fi
8491fi
8492GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8493if test -n "$GCJ_FOR_TARGET"; then
8494 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8495echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8496else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499fi
8500
8501 fi
8502 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8503 done
8504fi
8505
8506if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8507 set dummy gcj
8508 if test $build = $target ; then
8509 GCJ_FOR_TARGET="$2"
8510 else
8511 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8512 fi
d3f5afc4
MS
8513else
8514 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
8515fi
8516
8517
8518
8519if test -n "$GFORTRAN_FOR_TARGET"; then
8520 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8521elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8522 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
8523fi
8524
9a819804
AO
8525if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8526 for ncn_progname in gfortran; do
8527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8528set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8529echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 8531if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
c6b750e1 8532 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8533else
9a819804
AO
8534 if test -n "$GFORTRAN_FOR_TARGET"; then
8535 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 8536else
c6b750e1
DJ
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 8544 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548done
8549done
8550
55db4b87
PB
8551fi
8552fi
9a819804
AO
8553GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8554if test -n "$GFORTRAN_FOR_TARGET"; then
8555 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8556echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8557else
c6b750e1
DJ
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
55db4b87 8560fi
c6b750e1 8561
2429c060
PB
8562 done
8563fi
c6b750e1 8564
9a819804 8565if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8566 for ncn_progname in gfortran; do
c6b750e1
DJ
8567 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8568echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8569 if test -x $with_build_time_tools/${ncn_progname}; then
8570 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8571 echo "$as_me:$LINENO: result: yes" >&5
8572echo "${ECHO_T}yes" >&6
2429c060
PB
8573 break
8574 else
c6b750e1
DJ
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
2429c060
PB
8577 fi
8578 done
8579fi
8580
8581if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8582 for ncn_progname in gfortran; do
8583 if test -n "$ncn_target_tool_prefix"; then
8584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8585set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8586echo "$as_me:$LINENO: checking for $ac_word" >&5
8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8588if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
8590else
8591 if test -n "$GFORTRAN_FOR_TARGET"; then
8592 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8593else
c6b750e1
DJ
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606done
8607
55db4b87
PB
8608fi
8609fi
c6b750e1 8610GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 8611if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8612 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8613echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8614else
c6b750e1
DJ
8615 echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6
55db4b87
PB
8617fi
8618
2429c060
PB
8619 fi
8620 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8622set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8623echo "$as_me:$LINENO: checking for $ac_word" >&5
8624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 8627else
05cbd757 8628 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8629 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8630else
8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632for as_dir in $PATH
8633do
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8641 fi
8642done
8643done
8644
55db4b87
PB
8645fi
8646fi
c6b750e1 8647GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 8648if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
8649 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8650echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 8651else
c6b750e1
DJ
8652 echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6
55db4b87 8654fi
c6b750e1 8655
2429c060
PB
8656 fi
8657 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8658 done
8659fi
c6b750e1 8660
05cbd757
PB
8661if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8662 set dummy gfortran
8663 if test $build = $target ; then
8664 GFORTRAN_FOR_TARGET="$2"
55db4b87 8665 else
05cbd757 8666 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 8667 fi
d3f5afc4
MS
8668else
8669 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
8670fi
8671
2429c060
PB
8672
8673
2429c060
PB
8674cat > conftest.c << \EOF
8675#ifdef __GNUC__
8676 gcc_yay;
8677#endif
8678EOF
8679if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8680 have_gcc_for_target=yes
859789af 8681else
2429c060
PB
8682 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8683 have_gcc_for_target=no
859789af 8684fi
2429c060
PB
8685rm conftest.c
8686
8687
8688
859789af 8689
2429c060
PB
8690if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8691 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8692 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8693echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8694 if test -x $with_build_time_tools/ar; then
8695 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8696 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
8697 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8698echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 8699 else
c6b750e1
DJ
8700 echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6
3a35eeb3 8702 fi
2429c060
PB
8703 elif test $build != $host && test $have_gcc_for_target = yes; then
8704 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
8705 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8706 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 8707 fi
2429c060 8708fi
c6b750e1 8709if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8710 # Extract the first word of "ar", so it can be a program name with args.
8711set dummy ar; ac_word=$2
c6b750e1
DJ
8712echo "$as_me:$LINENO: checking for $ac_word" >&5
8713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8714if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8716else
c6b750e1
DJ
8717 case $AR_FOR_TARGET in
8718 [\\/]* | ?:[\\/]*)
2429c060
PB
8719 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8720 ;;
2429c060 8721 *)
c6b750e1
DJ
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $gcc_cv_tool_dirs
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8732 fi
8733done
8734done
8735
2429c060
PB
8736 ;;
8737esac
859789af 8738fi
c6b750e1
DJ
8739AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8740
2429c060 8741if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8742 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8743echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 8744else
c6b750e1
DJ
8745 echo "$as_me:$LINENO: result: no" >&5
8746echo "${ECHO_T}no" >&6
859789af 8747fi
05cbd757 8748
2429c060
PB
8749fi
8750if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
8751
8752
8753if test -n "$AR_FOR_TARGET"; then
8754 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8755elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8756 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8757fi
8758
8759if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8760 for ncn_progname in ar; do
8761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8762set dummy ${ncn_progname}; ac_word=$2
8763echo "$as_me:$LINENO: checking for $ac_word" >&5
8764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8765if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767else
8768 if test -n "$AR_FOR_TARGET"; then
8769 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8770else
8771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772for as_dir in $PATH
8773do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8781 fi
8782done
8783done
8784
8785fi
8786fi
8787AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8788if test -n "$AR_FOR_TARGET"; then
8789 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8790echo "${ECHO_T}$AR_FOR_TARGET" >&6
8791else
8792 echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6
8794fi
8795
8796 done
8797fi
8798
8799if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 8800 for ncn_progname in ar; do
c6b750e1
DJ
8801 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8802echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8803 if test -x $with_build_time_tools/${ncn_progname}; then
8804 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
2429c060
PB
8807 break
8808 else
c6b750e1
DJ
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
2429c060
PB
8811 fi
8812 done
859789af
AC
8813fi
8814
2429c060
PB
8815if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8816 for ncn_progname in ar; do
8817 if test -n "$ncn_target_tool_prefix"; then
8818 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8819set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8820echo "$as_me:$LINENO: checking for $ac_word" >&5
8821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8822if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8824else
2429c060
PB
8825 if test -n "$AR_FOR_TARGET"; then
8826 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 8827else
c6b750e1
DJ
8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829for as_dir in $PATH
8830do
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8838 fi
8839done
8840done
8841
7e0f7140
GK
8842fi
8843fi
c6b750e1 8844AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8845if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8846 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8847echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8848else
c6b750e1
DJ
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
7e0f7140
GK
8851fi
8852
2429c060
PB
8853 fi
8854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8856set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8857echo "$as_me:$LINENO: checking for $ac_word" >&5
8858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8859if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 8861else
2429c060
PB
8862 if test -n "$AR_FOR_TARGET"; then
8863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 8864else
c6b750e1
DJ
8865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866for as_dir in $PATH
8867do
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876done
8877done
8878
7e0f7140
GK
8879fi
8880fi
c6b750e1 8881AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 8882if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
8883 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8884echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 8885else
c6b750e1
DJ
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
7e0f7140 8888fi
c6b750e1 8889
2429c060
PB
8890 fi
8891 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8892 done
8893fi
c6b750e1 8894
2429c060
PB
8895if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8896 set dummy ar
7e0f7140 8897 if test $build = $target ; then
2429c060 8898 AR_FOR_TARGET="$2"
7e0f7140 8899 else
2429c060 8900 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 8901 fi
d3f5afc4
MS
8902else
8903 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
8904fi
8905
3a35eeb3
PB
8906else
8907 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
8908fi
8909
8910
8911
8912
8913if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8914 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8915 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8916echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8917 if test -x $with_build_time_tools/as; then
8918 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8919 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
8920 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8921echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 8922 else
c6b750e1
DJ
8923 echo "$as_me:$LINENO: result: no" >&5
8924echo "${ECHO_T}no" >&6
3a35eeb3 8925 fi
2429c060
PB
8926 elif test $build != $host && test $have_gcc_for_target = yes; then
8927 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
8928 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8929 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
8930 fi
8931fi
c6b750e1 8932if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8933 # Extract the first word of "as", so it can be a program name with args.
8934set dummy as; ac_word=$2
c6b750e1
DJ
8935echo "$as_me:$LINENO: checking for $ac_word" >&5
8936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8937if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8939else
c6b750e1
DJ
8940 case $AS_FOR_TARGET in
8941 [\\/]* | ?:[\\/]*)
2429c060
PB
8942 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8943 ;;
2429c060 8944 *)
c6b750e1
DJ
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $gcc_cv_tool_dirs
8947do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8955 fi
8956done
8957done
8958
2429c060
PB
8959 ;;
8960esac
8961fi
c6b750e1
DJ
8962AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
8963
2429c060 8964if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
8965 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8966echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 8967else
c6b750e1
DJ
8968 echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
2429c060
PB
8970fi
8971
8972fi
8973if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
8974
8975
8976if test -n "$AS_FOR_TARGET"; then
8977 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8978elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8979 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8980fi
8981
8982if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8983 for ncn_progname in as; do
8984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8985set dummy ${ncn_progname}; ac_word=$2
8986echo "$as_me:$LINENO: checking for $ac_word" >&5
8987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8988if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990else
8991 if test -n "$AS_FOR_TARGET"; then
8992 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8993else
8994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995for as_dir in $PATH
8996do
8997 IFS=$as_save_IFS
8998 test -z "$as_dir" && as_dir=.
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 break 2
9004 fi
9005done
9006done
9007
9008fi
9009fi
9010AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9011if test -n "$AS_FOR_TARGET"; then
9012 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9013echo "${ECHO_T}$AS_FOR_TARGET" >&6
9014else
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017fi
9018
9019 done
9020fi
9021
9022if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9023 for ncn_progname in as; do
c6b750e1
DJ
9024 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9025echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9026 if test -x $with_build_time_tools/${ncn_progname}; then
9027 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9028 echo "$as_me:$LINENO: result: yes" >&5
9029echo "${ECHO_T}yes" >&6
2429c060
PB
9030 break
9031 else
c6b750e1
DJ
9032 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6
2429c060
PB
9034 fi
9035 done
9036fi
9037
9038if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9039 for ncn_progname in as; do
9040 if test -n "$ncn_target_tool_prefix"; then
9041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9042set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9043echo "$as_me:$LINENO: checking for $ac_word" >&5
9044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9045if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9047else
9048 if test -n "$AS_FOR_TARGET"; then
9049 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9050else
c6b750e1
DJ
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9061 fi
9062done
9063done
9064
2429c060
PB
9065fi
9066fi
c6b750e1 9067AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9068if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9069 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9070echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9071else
c6b750e1
DJ
9072 echo "$as_me:$LINENO: result: no" >&5
9073echo "${ECHO_T}no" >&6
2429c060
PB
9074fi
9075
9076 fi
9077 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9079set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9080echo "$as_me:$LINENO: checking for $ac_word" >&5
9081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9084else
9085 if test -n "$AS_FOR_TARGET"; then
9086 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9087else
c6b750e1
DJ
9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9098 fi
9099done
9100done
9101
2429c060
PB
9102fi
9103fi
c6b750e1 9104AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 9105if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
9106 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9107echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 9108else
c6b750e1
DJ
9109 echo "$as_me:$LINENO: result: no" >&5
9110echo "${ECHO_T}no" >&6
2429c060 9111fi
c6b750e1 9112
2429c060
PB
9113 fi
9114 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9115 done
9116fi
c6b750e1 9117
2429c060
PB
9118if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9119 set dummy as
9120 if test $build = $target ; then
9121 AS_FOR_TARGET="$2"
9122 else
9123 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9124 fi
d3f5afc4
MS
9125else
9126 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
9127fi
9128
3a35eeb3
PB
9129else
9130 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
9131fi
9132
9133
9134
9135
9136if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9137 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9138 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9139echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9140 if test -x $with_build_time_tools/dlltool; then
9141 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9142 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
9143 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9144echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 9145 else
c6b750e1
DJ
9146 echo "$as_me:$LINENO: result: no" >&5
9147echo "${ECHO_T}no" >&6
3a35eeb3 9148 fi
2429c060
PB
9149 elif test $build != $host && test $have_gcc_for_target = yes; then
9150 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
9151 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9152 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
9153 fi
9154fi
c6b750e1 9155if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9156 # Extract the first word of "dlltool", so it can be a program name with args.
9157set dummy dlltool; ac_word=$2
c6b750e1
DJ
9158echo "$as_me:$LINENO: checking for $ac_word" >&5
9159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9160if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9162else
c6b750e1
DJ
9163 case $DLLTOOL_FOR_TARGET in
9164 [\\/]* | ?:[\\/]*)
2429c060
PB
9165 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9166 ;;
2429c060 9167 *)
c6b750e1
DJ
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169for as_dir in $gcc_cv_tool_dirs
9170do
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9175 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9178 fi
9179done
9180done
9181
2429c060
PB
9182 ;;
9183esac
9184fi
c6b750e1
DJ
9185DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9186
2429c060 9187if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9188 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9189echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9190else
c6b750e1
DJ
9191 echo "$as_me:$LINENO: result: no" >&5
9192echo "${ECHO_T}no" >&6
2429c060
PB
9193fi
9194
9195fi
9196if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
9197
9198
9199if test -n "$DLLTOOL_FOR_TARGET"; then
9200 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9201elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9202 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9203fi
9204
9205if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9206 for ncn_progname in dlltool; do
9207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9208set dummy ${ncn_progname}; ac_word=$2
9209echo "$as_me:$LINENO: checking for $ac_word" >&5
9210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 if test -n "$DLLTOOL_FOR_TARGET"; then
9215 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9216else
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9227 fi
9228done
9229done
9230
9231fi
9232fi
9233DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9234if test -n "$DLLTOOL_FOR_TARGET"; then
9235 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9236echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9237else
9238 echo "$as_me:$LINENO: result: no" >&5
9239echo "${ECHO_T}no" >&6
9240fi
9241
9242 done
9243fi
9244
9245if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9246 for ncn_progname in dlltool; do
c6b750e1
DJ
9247 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9248echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9249 if test -x $with_build_time_tools/${ncn_progname}; then
9250 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9251 echo "$as_me:$LINENO: result: yes" >&5
9252echo "${ECHO_T}yes" >&6
2429c060
PB
9253 break
9254 else
c6b750e1
DJ
9255 echo "$as_me:$LINENO: result: no" >&5
9256echo "${ECHO_T}no" >&6
2429c060
PB
9257 fi
9258 done
9259fi
9260
9261if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9262 for ncn_progname in dlltool; do
9263 if test -n "$ncn_target_tool_prefix"; then
9264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9265set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9266echo "$as_me:$LINENO: checking for $ac_word" >&5
9267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9268if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9270else
9271 if test -n "$DLLTOOL_FOR_TARGET"; then
9272 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9273else
c6b750e1
DJ
9274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275for as_dir in $PATH
9276do
9277 IFS=$as_save_IFS
9278 test -z "$as_dir" && as_dir=.
9279 for ac_exec_ext in '' $ac_executable_extensions; do
9280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9281 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9283 break 2
9284 fi
9285done
9286done
9287
2429c060
PB
9288fi
9289fi
c6b750e1 9290DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9291if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9292 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9293echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9294else
c6b750e1
DJ
9295 echo "$as_me:$LINENO: result: no" >&5
9296echo "${ECHO_T}no" >&6
2429c060
PB
9297fi
9298
9299 fi
9300 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9303echo "$as_me:$LINENO: checking for $ac_word" >&5
9304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9305if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9307else
9308 if test -n "$DLLTOOL_FOR_TARGET"; then
9309 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9310else
c6b750e1
DJ
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 break 2
9321 fi
9322done
9323done
9324
2429c060
PB
9325fi
9326fi
c6b750e1 9327DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 9328if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
9329 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9330echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 9331else
c6b750e1
DJ
9332 echo "$as_me:$LINENO: result: no" >&5
9333echo "${ECHO_T}no" >&6
2429c060 9334fi
c6b750e1 9335
2429c060
PB
9336 fi
9337 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9338 done
9339fi
c6b750e1 9340
2429c060
PB
9341if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9342 set dummy dlltool
9343 if test $build = $target ; then
9344 DLLTOOL_FOR_TARGET="$2"
9345 else
9346 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9347 fi
d3f5afc4
MS
9348else
9349 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
9350fi
9351
3a35eeb3
PB
9352else
9353 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
9354fi
9355
9356
9357
9358
9359if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9360 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9361 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9362echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9363 if test -x $with_build_time_tools/ld; then
9364 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9365 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
9366 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9367echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 9368 else
c6b750e1
DJ
9369 echo "$as_me:$LINENO: result: no" >&5
9370echo "${ECHO_T}no" >&6
3a35eeb3 9371 fi
2429c060
PB
9372 elif test $build != $host && test $have_gcc_for_target = yes; then
9373 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
9374 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9375 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
9376 fi
9377fi
c6b750e1 9378if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9379 # Extract the first word of "ld", so it can be a program name with args.
9380set dummy ld; ac_word=$2
c6b750e1
DJ
9381echo "$as_me:$LINENO: checking for $ac_word" >&5
9382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9385else
c6b750e1
DJ
9386 case $LD_FOR_TARGET in
9387 [\\/]* | ?:[\\/]*)
2429c060
PB
9388 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9389 ;;
2429c060 9390 *)
c6b750e1
DJ
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392for as_dir in $gcc_cv_tool_dirs
9393do
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9401 fi
9402done
9403done
9404
2429c060
PB
9405 ;;
9406esac
9407fi
c6b750e1
DJ
9408LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9409
2429c060 9410if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9411 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9412echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9413else
c6b750e1
DJ
9414 echo "$as_me:$LINENO: result: no" >&5
9415echo "${ECHO_T}no" >&6
2429c060
PB
9416fi
9417
9418fi
9419if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
9420
9421
9422if test -n "$LD_FOR_TARGET"; then
9423 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9424elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9425 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9426fi
9427
9428if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9429 for ncn_progname in ld; do
9430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9431set dummy ${ncn_progname}; ac_word=$2
9432echo "$as_me:$LINENO: checking for $ac_word" >&5
9433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9434if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436else
9437 if test -n "$LD_FOR_TARGET"; then
9438 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9439else
9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441for as_dir in $PATH
9442do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9447 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9450 fi
9451done
9452done
9453
9454fi
9455fi
9456LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9457if test -n "$LD_FOR_TARGET"; then
9458 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9459echo "${ECHO_T}$LD_FOR_TARGET" >&6
9460else
9461 echo "$as_me:$LINENO: result: no" >&5
9462echo "${ECHO_T}no" >&6
9463fi
9464
9465 done
9466fi
9467
9468if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9469 for ncn_progname in ld; do
c6b750e1
DJ
9470 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9471echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9472 if test -x $with_build_time_tools/${ncn_progname}; then
9473 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9474 echo "$as_me:$LINENO: result: yes" >&5
9475echo "${ECHO_T}yes" >&6
2429c060
PB
9476 break
9477 else
c6b750e1
DJ
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
2429c060
PB
9480 fi
9481 done
9482fi
9483
9484if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9485 for ncn_progname in ld; do
9486 if test -n "$ncn_target_tool_prefix"; then
9487 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9488set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9489echo "$as_me:$LINENO: checking for $ac_word" >&5
9490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9491if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9493else
9494 if test -n "$LD_FOR_TARGET"; then
9495 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9496else
c6b750e1
DJ
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9504 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9507 fi
9508done
9509done
9510
2429c060
PB
9511fi
9512fi
c6b750e1 9513LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9514if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9515 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9516echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9517else
c6b750e1
DJ
9518 echo "$as_me:$LINENO: result: no" >&5
9519echo "${ECHO_T}no" >&6
2429c060
PB
9520fi
9521
9522 fi
9523 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9525set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9526echo "$as_me:$LINENO: checking for $ac_word" >&5
9527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9528if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9530else
9531 if test -n "$LD_FOR_TARGET"; then
9532 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9533else
c6b750e1
DJ
9534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535for as_dir in $PATH
9536do
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9541 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9544 fi
9545done
9546done
9547
2429c060
PB
9548fi
9549fi
c6b750e1 9550LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 9551if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
9552 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9553echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 9554else
c6b750e1
DJ
9555 echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6
2429c060 9557fi
c6b750e1 9558
2429c060
PB
9559 fi
9560 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9561 done
9562fi
c6b750e1 9563
2429c060
PB
9564if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9565 set dummy ld
9566 if test $build = $target ; then
9567 LD_FOR_TARGET="$2"
9568 else
9569 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9570 fi
d3f5afc4
MS
9571else
9572 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
9573fi
9574
3a35eeb3
PB
9575else
9576 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
9577fi
9578
9579
9580
9581
9582if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9583 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9584 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9585echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9586 if test -x $with_build_time_tools/lipo; then
9587 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9588 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
9589 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9590echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 9591 else
c6b750e1
DJ
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
3a35eeb3 9594 fi
2429c060
PB
9595 elif test $build != $host && test $have_gcc_for_target = yes; then
9596 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
9597 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9598 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
9599 fi
9600fi
9a819804
AO
9601if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9602 # Extract the first word of "lipo", so it can be a program name with args.
9603set dummy lipo; ac_word=$2
9604echo "$as_me:$LINENO: checking for $ac_word" >&5
9605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 case $LIPO_FOR_TARGET in
9610 [\\/]* | ?:[\\/]*)
9611 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9612 ;;
9613 *)
9614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615for as_dir in $gcc_cv_tool_dirs
9616do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9621 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9623 break 2
9624 fi
9625done
9626done
9627
9628 ;;
9629esac
9630fi
9631LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9632
9633if test -n "$LIPO_FOR_TARGET"; then
9634 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9635echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9636else
9637 echo "$as_me:$LINENO: result: no" >&5
9638echo "${ECHO_T}no" >&6
9639fi
9640
9641fi
9642if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9643
9644
9645if test -n "$LIPO_FOR_TARGET"; then
9646 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9647elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9648 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9649fi
9650
9651if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9652 for ncn_progname in lipo; do
9653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9654set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9655echo "$as_me:$LINENO: checking for $ac_word" >&5
9656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9a819804 9657if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
c6b750e1 9658 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9659else
9a819804
AO
9660 if test -n "$LIPO_FOR_TARGET"; then
9661 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9662else
9663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664for as_dir in $PATH
c6b750e1
DJ
9665do
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 9670 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
c6b750e1
DJ
9671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 break 2
9673 fi
9674done
9675done
9676
2429c060 9677fi
9a819804
AO
9678fi
9679LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9680if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9681 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9682echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9683else
c6b750e1
DJ
9684 echo "$as_me:$LINENO: result: no" >&5
9685echo "${ECHO_T}no" >&6
2429c060
PB
9686fi
9687
9a819804 9688 done
2429c060 9689fi
9a819804
AO
9690
9691if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9692 for ncn_progname in lipo; do
c6b750e1
DJ
9693 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9694echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9695 if test -x $with_build_time_tools/${ncn_progname}; then
9696 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9697 echo "$as_me:$LINENO: result: yes" >&5
9698echo "${ECHO_T}yes" >&6
2429c060
PB
9699 break
9700 else
c6b750e1
DJ
9701 echo "$as_me:$LINENO: result: no" >&5
9702echo "${ECHO_T}no" >&6
2429c060
PB
9703 fi
9704 done
9705fi
9706
9707if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9708 for ncn_progname in lipo; do
9709 if test -n "$ncn_target_tool_prefix"; then
9710 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9711set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9712echo "$as_me:$LINENO: checking for $ac_word" >&5
9713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9714if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9716else
9717 if test -n "$LIPO_FOR_TARGET"; then
9718 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9719else
c6b750e1
DJ
9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9727 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9730 fi
9731done
9732done
9733
2429c060
PB
9734fi
9735fi
c6b750e1 9736LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9737if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9738 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9739echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9740else
c6b750e1
DJ
9741 echo "$as_me:$LINENO: result: no" >&5
9742echo "${ECHO_T}no" >&6
2429c060
PB
9743fi
9744
9745 fi
9746 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9748set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9749echo "$as_me:$LINENO: checking for $ac_word" >&5
9750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9751if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
9753else
9754 if test -n "$LIPO_FOR_TARGET"; then
9755 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9756else
c6b750e1
DJ
9757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9758for as_dir in $PATH
9759do
9760 IFS=$as_save_IFS
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9764 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 break 2
9767 fi
9768done
9769done
9770
2429c060
PB
9771fi
9772fi
c6b750e1 9773LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 9774if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
9775 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9776echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 9777else
c6b750e1
DJ
9778 echo "$as_me:$LINENO: result: no" >&5
9779echo "${ECHO_T}no" >&6
2429c060 9780fi
c6b750e1 9781
2429c060
PB
9782 fi
9783 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9784 done
9785fi
c6b750e1 9786
2429c060
PB
9787if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9788 set dummy lipo
9789 if test $build = $target ; then
9790 LIPO_FOR_TARGET="$2"
9791 else
9792 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9793 fi
d3f5afc4
MS
9794else
9795 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
9796fi
9797
3a35eeb3
PB
9798else
9799 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
9800fi
9801
9802
9803
9804
9805if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9806 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9807 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9808echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9809 if test -x $with_build_time_tools/nm; then
9810 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9811 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
9812 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9813echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 9814 else
c6b750e1
DJ
9815 echo "$as_me:$LINENO: result: no" >&5
9816echo "${ECHO_T}no" >&6
3a35eeb3 9817 fi
2429c060
PB
9818 elif test $build != $host && test $have_gcc_for_target = yes; then
9819 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
9820 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9821 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
9822 fi
9823fi
c6b750e1 9824if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9825 # Extract the first word of "nm", so it can be a program name with args.
9826set dummy nm; ac_word=$2
c6b750e1
DJ
9827echo "$as_me:$LINENO: checking for $ac_word" >&5
9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9831else
c6b750e1
DJ
9832 case $NM_FOR_TARGET in
9833 [\\/]* | ?:[\\/]*)
2429c060
PB
9834 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9835 ;;
2429c060 9836 *)
c6b750e1
DJ
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $gcc_cv_tool_dirs
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9844 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9847 fi
9848done
9849done
9850
2429c060
PB
9851 ;;
9852esac
9853fi
c6b750e1
DJ
9854NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9855
2429c060 9856if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9857 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9858echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 9859else
c6b750e1
DJ
9860 echo "$as_me:$LINENO: result: no" >&5
9861echo "${ECHO_T}no" >&6
2429c060
PB
9862fi
9863
9864fi
9865if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
9866
9867
9868if test -n "$NM_FOR_TARGET"; then
9869 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9870elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9871 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9872fi
9873
9874if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9875 for ncn_progname in nm; do
9876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9877set dummy ${ncn_progname}; ac_word=$2
9878echo "$as_me:$LINENO: checking for $ac_word" >&5
9879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9880if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882else
9883 if test -n "$NM_FOR_TARGET"; then
9884 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9885else
9886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887for as_dir in $PATH
9888do
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9893 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9896 fi
9897done
9898done
9899
9900fi
9901fi
9902NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9903if test -n "$NM_FOR_TARGET"; then
9904 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9905echo "${ECHO_T}$NM_FOR_TARGET" >&6
9906else
9907 echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
9909fi
9910
9911 done
9912fi
9913
9914if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9915 for ncn_progname in nm; do
c6b750e1
DJ
9916 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9917echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9918 if test -x $with_build_time_tools/${ncn_progname}; then
9919 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9920 echo "$as_me:$LINENO: result: yes" >&5
9921echo "${ECHO_T}yes" >&6
2429c060
PB
9922 break
9923 else
c6b750e1
DJ
9924 echo "$as_me:$LINENO: result: no" >&5
9925echo "${ECHO_T}no" >&6
2429c060
PB
9926 fi
9927 done
9928fi
9929
9930if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9931 for ncn_progname in nm; do
9932 if test -n "$ncn_target_tool_prefix"; then
9933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 9934set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9935echo "$as_me:$LINENO: checking for $ac_word" >&5
9936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9937if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9939else
55db4b87
PB
9940 if test -n "$NM_FOR_TARGET"; then
9941 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9942else
c6b750e1
DJ
9943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944for as_dir in $PATH
9945do
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9950 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 break 2
9953 fi
9954done
9955done
9956
859789af
AC
9957fi
9958fi
c6b750e1 9959NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 9960if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9961 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9962echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 9963else
c6b750e1
DJ
9964 echo "$as_me:$LINENO: result: no" >&5
9965echo "${ECHO_T}no" >&6
859789af
AC
9966fi
9967
2429c060
PB
9968 fi
9969 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9971set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9972echo "$as_me:$LINENO: checking for $ac_word" >&5
9973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9974if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9976else
05cbd757
PB
9977 if test -n "$NM_FOR_TARGET"; then
9978 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 9979else
c6b750e1
DJ
9980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981for as_dir in $PATH
9982do
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9987 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9990 fi
9991done
9992done
9993
859789af
AC
9994fi
9995fi
c6b750e1 9996NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 9997if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
9998 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9999echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 10000else
c6b750e1
DJ
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
859789af 10003fi
c6b750e1 10004
2429c060
PB
10005 fi
10006 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10007 done
10008fi
c6b750e1 10009
05cbd757
PB
10010if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10011 set dummy nm
10012 if test $build = $target ; then
10013 NM_FOR_TARGET="$2"
859789af 10014 else
05cbd757 10015 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10016 fi
d3f5afc4
MS
10017else
10018 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
10019fi
10020
3a35eeb3
PB
10021else
10022 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
10023fi
10024
10025
10026
10027
10028if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10029 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10030 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10031echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10032 if test -x $with_build_time_tools/objdump; then
10033 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10034 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
10035 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10036echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 10037 else
c6b750e1
DJ
10038 echo "$as_me:$LINENO: result: no" >&5
10039echo "${ECHO_T}no" >&6
3a35eeb3 10040 fi
2429c060
PB
10041 elif test $build != $host && test $have_gcc_for_target = yes; then
10042 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
10043 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10044 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
10045 fi
10046fi
c6b750e1 10047if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10048 # Extract the first word of "objdump", so it can be a program name with args.
10049set dummy objdump; ac_word=$2
c6b750e1
DJ
10050echo "$as_me:$LINENO: checking for $ac_word" >&5
10051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10054else
c6b750e1
DJ
10055 case $OBJDUMP_FOR_TARGET in
10056 [\\/]* | ?:[\\/]*)
2429c060
PB
10057 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10058 ;;
2429c060 10059 *)
c6b750e1
DJ
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $gcc_cv_tool_dirs
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071done
10072done
10073
2429c060
PB
10074 ;;
10075esac
10076fi
c6b750e1
DJ
10077OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10078
2429c060 10079if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10080 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10081echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 10082else
c6b750e1
DJ
10083 echo "$as_me:$LINENO: result: no" >&5
10084echo "${ECHO_T}no" >&6
2429c060
PB
10085fi
10086
10087fi
10088if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
10089
10090
10091if test -n "$OBJDUMP_FOR_TARGET"; then
10092 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10093elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10094 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10095fi
10096
10097if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10098 for ncn_progname in objdump; do
10099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10100set dummy ${ncn_progname}; ac_word=$2
10101echo "$as_me:$LINENO: checking for $ac_word" >&5
10102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10103if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
10106 if test -n "$OBJDUMP_FOR_TARGET"; then
10107 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10108else
10109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110for as_dir in $PATH
10111do
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10116 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10119 fi
10120done
10121done
10122
10123fi
10124fi
10125OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10126if test -n "$OBJDUMP_FOR_TARGET"; then
10127 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10128echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10129else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132fi
10133
10134 done
10135fi
10136
10137if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10138 for ncn_progname in objdump; do
c6b750e1
DJ
10139 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10140echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10141 if test -x $with_build_time_tools/${ncn_progname}; then
10142 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10143 echo "$as_me:$LINENO: result: yes" >&5
10144echo "${ECHO_T}yes" >&6
2429c060
PB
10145 break
10146 else
c6b750e1
DJ
10147 echo "$as_me:$LINENO: result: no" >&5
10148echo "${ECHO_T}no" >&6
2429c060
PB
10149 fi
10150 done
10151fi
10152
10153if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10154 for ncn_progname in objdump; do
10155 if test -n "$ncn_target_tool_prefix"; then
10156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10157set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10158echo "$as_me:$LINENO: checking for $ac_word" >&5
10159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10160if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10162else
10163 if test -n "$OBJDUMP_FOR_TARGET"; then
10164 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10165else
c6b750e1
DJ
10166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167for as_dir in $PATH
10168do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 break 2
10176 fi
10177done
10178done
10179
5ae72758
DJ
10180fi
10181fi
c6b750e1 10182OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10183if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10184 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10185echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10186else
c6b750e1
DJ
10187 echo "$as_me:$LINENO: result: no" >&5
10188echo "${ECHO_T}no" >&6
5ae72758
DJ
10189fi
10190
2429c060
PB
10191 fi
10192 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 10194set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10195echo "$as_me:$LINENO: checking for $ac_word" >&5
10196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10197if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
10199else
10200 if test -n "$OBJDUMP_FOR_TARGET"; then
10201 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10202else
c6b750e1
DJ
10203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204for as_dir in $PATH
10205do
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10213 fi
10214done
10215done
10216
5ae72758
DJ
10217fi
10218fi
c6b750e1 10219OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 10220if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
10221 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10222echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 10223else
c6b750e1
DJ
10224 echo "$as_me:$LINENO: result: no" >&5
10225echo "${ECHO_T}no" >&6
5ae72758 10226fi
c6b750e1 10227
2429c060
PB
10228 fi
10229 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10230 done
10231fi
c6b750e1 10232
5ae72758
DJ
10233if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10234 set dummy objdump
10235 if test $build = $target ; then
10236 OBJDUMP_FOR_TARGET="$2"
10237 else
10238 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10239 fi
d3f5afc4
MS
10240else
10241 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
10242fi
10243
3a35eeb3
PB
10244else
10245 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
10246fi
10247
10248
10249
10250
10251if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10252 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10253 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10254echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10255 if test -x $with_build_time_tools/ranlib; then
10256 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10257 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
10258 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10259echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 10260 else
c6b750e1
DJ
10261 echo "$as_me:$LINENO: result: no" >&5
10262echo "${ECHO_T}no" >&6
3a35eeb3 10263 fi
2429c060
PB
10264 elif test $build != $host && test $have_gcc_for_target = yes; then
10265 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
10266 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10267 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
10268 fi
10269fi
c6b750e1 10270if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10271 # Extract the first word of "ranlib", so it can be a program name with args.
10272set dummy ranlib; ac_word=$2
c6b750e1
DJ
10273echo "$as_me:$LINENO: checking for $ac_word" >&5
10274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10275if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10277else
c6b750e1
DJ
10278 case $RANLIB_FOR_TARGET in
10279 [\\/]* | ?:[\\/]*)
2429c060
PB
10280 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10281 ;;
2429c060 10282 *)
c6b750e1
DJ
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284for as_dir in $gcc_cv_tool_dirs
10285do
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10290 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10293 fi
10294done
10295done
10296
2429c060
PB
10297 ;;
10298esac
10299fi
c6b750e1
DJ
10300RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10301
2429c060 10302if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10303 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10304echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 10305else
c6b750e1
DJ
10306 echo "$as_me:$LINENO: result: no" >&5
10307echo "${ECHO_T}no" >&6
2429c060
PB
10308fi
10309
10310fi
10311if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
10312
10313
10314if test -n "$RANLIB_FOR_TARGET"; then
10315 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10316elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10317 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10318fi
10319
10320if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10321 for ncn_progname in ranlib; do
10322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10323set dummy ${ncn_progname}; ac_word=$2
10324echo "$as_me:$LINENO: checking for $ac_word" >&5
10325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10326if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329 if test -n "$RANLIB_FOR_TARGET"; then
10330 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10331else
10332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333for as_dir in $PATH
10334do
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10339 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10342 fi
10343done
10344done
10345
10346fi
10347fi
10348RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10349if test -n "$RANLIB_FOR_TARGET"; then
10350 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10351echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10352else
10353 echo "$as_me:$LINENO: result: no" >&5
10354echo "${ECHO_T}no" >&6
10355fi
10356
10357 done
10358fi
10359
10360if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10361 for ncn_progname in ranlib; do
c6b750e1
DJ
10362 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10363echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10364 if test -x $with_build_time_tools/${ncn_progname}; then
10365 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10366 echo "$as_me:$LINENO: result: yes" >&5
10367echo "${ECHO_T}yes" >&6
2429c060
PB
10368 break
10369 else
c6b750e1
DJ
10370 echo "$as_me:$LINENO: result: no" >&5
10371echo "${ECHO_T}no" >&6
2429c060
PB
10372 fi
10373 done
10374fi
10375
10376if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10377 for ncn_progname in ranlib; do
10378 if test -n "$ncn_target_tool_prefix"; then
10379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 10380set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10381echo "$as_me:$LINENO: checking for $ac_word" >&5
10382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10383if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10385else
55db4b87
PB
10386 if test -n "$RANLIB_FOR_TARGET"; then
10387 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10388else
c6b750e1
DJ
10389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390for as_dir in $PATH
10391do
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10399 fi
10400done
10401done
10402
859789af
AC
10403fi
10404fi
c6b750e1 10405RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 10406if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10407 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10408echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10409else
c6b750e1
DJ
10410 echo "$as_me:$LINENO: result: no" >&5
10411echo "${ECHO_T}no" >&6
859789af
AC
10412fi
10413
2429c060
PB
10414 fi
10415 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10417set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10418echo "$as_me:$LINENO: checking for $ac_word" >&5
10419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10420if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10422else
05cbd757
PB
10423 if test -n "$RANLIB_FOR_TARGET"; then
10424 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 10425else
c6b750e1
DJ
10426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427for as_dir in $PATH
10428do
10429 IFS=$as_save_IFS
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10435 break 2
10436 fi
10437done
10438done
10439
859789af
AC
10440fi
10441fi
c6b750e1 10442RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 10443if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
10444 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10445echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 10446else
c6b750e1
DJ
10447 echo "$as_me:$LINENO: result: no" >&5
10448echo "${ECHO_T}no" >&6
859789af 10449fi
c6b750e1 10450
2429c060
PB
10451 fi
10452 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10453 done
10454fi
c6b750e1 10455
2429c060
PB
10456if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10457 set dummy ranlib
10458 if test $build = $target ; then
10459 RANLIB_FOR_TARGET="$2"
10460 else
10461 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10462 fi
d3f5afc4
MS
10463else
10464 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 10465fi
05cbd757 10466
3a35eeb3
PB
10467else
10468 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
10469fi
10470
2429c060
PB
10471
10472
10473
10474if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10475 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10476 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10477echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10478 if test -x $with_build_time_tools/strip; then
10479 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10480 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
10481 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10482echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 10483 else
c6b750e1
DJ
10484 echo "$as_me:$LINENO: result: no" >&5
10485echo "${ECHO_T}no" >&6
3a35eeb3 10486 fi
2429c060
PB
10487 elif test $build != $host && test $have_gcc_for_target = yes; then
10488 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
10489 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10490 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
10491 fi
10492fi
c6b750e1 10493if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10494 # Extract the first word of "strip", so it can be a program name with args.
10495set dummy strip; ac_word=$2
c6b750e1
DJ
10496echo "$as_me:$LINENO: checking for $ac_word" >&5
10497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10500else
c6b750e1
DJ
10501 case $STRIP_FOR_TARGET in
10502 [\\/]* | ?:[\\/]*)
2429c060
PB
10503 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10504 ;;
2429c060 10505 *)
c6b750e1
DJ
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507for as_dir in $gcc_cv_tool_dirs
10508do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10516 fi
10517done
10518done
10519
2429c060
PB
10520 ;;
10521esac
10522fi
c6b750e1
DJ
10523STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10524
2429c060 10525if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10526 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10527echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 10528else
c6b750e1
DJ
10529 echo "$as_me:$LINENO: result: no" >&5
10530echo "${ECHO_T}no" >&6
2429c060
PB
10531fi
10532
10533fi
10534if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
10535
10536
10537if test -n "$STRIP_FOR_TARGET"; then
10538 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10539elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10540 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10541fi
10542
10543if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10544 for ncn_progname in strip; do
10545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10546set dummy ${ncn_progname}; ac_word=$2
10547echo "$as_me:$LINENO: checking for $ac_word" >&5
10548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10551else
10552 if test -n "$STRIP_FOR_TARGET"; then
10553 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10554else
10555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556for as_dir in $PATH
10557do
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 break 2
10565 fi
10566done
10567done
10568
10569fi
10570fi
10571STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10572if test -n "$STRIP_FOR_TARGET"; then
10573 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10574echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10575else
10576 echo "$as_me:$LINENO: result: no" >&5
10577echo "${ECHO_T}no" >&6
10578fi
10579
10580 done
10581fi
10582
10583if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10584 for ncn_progname in strip; do
c6b750e1
DJ
10585 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10586echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10587 if test -x $with_build_time_tools/${ncn_progname}; then
10588 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10589 echo "$as_me:$LINENO: result: yes" >&5
10590echo "${ECHO_T}yes" >&6
2429c060
PB
10591 break
10592 else
c6b750e1
DJ
10593 echo "$as_me:$LINENO: result: no" >&5
10594echo "${ECHO_T}no" >&6
2429c060
PB
10595 fi
10596 done
10597fi
10598
10599if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10600 for ncn_progname in strip; do
10601 if test -n "$ncn_target_tool_prefix"; then
10602 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 10603set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10604echo "$as_me:$LINENO: checking for $ac_word" >&5
10605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10606if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10608else
10609 if test -n "$STRIP_FOR_TARGET"; then
10610 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
10611else
10612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613for as_dir in $PATH
10614do
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10622 fi
10623done
10624done
10625
7e0f7140
GK
10626fi
10627fi
c6b750e1 10628STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10629if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10630 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10631echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10632else
c6b750e1
DJ
10633 echo "$as_me:$LINENO: result: no" >&5
10634echo "${ECHO_T}no" >&6
7e0f7140
GK
10635fi
10636
2429c060
PB
10637 fi
10638 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10640set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10641echo "$as_me:$LINENO: checking for $ac_word" >&5
10642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10643if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
10645else
10646 if test -n "$STRIP_FOR_TARGET"; then
10647 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10648else
c6b750e1
DJ
10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660done
10661done
10662
7e0f7140
GK
10663fi
10664fi
c6b750e1 10665STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 10666if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
10667 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10668echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 10669else
c6b750e1
DJ
10670 echo "$as_me:$LINENO: result: no" >&5
10671echo "${ECHO_T}no" >&6
7e0f7140 10672fi
c6b750e1 10673
2429c060
PB
10674 fi
10675 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10676 done
10677fi
c6b750e1 10678
7e0f7140
GK
10679if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10680 set dummy strip
10681 if test $build = $target ; then
10682 STRIP_FOR_TARGET="$2"
10683 else
10684 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10685 fi
d3f5afc4
MS
10686else
10687 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
10688fi
10689
3a35eeb3
PB
10690else
10691 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
10692fi
10693
10694
10695
10696
10697if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10698 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
10699 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10700echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10701 if test -x $with_build_time_tools/windres; then
10702 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10703 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
10704 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10705echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 10706 else
c6b750e1
DJ
10707 echo "$as_me:$LINENO: result: no" >&5
10708echo "${ECHO_T}no" >&6
3a35eeb3 10709 fi
2429c060
PB
10710 elif test $build != $host && test $have_gcc_for_target = yes; then
10711 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
10712 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10713 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
10714 fi
10715fi
c6b750e1 10716if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10717 # Extract the first word of "windres", so it can be a program name with args.
10718set dummy windres; ac_word=$2
c6b750e1
DJ
10719echo "$as_me:$LINENO: checking for $ac_word" >&5
10720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 10723else
c6b750e1
DJ
10724 case $WINDRES_FOR_TARGET in
10725 [\\/]* | ?:[\\/]*)
2429c060
PB
10726 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10727 ;;
2429c060 10728 *)
c6b750e1
DJ
10729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $gcc_cv_tool_dirs
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 break 2
10739 fi
10740done
10741done
10742
2429c060
PB
10743 ;;
10744esac
10745fi
c6b750e1
DJ
10746WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10747
2429c060 10748if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10749 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10750echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 10751else
c6b750e1
DJ
10752 echo "$as_me:$LINENO: result: no" >&5
10753echo "${ECHO_T}no" >&6
2429c060
PB
10754fi
10755
10756fi
10757if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
10758
10759
10760if test -n "$WINDRES_FOR_TARGET"; then
10761 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10762elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10763 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10764fi
10765
10766if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10767 for ncn_progname in windres; do
10768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10769set dummy ${ncn_progname}; ac_word=$2
10770echo "$as_me:$LINENO: checking for $ac_word" >&5
10771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10772if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774else
10775 if test -n "$WINDRES_FOR_TARGET"; then
10776 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10777else
10778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779for as_dir in $PATH
10780do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10788 fi
10789done
10790done
10791
10792fi
10793fi
10794WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10795if test -n "$WINDRES_FOR_TARGET"; then
10796 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10797echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10798else
10799 echo "$as_me:$LINENO: result: no" >&5
10800echo "${ECHO_T}no" >&6
10801fi
10802
10803 done
10804fi
10805
10806if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10807 for ncn_progname in windres; do
c6b750e1
DJ
10808 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10809echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
10810 if test -x $with_build_time_tools/${ncn_progname}; then
10811 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
10812 echo "$as_me:$LINENO: result: yes" >&5
10813echo "${ECHO_T}yes" >&6
2429c060
PB
10814 break
10815 else
c6b750e1
DJ
10816 echo "$as_me:$LINENO: result: no" >&5
10817echo "${ECHO_T}no" >&6
2429c060
PB
10818 fi
10819 done
10820fi
10821
10822if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10823 for ncn_progname in windres; do
10824 if test -n "$ncn_target_tool_prefix"; then
10825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10826set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
10827echo "$as_me:$LINENO: checking for $ac_word" >&5
10828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10829if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10831else
55db4b87
PB
10832 if test -n "$WINDRES_FOR_TARGET"; then
10833 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10834else
c6b750e1
DJ
10835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836for as_dir in $PATH
10837do
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10845 fi
10846done
10847done
10848
859789af
AC
10849fi
10850fi
c6b750e1 10851WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 10852if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10853 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10854echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10855else
c6b750e1
DJ
10856 echo "$as_me:$LINENO: result: no" >&5
10857echo "${ECHO_T}no" >&6
859789af
AC
10858fi
10859
2429c060
PB
10860 fi
10861 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10863set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
10864echo "$as_me:$LINENO: checking for $ac_word" >&5
10865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10866if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 10868else
05cbd757
PB
10869 if test -n "$WINDRES_FOR_TARGET"; then
10870 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 10871else
c6b750e1
DJ
10872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873for as_dir in $PATH
10874do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10881 break 2
10882 fi
10883done
10884done
10885
859789af
AC
10886fi
10887fi
c6b750e1 10888WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 10889if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
10890 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10891echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 10892else
c6b750e1
DJ
10893 echo "$as_me:$LINENO: result: no" >&5
10894echo "${ECHO_T}no" >&6
859789af 10895fi
c6b750e1 10896
2429c060
PB
10897 fi
10898 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10899 done
10900fi
c6b750e1 10901
05cbd757
PB
10902if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10903 set dummy windres
10904 if test $build = $target ; then
10905 WINDRES_FOR_TARGET="$2"
859789af 10906 else
05cbd757 10907 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 10908 fi
d3f5afc4
MS
10909else
10910 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
10911fi
10912
3a35eeb3
PB
10913else
10914 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
10915fi
10916
852e5f18 10917
0c24b341
NC
10918
10919
10920if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
10922 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10923echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10924 if test -x $with_build_time_tools/windmc; then
10925 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10926 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10927 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10928echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10929 else
10930 echo "$as_me:$LINENO: result: no" >&5
10931echo "${ECHO_T}no" >&6
10932 fi
10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
10935 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10936 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10937 fi
10938fi
10939if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10940 # Extract the first word of "windmc", so it can be a program name with args.
10941set dummy windmc; ac_word=$2
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 case $WINDMC_FOR_TARGET in
10948 [\\/]* | ?:[\\/]*)
10949 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10950 ;;
10951 *)
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $gcc_cv_tool_dirs
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963done
10964done
10965
10966 ;;
10967esac
10968fi
10969WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10970
10971if test -n "$WINDMC_FOR_TARGET"; then
10972 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10973echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10974else
10975 echo "$as_me:$LINENO: result: no" >&5
10976echo "${ECHO_T}no" >&6
10977fi
10978
10979fi
10980if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10981
10982
10983if test -n "$WINDMC_FOR_TARGET"; then
10984 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10985elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10986 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10987fi
10988
10989if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10990 for ncn_progname in windmc; do
10991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10992set dummy ${ncn_progname}; ac_word=$2
10993echo "$as_me:$LINENO: checking for $ac_word" >&5
10994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998 if test -n "$WINDMC_FOR_TARGET"; then
10999 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11000else
11001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002for as_dir in $PATH
11003do
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11011 fi
11012done
11013done
11014
11015fi
11016fi
11017WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11018if test -n "$WINDMC_FOR_TARGET"; then
11019 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11020echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11021else
11022 echo "$as_me:$LINENO: result: no" >&5
11023echo "${ECHO_T}no" >&6
11024fi
11025
11026 done
11027fi
11028
11029if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11030 for ncn_progname in windmc; do
11031 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11032echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11033 if test -x $with_build_time_tools/${ncn_progname}; then
11034 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11035 echo "$as_me:$LINENO: result: yes" >&5
11036echo "${ECHO_T}yes" >&6
11037 break
11038 else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041 fi
11042 done
11043fi
11044
11045if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11046 for ncn_progname in windmc; do
11047 if test -n "$ncn_target_tool_prefix"; then
11048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11049set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11050echo "$as_me:$LINENO: checking for $ac_word" >&5
11051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11052if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054else
11055 if test -n "$WINDMC_FOR_TARGET"; then
11056 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11057else
11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059for as_dir in $PATH
11060do
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11065 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 break 2
11068 fi
11069done
11070done
11071
11072fi
11073fi
11074WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11075if test -n "$WINDMC_FOR_TARGET"; then
11076 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11077echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11078else
11079 echo "$as_me:$LINENO: result: no" >&5
11080echo "${ECHO_T}no" >&6
11081fi
11082
11083 fi
11084 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086set dummy ${ncn_progname}; ac_word=$2
11087echo "$as_me:$LINENO: checking for $ac_word" >&5
11088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11089if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091else
11092 if test -n "$WINDMC_FOR_TARGET"; then
11093 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11094else
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11105 fi
11106done
11107done
11108
11109fi
11110fi
11111WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11112if test -n "$WINDMC_FOR_TARGET"; then
11113 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11114echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11115else
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
11118fi
11119
11120 fi
11121 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11122 done
11123fi
11124
11125if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11126 set dummy windmc
11127 if test $build = $target ; then
11128 WINDMC_FOR_TARGET="$2"
11129 else
11130 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11131 fi
11132else
11133 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11134fi
11135
11136else
11137 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11138fi
11139
11140
be01d343
PB
11141RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11142
c6b750e1
DJ
11143echo "$as_me:$LINENO: checking where to find the target ar" >&5
11144echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 11145if test "x${build}" != "x${host}" ; then
2429c060
PB
11146 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11147 # We already found the complete path
b8025f34
AS
11148 ac_dir=`dirname $AR_FOR_TARGET`
11149 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11150echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11151 else
11152 # Canadian cross, just use what we found
c6b750e1
DJ
11153 echo "$as_me:$LINENO: result: pre-installed" >&5
11154echo "${ECHO_T}pre-installed" >&6
2429c060 11155 fi
be01d343
PB
11156else
11157 ok=yes
11158 case " ${configdirs} " in
11159 *" binutils "*) ;;
11160 *) ok=no ;;
11161 esac
c6b750e1 11162
be01d343
PB
11163 if test $ok = yes; then
11164 # An in-tree tool is available and we can use it
11165 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
11166 echo "$as_me:$LINENO: result: just compiled" >&5
11167echo "${ECHO_T}just compiled" >&6
2429c060
PB
11168 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11169 # We already found the complete path
b8025f34
AS
11170 ac_dir=`dirname $AR_FOR_TARGET`
11171 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11172echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11173 elif test "x$target" = "x$host"; then
11174 # We can use an host tool
11175 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
11176 echo "$as_me:$LINENO: result: host tool" >&5
11177echo "${ECHO_T}host tool" >&6
be01d343
PB
11178 else
11179 # We need a cross tool
c6b750e1
DJ
11180 echo "$as_me:$LINENO: result: pre-installed" >&5
11181echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11182 fi
11183fi
4b900473 11184
c6b750e1
DJ
11185echo "$as_me:$LINENO: checking where to find the target as" >&5
11186echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 11187if test "x${build}" != "x${host}" ; then
2429c060
PB
11188 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11189 # We already found the complete path
b8025f34
AS
11190 ac_dir=`dirname $AS_FOR_TARGET`
11191 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11192echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11193 else
11194 # Canadian cross, just use what we found
c6b750e1
DJ
11195 echo "$as_me:$LINENO: result: pre-installed" >&5
11196echo "${ECHO_T}pre-installed" >&6
2429c060 11197 fi
be01d343
PB
11198else
11199 ok=yes
11200 case " ${configdirs} " in
11201 *" gas "*) ;;
11202 *) ok=no ;;
11203 esac
c6b750e1 11204
be01d343
PB
11205 if test $ok = yes; then
11206 # An in-tree tool is available and we can use it
11207 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
11208 echo "$as_me:$LINENO: result: just compiled" >&5
11209echo "${ECHO_T}just compiled" >&6
2429c060
PB
11210 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11211 # We already found the complete path
b8025f34
AS
11212 ac_dir=`dirname $AS_FOR_TARGET`
11213 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11214echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11215 elif test "x$target" = "x$host"; then
11216 # We can use an host tool
11217 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
11218 echo "$as_me:$LINENO: result: host tool" >&5
11219echo "${ECHO_T}host tool" >&6
be01d343
PB
11220 else
11221 # We need a cross tool
c6b750e1
DJ
11222 echo "$as_me:$LINENO: result: pre-installed" >&5
11223echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11224 fi
11225fi
4b900473 11226
c6b750e1
DJ
11227echo "$as_me:$LINENO: checking where to find the target cc" >&5
11228echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 11229if test "x${build}" != "x${host}" ; then
2429c060
PB
11230 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11231 # We already found the complete path
b8025f34
AS
11232 ac_dir=`dirname $CC_FOR_TARGET`
11233 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11234echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11235 else
11236 # Canadian cross, just use what we found
c6b750e1
DJ
11237 echo "$as_me:$LINENO: result: pre-installed" >&5
11238echo "${ECHO_T}pre-installed" >&6
2429c060 11239 fi
be01d343
PB
11240else
11241 ok=yes
11242 case " ${configdirs} " in
11243 *" gcc "*) ;;
11244 *) ok=no ;;
11245 esac
c6b750e1 11246
be01d343
PB
11247 if test $ok = yes; then
11248 # An in-tree tool is available and we can use it
11249 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11250 echo "$as_me:$LINENO: result: just compiled" >&5
11251echo "${ECHO_T}just compiled" >&6
2429c060
PB
11252 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11253 # We already found the complete path
b8025f34
AS
11254 ac_dir=`dirname $CC_FOR_TARGET`
11255 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11256echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11257 elif test "x$target" = "x$host"; then
11258 # We can use an host tool
11259 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
11260 echo "$as_me:$LINENO: result: host tool" >&5
11261echo "${ECHO_T}host tool" >&6
be01d343
PB
11262 else
11263 # We need a cross tool
c6b750e1
DJ
11264 echo "$as_me:$LINENO: result: pre-installed" >&5
11265echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11266 fi
11267fi
4b900473 11268
c6b750e1
DJ
11269echo "$as_me:$LINENO: checking where to find the target c++" >&5
11270echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 11271if test "x${build}" != "x${host}" ; then
2429c060
PB
11272 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11273 # We already found the complete path
b8025f34
AS
11274 ac_dir=`dirname $CXX_FOR_TARGET`
11275 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11276echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11277 else
11278 # Canadian cross, just use what we found
c6b750e1
DJ
11279 echo "$as_me:$LINENO: result: pre-installed" >&5
11280echo "${ECHO_T}pre-installed" >&6
2429c060 11281 fi
be01d343
PB
11282else
11283 ok=yes
11284 case " ${configdirs} " in
11285 *" gcc "*) ;;
11286 *) ok=no ;;
11287 esac
11288 case ,${enable_languages}, in
11289 *,c++,*) ;;
11290 *) ok=no ;;
11291 esac
11292 if test $ok = yes; then
11293 # An in-tree tool is available and we can use it
11294 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
11295 echo "$as_me:$LINENO: result: just compiled" >&5
11296echo "${ECHO_T}just compiled" >&6
2429c060
PB
11297 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11298 # We already found the complete path
b8025f34
AS
11299 ac_dir=`dirname $CXX_FOR_TARGET`
11300 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11301echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11302 elif test "x$target" = "x$host"; then
11303 # We can use an host tool
11304 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11305 echo "$as_me:$LINENO: result: host tool" >&5
11306echo "${ECHO_T}host tool" >&6
be01d343
PB
11307 else
11308 # We need a cross tool
c6b750e1
DJ
11309 echo "$as_me:$LINENO: result: pre-installed" >&5
11310echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11311 fi
11312fi
4b900473 11313
c6b750e1
DJ
11314echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11315echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 11316if test "x${build}" != "x${host}" ; then
2429c060
PB
11317 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11318 # We already found the complete path
b8025f34
AS
11319 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11320 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11321echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11322 else
11323 # Canadian cross, just use what we found
c6b750e1
DJ
11324 echo "$as_me:$LINENO: result: pre-installed" >&5
11325echo "${ECHO_T}pre-installed" >&6
2429c060 11326 fi
be01d343
PB
11327else
11328 ok=yes
11329 case " ${configdirs} " in
11330 *" gcc "*) ;;
11331 *) ok=no ;;
11332 esac
11333 case ,${enable_languages}, in
11334 *,c++,*) ;;
11335 *) ok=no ;;
11336 esac
11337 if test $ok = yes; then
11338 # An in-tree tool is available and we can use it
11339 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
11340 echo "$as_me:$LINENO: result: just compiled" >&5
11341echo "${ECHO_T}just compiled" >&6
2429c060
PB
11342 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11343 # We already found the complete path
b8025f34
AS
11344 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11345 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11346echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11347 elif test "x$target" = "x$host"; then
11348 # We can use an host tool
11349 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
11350 echo "$as_me:$LINENO: result: host tool" >&5
11351echo "${ECHO_T}host tool" >&6
be01d343
PB
11352 else
11353 # We need a cross tool
c6b750e1
DJ
11354 echo "$as_me:$LINENO: result: pre-installed" >&5
11355echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11356 fi
11357fi
4b900473 11358
c6b750e1
DJ
11359echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11360echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 11361if test "x${build}" != "x${host}" ; then
2429c060
PB
11362 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11363 # We already found the complete path
b8025f34
AS
11364 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11365 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11366echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11367 else
11368 # Canadian cross, just use what we found
c6b750e1
DJ
11369 echo "$as_me:$LINENO: result: pre-installed" >&5
11370echo "${ECHO_T}pre-installed" >&6
2429c060 11371 fi
be01d343
PB
11372else
11373 ok=yes
11374 case " ${configdirs} " in
11375 *" binutils "*) ;;
11376 *) ok=no ;;
11377 esac
c6b750e1 11378
be01d343
PB
11379 if test $ok = yes; then
11380 # An in-tree tool is available and we can use it
11381 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
11382 echo "$as_me:$LINENO: result: just compiled" >&5
11383echo "${ECHO_T}just compiled" >&6
2429c060
PB
11384 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11385 # We already found the complete path
b8025f34
AS
11386 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11387 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11388echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11389 elif test "x$target" = "x$host"; then
11390 # We can use an host tool
11391 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
11392 echo "$as_me:$LINENO: result: host tool" >&5
11393echo "${ECHO_T}host tool" >&6
be01d343
PB
11394 else
11395 # We need a cross tool
c6b750e1
DJ
11396 echo "$as_me:$LINENO: result: pre-installed" >&5
11397echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11398 fi
11399fi
4b900473 11400
c6b750e1
DJ
11401echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11402echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 11403if test "x${build}" != "x${host}" ; then
2429c060
PB
11404 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11405 # We already found the complete path
b8025f34
AS
11406 ac_dir=`dirname $GCC_FOR_TARGET`
11407 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11408echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11409 else
11410 # Canadian cross, just use what we found
c6b750e1
DJ
11411 echo "$as_me:$LINENO: result: pre-installed" >&5
11412echo "${ECHO_T}pre-installed" >&6
2429c060 11413 fi
be01d343
PB
11414else
11415 ok=yes
11416 case " ${configdirs} " in
11417 *" gcc "*) ;;
11418 *) ok=no ;;
11419 esac
c6b750e1 11420
be01d343
PB
11421 if test $ok = yes; then
11422 # An in-tree tool is available and we can use it
11423 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11424 echo "$as_me:$LINENO: result: just compiled" >&5
11425echo "${ECHO_T}just compiled" >&6
2429c060
PB
11426 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11427 # We already found the complete path
b8025f34
AS
11428 ac_dir=`dirname $GCC_FOR_TARGET`
11429 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11430echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11431 elif test "x$target" = "x$host"; then
11432 # We can use an host tool
11433 GCC_FOR_TARGET='$()'
c6b750e1
DJ
11434 echo "$as_me:$LINENO: result: host tool" >&5
11435echo "${ECHO_T}host tool" >&6
be01d343
PB
11436 else
11437 # We need a cross tool
c6b750e1
DJ
11438 echo "$as_me:$LINENO: result: pre-installed" >&5
11439echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11440 fi
11441fi
4b900473 11442
c6b750e1
DJ
11443echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11444echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 11445if test "x${build}" != "x${host}" ; then
2429c060
PB
11446 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11447 # We already found the complete path
b8025f34
AS
11448 ac_dir=`dirname $GCJ_FOR_TARGET`
11449 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11450echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11451 else
11452 # Canadian cross, just use what we found
c6b750e1
DJ
11453 echo "$as_me:$LINENO: result: pre-installed" >&5
11454echo "${ECHO_T}pre-installed" >&6
2429c060 11455 fi
be01d343
PB
11456else
11457 ok=yes
11458 case " ${configdirs} " in
11459 *" gcc "*) ;;
11460 *) ok=no ;;
11461 esac
11462 case ,${enable_languages}, in
11463 *,java,*) ;;
11464 *) ok=no ;;
11465 esac
11466 if test $ok = yes; then
11467 # An in-tree tool is available and we can use it
11468 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11469 echo "$as_me:$LINENO: result: just compiled" >&5
11470echo "${ECHO_T}just compiled" >&6
2429c060
PB
11471 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11472 # We already found the complete path
b8025f34
AS
11473 ac_dir=`dirname $GCJ_FOR_TARGET`
11474 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11475echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11476 elif test "x$target" = "x$host"; then
11477 # We can use an host tool
11478 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
11479 echo "$as_me:$LINENO: result: host tool" >&5
11480echo "${ECHO_T}host tool" >&6
be01d343
PB
11481 else
11482 # We need a cross tool
c6b750e1
DJ
11483 echo "$as_me:$LINENO: result: pre-installed" >&5
11484echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11485 fi
11486fi
4b900473 11487
c6b750e1
DJ
11488echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11489echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 11490if test "x${build}" != "x${host}" ; then
2429c060
PB
11491 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11492 # We already found the complete path
b8025f34
AS
11493 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11494 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11495echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11496 else
11497 # Canadian cross, just use what we found
c6b750e1
DJ
11498 echo "$as_me:$LINENO: result: pre-installed" >&5
11499echo "${ECHO_T}pre-installed" >&6
2429c060 11500 fi
be01d343
PB
11501else
11502 ok=yes
11503 case " ${configdirs} " in
11504 *" gcc "*) ;;
11505 *) ok=no ;;
11506 esac
11507 case ,${enable_languages}, in
11508 *,fortran,*) ;;
11509 *) ok=no ;;
11510 esac
11511 if test $ok = yes; then
11512 # An in-tree tool is available and we can use it
11513 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
11514 echo "$as_me:$LINENO: result: just compiled" >&5
11515echo "${ECHO_T}just compiled" >&6
2429c060
PB
11516 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11517 # We already found the complete path
b8025f34
AS
11518 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11519 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11520echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11521 elif test "x$target" = "x$host"; then
11522 # We can use an host tool
11523 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
11524 echo "$as_me:$LINENO: result: host tool" >&5
11525echo "${ECHO_T}host tool" >&6
be01d343
PB
11526 else
11527 # We need a cross tool
c6b750e1
DJ
11528 echo "$as_me:$LINENO: result: pre-installed" >&5
11529echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11530 fi
11531fi
4b900473 11532
c6b750e1
DJ
11533echo "$as_me:$LINENO: checking where to find the target ld" >&5
11534echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 11535if test "x${build}" != "x${host}" ; then
2429c060
PB
11536 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11537 # We already found the complete path
b8025f34
AS
11538 ac_dir=`dirname $LD_FOR_TARGET`
11539 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11540echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11541 else
11542 # Canadian cross, just use what we found
c6b750e1
DJ
11543 echo "$as_me:$LINENO: result: pre-installed" >&5
11544echo "${ECHO_T}pre-installed" >&6
2429c060 11545 fi
be01d343
PB
11546else
11547 ok=yes
11548 case " ${configdirs} " in
11549 *" ld "*) ;;
11550 *) ok=no ;;
11551 esac
c6b750e1 11552
be01d343
PB
11553 if test $ok = yes; then
11554 # An in-tree tool is available and we can use it
11555 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
11556 echo "$as_me:$LINENO: result: just compiled" >&5
11557echo "${ECHO_T}just compiled" >&6
2429c060
PB
11558 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11559 # We already found the complete path
b8025f34
AS
11560 ac_dir=`dirname $LD_FOR_TARGET`
11561 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11562echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11563 elif test "x$target" = "x$host"; then
11564 # We can use an host tool
11565 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
11566 echo "$as_me:$LINENO: result: host tool" >&5
11567echo "${ECHO_T}host tool" >&6
be01d343
PB
11568 else
11569 # We need a cross tool
c6b750e1
DJ
11570 echo "$as_me:$LINENO: result: pre-installed" >&5
11571echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11572 fi
11573fi
4b900473 11574
c6b750e1
DJ
11575echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11576echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 11577if test "x${build}" != "x${host}" ; then
2429c060
PB
11578 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11579 # We already found the complete path
b8025f34
AS
11580 ac_dir=`dirname $LIPO_FOR_TARGET`
11581 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11582echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11583 else
11584 # Canadian cross, just use what we found
c6b750e1
DJ
11585 echo "$as_me:$LINENO: result: pre-installed" >&5
11586echo "${ECHO_T}pre-installed" >&6
2429c060 11587 fi
be01d343 11588else
2429c060
PB
11589 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11590 # We already found the complete path
b8025f34
AS
11591 ac_dir=`dirname $LIPO_FOR_TARGET`
11592 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11593echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060 11594 elif test "x$target" = "x$host"; then
be01d343
PB
11595 # We can use an host tool
11596 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
11597 echo "$as_me:$LINENO: result: host tool" >&5
11598echo "${ECHO_T}host tool" >&6
be01d343
PB
11599 else
11600 # We need a cross tool
c6b750e1
DJ
11601 echo "$as_me:$LINENO: result: pre-installed" >&5
11602echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11603 fi
11604fi
4b900473 11605
c6b750e1
DJ
11606echo "$as_me:$LINENO: checking where to find the target nm" >&5
11607echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 11608if test "x${build}" != "x${host}" ; then
2429c060
PB
11609 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11610 # We already found the complete path
b8025f34
AS
11611 ac_dir=`dirname $NM_FOR_TARGET`
11612 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11613echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11614 else
11615 # Canadian cross, just use what we found
c6b750e1
DJ
11616 echo "$as_me:$LINENO: result: pre-installed" >&5
11617echo "${ECHO_T}pre-installed" >&6
2429c060 11618 fi
be01d343
PB
11619else
11620 ok=yes
11621 case " ${configdirs} " in
11622 *" binutils "*) ;;
11623 *) ok=no ;;
11624 esac
c6b750e1 11625
be01d343
PB
11626 if test $ok = yes; then
11627 # An in-tree tool is available and we can use it
11628 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
11629 echo "$as_me:$LINENO: result: just compiled" >&5
11630echo "${ECHO_T}just compiled" >&6
2429c060
PB
11631 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11632 # We already found the complete path
b8025f34
AS
11633 ac_dir=`dirname $NM_FOR_TARGET`
11634 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11635echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11636 elif test "x$target" = "x$host"; then
11637 # We can use an host tool
11638 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
11639 echo "$as_me:$LINENO: result: host tool" >&5
11640echo "${ECHO_T}host tool" >&6
be01d343
PB
11641 else
11642 # We need a cross tool
c6b750e1
DJ
11643 echo "$as_me:$LINENO: result: pre-installed" >&5
11644echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11645 fi
11646fi
4b900473 11647
c6b750e1
DJ
11648echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11649echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 11650if test "x${build}" != "x${host}" ; then
2429c060
PB
11651 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11652 # We already found the complete path
b8025f34
AS
11653 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11654 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11655echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11656 else
11657 # Canadian cross, just use what we found
c6b750e1
DJ
11658 echo "$as_me:$LINENO: result: pre-installed" >&5
11659echo "${ECHO_T}pre-installed" >&6
2429c060 11660 fi
be01d343
PB
11661else
11662 ok=yes
11663 case " ${configdirs} " in
11664 *" binutils "*) ;;
11665 *) ok=no ;;
11666 esac
c6b750e1 11667
be01d343
PB
11668 if test $ok = yes; then
11669 # An in-tree tool is available and we can use it
11670 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
11671 echo "$as_me:$LINENO: result: just compiled" >&5
11672echo "${ECHO_T}just compiled" >&6
2429c060
PB
11673 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11674 # We already found the complete path
b8025f34
AS
11675 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11677echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11678 elif test "x$target" = "x$host"; then
11679 # We can use an host tool
11680 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
11681 echo "$as_me:$LINENO: result: host tool" >&5
11682echo "${ECHO_T}host tool" >&6
be01d343
PB
11683 else
11684 # We need a cross tool
c6b750e1
DJ
11685 echo "$as_me:$LINENO: result: pre-installed" >&5
11686echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11687 fi
11688fi
4b900473 11689
c6b750e1
DJ
11690echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11691echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 11692if test "x${build}" != "x${host}" ; then
2429c060
PB
11693 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11694 # We already found the complete path
b8025f34
AS
11695 ac_dir=`dirname $RANLIB_FOR_TARGET`
11696 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11697echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11698 else
11699 # Canadian cross, just use what we found
c6b750e1
DJ
11700 echo "$as_me:$LINENO: result: pre-installed" >&5
11701echo "${ECHO_T}pre-installed" >&6
2429c060 11702 fi
be01d343
PB
11703else
11704 ok=yes
11705 case " ${configdirs} " in
11706 *" binutils "*) ;;
11707 *) ok=no ;;
11708 esac
c6b750e1 11709
be01d343
PB
11710 if test $ok = yes; then
11711 # An in-tree tool is available and we can use it
11712 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
11713 echo "$as_me:$LINENO: result: just compiled" >&5
11714echo "${ECHO_T}just compiled" >&6
2429c060
PB
11715 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11716 # We already found the complete path
b8025f34
AS
11717 ac_dir=`dirname $RANLIB_FOR_TARGET`
11718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11719echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11720 elif test "x$target" = "x$host"; then
11721 # We can use an host tool
11722 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
11723 echo "$as_me:$LINENO: result: host tool" >&5
11724echo "${ECHO_T}host tool" >&6
be01d343
PB
11725 else
11726 # We need a cross tool
c6b750e1
DJ
11727 echo "$as_me:$LINENO: result: pre-installed" >&5
11728echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11729 fi
11730fi
4b900473 11731
c6b750e1
DJ
11732echo "$as_me:$LINENO: checking where to find the target strip" >&5
11733echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 11734if test "x${build}" != "x${host}" ; then
2429c060
PB
11735 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11736 # We already found the complete path
b8025f34
AS
11737 ac_dir=`dirname $STRIP_FOR_TARGET`
11738 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11739echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11740 else
11741 # Canadian cross, just use what we found
c6b750e1
DJ
11742 echo "$as_me:$LINENO: result: pre-installed" >&5
11743echo "${ECHO_T}pre-installed" >&6
2429c060 11744 fi
be01d343
PB
11745else
11746 ok=yes
11747 case " ${configdirs} " in
11748 *" binutils "*) ;;
11749 *) ok=no ;;
11750 esac
c6b750e1 11751
be01d343
PB
11752 if test $ok = yes; then
11753 # An in-tree tool is available and we can use it
11754 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
11755 echo "$as_me:$LINENO: result: just compiled" >&5
11756echo "${ECHO_T}just compiled" >&6
2429c060
PB
11757 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11758 # We already found the complete path
b8025f34
AS
11759 ac_dir=`dirname $STRIP_FOR_TARGET`
11760 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11761echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11762 elif test "x$target" = "x$host"; then
11763 # We can use an host tool
11764 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
11765 echo "$as_me:$LINENO: result: host tool" >&5
11766echo "${ECHO_T}host tool" >&6
be01d343
PB
11767 else
11768 # We need a cross tool
c6b750e1
DJ
11769 echo "$as_me:$LINENO: result: pre-installed" >&5
11770echo "${ECHO_T}pre-installed" >&6
be01d343
PB
11771 fi
11772fi
4b900473 11773
c6b750e1
DJ
11774echo "$as_me:$LINENO: checking where to find the target windres" >&5
11775echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 11776if test "x${build}" != "x${host}" ; then
2429c060
PB
11777 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11778 # We already found the complete path
b8025f34
AS
11779 ac_dir=`dirname $WINDRES_FOR_TARGET`
11780 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11781echo "${ECHO_T}pre-installed in $ac_dir" >&6
2429c060
PB
11782 else
11783 # Canadian cross, just use what we found
c6b750e1
DJ
11784 echo "$as_me:$LINENO: result: pre-installed" >&5
11785echo "${ECHO_T}pre-installed" >&6
2429c060 11786 fi
be01d343
PB
11787else
11788 ok=yes
11789 case " ${configdirs} " in
11790 *" binutils "*) ;;
11791 *) ok=no ;;
11792 esac
c6b750e1 11793
be01d343
PB
11794 if test $ok = yes; then
11795 # An in-tree tool is available and we can use it
11796 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
11797 echo "$as_me:$LINENO: result: just compiled" >&5
11798echo "${ECHO_T}just compiled" >&6
2429c060
PB
11799 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11800 # We already found the complete path
b8025f34
AS
11801 ac_dir=`dirname $WINDRES_FOR_TARGET`
11802 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11803echo "${ECHO_T}pre-installed in $ac_dir" >&6
be01d343
PB
11804 elif test "x$target" = "x$host"; then
11805 # We can use an host tool
11806 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
11807 echo "$as_me:$LINENO: result: host tool" >&5
11808echo "${ECHO_T}host tool" >&6
be01d343
PB
11809 else
11810 # We need a cross tool
c6b750e1
DJ
11811 echo "$as_me:$LINENO: result: pre-installed" >&5
11812echo "${ECHO_T}pre-installed" >&6
be01d343 11813 fi
a0da8069 11814fi
54752a6b 11815
0c24b341
NC
11816echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11817echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11818if test "x${build}" != "x${host}" ; then
11819 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11820 # We already found the complete path
11821 ac_dir=`dirname $WINDMC_FOR_TARGET`
11822 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11823echo "${ECHO_T}pre-installed in $ac_dir" >&6
11824 else
11825 # Canadian cross, just use what we found
11826 echo "$as_me:$LINENO: result: pre-installed" >&5
11827echo "${ECHO_T}pre-installed" >&6
11828 fi
11829else
11830 ok=yes
11831 case " ${configdirs} " in
11832 *" binutils "*) ;;
11833 *) ok=no ;;
11834 esac
11835
11836 if test $ok = yes; then
11837 # An in-tree tool is available and we can use it
11838 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11839 echo "$as_me:$LINENO: result: just compiled" >&5
11840echo "${ECHO_T}just compiled" >&6
11841 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11842 # We already found the complete path
11843 ac_dir=`dirname $WINDMC_FOR_TARGET`
11844 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11845echo "${ECHO_T}pre-installed in $ac_dir" >&6
11846 elif test "x$target" = "x$host"; then
11847 # We can use an host tool
11848 WINDMC_FOR_TARGET='$(WINDMC)'
11849 echo "$as_me:$LINENO: result: host tool" >&5
11850echo "${ECHO_T}host tool" >&6
11851 else
11852 # We need a cross tool
11853 echo "$as_me:$LINENO: result: pre-installed" >&5
11854echo "${ECHO_T}pre-installed" >&6
11855 fi
11856fi
11857
54752a6b
NN
11858
11859
be01d343 11860
4b900473 11861
a0da8069
NN
11862# Certain tools may need extra flags.
11863AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11864RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11865NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11866
be01d343
PB
11867# When building target libraries, except in a Canadian cross, we use
11868# the same toolchain as the compiler we just built.
11869COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11870COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11871COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11872if test $host = $build; then
11873 case " $configdirs " in
11874 *" gcc "*)
11875 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11876 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11877 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11878 ;;
11879 esac
11880fi
11881
11882
11883
11884
11885
c6b750e1
DJ
11886echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11887echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
11888# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11889if test "${enable_maintainer_mode+set}" = set; then
11890 enableval="$enable_maintainer_mode"
11891 USE_MAINTAINER_MODE=$enableval
11892else
11893 USE_MAINTAINER_MODE=no
c6b750e1
DJ
11894fi;
11895echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11896echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
11897
11898
11899if test "$USE_MAINTAINER_MODE" = yes; then
11900 MAINTAINER_MODE_TRUE=
11901 MAINTAINER_MODE_FALSE='#'
11902else
11903 MAINTAINER_MODE_TRUE='#'
11904 MAINTAINER_MODE_FALSE=
c6b750e1 11905fi
3d5e36ae
AO
11906MAINT=$MAINTAINER_MODE_TRUE
11907
1d39f329
NN
11908# ---------------------
11909# GCC bootstrap support
11910# ---------------------
11911
11912# Stage specific cflags for build.
11913stage1_cflags="-g"
11914case $build in
11915 vax-*-*)
11916 case ${GCC} in
11917 yes) stage1_cflags="-g -Wa,-J" ;;
11918 *) stage1_cflags="-g -J" ;;
11919 esac ;;
1d39f329
NN
11920esac
11921
1d89b610
PB
11922# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11923if test "$GCC" = yes; then
11924 saved_CFLAGS="$CFLAGS"
11925
11926 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11927 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
11928 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11929echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
11930 cat >conftest.$ac_ext <<_ACEOF
11931/* confdefs.h. */
11932_ACEOF
11933cat confdefs.h >>conftest.$ac_ext
11934cat >>conftest.$ac_ext <<_ACEOF
11935/* end confdefs.h. */
11936
2038f525
PB
11937#if (__GNUC__ < 3) \
11938 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11939 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11940#error http://gcc.gnu.org/PR29382
11941#endif
11942
c6b750e1
DJ
11943int
11944main ()
11945{
11946
11947 ;
11948 return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext
11952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_c_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 echo "$as_me:$LINENO: result: yes" >&5
11974echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979echo "$as_me:$LINENO: result: no" >&5
11980echo "${ECHO_T}no" >&6
11981fi
11982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
11983
11984 CFLAGS="$saved_CFLAGS"
11985fi
11986
11987
1d39f329 11988
8a0d8a5c
PB
11989# Enable --enable-checking in stage1 of the compiler.
11990# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
11991if test "${enable_stage1_checking+set}" = set; then
11992 enableval="$enable_stage1_checking"
11993 stage1_checking=--enable-checking=${enable_stage1_checking}
11994else
11995 if test "x$enable_checking" = xno; then
2abc4e65 11996 stage1_checking=--enable-checking=yes,types
8a0d8a5c 11997else
2abc4e65 11998 stage1_checking=--enable-checking=types${enable_checking+,}$enable_checking
8a0d8a5c 11999fi
c6b750e1 12000fi;
8a0d8a5c
PB
12001
12002
1d39f329 12003# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
12004# Check whether --enable-werror or --disable-werror was given.
12005if test "${enable_werror+set}" = set; then
12006 enableval="$enable_werror"
c6b750e1 12007
1d39f329 12008else
a0323144 12009 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 12010 enable_werror=yes
79fcd0ec
PB
12011else
12012 enable_werror=no
12013fi
c6b750e1 12014fi;
1a6f2dc7
NN
12015case ${enable_werror} in
12016 yes) stage2_werror_flag="--enable-werror-always" ;;
12017 *) stage2_werror_flag="" ;;
1d39f329
NN
12018esac
12019
12020
108a6f8e 12021# Flags needed to enable html installing and building
c6b750e1 12022
108a6f8e
CD
12023# Check whether --with-datarootdir or --without-datarootdir was given.
12024if test "${with_datarootdir+set}" = set; then
12025 withval="$with_datarootdir"
12026 datarootdir="\${prefix}/${withval}"
12027else
12028 datarootdir="\${prefix}/share"
c6b750e1 12029fi;
108a6f8e
CD
12030
12031
12032# Check whether --with-docdir or --without-docdir was given.
12033if test "${with_docdir+set}" = set; then
12034 withval="$with_docdir"
12035 docdir="\${prefix}/${withval}"
12036else
12037 docdir="\${datarootdir}/doc"
c6b750e1 12038fi;
108a6f8e
CD
12039
12040
a3ca38d2
DD
12041# Check whether --with-pdfdir or --without-pdfdir was given.
12042if test "${with_pdfdir+set}" = set; then
12043 withval="$with_pdfdir"
12044 pdfdir="\${prefix}/${withval}"
12045else
12046 pdfdir="\${docdir}"
12047fi;
12048
12049
108a6f8e
CD
12050# Check whether --with-htmldir or --without-htmldir was given.
12051if test "${with_htmldir+set}" = set; then
12052 withval="$with_htmldir"
12053 htmldir="\${prefix}/${withval}"
12054else
12055 htmldir="\${docdir}"
c6b750e1 12056fi;
108a6f8e
CD
12057
12058
12059
12060
12061
b8025f34 12062
c6b750e1
DJ
12063 ac_config_files="$ac_config_files Makefile"
12064cat >confcache <<\_ACEOF
a0da8069
NN
12065# This file is a shell script that caches the results of configure
12066# tests run on this system so they can be shared between configure
c6b750e1
DJ
12067# scripts and configure runs, see configure's option --config-cache.
12068# It is not useful on other systems. If it contains results you don't
12069# want to keep, you may remove or edit it.
a0da8069 12070#
c6b750e1
DJ
12071# config.status only pays attention to the cache file if you give it
12072# the --recheck option to rerun configure.
a0da8069 12073#
c6b750e1
DJ
12074# `ac_cv_env_foo' variables (set or unset) will be overridden when
12075# loading this file, other *unset* `ac_cv_foo' will be assigned the
12076# following values.
12077
12078_ACEOF
12079
a0da8069
NN
12080# The following way of writing the cache mishandles newlines in values,
12081# but we know of no workaround that is simple, portable, and efficient.
12082# So, don't put newlines in cache variables' values.
12083# Ultrix sh set writes to stderr and can't be redirected directly,
12084# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
12085{
12086 (set) 2>&1 |
12087 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12088 *ac_space=\ *)
12089 # `set' does not quote correctly, so add quotes (double-quote
12090 # substitution turns \\\\ into \\, and sed turns \\ into \).
12091 sed -n \
12092 "s/'/'\\\\''/g;
12093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12094 ;;
12095 *)
12096 # `set' quotes correctly as required by POSIX, so do not add quotes.
12097 sed -n \
12098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12099 ;;
12100 esac;
12101} |
12102 sed '
12103 t clear
12104 : clear
12105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12106 t end
12107 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12108 : end' >>confcache
12109if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 12110 if test -w $cache_file; then
c6b750e1
DJ
12111 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12112 cat confcache >$cache_file
a0da8069
NN
12113 else
12114 echo "not updating unwritable cache $cache_file"
12115 fi
852e5f18 12116fi
a0da8069 12117rm -f confcache
852e5f18 12118
a0da8069
NN
12119test "x$prefix" = xNONE && prefix=$ac_default_prefix
12120# Let make expand exec_prefix.
12121test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 12122
c6b750e1
DJ
12123# VPATH may cause trouble with some makes, so we remove $(srcdir),
12124# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12125# trailing colons and then remove the whole line if VPATH becomes empty
12126# (actually we leave an empty line to preserve line numbers).
a0da8069 12127if test "x$srcdir" = x.; then
c6b750e1
DJ
12128 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12129s/:*\$(srcdir):*/:/;
12130s/:*\${srcdir}:*/:/;
12131s/:*@srcdir@:*/:/;
12132s/^\([^=]*=[ ]*\):*/\1/;
12133s/:*$//;
12134s/^[^=]*=[ ]*$//;
12135}'
a0da8069 12136fi
252b5132 12137
a0da8069
NN
12138# Transform confdefs.h into DEFS.
12139# Protect against shell expansion while executing Makefile rules.
12140# Protect against Makefile macro expansion.
c6b750e1
DJ
12141#
12142# If the first sed substitution is executed (which looks for macros that
12143# take arguments), then we branch to the quote section. Otherwise,
12144# look for a macro that doesn't take arguments.
12145cat >confdef2opt.sed <<\_ACEOF
12146t clear
12147: clear
12148s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12149t quote
12150s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12151t quote
12152d
12153: quote
12154s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12155s,\[,\\&,g
12156s,\],\\&,g
12157s,\$,$$,g
12158p
12159_ACEOF
12160# We use echo to avoid assuming a particular line-breaking character.
12161# The extra dot is to prevent the shell from consuming trailing
12162# line-breaks from the sub-command output. A line-break within
12163# single-quotes doesn't work because, if this script is created in a
12164# platform that uses two characters for line-breaks (e.g., DOS), tr
12165# would break.
12166ac_LF_and_DOT=`echo; echo .`
12167DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12168rm -f confdef2opt.sed
12169
12170
12171ac_libobjs=
12172ac_ltlibobjs=
12173for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12174 # 1. Remove the extension, and $U if already installed.
12175 ac_i=`echo "$ac_i" |
12176 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12177 # 2. Add them.
12178 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12179 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12180done
12181LIBOBJS=$ac_libobjs
852e5f18 12182
c6b750e1 12183LTLIBOBJS=$ac_ltlibobjs
376a0e54 12184
cac3d6c4 12185
c6b750e1
DJ
12186
12187: ${CONFIG_STATUS=./config.status}
12188ac_clean_files_save=$ac_clean_files
12189ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12190{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12191echo "$as_me: creating $CONFIG_STATUS" >&6;}
12192cat >$CONFIG_STATUS <<_ACEOF
12193#! $SHELL
12194# Generated by $as_me.
a0da8069 12195# Run this file to recreate the current configuration.
a0da8069 12196# Compiler output produced by configure, useful for debugging
c6b750e1 12197# configure, is in config.log if it exists.
376a0e54 12198
c6b750e1
DJ
12199debug=false
12200ac_cs_recheck=false
12201ac_cs_silent=false
12202SHELL=\${CONFIG_SHELL-$SHELL}
12203_ACEOF
12204
12205cat >>$CONFIG_STATUS <<\_ACEOF
12206## --------------------- ##
12207## M4sh Initialization. ##
12208## --------------------- ##
12209
12210# Be Bourne compatible
12211if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12212 emulate sh
12213 NULLCMD=:
12214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12215 # is contrary to our usage. Disable this feature.
12216 alias -g '${1+"$@"}'='"$@"'
12217elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12218 set -o posix
12219fi
12220DUALCASE=1; export DUALCASE # for MKS sh
12221
12222# Support unset when possible.
12223if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12224 as_unset=unset
12225else
12226 as_unset=false
12227fi
12228
12229
12230# Work around bugs in pre-3.0 UWIN ksh.
12231$as_unset ENV MAIL MAILPATH
12232PS1='$ '
12233PS2='> '
12234PS4='+ '
12235
12236# NLS nuisances.
12237for as_var in \
12238 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12239 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12240 LC_TELEPHONE LC_TIME
12241do
12242 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12243 eval $as_var=C; export $as_var
12244 else
12245 $as_unset $as_var
12246 fi
12247done
12248
12249# Required to use basename.
12250if expr a : '\(a\)' >/dev/null 2>&1; then
12251 as_expr=expr
12252else
12253 as_expr=false
12254fi
12255
12256if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12257 as_basename=basename
12258else
12259 as_basename=false
12260fi
12261
12262
12263# Name of the executable.
12264as_me=`$as_basename "$0" ||
12265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12266 X"$0" : 'X\(//\)$' \| \
12267 X"$0" : 'X\(/\)$' \| \
12268 . : '\(.\)' 2>/dev/null ||
12269echo X/"$0" |
12270 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12271 /^X\/\(\/\/\)$/{ s//\1/; q; }
12272 /^X\/\(\/\).*/{ s//\1/; q; }
12273 s/.*/./; q'`
12274
12275
12276# PATH needs CR, and LINENO needs CR and PATH.
12277# Avoid depending upon Character Ranges.
12278as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12279as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12280as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12281as_cr_digits='0123456789'
12282as_cr_alnum=$as_cr_Letters$as_cr_digits
12283
12284# The user is always right.
12285if test "${PATH_SEPARATOR+set}" != set; then
12286 echo "#! /bin/sh" >conf$$.sh
12287 echo "exit 0" >>conf$$.sh
12288 chmod +x conf$$.sh
12289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12290 PATH_SEPARATOR=';'
12291 else
12292 PATH_SEPARATOR=:
12293 fi
12294 rm -f conf$$.sh
12295fi
12296
12297
12298 as_lineno_1=$LINENO
12299 as_lineno_2=$LINENO
12300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12301 test "x$as_lineno_1" != "x$as_lineno_2" &&
12302 test "x$as_lineno_3" = "x$as_lineno_2" || {
12303 # Find who we are. Look in the path if we contain no path at all
12304 # relative or not.
12305 case $0 in
12306 *[\\/]* ) as_myself=$0 ;;
12307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH
12309do
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12313done
12314
12315 ;;
12316 esac
12317 # We did not find ourselves, most probably we were run as `sh COMMAND'
12318 # in which case we are not to be found in the path.
12319 if test "x$as_myself" = x; then
12320 as_myself=$0
12321 fi
12322 if test ! -f "$as_myself"; then
12323 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12324echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12325 { (exit 1); exit 1; }; }
12326 fi
12327 case $CONFIG_SHELL in
12328 '')
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12331do
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for as_base in sh bash ksh sh5; do
12335 case $as_dir in
12336 /*)
12337 if ("$as_dir/$as_base" -c '
12338 as_lineno_1=$LINENO
12339 as_lineno_2=$LINENO
12340 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12341 test "x$as_lineno_1" != "x$as_lineno_2" &&
12342 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12343 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12344 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12345 CONFIG_SHELL=$as_dir/$as_base
12346 export CONFIG_SHELL
12347 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12348 fi;;
12349 esac
12350 done
12351done
12352;;
12353 esac
12354
12355 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12356 # uniformly replaced by the line number. The first 'sed' inserts a
12357 # line-number line before each line; the second 'sed' does the real
12358 # work. The second script uses 'N' to pair each line-number line
12359 # with the numbered line, and appends trailing '-' during
12360 # substitution so that $LINENO is not a special case at line end.
12361 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12362 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12363 sed '=' <$as_myself |
12364 sed '
12365 N
12366 s,$,-,
12367 : loop
12368 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12369 t loop
12370 s,-$,,
12371 s,^['$as_cr_digits']*\n,,
12372 ' >$as_me.lineno &&
12373 chmod +x $as_me.lineno ||
12374 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12375echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12376 { (exit 1); exit 1; }; }
12377
12378 # Don't try to exec as it changes $[0], causing all sort of problems
12379 # (the dirname of $[0] is not the place where we might find the
12380 # original and so on. Autoconf is especially sensible to this).
12381 . ./$as_me.lineno
12382 # Exit status is that of the last command.
12383 exit
12384}
12385
12386
12387case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12388 *c*,-n*) ECHO_N= ECHO_C='
12389' ECHO_T=' ' ;;
12390 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12391 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12392esac
12393
12394if expr a : '\(a\)' >/dev/null 2>&1; then
12395 as_expr=expr
12396else
12397 as_expr=false
12398fi
12399
12400rm -f conf$$ conf$$.exe conf$$.file
12401echo >conf$$.file
12402if ln -s conf$$.file conf$$ 2>/dev/null; then
12403 # We could just check for DJGPP; but this test a) works b) is more generic
12404 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12405 if test -f conf$$.exe; then
12406 # Don't use ln at all; we don't have any links
12407 as_ln_s='cp -p'
12408 else
12409 as_ln_s='ln -s'
12410 fi
12411elif ln conf$$.file conf$$ 2>/dev/null; then
12412 as_ln_s=ln
12413else
12414 as_ln_s='cp -p'
12415fi
12416rm -f conf$$ conf$$.exe conf$$.file
12417
12418if mkdir -p . 2>/dev/null; then
12419 as_mkdir_p=:
12420else
12421 test -d ./-p && rmdir ./-p
12422 as_mkdir_p=false
12423fi
12424
12425as_executable_p="test -f"
12426
12427# Sed expression to map a string onto a valid CPP name.
12428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12429
12430# Sed expression to map a string onto a valid variable name.
12431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12432
12433
12434# IFS
12435# We need space, tab and new line, in precisely that order.
12436as_nl='
12437'
12438IFS=" $as_nl"
12439
12440# CDPATH.
12441$as_unset CDPATH
12442
12443exec 6>&1
12444
12445# Open the log real soon, to keep \$[0] and so on meaningful, and to
12446# report actual input values of CONFIG_FILES etc. instead of their
12447# values after options handling. Logging --version etc. is OK.
12448exec 5>>config.log
12449{
12450 echo
12451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12452## Running $as_me. ##
12453_ASBOX
12454} >&5
12455cat >&5 <<_CSEOF
12456
12457This file was extended by $as_me, which was
12458generated by GNU Autoconf 2.59. Invocation command line was
12459
12460 CONFIG_FILES = $CONFIG_FILES
12461 CONFIG_HEADERS = $CONFIG_HEADERS
12462 CONFIG_LINKS = $CONFIG_LINKS
12463 CONFIG_COMMANDS = $CONFIG_COMMANDS
12464 $ $0 $@
12465
12466_CSEOF
12467echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12468echo >&5
12469_ACEOF
12470
12471# Files that config.status was made for.
12472if test -n "$ac_config_files"; then
12473 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12474fi
12475
12476if test -n "$ac_config_headers"; then
12477 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12478fi
12479
12480if test -n "$ac_config_links"; then
12481 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12482fi
12483
12484if test -n "$ac_config_commands"; then
12485 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12486fi
12487
12488cat >>$CONFIG_STATUS <<\_ACEOF
12489
12490ac_cs_usage="\
12491\`$as_me' instantiates files from templates according to the
12492current configuration.
12493
12494Usage: $0 [OPTIONS] [FILE]...
12495
12496 -h, --help print this help, then exit
12497 -V, --version print version number, then exit
12498 -q, --quiet do not print progress messages
12499 -d, --debug don't remove temporary files
12500 --recheck update $as_me by reconfiguring in the same conditions
12501 --file=FILE[:TEMPLATE]
12502 instantiate the configuration file FILE
12503
12504Configuration files:
12505$config_files
12506
12507Report bugs to <bug-autoconf@gnu.org>."
12508_ACEOF
12509
12510cat >>$CONFIG_STATUS <<_ACEOF
12511ac_cs_version="\\
12512config.status
12513configured by $0, generated by GNU Autoconf 2.59,
12514 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12515
12516Copyright (C) 2003 Free Software Foundation, Inc.
12517This config.status script is free software; the Free Software Foundation
12518gives unlimited permission to copy, distribute and modify it."
12519srcdir=$srcdir
12520INSTALL="$INSTALL"
12521_ACEOF
12522
12523cat >>$CONFIG_STATUS <<\_ACEOF
12524# If no file are specified by the user, then we need to provide default
12525# value. By we need to know if files were specified by the user.
12526ac_need_defaults=:
12527while test $# != 0
a0da8069 12528do
c6b750e1
DJ
12529 case $1 in
12530 --*=*)
12531 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12532 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12533 ac_shift=:
12534 ;;
12535 -*)
12536 ac_option=$1
12537 ac_optarg=$2
12538 ac_shift=shift
12539 ;;
12540 *) # This is not an option, so the user has probably given explicit
12541 # arguments.
12542 ac_option=$1
12543 ac_need_defaults=false;;
12544 esac
12545
12546 case $ac_option in
12547 # Handling of the options.
12548_ACEOF
12549cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 12550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
12551 ac_cs_recheck=: ;;
12552 --version | --vers* | -V )
12553 echo "$ac_cs_version"; exit 0 ;;
12554 --he | --h)
12555 # Conflict between --help and --header
12556 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12557Try \`$0 --help' for more information." >&5
12558echo "$as_me: error: ambiguous option: $1
12559Try \`$0 --help' for more information." >&2;}
12560 { (exit 1); exit 1; }; };;
12561 --help | --hel | -h )
12562 echo "$ac_cs_usage"; exit 0 ;;
12563 --debug | --d* | -d )
12564 debug=: ;;
12565 --file | --fil | --fi | --f )
12566 $ac_shift
12567 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12568 ac_need_defaults=false;;
12569 --header | --heade | --head | --hea )
12570 $ac_shift
12571 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12572 ac_need_defaults=false;;
12573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12575 ac_cs_silent=: ;;
12576
12577 # This is an error.
12578 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12579Try \`$0 --help' for more information." >&5
12580echo "$as_me: error: unrecognized option: $1
12581Try \`$0 --help' for more information." >&2;}
12582 { (exit 1); exit 1; }; } ;;
12583
12584 *) ac_config_targets="$ac_config_targets $1" ;;
12585
376a0e54 12586 esac
c6b750e1 12587 shift
376a0e54
CM
12588done
12589
c6b750e1 12590ac_configure_extra_args=
376a0e54 12591
c6b750e1
DJ
12592if $ac_cs_silent; then
12593 exec 6>/dev/null
12594 ac_configure_extra_args="$ac_configure_extra_args --silent"
12595fi
376a0e54 12596
c6b750e1
DJ
12597_ACEOF
12598cat >>$CONFIG_STATUS <<_ACEOF
12599if \$ac_cs_recheck; then
12600 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12601 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12602fi
12603
12604_ACEOF
12605
12606
12607
12608
12609
12610cat >>$CONFIG_STATUS <<\_ACEOF
12611for ac_config_target in $ac_config_targets
12612do
12613 case "$ac_config_target" in
12614 # Handling of arguments.
12615 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12616 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12617echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12618 { (exit 1); exit 1; }; };;
12619 esac
12620done
12621
12622# If the user did not use the arguments to specify the items to instantiate,
12623# then the envvar interface is used. Set only those that are not.
12624# We use the long form for the default assignment because of an extremely
12625# bizarre bug on SunOS 4.1.3.
12626if $ac_need_defaults; then
12627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12628fi
12629
12630# Have a temporary directory for convenience. Make it in the build tree
12631# simply because there is no reason to put it here, and in addition,
12632# creating and moving files from /tmp can sometimes cause problems.
12633# Create a temporary directory, and hook for its removal unless debugging.
12634$debug ||
12635{
12636 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12637 trap '{ (exit 1); exit 1; }' 1 2 13 15
12638}
12639
12640# Create a (secure) tmp directory for tmp files.
12641
12642{
12643 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12644 test -n "$tmp" && test -d "$tmp"
12645} ||
12646{
12647 tmp=./confstat$$-$RANDOM
12648 (umask 077 && mkdir $tmp)
12649} ||
12650{
12651 echo "$me: cannot create a temporary directory in ." >&2
12652 { (exit 1); exit 1; }
12653}
12654
12655_ACEOF
12656
12657cat >>$CONFIG_STATUS <<_ACEOF
12658
12659#
12660# CONFIG_FILES section.
12661#
12662
12663# No need to generate the scripts if there are no CONFIG_FILES.
12664# This happens for instance when ./config.status config.h
12665if test -n "\$CONFIG_FILES"; then
12666 # Protect against being on the right side of a sed subst in config.status.
12667 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12668 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12669s,@SHELL@,$SHELL,;t t
12670s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12671s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12672s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12673s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12674s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12675s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12676s,@exec_prefix@,$exec_prefix,;t t
12677s,@prefix@,$prefix,;t t
12678s,@program_transform_name@,$program_transform_name,;t t
12679s,@bindir@,$bindir,;t t
12680s,@sbindir@,$sbindir,;t t
12681s,@libexecdir@,$libexecdir,;t t
12682s,@datadir@,$datadir,;t t
12683s,@sysconfdir@,$sysconfdir,;t t
12684s,@sharedstatedir@,$sharedstatedir,;t t
12685s,@localstatedir@,$localstatedir,;t t
12686s,@libdir@,$libdir,;t t
12687s,@includedir@,$includedir,;t t
12688s,@oldincludedir@,$oldincludedir,;t t
12689s,@infodir@,$infodir,;t t
12690s,@mandir@,$mandir,;t t
12691s,@build_alias@,$build_alias,;t t
12692s,@host_alias@,$host_alias,;t t
12693s,@target_alias@,$target_alias,;t t
12694s,@DEFS@,$DEFS,;t t
12695s,@ECHO_C@,$ECHO_C,;t t
12696s,@ECHO_N@,$ECHO_N,;t t
12697s,@ECHO_T@,$ECHO_T,;t t
12698s,@LIBS@,$LIBS,;t t
12699s,@build@,$build,;t t
12700s,@build_cpu@,$build_cpu,;t t
12701s,@build_vendor@,$build_vendor,;t t
12702s,@build_os@,$build_os,;t t
12703s,@build_noncanonical@,$build_noncanonical,;t t
12704s,@host_noncanonical@,$host_noncanonical,;t t
12705s,@target_noncanonical@,$target_noncanonical,;t t
12706s,@host@,$host,;t t
12707s,@host_cpu@,$host_cpu,;t t
12708s,@host_vendor@,$host_vendor,;t t
12709s,@host_os@,$host_os,;t t
12710s,@target@,$target,;t t
12711s,@target_cpu@,$target_cpu,;t t
12712s,@target_vendor@,$target_vendor,;t t
12713s,@target_os@,$target_os,;t t
12714s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12715s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12716s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12717s,@LN@,$LN,;t t
12718s,@LN_S@,$LN_S,;t t
12719s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12720s,@build_libsubdir@,$build_libsubdir,;t t
12721s,@build_subdir@,$build_subdir,;t t
12722s,@host_subdir@,$host_subdir,;t t
12723s,@target_subdir@,$target_subdir,;t t
12724s,@CC@,$CC,;t t
12725s,@CFLAGS@,$CFLAGS,;t t
12726s,@LDFLAGS@,$LDFLAGS,;t t
12727s,@CPPFLAGS@,$CPPFLAGS,;t t
12728s,@ac_ct_CC@,$ac_ct_CC,;t t
12729s,@EXEEXT@,$EXEEXT,;t t
12730s,@OBJEXT@,$OBJEXT,;t t
18f6b6ee
PB
12731s,@CXX@,$CXX,;t t
12732s,@CXXFLAGS@,$CXXFLAGS,;t t
12733s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
12734s,@GNATBIND@,$GNATBIND,;t t
12735s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
512b7dfb
PB
12736s,@GNATMAKE@,$GNATMAKE,;t t
12737s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
12738s,@do_compare@,$do_compare,;t t
12739s,@gmplibs@,$gmplibs,;t t
12740s,@gmpinc@,$gmpinc,;t t
12741s,@stage1_languages@,$stage1_languages,;t t
12742s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
8a6ee3ab 12743s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
c6b750e1
DJ
12744s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12745s,@tooldir@,$tooldir,;t t
12746s,@build_tooldir@,$build_tooldir,;t t
12747s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12748s,@GDB_TK@,$GDB_TK,;t t
12749s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12750s,@build_configargs@,$build_configargs,;t t
12751s,@build_configdirs@,$build_configdirs,;t t
12752s,@host_configargs@,$host_configargs,;t t
12753s,@configdirs@,$configdirs,;t t
12754s,@target_configargs@,$target_configargs,;t t
12755s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12756s,@config_shell@,$config_shell,;t t
12757s,@YACC@,$YACC,;t t
12758s,@BISON@,$BISON,;t t
12759s,@M4@,$M4,;t t
12760s,@LEX@,$LEX,;t t
12761s,@FLEX@,$FLEX,;t t
12762s,@MAKEINFO@,$MAKEINFO,;t t
12763s,@EXPECT@,$EXPECT,;t t
12764s,@RUNTEST@,$RUNTEST,;t t
12765s,@AR@,$AR,;t t
12766s,@AS@,$AS,;t t
12767s,@DLLTOOL@,$DLLTOOL,;t t
12768s,@LD@,$LD,;t t
12769s,@LIPO@,$LIPO,;t t
12770s,@NM@,$NM,;t t
12771s,@RANLIB@,$RANLIB,;t t
12772s,@STRIP@,$STRIP,;t t
12773s,@WINDRES@,$WINDRES,;t t
0c24b341 12774s,@WINDMC@,$WINDMC,;t t
c6b750e1
DJ
12775s,@OBJCOPY@,$OBJCOPY,;t t
12776s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 12777s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
12778s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12779s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12780s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12781s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12782s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12783s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12784s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12785s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12786s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12787s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12788s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12789s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12790s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12791s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12792s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
0c24b341 12793s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
c6b750e1
DJ
12794s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12795s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12796s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12797s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12798s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12799s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12800s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12801s,@MAINT@,$MAINT,;t t
12802s,@stage1_cflags@,$stage1_cflags,;t t
12803s,@stage1_checking@,$stage1_checking,;t t
12804s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12805s,@datarootdir@,$datarootdir,;t t
12806s,@docdir@,$docdir,;t t
a3ca38d2 12807s,@pdfdir@,$pdfdir,;t t
c6b750e1
DJ
12808s,@htmldir@,$htmldir,;t t
12809s,@LIBOBJS@,$LIBOBJS,;t t
12810s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 12811/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 12812s,@serialization_dependencies@,,;t t
a0da8069 12813/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 12814s,@host_makefile_frag@,,;t t
a0da8069 12815/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 12816s,@target_makefile_frag@,,;t t
a0da8069 12817/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 12818s,@alphaieee_frag@,,;t t
a0da8069 12819/@ospace_frag@/r $ospace_frag
c6b750e1 12820s,@ospace_frag@,,;t t
a0da8069 12821CEOF
252b5132 12822
c6b750e1
DJ
12823_ACEOF
12824
12825 cat >>$CONFIG_STATUS <<\_ACEOF
12826 # Split the substitutions into bite-sized pieces for seds with
12827 # small command number limits, like on Digital OSF/1 and HP-UX.
12828 ac_max_sed_lines=48
12829 ac_sed_frag=1 # Number of current file.
12830 ac_beg=1 # First line for current file.
12831 ac_end=$ac_max_sed_lines # Line after last line for current file.
12832 ac_more_lines=:
12833 ac_sed_cmds=
12834 while $ac_more_lines; do
12835 if test $ac_beg -gt 1; then
12836 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12837 else
12838 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12839 fi
12840 if test ! -s $tmp/subs.frag; then
12841 ac_more_lines=false
a0da8069 12842 else
c6b750e1
DJ
12843 # The purpose of the label and of the branching condition is to
12844 # speed up the sed processing (if there are no `@' at all, there
12845 # is no need to browse any of the substitutions).
12846 # These are the two extra sed commands mentioned above.
12847 (echo ':t
12848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12849 if test -z "$ac_sed_cmds"; then
12850 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12851 else
12852 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12853 fi
12854 ac_sed_frag=`expr $ac_sed_frag + 1`
12855 ac_beg=$ac_end
12856 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 12857 fi
c6b750e1
DJ
12858 done
12859 if test -z "$ac_sed_cmds"; then
12860 ac_sed_cmds=cat
852e5f18 12861 fi
c6b750e1 12862fi # test -n "$CONFIG_FILES"
cac3d6c4 12863
c6b750e1
DJ
12864_ACEOF
12865cat >>$CONFIG_STATUS <<\_ACEOF
12866for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 12867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
12868 case $ac_file in
12869 - | *:- | *:-:* ) # input from stdin
12870 cat >$tmp/stdin
12871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12875 * ) ac_file_in=$ac_file.in ;;
a0da8069 12876 esac
252b5132 12877
c6b750e1
DJ
12878 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12879 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12880$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881 X"$ac_file" : 'X\(//\)[^/]' \| \
12882 X"$ac_file" : 'X\(//\)$' \| \
12883 X"$ac_file" : 'X\(/\)' \| \
12884 . : '\(.\)' 2>/dev/null ||
12885echo X"$ac_file" |
12886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12888 /^X\(\/\/\)$/{ s//\1/; q; }
12889 /^X\(\/\).*/{ s//\1/; q; }
12890 s/.*/./; q'`
12891 { if $as_mkdir_p; then
12892 mkdir -p "$ac_dir"
cac3d6c4 12893 else
c6b750e1
DJ
12894 as_dir="$ac_dir"
12895 as_dirs=
12896 while test ! -d "$as_dir"; do
12897 as_dirs="$as_dir $as_dirs"
12898 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12899$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12900 X"$as_dir" : 'X\(//\)[^/]' \| \
12901 X"$as_dir" : 'X\(//\)$' \| \
12902 X"$as_dir" : 'X\(/\)' \| \
12903 . : '\(.\)' 2>/dev/null ||
12904echo X"$as_dir" |
12905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12907 /^X\(\/\/\)$/{ s//\1/; q; }
12908 /^X\(\/\).*/{ s//\1/; q; }
12909 s/.*/./; q'`
12910 done
12911 test ! -n "$as_dirs" || mkdir $as_dirs
12912 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12913echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12914 { (exit 1); exit 1; }; }; }
12915
12916 ac_builddir=.
252b5132 12917
c6b750e1
DJ
12918if test "$ac_dir" != .; then
12919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12920 # A "../" for each directory in $ac_dir_suffix.
12921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12922else
12923 ac_dir_suffix= ac_top_builddir=
12924fi
12925
12926case $srcdir in
12927 .) # No --srcdir option. We are building in place.
12928 ac_srcdir=.
12929 if test -z "$ac_top_builddir"; then
12930 ac_top_srcdir=.
12931 else
12932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12933 fi ;;
12934 [\\/]* | ?:[\\/]* ) # Absolute path.
12935 ac_srcdir=$srcdir$ac_dir_suffix;
12936 ac_top_srcdir=$srcdir ;;
a0da8069 12937 *) # Relative path.
c6b750e1
DJ
12938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12940esac
252b5132 12941
c6b750e1
DJ
12942# Do not use `cd foo && pwd` to compute absolute paths, because
12943# the directories may not exist.
12944case `pwd` in
12945.) ac_abs_builddir="$ac_dir";;
12946*)
12947 case "$ac_dir" in
12948 .) ac_abs_builddir=`pwd`;;
12949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12951 esac;;
12952esac
12953case $ac_abs_builddir in
12954.) ac_abs_top_builddir=${ac_top_builddir}.;;
12955*)
12956 case ${ac_top_builddir}. in
12957 .) ac_abs_top_builddir=$ac_abs_builddir;;
12958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12960 esac;;
12961esac
12962case $ac_abs_builddir in
12963.) ac_abs_srcdir=$ac_srcdir;;
12964*)
12965 case $ac_srcdir in
12966 .) ac_abs_srcdir=$ac_abs_builddir;;
12967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12969 esac;;
12970esac
12971case $ac_abs_builddir in
12972.) ac_abs_top_srcdir=$ac_top_srcdir;;
12973*)
12974 case $ac_top_srcdir in
12975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12978 esac;;
12979esac
252b5132 12980
c6b750e1
DJ
12981
12982 case $INSTALL in
12983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12984 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 12985 esac
252b5132 12986
c6b750e1
DJ
12987 if test x"$ac_file" != x-; then
12988 { echo "$as_me:$LINENO: creating $ac_file" >&5
12989echo "$as_me: creating $ac_file" >&6;}
12990 rm -f "$ac_file"
12991 fi
12992 # Let's still pretend it is `configure' which instantiates (i.e., don't
12993 # use $as_me), people would be surprised to read:
12994 # /* config.h. Generated by config.status. */
12995 if test x"$ac_file" = x-; then
12996 configure_input=
12997 else
12998 configure_input="$ac_file. "
12999 fi
13000 configure_input=$configure_input"Generated from `echo $ac_file_in |
13001 sed 's,.*/,,'` by configure."
13002
13003 # First look for the input files in the build tree, otherwise in the
13004 # src tree.
13005 ac_file_inputs=`IFS=:
13006 for f in $ac_file_in; do
13007 case $f in
13008 -) echo $tmp/stdin ;;
13009 [\\/$]*)
13010 # Absolute (can't be DOS-style, as IFS=:)
13011 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13012echo "$as_me: error: cannot find input file: $f" >&2;}
13013 { (exit 1); exit 1; }; }
13014 echo "$f";;
13015 *) # Relative
13016 if test -f "$f"; then
13017 # Build tree
13018 echo "$f"
13019 elif test -f "$srcdir/$f"; then
13020 # Source tree
13021 echo "$srcdir/$f"
13022 else
13023 # /dev/null tree
13024 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13025echo "$as_me: error: cannot find input file: $f" >&2;}
13026 { (exit 1); exit 1; }; }
13027 fi;;
13028 esac
13029 done` || { (exit 1); exit 1; }
13030_ACEOF
13031cat >>$CONFIG_STATUS <<_ACEOF
13032 sed "$ac_vpsub
13033$extrasub
13034_ACEOF
13035cat >>$CONFIG_STATUS <<\_ACEOF
13036:t
13037/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13038s,@configure_input@,$configure_input,;t t
13039s,@srcdir@,$ac_srcdir,;t t
13040s,@abs_srcdir@,$ac_abs_srcdir,;t t
13041s,@top_srcdir@,$ac_top_srcdir,;t t
13042s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13043s,@builddir@,$ac_builddir,;t t
13044s,@abs_builddir@,$ac_abs_builddir,;t t
13045s,@top_builddir@,$ac_top_builddir,;t t
13046s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13047s,@INSTALL@,$ac_INSTALL,;t t
13048" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13049 rm -f $tmp/stdin
13050 if test x"$ac_file" != x-; then
13051 mv $tmp/out $ac_file
13052 else
13053 cat $tmp/out
13054 rm -f $tmp/out
13055 fi
c148b4cb 13056
c6b750e1
DJ
13057done
13058_ACEOF
c148b4cb 13059
c6b750e1 13060cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 13061
c6b750e1
DJ
13062{ (exit 0); exit 0; }
13063_ACEOF
c148b4cb 13064chmod +x $CONFIG_STATUS
c6b750e1
DJ
13065ac_clean_files=$ac_clean_files_save
13066
13067
13068# configure is writing to config.log, and then calls config.status.
13069# config.status does its own redirection, appending to config.log.
13070# Unfortunately, on DOS this fails, as config.log is still kept open
13071# by configure, so config.status won't be able to write to it; its
13072# output is simply discarded. So we exec the FD to /dev/null,
13073# effectively closing config.log, so it can be properly (re)opened and
13074# appended to by config.status. When coming back to configure, we
13075# need to make the FD available again.
13076if test "$no_create" != yes; then
13077 ac_cs_success=:
13078 ac_config_status_args=
13079 test "$silent" = yes &&
13080 ac_config_status_args="$ac_config_status_args --quiet"
13081 exec 5>/dev/null
13082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13083 exec 5>>config.log
13084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13085 # would make configure fail if this is the last instruction.
13086 $ac_cs_success || { (exit 1); exit 1; }
13087fi
c148b4cb 13088
This page took 1.07828 seconds and 4 git commands to generate.