]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
printers.py (lookup_function): Remove extra ';'.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
2aeb72e9 3# Generated by GNU Autoconf 2.59.
671aa708 4#
2aeb72e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
2aeb72e9 12# Be Bourne compatible
1c710c3c
DJ
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+"$@"}'='"$@"'
2aeb72e9
DD
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
1c710c3c 21fi
2aeb72e9 22DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
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.
2aeb72e9 33$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
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
2aeb72e9 47 $as_unset $as_var
1c710c3c
DJ
48 fi
49done
50
51# Required to use basename.
2aeb72e9 52if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
53 as_expr=expr
54else
55 as_expr=false
56fi
57
2aeb72e9 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
2aeb72e9 66as_me=`$as_basename "$0" ||
1c710c3c
DJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
1c710c3c 71echo X/"$0" |
2aeb72e9
DD
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
1c710c3c 76
1c710c3c 77
2aeb72e9
DD
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
11a67599 85
2aeb72e9
DD
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
11a67599
ZW
97fi
98
11a67599 99
2aeb72e9
DD
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
11a67599 116
2aeb72e9
DD
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 '')
1c710c3c
DJ
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=.
2aeb72e9
DD
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
1c710c3c 137 /*)
2aeb72e9 138 if ("$as_dir/$as_base" -c '
11a67599
ZW
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
2aeb72e9 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11a67599 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
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
1c710c3c
DJ
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
2aeb72e9
DD
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.
1c710c3c 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
1c710c3c
DJ
165 sed '
166 N
2aeb72e9
DD
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 170 t loop
2aeb72e9
DD
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
1c710c3c 173 ' >$as_me.lineno &&
2aeb72e9 174 chmod +x $as_me.lineno ||
1c710c3c
DJ
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
2aeb72e9
DD
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
1c710c3c
DJ
182 # Exit status is that of the last command.
183 exit
184}
185
186
2aeb72e9
DD
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= ;;
1c710c3c
DJ
192esac
193
2aeb72e9 194if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
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
2aeb72e9
DD
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
1c710c3c 207 as_ln_s='cp -p'
2aeb72e9
DD
208 else
209 as_ln_s='ln -s'
210 fi
1c710c3c
DJ
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
2aeb72e9 216rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
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
2aeb72e9 225as_executable_p="test -f"
0b0dc272 226
1c710c3c
DJ
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
2aeb72e9
DD
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
1c710c3c
DJ
242
243
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
2aeb72e9
DD
249exec 6>&1
250
1c710c3c
DJ
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
2aeb72e9
DD
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
1c710c3c
DJ
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
acd26225 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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 extra_mpfr_configure_flags extra_mpc_gmp_configure_flags extra_mpc_mpfr_configure_flags ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
18c04407 277ac_pwd=`pwd`
671aa708
NN
278
279# Initialize some variables set by options.
1c710c3c
DJ
280ac_init_help=
281ac_init_version=false
671aa708
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
1c710c3c 284cache_file=/dev/null
671aa708 285exec_prefix=NONE
671aa708 286no_create=
671aa708
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
671aa708
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
1c710c3c
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
2aeb72e9 307datadir='${prefix}/share'
671aa708
NN
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
2aeb72e9 311libdir='${exec_prefix}/lib'
671aa708
NN
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
2aeb72e9
DD
314infodir='${prefix}/info'
315mandir='${prefix}/man'
79c06341 316
671aa708
NN
317ac_prev=
318for ac_option
319do
671aa708
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
2aeb72e9 322 eval "$ac_prev=\$ac_option"
671aa708
NN
323 ac_prev=
324 continue
325 fi
79c06341 326
2aeb72e9 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
2aeb72e9 331 case $ac_option in
671aa708
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 336 bindir=$ac_optarg ;;
671aa708
NN
337
338 -build | --build | --buil | --bui | --bu)
1c710c3c 339 ac_prev=build_alias ;;
671aa708 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 341 build_alias=$ac_optarg ;;
671aa708
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
671aa708 352
2aeb72e9 353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 354 ac_prev=datadir ;;
2aeb72e9
DD
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
1c710c3c 357 datadir=$ac_optarg ;;
671aa708
NN
358
359 -disable-* | --disable-*)
1c710c3c 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 361 # Reject names that are not valid shell variable names.
2aeb72e9 362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
2aeb72e9
DD
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
671aa708
NN
367
368 -enable-* | --enable-*)
1c710c3c 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 370 # Reject names that are not valid shell variable names.
2aeb72e9 371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
2aeb72e9
DD
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
1c710c3c 388 exec_prefix=$ac_optarg ;;
671aa708
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
1c710c3c
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
671aa708
NN
400
401 -host | --host | --hos | --ho)
1c710c3c 402 ac_prev=host_alias ;;
671aa708 403 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 404 host_alias=$ac_optarg ;;
671aa708
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 411 includedir=$ac_optarg ;;
671aa708
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 416 infodir=$ac_optarg ;;
671aa708
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 421 libdir=$ac_optarg ;;
671aa708
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
1c710c3c 428 libexecdir=$ac_optarg ;;
671aa708
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 437 localstatedir=$ac_optarg ;;
671aa708
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 442 mandir=$ac_optarg ;;
671aa708
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 449 | --no-cr | --no-c | -n)
671aa708
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 463 oldincludedir=$ac_optarg ;;
671aa708
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 468 prefix=$ac_optarg ;;
671aa708
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 475 program_prefix=$ac_optarg ;;
671aa708
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 482 program_suffix=$ac_optarg ;;
671aa708
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 499 program_transform_name=$ac_optarg ;;
671aa708
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
1c710c3c 509 sbindir=$ac_optarg ;;
671aa708
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
1c710c3c 520 sharedstatedir=$ac_optarg ;;
671aa708
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
1c710c3c 525 site=$ac_optarg ;;
671aa708
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 530 srcdir=$ac_optarg ;;
671aa708
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 537 sysconfdir=$ac_optarg ;;
671aa708
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 540 ac_prev=target_alias ;;
671aa708 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 542 target_alias=$ac_optarg ;;
671aa708
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
1c710c3c
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
671aa708
NN
549
550 -with-* | --with-*)
1c710c3c 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 552 # Reject names that are not valid shell variable names.
2aeb72e9 553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
2aeb72e9
DD
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
562
563 -without-* | --without-*)
1c710c3c 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 565 # Reject names that are not valid shell variable names.
2aeb72e9 566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
2aeb72e9
DD
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
671aa708
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 581 x_includes=$ac_optarg ;;
671aa708
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 588 x_libraries=$ac_optarg ;;
671aa708 589
1c710c3c
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
671aa708
NN
593 ;;
594
1c710c3c
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
2aeb72e9
DD
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
603 export $ac_envvar ;;
604
671aa708 605 *)
1c710c3c
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
1c710c3c
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
af71363e 620fi
af71363e 621
2aeb72e9
DD
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
671aa708 624do
2aeb72e9 625 eval ac_val=$`echo $ac_var`
1c710c3c 626 case $ac_val in
2aeb72e9
DD
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
671aa708
NN
642 esac
643done
644
1c710c3c
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
0b0dc272 651
1c710c3c
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
671aa708 667
671aa708
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
2aeb72e9
DD
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
1c710c3c 679echo X"$0" |
2aeb72e9
DD
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
671aa708 685 srcdir=$ac_confdir
2aeb72e9 686 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
2aeb72e9
DD
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 698 { (exit 1); exit 1; }; }
2aeb72e9 699 fi
1c710c3c 700fi
2aeb72e9
DD
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 703 { (exit 1); exit 1; }; }
2aeb72e9
DD
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
ac9e6043
RW
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
2aeb72e9
DD
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
2aeb72e9
DD
883_ACEOF
884
885 cat <<_ACEOF
1c710c3c
DJ
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 935 --enable-gold use gold instead of ld
30b74385
RW
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
d789184e
SP
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
30b74385 940 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 941 stage1. Mostly useful for compiler development.
30b74385
RW
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
1c710c3c 947 sub-packages for the host, target or build
30b74385 948 machine, or all sub-packages
1c710c3c
DJ
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
30b74385
RW
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
1c710c3c
DJ
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
959 --with-mpc=PATH specify prefix directory for installed MPC package.
960 Equivalent to --with-mpc-include=PATH/include
961 plus --with-mpc-lib=PATH/lib
962 --with-mpc-include=PATH
963 specify directory for installed MPC include files
964 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
965 --with-mpfr-dir=PATH this option has been REMOVED
966 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
967 Equivalent to --with-mpfr-include=PATH/include
968 plus --with-mpfr-lib=PATH/lib
969 --with-mpfr-include=PATH
30b74385
RW
970 specify directory for installed MPFR include files
971 --with-mpfr-lib=PATH specify directory for the installed MPFR library
972 --with-gmp-dir=PATH this option has been REMOVED
973 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
974 Equivalent to --with-gmp-include=PATH/include
975 plus --with-gmp-lib=PATH/lib
30b74385
RW
976 --with-gmp-include=PATH specify directory for installed GMP include files
977 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
978 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
979 when linking with PPL
f8bf9252
SP
980 --with-ppl=PATH Specify prefix directory for the installed PPL package
981 Equivalent to --with-ppl-include=PATH/include
982 plus --with-ppl-lib=PATH/lib
983 --with-ppl-include=PATH Specify directory for installed PPL include files
984 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 985 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
986 Equivalent to --with-cloog-include=PATH/include
987 plus --with-cloog-lib=PATH/lib
d789184e
SP
988 --with-cloog-include=PATH Specify directory for installed CLooG include files
989 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 990 --with-build-sysroot=SYSROOT
1c710c3c 991 use sysroot as the system root during the build
c8aea42c
PB
992 --with-debug-prefix-map='A=B C=D ...'
993 map A to B, C to D ... in debug information
30b74385 994 --with-build-time-tools=PATH
1c710c3c 995 use given path to find target tools during the build
30b74385
RW
996 --with-datarootdir use datarootdir as the data root directory.
997 --with-docdir install documentation in this directory.
998 --with-pdfdir install pdf in this directory.
999 --with-htmldir install html in this directory.
1c710c3c
DJ
1000
1001Some influential environment variables:
1002 CC C compiler command
1003 CFLAGS C compiler flags
1004 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1005 nonstandard directory <lib dir>
2aeb72e9
DD
1006 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1007 headers in a nonstandard directory <include dir>
c3a86da9
DJ
1008 CXX C++ compiler command
1009 CXXFLAGS C++ compiler flags
278a7a38
AO
1010 AR AR for the host
1011 AS AS for the host
1012 DLLTOOL DLLTOOL for the host
1013 LD LD for the host
1014 LIPO LIPO for the host
1015 NM NM for the host
1016 RANLIB RANLIB for the host
1017 STRIP STRIP for the host
1018 WINDRES WINDRES for the host
901119ae 1019 WINDMC WINDMC for the host
278a7a38
AO
1020 OBJCOPY OBJCOPY for the host
1021 OBJDUMP OBJDUMP for the host
1022 CC_FOR_TARGET
1023 CC for the target
1024 CXX_FOR_TARGET
1025 CXX for the target
1026 GCC_FOR_TARGET
1027 GCC for the target
1028 GCJ_FOR_TARGET
1029 GCJ for the target
1030 GFORTRAN_FOR_TARGET
1031 GFORTRAN for the target
1032 AR_FOR_TARGET
1033 AR for the target
1034 AS_FOR_TARGET
1035 AS for the target
1036 DLLTOOL_FOR_TARGET
1037 DLLTOOL for the target
1038 LD_FOR_TARGET
1039 LD for the target
1040 LIPO_FOR_TARGET
1041 LIPO for the target
1042 NM_FOR_TARGET
1043 NM for the target
1044 OBJDUMP_FOR_TARGET
1045 OBJDUMP for the target
1046 RANLIB_FOR_TARGET
1047 RANLIB for the target
1048 STRIP_FOR_TARGET
1049 STRIP for the target
1050 WINDRES_FOR_TARGET
1051 WINDRES for the target
901119ae
KT
1052 WINDMC_FOR_TARGET
1053 WINDMC for the target
1c710c3c
DJ
1054
1055Use these variables to override the choices made by `configure' or to help
1056it to find libraries and programs with nonstandard names/locations.
1057
1058_ACEOF
1059fi
1060
1061if test "$ac_init_help" = "recursive"; then
1062 # If there are subdirs, report their specific --help.
2aeb72e9 1063 ac_popdir=`pwd`
1c710c3c 1064 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1065 test -d $ac_dir || continue
1c710c3c
DJ
1066 ac_builddir=.
1067
2aeb72e9 1068if test "$ac_dir" != .; then
1c710c3c 1069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1070 # A "../" for each directory in $ac_dir_suffix.
1071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1072else
1073 ac_dir_suffix= ac_top_builddir=
1074fi
1c710c3c
DJ
1075
1076case $srcdir in
2aeb72e9 1077 .) # No --srcdir option. We are building in place.
1c710c3c 1078 ac_srcdir=.
2aeb72e9
DD
1079 if test -z "$ac_top_builddir"; then
1080 ac_top_srcdir=.
1081 else
1082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1083 fi ;;
1084 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1085 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1086 ac_top_srcdir=$srcdir ;;
1087 *) # Relative path.
1088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1090esac
1091
1092# Do not use `cd foo && pwd` to compute absolute paths, because
1093# the directories may not exist.
1094case `pwd` in
1095.) ac_abs_builddir="$ac_dir";;
1096*)
1097 case "$ac_dir" in
1098 .) ac_abs_builddir=`pwd`;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1100 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_builddir=${ac_top_builddir}.;;
1105*)
1106 case ${ac_top_builddir}. in
1107 .) ac_abs_top_builddir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1109 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1110 esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_srcdir=$ac_srcdir;;
1114*)
1115 case $ac_srcdir in
1116 .) ac_abs_srcdir=$ac_abs_builddir;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1118 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1119 esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_top_srcdir=$ac_top_srcdir;;
1123*)
1124 case $ac_top_srcdir in
1125 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1127 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1128 esac;;
1c710c3c 1129esac
2aeb72e9
DD
1130
1131 cd $ac_dir
1132 # Check for guested configure; otherwise get Cygnus style configure.
1133 if test -f $ac_srcdir/configure.gnu; then
1134 echo
1135 $SHELL $ac_srcdir/configure.gnu --help=recursive
1136 elif test -f $ac_srcdir/configure; then
1137 echo
1138 $SHELL $ac_srcdir/configure --help=recursive
1139 elif test -f $ac_srcdir/configure.ac ||
1140 test -f $ac_srcdir/configure.in; then
1141 echo
1142 $ac_configure --help
1c710c3c
DJ
1143 else
1144 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1145 fi
1146 cd $ac_popdir
1c710c3c
DJ
1147 done
1148fi
1149
2aeb72e9 1150test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1151if $ac_init_version; then
1152 cat <<\_ACEOF
1153
2aeb72e9 1154Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1155This configure script is free software; the Free Software Foundation
1156gives unlimited permission to copy, distribute and modify it.
1157_ACEOF
2aeb72e9 1158 exit 0
0b0dc272 1159fi
2aeb72e9
DD
1160exec 5>config.log
1161cat >&5 <<_ACEOF
1c710c3c
DJ
1162This file contains any messages produced by compilers while
1163running configure, to aid debugging if configure makes a mistake.
1164
1165It was created by $as_me, which was
2aeb72e9 1166generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1167
1168 $ $0 $@
1169
1170_ACEOF
1171{
1172cat <<_ASUNAME
1173## --------- ##
1174## Platform. ##
1175## --------- ##
1176
1177hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1178uname -m = `(uname -m) 2>/dev/null || echo unknown`
1179uname -r = `(uname -r) 2>/dev/null || echo unknown`
1180uname -s = `(uname -s) 2>/dev/null || echo unknown`
1181uname -v = `(uname -v) 2>/dev/null || echo unknown`
1182
1183/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1184/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1185
1186/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1187/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1188/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1189hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1190/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1191/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1192/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1193
1194_ASUNAME
1195
1196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1197for as_dir in $PATH
1198do
1199 IFS=$as_save_IFS
1200 test -z "$as_dir" && as_dir=.
1201 echo "PATH: $as_dir"
1202done
1203
1204} >&5
1205
1206cat >&5 <<_ACEOF
1207
1208
1209## ----------- ##
1210## Core tests. ##
1211## ----------- ##
1212
1213_ACEOF
1214
1215
1216# Keep a trace of the command line.
1217# Strip out --no-create and --no-recursion so they do not pile up.
1218# Strip out --silent because we don't want to record it for future runs.
1219# Also quote any args containing shell meta-characters.
1220# Make two passes to allow for proper duplicate-argument suppression.
1221ac_configure_args=
1222ac_configure_args0=
1223ac_configure_args1=
2aeb72e9 1224ac_sep=
1c710c3c
DJ
1225ac_must_keep_next=false
1226for ac_pass in 1 2
1227do
1228 for ac_arg
1229 do
1230 case $ac_arg in
1231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 continue ;;
2aeb72e9 1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1236 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 esac
1238 case $ac_pass in
1239 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1240 2)
1241 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1242 if test $ac_must_keep_next = true; then
1243 ac_must_keep_next=false # Got value, back to normal.
1244 else
1245 case $ac_arg in
1246 *=* | --config-cache | -C | -disable-* | --disable-* \
1247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1249 | -with-* | --with-* | -without-* | --without-* | --x)
1250 case "$ac_configure_args0 " in
1251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1252 esac
1253 ;;
1254 -* ) ac_must_keep_next=true ;;
1255 esac
1256 fi
2aeb72e9
DD
1257 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1258 # Get rid of the leading space.
1259 ac_sep=" "
1c710c3c
DJ
1260 ;;
1261 esac
1262 done
1263done
1264$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1265$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1266
1267# When interrupted or exit'd, cleanup temporary files, and complete
1268# config.log. We remove comments because anyway the quotes in there
1269# would cause problems or look ugly.
2aeb72e9
DD
1270# WARNING: Be sure not to use single quotes in there, as some shells,
1271# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1272trap 'exit_status=$?
1273 # Save into config.log some information that might help in debugging.
1274 {
1275 echo
1276
1277 cat <<\_ASBOX
1278## ---------------- ##
1279## Cache variables. ##
1280## ---------------- ##
1281_ASBOX
1282 echo
1283 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1284{
1c710c3c 1285 (set) 2>&1 |
2aeb72e9
DD
1286 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1287 *ac_space=\ *)
1c710c3c 1288 sed -n \
2aeb72e9
DD
1289 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1291 ;;
1c710c3c 1292 *)
2aeb72e9
DD
1293 sed -n \
1294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1295 ;;
2aeb72e9
DD
1296 esac;
1297}
1c710c3c
DJ
1298 echo
1299
1300 cat <<\_ASBOX
1301## ----------------- ##
1302## Output variables. ##
1303## ----------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_vars
1307 do
2aeb72e9
DD
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1310 done | sort
1311 echo
1312
1313 if test -n "$ac_subst_files"; then
1314 cat <<\_ASBOX
2aeb72e9
DD
1315## ------------- ##
1316## Output files. ##
1317## ------------- ##
1c710c3c
DJ
1318_ASBOX
1319 echo
1320 for ac_var in $ac_subst_files
1321 do
2aeb72e9
DD
1322 eval ac_val=$`echo $ac_var`
1323 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1324 done | sort
1325 echo
1326 fi
1327
1328 if test -s confdefs.h; then
1329 cat <<\_ASBOX
1330## ----------- ##
1331## confdefs.h. ##
1332## ----------- ##
1333_ASBOX
1334 echo
2aeb72e9 1335 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1336 echo
1337 fi
1338 test "$ac_signal" != 0 &&
1339 echo "$as_me: caught signal $ac_signal"
1340 echo "$as_me: exit $exit_status"
1341 } >&5
2aeb72e9
DD
1342 rm -f core *.core &&
1343 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1344 exit $exit_status
2aeb72e9 1345 ' 0
1c710c3c
DJ
1346for ac_signal in 1 2 13 15; do
1347 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1348done
1349ac_signal=0
1350
1351# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1352rm -rf conftest* confdefs.h
1353# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1354echo >confdefs.h
1c710c3c
DJ
1355
1356# Predefined preprocessor variables.
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_NAME "$PACKAGE_NAME"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_VERSION "$PACKAGE_VERSION"
1370_ACEOF
0b0dc272 1371
1c710c3c
DJ
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_STRING "$PACKAGE_STRING"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1380_ACEOF
1381
1382
1383# Let the site file select an alternate cache file if it wants to.
671aa708 1384# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1385if test -z "$CONFIG_SITE"; then
1386 if test "x$prefix" != xNONE; then
1387 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1388 else
1389 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1390 fi
671aa708 1391fi
2aeb72e9 1392for ac_site_file in $CONFIG_SITE; do
671aa708 1393 if test -r "$ac_site_file"; then
1c710c3c
DJ
1394 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1395echo "$as_me: loading site script $ac_site_file" >&6;}
1396 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1397 . "$ac_site_file"
1398 fi
1399done
1400
1401if test -r "$cache_file"; then
1c710c3c
DJ
1402 # Some versions of bash will fail to source /dev/null (special
1403 # files actually), so we avoid doing that.
1404 if test -f "$cache_file"; then
1405 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1406echo "$as_me: loading cache $cache_file" >&6;}
1407 case $cache_file in
2aeb72e9
DD
1408 [\\/]* | ?:[\\/]* ) . $cache_file;;
1409 *) . ./$cache_file;;
1c710c3c
DJ
1410 esac
1411 fi
671aa708 1412else
1c710c3c
DJ
1413 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1414echo "$as_me: creating cache $cache_file" >&6;}
1415 >$cache_file
1416fi
1417
1418# Check that the precious variables saved in the cache have kept the same
1419# value.
1420ac_cache_corrupted=false
2aeb72e9
DD
1421for ac_var in `(set) 2>&1 |
1422 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1424 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1425 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1426 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1427 case $ac_old_set,$ac_new_set in
1428 set,)
1429 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1430echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1431 ac_cache_corrupted=: ;;
1432 ,set)
1433 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1434echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1435 ac_cache_corrupted=: ;;
1436 ,);;
1437 *)
1438 if test "x$ac_old_val" != "x$ac_new_val"; then
7142fb32
PB
1439 # differences in whitespace do not lead to failure.
1440 ac_old_val_w=`echo x $ac_old_val`
1441 ac_new_val_w=`echo x $ac_new_val`
1442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1443 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1c710c3c 1444echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
7142fb32
PB
1445 ac_cache_corrupted=:
1446 else
1447 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1448echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1449 eval $ac_var=\$ac_old_val
1450 fi
1451 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1452echo "$as_me: former value: \`$ac_old_val'" >&2;}
1453 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1454echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
1455 fi;;
1456 esac
1457 # Pass precious variables to config.status.
1458 if test "$ac_new_set" = set; then
1459 case $ac_new_val in
2aeb72e9
DD
1460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1461 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1462 *) ac_arg=$ac_var=$ac_new_val ;;
1463 esac
1464 case " $ac_configure_args " in
1465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1466 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1467 esac
1468 fi
1469done
1470if $ac_cache_corrupted; then
18c04407
RW
1471 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1472echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
1473 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477 { (exit 1); exit 1; }; }
671aa708
NN
1478fi
1479
2aeb72e9
DD
1480ac_ext=c
1481ac_cpp='$CPP $CPPFLAGS'
1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1c710c3c
DJ
1486
1487
1488
1489
671aa708
NN
1490
1491
d02c69be 1492
1c710c3c
DJ
1493
1494
1495
1496
1497
1498
1499
1500
1501
18c04407
RW
1502
1503
1504
1c710c3c
DJ
1505
1506
1507
ad33ff57
RW
1508
1509progname=$0
1510# if PWD already has a value, it is probably wrong.
1511if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1512
1513# Export original configure arguments for use by sub-configures.
1514# Quote arguments with shell meta charatcers.
1515TOPLEVEL_CONFIGURE_ARGUMENTS=
1516set -- "$progname" "$@"
1517for ac_arg
1518do
1519 case "$ac_arg" in
1520 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1522 # if the argument is of the form -foo=baz, quote the baz part only
1523 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1524 *) ;;
1525 esac
1526 # Add the quoted argument to the list.
1527 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1528done
1529if test "$silent" = yes; then
1530 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1531fi
1532# Remove the initial space we just introduced and, as these will be
1533# expanded by make, quote '$'.
1534TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1535
1c710c3c
DJ
1536
1537# Find the build, host, and target systems.
671aa708 1538ac_aux_dir=
2aeb72e9
DD
1539for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1540 if test -f $ac_dir/install-sh; then
671aa708
NN
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
2aeb72e9 1544 elif test -f $ac_dir/install.sh; then
671aa708
NN
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
2aeb72e9 1548 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
671aa708
NN
1552 fi
1553done
1554if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1556echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1557 { (exit 1); exit 1; }; }
671aa708 1558fi
2aeb72e9
DD
1559ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1562
1c710c3c 1563# Make sure we can run config.sub.
2aeb72e9
DD
1564$ac_config_sub sun4 >/dev/null 2>&1 ||
1565 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1566echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1567 { (exit 1); exit 1; }; }
1568
2aeb72e9
DD
1569echo "$as_me:$LINENO: checking build system type" >&5
1570echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1571if test "${ac_cv_build+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
2aeb72e9
DD
1574 ac_cv_build_alias=$build_alias
1575test -z "$ac_cv_build_alias" &&
1576 ac_cv_build_alias=`$ac_config_guess`
1577test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1579echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1580 { (exit 1); exit 1; }; }
2aeb72e9
DD
1581ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1584 { (exit 1); exit 1; }; }
1585
1586fi
2aeb72e9
DD
1587echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1588echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1589build=$ac_cv_build
2aeb72e9
DD
1590build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1593
671aa708 1594
1c710c3c
DJ
1595 case ${build_alias} in
1596 "") build_noncanonical=${build} ;;
1597 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1598esac
1599
1600
af71363e 1601
1c710c3c
DJ
1602 case ${host_alias} in
1603 "") host_noncanonical=${build_noncanonical} ;;
1604 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1605esac
1606
af71363e 1607
1c710c3c
DJ
1608
1609 case ${target_alias} in
1610 "") target_noncanonical=${host_noncanonical} ;;
1611 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1612esac
1613
af71363e 1614
1c710c3c
DJ
1615
1616
1617test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1618 test "$program_prefix$program_suffix$program_transform_name" = \
1619 NONENONEs,x,x, &&
1c710c3c 1620 program_transform_name=s,y,y,
af71363e 1621
2aeb72e9
DD
1622echo "$as_me:$LINENO: checking host system type" >&5
1623echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1624if test "${ac_cv_host+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1626else
2aeb72e9
DD
1627 ac_cv_host_alias=$host_alias
1628test -z "$ac_cv_host_alias" &&
1629 ac_cv_host_alias=$ac_cv_build_alias
1630ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1632echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1633 { (exit 1); exit 1; }; }
1634
af71363e 1635fi
2aeb72e9
DD
1636echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1637echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1638host=$ac_cv_host
2aeb72e9
DD
1639host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642
1643
1644echo "$as_me:$LINENO: checking target system type" >&5
1645echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1646if test "${ac_cv_target+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648else
2aeb72e9
DD
1649 ac_cv_target_alias=$target_alias
1650test "x$ac_cv_target_alias" = "x" &&
1651 ac_cv_target_alias=$ac_cv_host_alias
1652ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1654echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1655 { (exit 1); exit 1; }; }
1656
1657fi
2aeb72e9
DD
1658echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1659echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1660target=$ac_cv_target
2aeb72e9
DD
1661target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1664
1665
1666# The aliases save the names the user supplied, while $host etc.
1667# will get canonicalized.
1668test -n "$target_alias" &&
1669 test "$program_prefix$program_suffix$program_transform_name" = \
1670 NONENONEs,x,x, &&
1671 program_prefix=${target_alias}-
671aa708 1672test "$program_prefix" != NONE &&
2aeb72e9 1673 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1674# Use a double $ so make ignores it.
1675test "$program_suffix" != NONE &&
2aeb72e9 1676 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1677# Double any \ or $. echo might interpret backslashes.
1678# By default was `s,x,x', remove it if useless.
1679cat <<\_ACEOF >conftest.sed
1680s/[\\$]/&&/g;s/;s,x,x,$//
1681_ACEOF
1682program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1683rm conftest.sed
af71363e 1684
671aa708
NN
1685
1686
775956d0
NN
1687# Get 'install' or 'install-sh' and its variants.
1688# Find a good install program. We prefer a C program (faster),
1689# so one script is as good as another. But avoid the broken or
1690# incompatible versions:
1691# SysV /etc/install, /usr/sbin/install
1692# SunOS /usr/etc/install
1693# IRIX /sbin/install
1694# AIX /bin/install
1c710c3c 1695# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1696# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1697# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1698# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1699# OS/2's system install, which has a completely different semantic
775956d0 1700# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1701# Reject install programs that cannot install multiple files.
2aeb72e9
DD
1702echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1703echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1704if test -z "$INSTALL"; then
1c710c3c
DJ
1705if test "${ac_cv_path_install+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 # Account for people who put trailing slashes in PATH elements.
1714case $as_dir/ in
1715 ./ | .// | /cC/* | \
1716 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1717 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1718 /usr/ucb/* ) ;;
1719 *)
1720 # OSF1 and SCO ODT 3.0 have their own names for install.
1721 # Don't use installbsd from OSF since it installs stuff as root
1722 # by default.
1723 for ac_prog in ginstall scoinst install; do
1724 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1725 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1726 if test $ac_prog = install &&
1c710c3c 1727 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1728 # AIX install. It has an incompatible calling convention.
1729 :
1c710c3c
DJ
1730 elif test $ac_prog = install &&
1731 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # program-specific install script used by HP pwplus--don't use.
1733 :
775956d0 1734 else
38d24731
RW
1735 rm -rf conftest.one conftest.two conftest.dir
1736 echo one > conftest.one
1737 echo two > conftest.two
1738 mkdir conftest.dir
1739 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1740 test -s conftest.one && test -s conftest.two &&
1741 test -s conftest.dir/conftest.one &&
1742 test -s conftest.dir/conftest.two
1743 then
1744 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1745 break 3
1746 fi
775956d0
NN
1747 fi
1748 fi
1749 done
1c710c3c
DJ
1750 done
1751 ;;
1752esac
1753done
1754
38d24731 1755rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
1756
1757fi
1758 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1759 INSTALL=$ac_cv_path_install
775956d0 1760 else
38d24731
RW
1761 # As a last resort, use the slow shell script. Don't cache a
1762 # value for INSTALL within a source directory, because that will
775956d0 1763 # break other packages using the cache if that directory is
38d24731 1764 # removed, or if the value is a relative name.
1c710c3c 1765 INSTALL=$ac_install_sh
775956d0
NN
1766 fi
1767fi
2aeb72e9
DD
1768echo "$as_me:$LINENO: result: $INSTALL" >&5
1769echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1770
1771# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772# It thinks the first close brace ends the variable substitution.
1773test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1774
1c710c3c 1775test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1776
1777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778
2aeb72e9
DD
1779echo "$as_me:$LINENO: checking whether ln works" >&5
1780echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1781if test "${acx_cv_prog_LN+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1783else
1784 rm -f conftestdata_t
1785echo >conftestdata_f
1786if ln conftestdata_f conftestdata_t 2>/dev/null
1787then
1788 acx_cv_prog_LN=ln
1789else
1790 acx_cv_prog_LN=no
1791fi
1792rm -f conftestdata_f conftestdata_t
1793
1794fi
1795if test $acx_cv_prog_LN = no; then
1796 LN="cp"
2aeb72e9
DD
1797 echo "$as_me:$LINENO: result: no, using $LN" >&5
1798echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1799else
1800 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1801 echo "$as_me:$LINENO: result: yes" >&5
1802echo "${ECHO_T}yes" >&6
ad6717df
PB
1803fi
1804
2aeb72e9
DD
1805echo "$as_me:$LINENO: checking whether ln -s works" >&5
1806echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1807LN_S=$as_ln_s
1808if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1809 echo "$as_me:$LINENO: result: yes" >&5
1810echo "${ECHO_T}yes" >&6
fb0103e5 1811else
2aeb72e9
DD
1812 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1813echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1814fi
1815
775956d0 1816
79c06341 1817### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1818### If we are on Windows, search for the shell. This will permit people
1819### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1820### without also having to set CONFIG_SHELL. This code will work when
1821### using bash, which sets OSTYPE.
1822case "${OSTYPE}" in
1823*win32*)
671aa708
NN
1824 if test x${CONFIG_SHELL} = x ; then
1825 if test ! -f /bin/sh ; then
1826 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1827 CONFIG_SHELL=${SHELL}
1828 export CONFIG_SHELL
1829 else
1830 for prog in sh sh.exe bash bash.exe; do
1831 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1832 for dir in $PATH; do
1833 test -z "$dir" && dir=.
1834 if test -f $dir/$prog; then
1835 CONFIG_SHELL=$dir/$prog
1836 export CONFIG_SHELL
1837 break
1838 fi
1839 done
1840 IFS="$save_ifs"
1841 test -n "${CONFIG_SHELL}" && break
1842 done
1843 fi
1844 fi
1845 fi
1846 ;;
1847esac
1848
1849config_shell=${CONFIG_SHELL-/bin/sh}
1850
671aa708 1851moveifchange=${srcdir}/move-if-change
79c06341 1852
ee6a22df
L
1853srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1854
1855# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1856# a relative path.
1857if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1858 INSTALL="${srcpwd}/install-sh -c"
1859fi
1860
671aa708
NN
1861# Set srcdir to "." if that's what it is.
1862# This is important for multilib support.
1863pwd=`${PWDCMD-pwd}`
671aa708
NN
1864if test "${pwd}" = "${srcpwd}" ; then
1865 srcdir=.
79c06341
JL
1866fi
1867
671aa708 1868topsrcdir=$srcpwd
5d4a5ee6 1869
671aa708 1870extra_host_args=
afabd8e6 1871
671aa708
NN
1872### To add a new directory to the tree, first choose whether it is a target
1873### or a host dependent tool. Then put it into the appropriate list
1874### (library or tools, host or target), doing a dependency sort.
79c06341 1875
1c710c3c 1876# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1877# configdirs, or target_configdirs; see the serialization section below.
79c06341 1878
1c710c3c
DJ
1879# Dependency sorting is only needed when *configuration* must be done in
1880# a particular order. In all cases a dependency should be specified in
671aa708 1881# the Makefile, whether or not it's implicitly specified here.
79c06341 1882
671aa708
NN
1883# Double entries in build_configdirs, configdirs, or target_configdirs may
1884# cause circular dependencies and break everything horribly.
79c06341 1885
23f6b2f9
PB
1886# these library is used by various programs built for the build
1887# environment
1888#
1889build_libs="build-libiberty"
1890
1891# these tools are built for the build environment
71b5d516 1892build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1893
671aa708
NN
1894# these libraries are used by various programs built for the host environment
1895#
acd26225 1896host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
671aa708 1897
671aa708
NN
1898# these tools are built for the host environment
1899# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1900# know that we are building the simulator.
1901# binutils, gas and ld appear in that order because it makes sense to run
1902# "make check" in that particular order.
5afab7ad 1903# If --enable-gold is used, "gold" will replace "ld".
5395b47b 1904host_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"
671aa708
NN
1905
1906# libgcj represents the runtime libraries only used by gcj.
1907libgcj="target-libffi \
671aa708
NN
1908 target-zlib \
1909 target-qthreads \
1910 target-libjava"
1911
1912# these libraries are built for the target environment, and are built after
1913# the host libraries and the host tools (which may be a cross compiler)
1914#
291f172e
DJ
1915target_libraries="target-libgcc \
1916 target-libiberty \
671aa708
NN
1917 target-libgloss \
1918 target-newlib \
6d3b5aea 1919 target-libgomp \
cb543528 1920 target-libstdc++-v3 \
6de9cd9a 1921 target-libmudflap \
77008252 1922 target-libssp \
6de9cd9a 1923 target-libgfortran \
7cd0cf9c 1924 target-boehm-gc \
77d187bc 1925 ${libgcj} \
d9cdb878 1926 target-libobjc \
6d3b5aea 1927 target-libada"
671aa708 1928
4dbda6f0
NN
1929# these tools are built using the target libraries, and are intended to
1930# run only in the target environment
671aa708 1931#
4dbda6f0 1932# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1933# list belongs in this list. those programs are also very likely
1934# candidates for the "native_only" list which follows
1935#
97286f7f 1936target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1937
671aa708 1938################################################################################
79c06341 1939
671aa708
NN
1940## All tools belong in one of the four categories, and are assigned above
1941## We assign ${configdirs} this way to remove all embedded newlines. This
1942## is important because configure will choke if they ever get through.
1943## ${configdirs} is directories we build using the host tools.
1944## ${target_configdirs} is directories we build using the target tools.
671aa708 1945configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1946target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1947build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1948
ac9e6043
RW
1949
1950
671aa708 1951################################################################################
79c06341 1952
671aa708 1953srcname="gnu development package"
79c06341 1954
671aa708
NN
1955# This gets set non-empty for some net releases of packages.
1956appdirs=""
79c06341 1957
671aa708
NN
1958# Define is_cross_compiler to save on calls to 'test'.
1959is_cross_compiler=
1960if test x"${host}" = x"${target}" ; then
1961 is_cross_compiler=no
79c06341 1962else
671aa708 1963 is_cross_compiler=yes
1c710c3c 1964fi
79c06341 1965
b4acb5ef 1966# Find the build and target subdir names.
8b87bb96 1967
2e9e6f68
DJ
1968# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1969# have matching libraries, they should use host libraries: Makefile.tpl
1970# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1971# However, they still use the build modules, because the corresponding
1972# host modules (e.g. bison) are only built for the host when bootstrap
1973# finishes. So:
1974# - build_subdir is where we find build modules, and never changes.
1975# - build_libsubdir is where we find build libraries, and can be overridden.
1976
1977# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1978build_subdir="build-${build_noncanonical}"
1c710c3c 1979
2aeb72e9 1980# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1981if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1982 withval="$with_build_libsubdir"
1983 build_libsubdir="$withval"
2e9e6f68
DJ
1984else
1985 build_libsubdir="$build_subdir"
2aeb72e9 1986fi;
215c351a
PB
1987# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1988if ( test $srcdir = . && test -d gcc ) \
1989 || test -d $srcdir/../host-${host_noncanonical}; then
1990 host_subdir="host-${host_noncanonical}"
1991else
1992 host_subdir=.
1993fi
8b87bb96
NN
1994# No prefix.
1995target_subdir=${target_noncanonical}
1c710c3c 1996
79c06341 1997
671aa708
NN
1998# Skipdirs are removed silently.
1999skipdirs=
2000# Noconfigdirs are removed loudly.
2001noconfigdirs=""
79c06341 2002
671aa708
NN
2003use_gnu_ld=
2004# Make sure we don't let GNU ld be added if we didn't want it.
2005if test x$with_gnu_ld = xno ; then
2006 use_gnu_ld=no
5afab7ad 2007 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2008fi
2009
671aa708
NN
2010use_gnu_as=
2011# Make sure we don't let GNU as be added if we didn't want it.
2012if test x$with_gnu_as = xno ; then
2013 use_gnu_as=no
2014 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2015fi
2016
1c710c3c 2017# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2018# it's not even worth trying to configure, much less build, that tool.
79c06341 2019
671aa708
NN
2020case ${with_x} in
2021 yes | "") ;; # the default value for this tree is that X11 is available
2022 no)
b4f96efe 2023 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2024 # We won't be able to build gdbtk without X.
1c710c3c 2025 enable_gdbtk=no
671aa708
NN
2026 ;;
2027 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2028esac
79c06341 2029
671aa708 2030# Some tools are only suitable for building in a "native" situation.
1c710c3c 2031# Remove these if host!=target.
9e299237 2032native_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"
79c06341 2033
671aa708
NN
2034# Similarly, some are only suitable for cross toolchains.
2035# Remove these if host=target.
2036cross_only="target-libgloss target-newlib target-opcodes"
2037
2038case $is_cross_compiler in
2039 no) skipdirs="${skipdirs} ${cross_only}" ;;
2040 yes) skipdirs="${skipdirs} ${native_only}" ;;
2041esac
79c06341 2042
671aa708
NN
2043# If both --with-headers and --with-libs are specified, default to
2044# --without-newlib.
ee6a22df
L
2045if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2046 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2047 if test x"${with_newlib}" = x ; then
2048 with_newlib=no
2049 fi
79c06341
JL
2050fi
2051
671aa708
NN
2052# Recognize --with-newlib/--without-newlib.
2053case ${with_newlib} in
2054 no) skipdirs="${skipdirs} target-newlib" ;;
2055 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2056esac
79c06341 2057
5afab7ad
ILT
2058# Handle --enable-gold.
2059
2060# Check whether --enable-gold or --disable-gold was given.
2061if test "${enable_gold+set}" = set; then
2062 enableval="$enable_gold"
2063 ENABLE_GOLD=$enableval
2064else
2065 ENABLE_GOLD=no
2066fi;
2067if test "${ENABLE_GOLD}" = "yes"; then
2068 # Check for ELF target.
2069 is_elf=no
2070 case "${target}" in
2071 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2072 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2073 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2074 case "${target}" in
2075 *-*-linux*aout* | *-*-linux*oldld*)
2076 ;;
2077 *)
2078 is_elf=yes
2079 ;;
2080 esac
2081 esac
2082
2083 if test "$is_elf" = "yes"; then
2084 # Check for target supported by gold.
2085 case "${target}" in
7f1245df 2086 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
5afab7ad
ILT
2087 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2088 ;;
2089 esac
2090 fi
2091fi
2092
671aa708 2093# Configure extra directories which are host specific
79c06341 2094
671aa708
NN
2095case "${host}" in
2096 *-cygwin*)
2097 configdirs="$configdirs libtermcap" ;;
2098esac
79c06341 2099
4fab7234
HPN
2100# A target can indicate whether a language isn't supported for some reason.
2101# Only spaces may be used in this macro; not newlines or tabs.
2102unsupported_languages=
2103
1c710c3c 2104# Remove more programs from consideration, based on the host or
671aa708
NN
2105# target this usually means that a port of the program doesn't
2106# exist yet.
ec8d6ddc 2107
671aa708
NN
2108case "${host}" in
2109 hppa*64*-*-*)
2110 noconfigdirs="$noconfigdirs byacc"
2111 ;;
f2a0e225 2112 i[3456789]86-*-vsta)
b4f96efe 2113 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2114 ;;
f2a0e225 2115 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2116 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2117 ;;
95af8923
KT
2118 x86_64-*-mingw*)
2119 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2120 ;;
f2a0e225 2121 i[3456789]86-*-mingw32*)
b4f96efe 2122 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2123 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2124 ;;
f2a0e225 2125 i[3456789]86-*-beos*)
b4f96efe 2126 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2127 ;;
671aa708 2128 *-*-cygwin*)
a22c2d8d 2129 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2130 ;;
2131 *-*-netbsd*)
a22c2d8d 2132 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2133 ;;
2134 ppc*-*-pe)
b4f96efe 2135 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2136 ;;
2137 powerpc-*-beos*)
b4f96efe 2138 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2139 ;;
671aa708 2140esac
ec8d6ddc 2141
6de9cd9a 2142
2aeb72e9 2143# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2144if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2145 enableval="$enable_libada"
2146 ENABLE_LIBADA=$enableval
d9cdb878
AC
2147else
2148 ENABLE_LIBADA=yes
2aeb72e9 2149fi;
d9cdb878 2150if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2151 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2152fi
2153
2aeb72e9 2154# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2155if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2156 enableval="$enable_libssp"
2157 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2158else
2159 ENABLE_LIBSSP=yes
2aeb72e9 2160fi;
ef0087a7 2161
671aa708
NN
2162# Save it here so that, even in case of --enable-libgcj, if the Java
2163# front-end isn't enabled, we still get libgcj disabled.
2164libgcj_saved=$libgcj
2165case $enable_libgcj in
2166yes)
2167 # If we reset it here, it won't get added to noconfigdirs in the
2168 # target-specific build rules, so it will be forcibly enabled
2169 # (unless the Java language itself isn't enabled).
2170 libgcj=
2171 ;;
2172no)
2173 # Make sure we get it printed in the list of not supported target libs.
2174 noconfigdirs="$noconfigdirs ${libgcj}"
2175 ;;
2176esac
ec8d6ddc 2177
6de9cd9a 2178
27079765
AH
2179# Disable libmudflap on some systems.
2180if test x$enable_libmudflap = x ; then
dfcada9a 2181 case "${target}" in
416ac4d4 2182 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2183 # Enable libmudflap by default in GNU and friends.
dfcada9a 2184 ;;
a3e8d8b4
LR
2185 *-*-freebsd*)
2186 # Enable libmudflap by default in FreeBSD.
2187 ;;
dfcada9a
MM
2188 *)
2189 # Disable it by default everywhere else.
2190 noconfigdirs="$noconfigdirs target-libmudflap"
2191 ;;
2192 esac
27079765 2193fi
6de9cd9a 2194
27079765
AH
2195# Disable libgomp on non POSIX hosted systems.
2196if test x$enable_libgomp = x ; then
953ff289
DN
2197 # Enable libgomp by default on hosted POSIX systems.
2198 case "${target}" in
416ac4d4 2199 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
2200 ;;
2201 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2202 ;;
04879af3 2203 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2204 ;;
cac90078 2205 *-*-darwin* | *-*-aix*)
953ff289
DN
2206 ;;
2207 *)
2208 noconfigdirs="$noconfigdirs target-libgomp"
2209 ;;
2210 esac
27079765 2211fi
953ff289 2212
c03353e2
RIL
2213# Default libgloss CPU subdirectory.
2214libgloss_dir="$target_cpu"
6de9cd9a 2215
671aa708
NN
2216case "${target}" in
2217 *-*-chorusos)
cb253473 2218 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2219 ;;
75eeae1a 2220 powerpc-*-darwin*)
e1514c3f 2221 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2222 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2223 ;;
b93133bc 2224 i[3456789]86-*-darwin* | x86_64-*-darwin[912]*)
0db3a858
TG
2225 noconfigdirs="$noconfigdirs ld gas gprof"
2226 noconfigdirs="$noconfigdirs sim target-rda"
2227 ;;
42c1cd8a
AT
2228 *-*-darwin*)
2229 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2230 noconfigdirs="$noconfigdirs sim target-rda"
2231 noconfigdirs="$noconfigdirs ${libgcj}"
2232 ;;
671aa708 2233 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2234 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2235 ;;
c3f84f61 2236 *-*-freebsd*)
6de9cd9a
DN
2237 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2238 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2239 && test -f /usr/local/include/gmp.h; then
2240 with_gmp=/usr/local
2241 fi
2242
2243 # Skip some stuff that's unsupported on some FreeBSD configurations.
2244 case "${target}" in
2245 i*86-*-*) ;;
2246 alpha*-*-*) ;;
2247 *)
cb253473 2248 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2249 ;;
2250 esac
2251 ;;
ef4e7569
US
2252 *-*-kaos*)
2253 # Remove unsupported stuff on all kaOS configurations.
cb253473 2254 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2255 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2256 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2257 noconfigdirs="$noconfigdirs target-libgloss"
2258 ;;
671aa708
NN
2259 *-*-netbsd*)
2260 # Skip some stuff on all NetBSD configurations.
2261 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2262
2263 # Skip some stuff that's unsupported on some NetBSD configurations.
2264 case "${target}" in
2265 i*86-*-netbsdelf*) ;;
0590b963 2266 arm*-*-netbsdelf*) ;;
671aa708 2267 *)
cb253473 2268 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2269 ;;
2270 esac
2271 ;;
61fec9ff 2272 *-*-netware*)
cb253473 2273 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2274 ;;
2275 *-*-rtems*)
cb253473 2276 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2277 ;;
a8ba31f2
EC
2278 # The tpf target doesn't support gdb yet.
2279 *-*-tpf*)
cb253473 2280 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2281 ;;
5785c0ed 2282 *-*-uclinux*)
cb253473 2283 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2284 ;;
671aa708 2285 *-*-vxworks*)
cb253473 2286 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2287 ;;
2288 alpha*-dec-osf*)
2289 # ld works, but does not support shared libraries.
2290 # newlib is not 64 bit ready. I'm not sure about fileutils.
2291 # gas doesn't generate exception information.
2292 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2293 ;;
2294 alpha*-*-*vms*)
cb253473 2295 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2296 ;;
2297 alpha*-*-linux*)
2298 # newlib is not 64 bit ready
2299 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2300 ;;
671aa708
NN
2301 alpha*-*-*)
2302 # newlib is not 64 bit ready
cb253473 2303 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2304 ;;
33952f6f 2305 am33_2.0-*-linux*)
cb253473 2306 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2307 ;;
671aa708 2308 sh-*-linux*)
cb253473 2309 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2310 ;;
671aa708 2311 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2312 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2313 noconfigdirs="$noconfigdirs target-examples"
2314 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2315 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2316 noconfigdirs="$noconfigdirs expect dejagnu"
2317 # the C++ libraries don't build on top of CE's C libraries
cb543528 2318 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2319 noconfigdirs="$noconfigdirs target-newlib"
2320 case "${host}" in
2321 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2322 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2323 ;;
2324 esac
c03353e2 2325 libgloss_dir=wince
671aa708
NN
2326 ;;
2327 arc-*-*)
cb253473 2328 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2329 ;;
ee6a22df 2330 arm-semi-aof )
ee6a22df 2331 ;;
671aa708 2332 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2333 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2334 libgloss_dir=arm
671aa708 2335 ;;
b3f8d95d 2336 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2337 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2338 libgloss_dir=arm
671aa708 2339 ;;
077fc835 2340 arm*-*-linux-gnueabi)
c4e9bf2b 2341 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2342 case ${with_newlib} in
2343 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2344 esac
c03353e2 2345 libgloss_dir=arm
077fc835 2346 ;;
972974fc 2347 arm*-*-symbianelf*)
cb253473 2348 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2349 libgloss_dir=arm
972974fc 2350 ;;
671aa708 2351 arm-*-pe*)
cb253473 2352 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2353 ;;
671aa708 2354 thumb-*-coff)
cb253473 2355 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2356 ;;
2357 thumb-*-elf)
cb253473 2358 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2359 ;;
671aa708 2360 thumb-*-pe)
cb253473 2361 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2362 ;;
2363 arm-*-riscix*)
cb253473 2364 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2365 ;;
2366 avr-*-*)
ac3949d9 2367 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 2368 ;;
6b65a26d 2369 bfin-*-*)
8b3c6c5a 2370 noconfigdirs="$noconfigdirs gdb"
61efc800 2371 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2372 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2373 fi
2374 ;;
671aa708 2375 c4x-*-* | tic4x-*-*)
cb253473 2376 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2377 ;;
2378 c54x*-*-* | tic54x-*-*)
cb253473 2379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2380 ;;
c993ae60
SR
2381 cr16-*-*)
2382 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2383 ;;
40d64b5a 2384 cris-*-* | crisv32-*-*)
4fab7234 2385 unsupported_languages="$unsupported_languages java"
40d64b5a 2386 case "${target}" in
c2e0d3a9 2387 *-*-aout)
7f26dfa3 2388 unsupported_languages="$unsupported_languages fortran"
4fab7234 2389 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2390 *-*-elf)
789ec619 2391 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2392 *-*-linux*)
789ec619 2393 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2394 *)
7f26dfa3 2395 unsupported_languages="$unsupported_languages fortran"
cb253473 2396 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2397 esac
c03353e2 2398 libgloss_dir=cris
671aa708 2399 ;;
25b656e7 2400 crx-*-*)
cb253473 2401 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2402 ;;
671aa708 2403 d10v-*-*)
cb253473 2404 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2405 ;;
2406 d30v-*-*)
cb253473 2407 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2408 ;;
c03353e2
RIL
2409 ep9312-*-elf | ep9312-*-coff)
2410 libgloss_dir=arm
2411 ;;
671aa708 2412 fr30-*-elf*)
cb253473 2413 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2414 ;;
2415 frv-*-*)
cb253473 2416 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2417 ;;
55f2d967
AG
2418 moxie-*-*)
2419 noconfigdirs="$noconfigdirs ${libgcj}"
2420 noconfigdirs="$noconfigdirs gprof"
2421 ;;
671aa708 2422 h8300*-*-*)
cb253473 2423 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2424 ;;
2425 h8500-*-*)
cb253473 2426 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2427 ;;
ee6a22df 2428 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2429 ;;
671aa708
NN
2430 hppa*64*-*-linux* | parisc*64*-*-linux*)
2431 # In this case, it's because the hppa64-linux target is for
2432 # the kernel only at this point and has no libc, and thus no
2433 # headers, crt*.o, etc., all of which are needed by these.
2434 noconfigdirs="$noconfigdirs target-zlib"
2435 ;;
3e732ba0
JDA
2436 parisc*-*-linux* | hppa*-*-linux*)
2437 ;;
671aa708 2438 hppa*-*-*elf* | \
671aa708
NN
2439 hppa*-*-lites* | \
2440 hppa*-*-openbsd* | \
2441 hppa*64*-*-*)
cb253473 2442 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2443 ;;
2a332582
JDA
2444 hppa*-hp-hpux11*)
2445 noconfigdirs="$noconfigdirs ld shellutils"
2446 ;;
c03353e2
RIL
2447 hppa*-*-pro*)
2448 libgloss_dir=pa
2449 ;;
671aa708
NN
2450 hppa*-*-*)
2451 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2452 # build on HP-UX 10.20.
cb253473 2453 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2454 ;;
fb87ad5d 2455 i960-*-*)
cb253473 2456 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2457 ;;
671aa708
NN
2458 ia64*-*-elf*)
2459 # No gdb support yet.
b4f96efe 2460 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2461 ;;
2462 ia64*-**-hpux*)
2463 # No gdb or ld support yet.
cb253473 2464 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2465 ;;
52535a64
DR
2466 ia64*-*-*vms*)
2467 # No gdb or ld support yet.
2468 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2469 ;;
ee6a22df 2470 i370-*-opened*)
ee6a22df 2471 ;;
f2a0e225 2472 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2473 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2474 libgloss_dir=i386
671aa708 2475 ;;
f2a0e225 2476 i[3456789]86-*-linux*)
671aa708
NN
2477 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2478 # not build java stuff by default.
2479 case "${target}" in
2480 *-*-*libc1*)
cb253473 2481 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2482 esac
2483
2484 # This section makes it possible to build newlib natively on linux.
2485 # If we are using a cross compiler then don't configure newlib.
2486 if test x${is_cross_compiler} != xno ; then
3aa83176 2487 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2488 fi
2489 noconfigdirs="$noconfigdirs target-libgloss"
2490 # If we are not using a cross compiler, do configure newlib.
2491 # Note however, that newlib will only be configured in this situation
2492 # if the --with-newlib option has been given, because otherwise
2493 # 'target-newlib' will appear in skipdirs.
2494 ;;
f2a0e225 2495 i[3456789]86-*-mingw32*)
b91f0a41
CV
2496 target_configdirs="$target_configdirs target-winsup"
2497 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2498 ;;
95af8923
KT
2499 x86_64-*-mingw*)
2500 target_configdirs="$target_configdirs target-winsup"
2501 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2502 ;;
671aa708
NN
2503 *-*-cygwin*)
2504 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 2505 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 2506 # always build newlib if winsup directory is present.
b91f0a41 2507 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2508 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2509 elif test -d "$srcdir/newlib"; then
b91f0a41 2510 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2511 fi
1c710c3c 2512 ;;
ee6a22df
L
2513 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2514 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2515 ;;
f2a0e225 2516 i[3456789]86-*-pe)
cb253473 2517 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2518 ;;
f2a0e225 2519 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2520 # The linker does not yet know about weak symbols in COFF,
2521 # and is not configured to handle mixed ELF and COFF.
cb253473 2522 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2523 ;;
f2a0e225 2524 i[3456789]86-*-sco*)
cb253473 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2526 ;;
f2a0e225 2527 i[3456789]86-*-solaris2*)
671aa708
NN
2528 noconfigdirs="$noconfigdirs target-libgloss"
2529 ;;
f2a0e225 2530 i[3456789]86-*-sysv4*)
cb253473 2531 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2532 ;;
f2a0e225 2533 i[3456789]86-*-beos*)
cb253473 2534 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2535 ;;
d1f8db0c
PB
2536 i[3456789]86-*-rdos*)
2537 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2538 ;;
fb87ad5d 2539 m32r-*-*)
cb253473 2540 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2541 ;;
671aa708 2542 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2543 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2544 libgloss_dir=m68hc11
671aa708
NN
2545 ;;
2546 m68k-*-elf*)
cb253473 2547 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2548 ;;
2549 m68k-*-coff*)
cb253473 2550 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2551 ;;
c03353e2
RIL
2552 m68*-*-* | fido-*-*)
2553 libgloss_dir=m68k
2554 ;;
671aa708
NN
2555 mcore-*-pe*)
2556 # The EPOC C++ environment does not support exceptions or rtti,
2557 # and so building libstdc++-v3 tends not to always work.
2558 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2559 ;;
2560 mmix-*-*)
4fab7234 2561 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2562 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2563 ;;
2564 mn10200-*-*)
cb253473 2565 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2566 ;;
2567 mn10300-*-*)
cb253473 2568 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2569 ;;
ab34901f 2570 mt-*-*)
79dd769c
AH
2571 noconfigdirs="$noconfigdirs sim"
2572 ;;
671aa708
NN
2573 powerpc-*-aix*)
2574 # copied from rs6000-*-* entry
a891a473 2575 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
2576 ;;
2577 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2578 target_configdirs="$target_configdirs target-winsup"
cb253473 2579 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2580 # always build newlib.
2581 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2582 ;;
2583 # This is temporary until we can link against shared libraries
2584 powerpcle-*-solaris*)
cb253473 2585 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2586 libgloss_dir=rs6000
671aa708
NN
2587 ;;
2588 powerpc-*-beos*)
cb253473 2589 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2590 ;;
671aa708 2591 powerpc-*-eabi)
cb253473 2592 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2593 libgloss_dir=rs6000
ee6a22df
L
2594 ;;
2595 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2596 libgloss_dir=rs6000
671aa708 2597 ;;
671aa708 2598 rs6000-*-lynxos*)
cb253473 2599 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2600 ;;
2601 rs6000-*-aix*)
a891a473 2602 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
2603 ;;
2604 rs6000-*-*)
cb253473 2605 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2606 ;;
2607 m68k-apollo-*)
cb253473 2608 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2609 ;;
d9dced13
RS
2610 mips*-sde-elf*)
2611 skipdirs="$skipdirs target-libiberty"
2612 noconfigdirs="$noconfigdirs ${libgcj}"
2613 if test x$with_newlib = xyes; then
2614 noconfigdirs="$noconfigdirs gprof"
2615 fi
2616 libgloss_dir=mips
2617 ;;
671aa708 2618 mips*-*-irix5*)
cb253473 2619 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2620 ;;
2621 mips*-*-irix6*)
671aa708
NN
2622 # Linking libjava exceeds command-line length limits on at least
2623 # IRIX 6.2, but not on IRIX 6.5.
2624 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2625 # <oldham@codesourcery.com>
cb253473 2626 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2627 ;;
671aa708 2628 mips*-*-bsd*)
cb253473 2629 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2630 ;;
671aa708
NN
2631 mips*-*-linux*)
2632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2633 ;;
2634 mips*-*-*)
cb253473 2635 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2636 libgloss_dir=mips
671aa708
NN
2637 ;;
2638 romp-*-*)
cb253473 2639 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2640 ;;
669f01d8 2641 sh-*-* | sh64-*-*)
671aa708 2642 case "${host}" in
f2a0e225
KC
2643 i[3456789]86-*-vsta) ;; # don't add gprof back in
2644 i[3456789]86-*-go32*) ;; # don't add gprof back in
2645 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2646 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2647 esac
cb253473 2648 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2649 ;;
c03353e2
RIL
2650 sparclet-*-aout* | sparc86x-*-*)
2651 libgloss_dir=sparc
2652 ;;
671aa708 2653 sparc-*-elf*)
cb253473 2654 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2655 ;;
2656 sparc64-*-elf*)
cb253473 2657 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2658 libgloss_dir=sparc
671aa708
NN
2659 ;;
2660 sparclite-*-*)
cb253473 2661 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2662 libgloss_dir=sparc
671aa708
NN
2663 ;;
2664 sparc-*-sunos4*)
cb253473 2665 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2666 if test x${is_cross_compiler} != xno ; then
2667 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2668 else
2669 use_gnu_ld=no
2670 fi
2671 ;;
bba5e0ca 2672 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2673 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2674 ;;
671aa708
NN
2675 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2676 ;;
2677 v810-*-*)
cb253473 2678 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2679 ;;
2680 v850-*-*)
cb253473 2681 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2682 ;;
2683 v850e-*-*)
cb253473 2684 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2685 ;;
2686 v850ea-*-*)
cb253473 2687 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2688 ;;
2689 vax-*-vms)
cb253473 2690 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2691 ;;
2692 vax-*-*)
cb253473 2693 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2694 ;;
aa12a573 2695 xtensa*-*-*)
cb253473 2696 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2697 ;;
671aa708 2698 ip2k-*-*)
cb253473 2699 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2700 ;;
416ac4d4 2701 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
2702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2703 ;;
2704 *-*-lynxos*)
cb253473 2705 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2706 ;;
671aa708 2707 *-*-*)
cb253473 2708 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2709 ;;
2710esac
79c06341 2711
671aa708
NN
2712# If we aren't building newlib, then don't build libgloss, since libgloss
2713# depends upon some newlib header files.
2714case "${noconfigdirs}" in
2715 *target-libgloss*) ;;
2716 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2717esac
2718
671aa708
NN
2719# Work in distributions that contain no compiler tools, like Autoconf.
2720tentative_cc=""
2721host_makefile_frag=/dev/null
2722if test -d ${srcdir}/config ; then
2723case "${host}" in
2724 m68k-hp-hpux*)
2725 # Avoid "too much defining" errors from HPUX compiler.
2726 tentative_cc="cc -Wp,-H256000"
2727 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2728 # If it's HP/UX ar, this should be harmless.
2729 RANLIB="ar ts"
2730 ;;
2731 m68k-apollo-sysv*)
2732 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2733 ;;
2734 m68k-apollo-bsd*)
2735 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2736 # chokes on bfd, the compiler won't let you assign integers to enums, and
2737 # other problems. Defining CC to gcc is a questionable way to say "don't use
2738 # the apollo compiler" (the preferred version of GCC could be called cc,
2739 # or whatever), but I'm not sure leaving CC as cc is any better...
2740 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2741 # Used to have BISON=yacc.
2742 tentative_cc=gcc
2743 ;;
2744 m88k-dg-dgux*)
2745 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2746 ;;
2747 m88k-harris-cxux*)
2748 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2749 tentative_cc="cc -Xa"
2750 host_makefile_frag="config/mh-cxux"
2751 ;;
2752 m88k-motorola-sysv*)
2753 ;;
2754 mips*-dec-ultrix*)
2755 tentative_cc="cc -Wf,-XNg1000"
2756 host_makefile_frag="config/mh-decstation"
2757 ;;
2758 mips*-nec-sysv4*)
2759 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2760 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2761 host_makefile_frag="config/mh-necv4"
2762 ;;
2763 mips*-sgi-irix4*)
2764 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2765 # environment. Also bump switch table size so that cp-parse will
2766 # compile. Bump string length limit so linker builds.
2767 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2768 ;;
2769 mips*-*-sysv4*)
2770 host_makefile_frag="config/mh-sysv4"
2771 ;;
2772 mips*-*-sysv*)
2773 # This is for a MIPS running RISC/os 4.52C.
2774
2775 # This is needed for GDB, but needs to be in the top-level make because
2776 # if a library is compiled with the bsd headers and gets linked with the
2777 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2778 # a different size).
2779 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2780 # known except to select the sysv environment. Could we use /proc instead?
2781 # These "sysv environments" and "bsd environments" often end up being a pain.
2782 #
2783 # This is not part of CFLAGS because perhaps not all C compilers have this
2784 # option.
2785 tentative_cc="cc -systype sysv"
2786 ;;
2787 i370-ibm-opened*)
2788 tentative_cc="c89"
2789 ;;
f2a0e225 2790 i[3456789]86-*-sysv5*)
671aa708
NN
2791 host_makefile_frag="config/mh-sysv5"
2792 ;;
f2a0e225 2793 i[3456789]86-*-dgux*)
671aa708
NN
2794 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2795 host_makefile_frag="config/mh-dgux386"
2796 ;;
f2a0e225 2797 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2798 # The MetaWare compiler will generate a copyright message unless you
2799 # turn it off by adding the -Hnocopyr flag.
2800 tentative_cc="cc -Hnocopyr"
2801 ;;
f2a0e225 2802 i[3456789]86-ncr-sysv4*)
671aa708
NN
2803 # for an NCR 3000 (i486/SVR4) system.
2804 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2805 # This compiler not only emits obnoxious copyright messages every time
2806 # you run it, but it chokes and dies on a whole bunch of GNU source
2807 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2808 tentative_cc="/usr/ccs/ATT/cc"
2809 host_makefile_frag="config/mh-ncr3000"
2810 ;;
f2a0e225 2811 i[3456789]86-*-sco3.2v5*)
671aa708 2812 ;;
f2a0e225 2813 i[3456789]86-*-sco*)
671aa708
NN
2814 # The native C compiler botches some simple uses of const. Unfortunately,
2815 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2816 tentative_cc="cc -Dconst="
2817 host_makefile_frag="config/mh-sco"
2818 ;;
f2a0e225 2819 i[3456789]86-*-udk*)
671aa708
NN
2820 host_makefile_frag="config/mh-sysv5"
2821 ;;
f2a0e225 2822 i[3456789]86-*-solaris2*)
671aa708
NN
2823 host_makefile_frag="config/mh-sysv4"
2824 ;;
f2a0e225 2825 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2826 host_makefile_frag="config/mh-djgpp"
2827 ;;
2828 *-cygwin*)
2a79c47f
NC
2829
2830echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2831echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2832echo a >cygwin-cat-check
2833if test `cat cygwin-cat-check` == a ; then
2834 rm cygwin-cat-check
2835 echo "$as_me:$LINENO: result: yes" >&5
2836echo "${ECHO_T}yes" >&6
2837else
2838 rm cygwin-cat-check
2839 echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
2841 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2842 Please either mount the build directory in binary mode or run the following
2843 commands before running any configure script:
2844set -o igncr
2845export SHELLOPTS
2846 " >&5
2847echo "$as_me: error: The cat command does not ignore carriage return characters.
2848 Please either mount the build directory in binary mode or run the following
2849 commands before running any configure script:
2850set -o igncr
2851export SHELLOPTS
2852 " >&2;}
2853 { (exit 1); exit 1; }; }
2854fi
2855
671aa708
NN
2856 host_makefile_frag="config/mh-cygwin"
2857 ;;
c53a18d3 2858 *-mingw*)
1f5a6b84 2859 host_makefile_frag="config/mh-mingw"
95af8923 2860 ;;
671aa708
NN
2861 *-interix*)
2862 host_makefile_frag="config/mh-interix"
2863 ;;
2864 vax-*-ultrix2*)
2865 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2866 tentative_cc=gcc
2867 ;;
2868 *-*-solaris2*)
2869 host_makefile_frag="config/mh-solaris"
2870 ;;
2871 m68k-sun-sunos*)
2872 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2873 # without overflowing the jump tables (-J says to use a 32 bit table)
2874 tentative_cc="cc -J"
2875 ;;
efd41714 2876 hppa*-hp-hpux10*)
671aa708 2877 tentative_cc="cc -Wp,-H256000"
efd41714 2878 host_makefile_frag="config/mh-pa-hpux10"
671aa708 2879 ;;
efd41714
PB
2880 hppa*-hp-hpux* | hppa*-*-hiux*)
2881 tentative_cc="cc -Wp,-H256000"
2882 host_makefile_frag="config/mh-pa"
2883 ;;
2884 hppa*-*)
2885 host_makefile_frag="config/mh-pa"
2886 ;;
2887 *-hp-hpux* | *-*-hiux*)
671aa708
NN
2888 tentative_cc="cc -Wp,-H256000"
2889 ;;
2890 rs6000-*-lynxos*)
2891 # /bin/cc is less than useful for our purposes. Always use GCC
2892 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2893 host_makefile_frag="config/mh-lynxrs6k"
2894 ;;
45f366ab 2895 powerpc-*-darwin*)
be8fff81
RB
2896 host_makefile_frag="config/mh-ppc-darwin"
2897 ;;
d19bca38
PB
2898 powerpc-*-aix*)
2899 host_makefile_frag="config/mh-ppc-aix"
2900 ;;
2901 rs6000-*-aix*)
2902 host_makefile_frag="config/mh-ppc-aix"
2903 ;;
671aa708
NN
2904 *-*-lynxos*)
2905 # /bin/cc is less than useful for our purposes. Always use GCC
2906 tentative_cc="/bin/gcc"
2907 ;;
2908 *-*-sysv4*)
2909 host_makefile_frag="config/mh-sysv4"
2910 ;;
95c53c62
RS
2911 # This is placed last to prevent interfering with the cases above.
2912 i[3456789]86-*-*)
2913 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2914 host_makefile_frag="config/mh-x86omitfp"
2915 ;;
671aa708
NN
2916esac
2917fi
2918
55ffb5ed
NN
2919# If we aren't going to be using gcc, see if we can extract a definition
2920# of CC from the fragment.
2921# Actually, use the 'pre-extracted' version above.
2922if test -z "${CC}" && test "${build}" = "${host}" ; then
2923 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2924 found=
2925 for dir in $PATH; do
2926 test -z "$dir" && dir=.
2927 if test -f $dir/gcc; then
2928 found=yes
2929 break
2930 fi
2931 done
2932 IFS="$save_ifs"
2933 if test -z "${found}" && test -n "${tentative_cc}" ; then
2934 CC=$tentative_cc
2935 fi
2936fi
2937
2938if test "${build}" != "${host}" ; then
0999159b
PB
2939 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2940 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2941 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2942 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2943 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2944 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2945 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2946 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2947 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2948 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2949 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2950 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2951else
2952 AR_FOR_BUILD="\$(AR)"
2953 AS_FOR_BUILD="\$(AS)"
fb0103e5 2954 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2955 CXX_FOR_BUILD="\$(CXX)"
2956 GCJ_FOR_BUILD="\$(GCJ)"
2957 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2958 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2959 LD_FOR_BUILD="\$(LD)"
2960 NM_FOR_BUILD="\$(NM)"
2961 RANLIB_FOR_BUILD="\$(RANLIB)"
2962 WINDRES_FOR_BUILD="\$(WINDRES)"
2963 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2964fi
2965
2966ac_ext=c
1c710c3c
DJ
2967ac_cpp='$CPP $CPPFLAGS'
2968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2973set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2976if test "${ac_cv_prog_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993done
2994done
2995
2996fi
2997fi
2998CC=$ac_cv_prog_CC
2999if test -n "$CC"; then
2aeb72e9
DD
3000 echo "$as_me:$LINENO: result: $CC" >&5
3001echo "${ECHO_T}$CC" >&6
1c710c3c 3002else
2aeb72e9
DD
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
1c710c3c
DJ
3005fi
3006
3007fi
3008if test -z "$ac_cv_prog_CC"; then
3009 ac_ct_CC=$CC
fb0103e5
RG
3010 # Extract the first word of "gcc", so it can be a program name with args.
3011set dummy gcc; ac_word=$2
2aeb72e9
DD
3012echo "$as_me:$LINENO: checking for $ac_word" >&5
3013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 if test -n "$ac_ct_CC"; then
3018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3027 ac_cv_prog_ac_ct_CC="gcc"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031done
3032done
3033
3034fi
3035fi
3036ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3039echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 3040else
2aeb72e9
DD
3041 echo "$as_me:$LINENO: result: no" >&5
3042echo "${ECHO_T}no" >&6
1c710c3c
DJ
3043fi
3044
2aeb72e9 3045 CC=$ac_ct_CC
1c710c3c
DJ
3046else
3047 CC="$ac_cv_prog_CC"
3048fi
3049
3050if test -z "$CC"; then
2aeb72e9
DD
3051 if test -n "$ac_tool_prefix"; then
3052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3053set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
3054echo "$as_me:$LINENO: checking for $ac_word" >&5
3055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3056if test "${ac_cv_prog_CC+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3058else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061else
1c710c3c
DJ
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3069 ac_cv_prog_CC="${ac_tool_prefix}cc"
3070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073done
3074done
3075
0b0dc272 3076fi
0b0dc272 3077fi
1c710c3c 3078CC=$ac_cv_prog_CC
af71363e 3079if test -n "$CC"; then
2aeb72e9
DD
3080 echo "$as_me:$LINENO: result: $CC" >&5
3081echo "${ECHO_T}$CC" >&6
0b0dc272 3082else
2aeb72e9
DD
3083 echo "$as_me:$LINENO: result: no" >&5
3084echo "${ECHO_T}no" >&6
0b0dc272
AM
3085fi
3086
2aeb72e9
DD
3087fi
3088if test -z "$ac_cv_prog_CC"; then
3089 ac_ct_CC=$CC
3090 # Extract the first word of "cc", so it can be a program name with args.
3091set dummy cc; ac_word=$2
3092echo "$as_me:$LINENO: checking for $ac_word" >&5
3093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3094if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096else
3097 if test -n "$ac_ct_CC"; then
3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3099else
3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101for as_dir in $PATH
3102do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_ac_ct_CC="cc"
3108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
11a67599 3110 fi
2aeb72e9
DD
3111done
3112done
3113
3114fi
3115fi
3116ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117if test -n "$ac_ct_CC"; then
3118 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3119echo "${ECHO_T}$ac_ct_CC" >&6
3120else
3121 echo "$as_me:$LINENO: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123fi
3124
3125 CC=$ac_ct_CC
3126else
3127 CC="$ac_cv_prog_CC"
3128fi
3129
1c710c3c 3130fi
55ffb5ed
NN
3131if test -z "$CC"; then
3132 # Extract the first word of "cc", so it can be a program name with args.
3133set dummy cc; ac_word=$2
2aeb72e9
DD
3134echo "$as_me:$LINENO: checking for $ac_word" >&5
3135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3136if test "${ac_cv_prog_CC+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3138else
3139 if test -n "$CC"; then
3140 ac_cv_prog_CC="$CC" # Let the user override the test.
3141else
0b0dc272 3142 ac_prog_rejected=no
1c710c3c
DJ
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3150 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3151 ac_prog_rejected=yes
3152 continue
3153 fi
3154 ac_cv_prog_CC="cc"
3155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158done
3159done
3160
55ffb5ed
NN
3161if test $ac_prog_rejected = yes; then
3162 # We found a bogon in the path, so make sure we never use it.
3163 set dummy $ac_cv_prog_CC
3164 shift
1c710c3c 3165 if test $# != 0; then
55ffb5ed
NN
3166 # We chose a different compiler from the bogus one.
3167 # However, it has the same basename, so the bogon will be chosen
3168 # first if we set CC to just the basename; use the full file name.
3169 shift
1c710c3c 3170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3171 fi
3172fi
3173fi
3174fi
1c710c3c 3175CC=$ac_cv_prog_CC
55ffb5ed 3176if test -n "$CC"; then
2aeb72e9
DD
3177 echo "$as_me:$LINENO: result: $CC" >&5
3178echo "${ECHO_T}$CC" >&6
55ffb5ed 3179else
2aeb72e9
DD
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
55ffb5ed
NN
3182fi
3183
1c710c3c
DJ
3184fi
3185if test -z "$CC"; then
3186 if test -n "$ac_tool_prefix"; then
2aeb72e9 3187 for ac_prog in cl
1c710c3c
DJ
3188 do
3189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3191echo "$as_me:$LINENO: checking for $ac_word" >&5
3192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3193if test "${ac_cv_prog_CC+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3195else
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC="$CC" # Let the user override the test.
3198else
1c710c3c
DJ
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210done
3211done
3212
55ffb5ed
NN
3213fi
3214fi
1c710c3c 3215CC=$ac_cv_prog_CC
55ffb5ed 3216if test -n "$CC"; then
2aeb72e9
DD
3217 echo "$as_me:$LINENO: result: $CC" >&5
3218echo "${ECHO_T}$CC" >&6
a4b9e93e 3219else
2aeb72e9
DD
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
fb0103e5 3222fi
af71363e 3223
1c710c3c
DJ
3224 test -n "$CC" && break
3225 done
af71363e 3226fi
1c710c3c
DJ
3227if test -z "$CC"; then
3228 ac_ct_CC=$CC
2aeb72e9 3229 for ac_prog in cl
1c710c3c
DJ
3230do
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3233echo "$as_me:$LINENO: checking for $ac_word" >&5
3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3235if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3237else
1c710c3c
DJ
3238 if test -n "$ac_ct_CC"; then
3239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3240else
1c710c3c
DJ
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3248 ac_cv_prog_ac_ct_CC="$ac_prog"
3249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252done
3253done
3254
af71363e
AS
3255fi
3256fi
1c710c3c
DJ
3257ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3259 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3260echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3261else
2aeb72e9
DD
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
af71363e 3264fi
0b0dc272 3265
1c710c3c
DJ
3266 test -n "$ac_ct_CC" && break
3267done
3268
2aeb72e9 3269 CC=$ac_ct_CC
1c710c3c
DJ
3270fi
3271
3272fi
3273
3274
18c04407
RW
3275test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3276echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1c710c3c
DJ
3278See \`config.log' for more details." >&5
3279echo "$as_me: error: no acceptable C compiler found in \$PATH
3280See \`config.log' for more details." >&2;}
18c04407 3281 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3282
3283# Provide some information about the compiler.
2aeb72e9
DD
3284echo "$as_me:$LINENO:" \
3285 "checking for C compiler version" >&5
1c710c3c 3286ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3287{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3288 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
2aeb72e9
DD
3292{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3293 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
2aeb72e9
DD
3297{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3298 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }
3302
3303cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318ac_clean_files_save=$ac_clean_files
3319ac_clean_files="$ac_clean_files a.out a.exe b.out"
3320# Try to create an executable without -o first, disregard a.out.
3321# It will help us diagnose broken compilers, and finding out an intuition
3322# of exeext.
2aeb72e9
DD
3323echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3324echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3325ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3326if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3327 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; then
2aeb72e9
DD
3331 # Find the output, starting from the most likely. This scheme is
3332# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3333# resort.
3334
3335# Be careful to initialize this variable, since it used to be cached.
3336# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3337ac_cv_exeext=
3338# b.out is created by i960 compilers.
3339for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3340do
3341 test -f "$ac_file" || continue
3342 case $ac_file in
2aeb72e9
DD
3343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3344 ;;
3345 conftest.$ac_ext )
3346 # This is the source file.
1c710c3c
DJ
3347 ;;
3348 [ab].out )
3349 # We found the default executable, but exeext='' is most
3350 # certainly right.
3351 break;;
3352 *.* )
2aeb72e9
DD
3353 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 # FIXME: I believe we export ac_cv_exeext for Libtool,
3355 # but it would be cool to find out if it's true. Does anybody
3356 # maintain Libtool? --akim.
3357 export ac_cv_exeext
1c710c3c
DJ
3358 break;;
3359 * )
3360 break;;
3361 esac
3362done
3363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
18c04407
RW
3367{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3369{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3370See \`config.log' for more details." >&5
3371echo "$as_me: error: C compiler cannot create executables
3372See \`config.log' for more details." >&2;}
18c04407 3373 { (exit 77); exit 77; }; }; }
1c710c3c
DJ
3374fi
3375
3376ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3377echo "$as_me:$LINENO: result: $ac_file" >&5
3378echo "${ECHO_T}$ac_file" >&6
1c710c3c 3379
2aeb72e9 3380# Check the compiler produces executables we can run. If not, either
1c710c3c 3381# the compiler is broken, or we cross compile.
2aeb72e9
DD
3382echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3383echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3384# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3385# If not cross compiling, check that we can run a simple program.
3386if test "$cross_compiling" != yes; then
3387 if { ac_try='./$ac_file'
2aeb72e9
DD
3388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389 (eval $ac_try) 2>&5
1c710c3c
DJ
3390 ac_status=$?
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3393 cross_compiling=no
3394 else
3395 if test "$cross_compiling" = maybe; then
3396 cross_compiling=yes
3397 else
18c04407
RW
3398 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1c710c3c
DJ
3401If you meant to cross compile, use \`--host'.
3402See \`config.log' for more details." >&5
3403echo "$as_me: error: cannot run C compiled programs.
3404If you meant to cross compile, use \`--host'.
3405See \`config.log' for more details." >&2;}
18c04407 3406 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3407 fi
3408 fi
3409fi
2aeb72e9
DD
3410echo "$as_me:$LINENO: result: yes" >&5
3411echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3412
3413rm -f a.out a.exe conftest$ac_cv_exeext b.out
3414ac_clean_files=$ac_clean_files_save
2aeb72e9 3415# Check the compiler produces executables we can run. If not, either
1c710c3c 3416# the compiler is broken, or we cross compile.
2aeb72e9
DD
3417echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3418echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3419echo "$as_me:$LINENO: result: $cross_compiling" >&5
3420echo "${ECHO_T}$cross_compiling" >&6
3421
3422echo "$as_me:$LINENO: checking for suffix of executables" >&5
3423echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3425 (eval $ac_link) 2>&5
1c710c3c
DJ
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; then
3429 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3430# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3431# work properly (i.e., refer to `conftest.exe'), while it won't with
3432# `rm'.
3433for ac_file in conftest.exe conftest conftest.*; do
3434 test -f "$ac_file" || continue
3435 case $ac_file in
2aeb72e9 3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3437 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3438 export ac_cv_exeext
1c710c3c
DJ
3439 break;;
3440 * ) break;;
3441 esac
3442done
af71363e 3443else
18c04407
RW
3444 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3445echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1c710c3c
DJ
3447See \`config.log' for more details." >&5
3448echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3449See \`config.log' for more details." >&2;}
18c04407 3450 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3451fi
3452
3453rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3454echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3455echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3456
3457rm -f conftest.$ac_ext
3458EXEEXT=$ac_cv_exeext
3459ac_exeext=$EXEEXT
2aeb72e9
DD
3460echo "$as_me:$LINENO: checking for suffix of object files" >&5
3461echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3462if test "${ac_cv_objext+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465 cat >conftest.$ac_ext <<_ACEOF
3466/* confdefs.h. */
3467_ACEOF
3468cat confdefs.h >>conftest.$ac_ext
3469cat >>conftest.$ac_ext <<_ACEOF
3470/* end confdefs.h. */
3471
3472int
3473main ()
3474{
3475
3476 ;
3477 return 0;
3478}
3479_ACEOF
3480rm -f conftest.o conftest.obj
2aeb72e9
DD
3481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>&5
1c710c3c
DJ
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; then
2aeb72e9 3486 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3487 case $ac_file in
2aeb72e9 3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490 break;;
3491 esac
3492done
3493else
3494 echo "$as_me: failed program was:" >&5
3495sed 's/^/| /' conftest.$ac_ext >&5
3496
18c04407
RW
3497{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3498echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3499{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3500See \`config.log' for more details." >&5
3501echo "$as_me: error: cannot compute suffix of object files: cannot compile
3502See \`config.log' for more details." >&2;}
18c04407 3503 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3504fi
3505
3506rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507fi
2aeb72e9
DD
3508echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3509echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3510OBJEXT=$ac_cv_objext
3511ac_objext=$OBJEXT
2aeb72e9
DD
3512echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3513echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3514if test "${ac_cv_c_compiler_gnu+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523
3524int
3525main ()
3526{
3527#ifndef __GNUC__
3528 choke me
3529#endif
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
3535rm -f conftest.$ac_objext
2aeb72e9
DD
3536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3543 (exit $ac_status); } &&
3544 { ac_try='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
1c710c3c
DJ
3557 ac_compiler_gnu=yes
3558else
3559 echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
2aeb72e9 3562ac_compiler_gnu=no
1c710c3c 3563fi
2aeb72e9 3564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3565ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567fi
2aeb72e9
DD
3568echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3569echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3570GCC=`test $ac_compiler_gnu = yes && echo yes`
3571ac_test_CFLAGS=${CFLAGS+set}
3572ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3573CFLAGS="-g"
3574echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3576if test "${ac_cv_prog_cc_g+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
2aeb72e9 3579 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585
3586int
3587main ()
3588{
3589
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext
2aeb72e9
DD
3595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3602 (exit $ac_status); } &&
3603 { ac_try='test -z "$ac_c_werror_flag"
3604 || test ! -s conftest.err'
3605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 (eval $ac_try) 2>&5
1c710c3c
DJ
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3609 (exit $ac_status); }; } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
1c710c3c
DJ
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3615 (exit $ac_status); }; }; then
55ffb5ed
NN
3616 ac_cv_prog_cc_g=yes
3617else
1c710c3c
DJ
3618 echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3620
2aeb72e9 3621ac_cv_prog_cc_g=no
0b0dc272 3622fi
2aeb72e9 3623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3624fi
2aeb72e9
DD
3625echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3626echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3627if test "$ac_test_CFLAGS" = set; then
1c710c3c 3628 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3629elif test $ac_cv_prog_cc_g = yes; then
3630 if test "$GCC" = yes; then
3631 CFLAGS="-g -O2"
3632 else
3633 CFLAGS="-g"
3634 fi
3635else
3636 if test "$GCC" = yes; then
3637 CFLAGS="-O2"
3638 else
3639 CFLAGS=
3640 fi
3641fi
2aeb72e9
DD
3642echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3643echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3644if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
2aeb72e9 3647 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3648ac_save_CC=$CC
3649cat >conftest.$ac_ext <<_ACEOF
3650/* confdefs.h. */
3651_ACEOF
3652cat confdefs.h >>conftest.$ac_ext
3653cat >>conftest.$ac_ext <<_ACEOF
3654/* end confdefs.h. */
3655#include <stdarg.h>
3656#include <stdio.h>
3657#include <sys/types.h>
3658#include <sys/stat.h>
3659/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660struct buf { int x; };
3661FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662static char *e (p, i)
3663 char **p;
3664 int i;
3665{
3666 return p[i];
3667}
3668static char *f (char * (*g) (char **, int), char **p, ...)
3669{
3670 char *s;
3671 va_list v;
3672 va_start (v,p);
3673 s = g (p, va_arg (v,int));
3674 va_end (v);
3675 return s;
3676}
3677
3678/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3681 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3684 that's true only with -std1. */
1c710c3c
DJ
3685int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686
3687int test (int i, double x);
3688struct s1 {int (*f) (int a);};
3689struct s2 {int (*f) (double a);};
3690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691int argc;
3692char **argv;
3693int
3694main ()
3695{
3696return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 ;
3698 return 0;
3699}
3700_ACEOF
2aeb72e9
DD
3701# Don't try gcc -ansi; that turns off useful extensions and
3702# breaks some systems' header files.
3703# AIX -qlanglvl=ansi
3704# Ultrix and OSF/1 -std1
3705# HP-UX 10.20 and later -Ae
3706# HP-UX older versions -Aa -D_HPUX_SOURCE
3707# SVR4 -Xc -D__EXTENSIONS__
3708for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3709do
3710 CC="$ac_save_CC $ac_arg"
3711 rm -f conftest.$ac_objext
2aeb72e9
DD
3712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3719 (exit $ac_status); } &&
3720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_cv_prog_cc_stdc=$ac_arg
3734break
1c710c3c
DJ
3735else
3736 echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739fi
2aeb72e9 3740rm -f conftest.err conftest.$ac_objext
1c710c3c 3741done
2aeb72e9 3742rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3743CC=$ac_save_CC
3744
3745fi
2aeb72e9
DD
3746
3747case "x$ac_cv_prog_cc_stdc" in
3748 x|xno)
3749 echo "$as_me:$LINENO: result: none needed" >&5
3750echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3751 *)
2aeb72e9
DD
3752 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3753echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3754 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3755esac
3756
2aeb72e9
DD
3757# Some people use a C++ compiler to compile C. Since we use `exit',
3758# in C++ we need to declare it. In case someone uses the same compiler
3759# for both compiling C and C++ we need to have the C++ compiler decide
3760# the declaration of exit, since it's the most demanding environment.
3761cat >conftest.$ac_ext <<_ACEOF
3762#ifndef __cplusplus
3763 choke me
3764#endif
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 for ac_declaration in \
3789 '' \
3790 'extern "C" void std::exit (int) throw (); using std::exit;' \
3791 'extern "C" void std::exit (int); using std::exit;' \
3792 'extern "C" void exit (int) throw ();' \
3793 'extern "C" void exit (int);' \
3794 'void exit (int);'
3795do
3796 cat >conftest.$ac_ext <<_ACEOF
3797/* confdefs.h. */
3798_ACEOF
3799cat confdefs.h >>conftest.$ac_ext
3800cat >>conftest.$ac_ext <<_ACEOF
3801/* end confdefs.h. */
3802$ac_declaration
3803#include <stdlib.h>
3804int
3805main ()
3806{
3807exit (42);
3808 ;
3809 return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext
3813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 :
3835else
3836 echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839continue
3840fi
3841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3842 cat >conftest.$ac_ext <<_ACEOF
3843/* confdefs.h. */
3844_ACEOF
3845cat confdefs.h >>conftest.$ac_ext
3846cat >>conftest.$ac_ext <<_ACEOF
3847/* end confdefs.h. */
3848$ac_declaration
3849int
3850main ()
3851{
3852exit (42);
3853 ;
3854 return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext
3858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859 (eval $ac_compile) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 break
3880else
3881 echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884fi
3885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886done
3887rm -f conftest*
3888if test -n "$ac_declaration"; then
3889 echo '#ifdef __cplusplus' >>confdefs.h
3890 echo $ac_declaration >>confdefs.h
3891 echo '#endif' >>confdefs.h
3892fi
3893
3894else
3895 echo "$as_me: failed program was:" >&5
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
3898fi
3899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3900ac_ext=c
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906ac_ext=cc
3907ac_cpp='$CXXCPP $CPPFLAGS'
3908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3911if test -n "$ac_tool_prefix"; then
3912 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3913 do
3914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3916echo "$as_me:$LINENO: checking for $ac_word" >&5
3917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3918if test "${ac_cv_prog_CXX+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921 if test -n "$CXX"; then
3922 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935done
3936done
55ffb5ed 3937
c3a86da9
DJ
3938fi
3939fi
3940CXX=$ac_cv_prog_CXX
3941if test -n "$CXX"; then
2aeb72e9
DD
3942 echo "$as_me:$LINENO: result: $CXX" >&5
3943echo "${ECHO_T}$CXX" >&6
c3a86da9 3944else
2aeb72e9
DD
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
c3a86da9
DJ
3947fi
3948
3949 test -n "$CXX" && break
3950 done
3951fi
3952if test -z "$CXX"; then
3953 ac_ct_CXX=$CXX
2aeb72e9 3954 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3958echo "$as_me:$LINENO: checking for $ac_word" >&5
3959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3960if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 if test -n "$ac_ct_CXX"; then
3964 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3973 ac_cv_prog_ac_ct_CXX="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978done
3979
3980fi
3981fi
3982ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3983if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3984 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3985echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3986else
2aeb72e9
DD
3987 echo "$as_me:$LINENO: result: no" >&5
3988echo "${ECHO_T}no" >&6
c3a86da9
DJ
3989fi
3990
3991 test -n "$ac_ct_CXX" && break
3992done
2aeb72e9 3993test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3994
2aeb72e9 3995 CXX=$ac_ct_CXX
c3a86da9
DJ
3996fi
3997
2aeb72e9 3998
c3a86da9 3999# Provide some information about the compiler.
2aeb72e9
DD
4000echo "$as_me:$LINENO:" \
4001 "checking for C++ compiler version" >&5
c3a86da9 4002ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
4003{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4004 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }
2aeb72e9
DD
4008{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4009 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
2aeb72e9
DD
4013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4014 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
4018
2aeb72e9
DD
4019echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4020echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
4021if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023else
4024 cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030
4031int
4032main ()
4033{
4034#ifndef __GNUC__
4035 choke me
4036#endif
4037
4038 ;
4039 return 0;
4040}
4041_ACEOF
4042rm -f conftest.$ac_objext
2aeb72e9
DD
4043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4044 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4050 (exit $ac_status); } &&
4051 { ac_try='test -z "$ac_cxx_werror_flag"
4052 || test ! -s conftest.err'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054 (eval $ac_try) 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; }; then
c3a86da9
DJ
4064 ac_compiler_gnu=yes
4065else
4066 echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
2aeb72e9 4069ac_compiler_gnu=no
c3a86da9 4070fi
2aeb72e9 4071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4072ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4073
4074fi
2aeb72e9
DD
4075echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4076echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
4077GXX=`test $ac_compiler_gnu = yes && echo yes`
4078ac_test_CXXFLAGS=${CXXFLAGS+set}
4079ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
4080CXXFLAGS="-g"
4081echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4082echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
4083if test "${ac_cv_prog_cxx_g+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
2aeb72e9 4086 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4087/* confdefs.h. */
4088_ACEOF
4089cat confdefs.h >>conftest.$ac_ext
4090cat >>conftest.$ac_ext <<_ACEOF
4091/* end confdefs.h. */
4092
4093int
4094main ()
4095{
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101rm -f conftest.$ac_objext
2aeb72e9
DD
4102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4104 ac_status=$?
4105 grep -v '^ *+' conftest.er1 >conftest.err
4106 rm -f conftest.er1
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_cxx_werror_flag"
4111 || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 (eval $ac_try) 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 (eval $ac_try) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
c3a86da9
DJ
4123 ac_cv_prog_cxx_g=yes
4124else
4125 echo "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
2aeb72e9
DD
4128ac_cv_prog_cxx_g=no
4129fi
4130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4131fi
4132echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4133echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4134if test "$ac_test_CXXFLAGS" = set; then
4135 CXXFLAGS=$ac_save_CXXFLAGS
4136elif test $ac_cv_prog_cxx_g = yes; then
4137 if test "$GXX" = yes; then
4138 CXXFLAGS="-g -O2"
4139 else
4140 CXXFLAGS="-g"
4141 fi
4142else
4143 if test "$GXX" = yes; then
4144 CXXFLAGS="-O2"
4145 else
4146 CXXFLAGS=
4147 fi
4148fi
4149for ac_declaration in \
4150 '' \
4151 'extern "C" void std::exit (int) throw (); using std::exit;' \
4152 'extern "C" void std::exit (int); using std::exit;' \
4153 'extern "C" void exit (int) throw ();' \
4154 'extern "C" void exit (int);' \
4155 'void exit (int);'
4156do
4157 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4158/* confdefs.h. */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h. */
2aeb72e9
DD
4163$ac_declaration
4164#include <stdlib.h>
c3a86da9
DJ
4165int
4166main ()
4167{
2aeb72e9 4168exit (42);
c3a86da9
DJ
4169 ;
4170 return 0;
4171}
4172_ACEOF
4173rm -f conftest.$ac_objext
2aeb72e9
DD
4174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4175 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_cxx_werror_flag"
4183 || test ! -s conftest.err'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; }; then
c3a86da9
DJ
4195 :
4196else
4197 echo "$as_me: failed program was:" >&5
4198sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4199
2aeb72e9
DD
4200continue
4201fi
4202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4203 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
2aeb72e9 4209$ac_declaration
c3a86da9
DJ
4210int
4211main ()
4212{
2aeb72e9 4213exit (42);
c3a86da9
DJ
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
2aeb72e9
DD
4219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_cxx_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 break
c3a86da9
DJ
4241else
4242 echo "$as_me: failed program was:" >&5
4243sed 's/^/| /' conftest.$ac_ext >&5
4244
11a67599 4245fi
2aeb72e9
DD
4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247done
4248rm -f conftest*
4249if test -n "$ac_declaration"; then
4250 echo '#ifdef __cplusplus' >>confdefs.h
4251 echo $ac_declaration >>confdefs.h
4252 echo '#endif' >>confdefs.h
c3a86da9
DJ
4253fi
4254
4255ac_ext=c
4256ac_cpp='$CPP $CPPFLAGS'
4257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260
4261
4262# We must set the default linker to the linker used by gcc for the correct
4263# operation of libtool. If LD is not defined and we are using gcc, try to
4264# set the LD default to the ld used by gcc.
4265if test -z "$LD"; then
4266 if test "$GCC" = yes; then
4267 case $build in
4268 *-*-mingw*)
4269 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4270 *)
4271 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4272 esac
4273 case $gcc_prog_ld in
4274 # Accept absolute paths.
4275 [\\/]* | [A-Za-z]:[\\/]*)
4276 LD="$gcc_prog_ld" ;;
4277 esac
4278 fi
23f6b2f9
PB
4279fi
4280
23f6b2f9
PB
4281
4282
55ffb5ed 4283
1c710c3c
DJ
4284if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4286set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4287echo "$as_me:$LINENO: checking for $ac_word" >&5
4288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4289if test "${ac_cv_prog_GNATBIND+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4291else
4292 if test -n "$GNATBIND"; then
4293 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4294else
1c710c3c
DJ
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4302 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4305 fi
4306done
4307done
4308
55ffb5ed
NN
4309fi
4310fi
1c710c3c 4311GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4312if test -n "$GNATBIND"; then
2aeb72e9
DD
4313 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4314echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4315else
2aeb72e9
DD
4316 echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
55ffb5ed
NN
4318fi
4319
1c710c3c 4320fi
55ffb5ed 4321if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4322 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4323 # Extract the first word of "gnatbind", so it can be a program name with args.
4324set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4325echo "$as_me:$LINENO: checking for $ac_word" >&5
4326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4327if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4329else
1c710c3c
DJ
4330 if test -n "$ac_ct_GNATBIND"; then
4331 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4332else
1c710c3c
DJ
4333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH
4335do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4340 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 break 2
4343 fi
4344done
4345done
4346
2aeb72e9 4347 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4348fi
4349fi
1c710c3c
DJ
4350ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4351if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4352 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4353echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4354else
2aeb72e9
DD
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
55ffb5ed
NN
4357fi
4358
2aeb72e9 4359 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4360else
1c710c3c 4361 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4362fi
4363
1c710c3c
DJ
4364if test -n "$ac_tool_prefix"; then
4365 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4366set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4367echo "$as_me:$LINENO: checking for $ac_word" >&5
4368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4369if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4371else
4372 if test -n "$GNATMAKE"; then
4373 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4374else
1c710c3c
DJ
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4382 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386done
4387done
4388
5305be7e
RG
4389fi
4390fi
1c710c3c 4391GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4392if test -n "$GNATMAKE"; then
2aeb72e9
DD
4393 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4394echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4395else
2aeb72e9
DD
4396 echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6
5305be7e
RG
4398fi
4399
1c710c3c 4400fi
5305be7e 4401if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4402 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4403 # Extract the first word of "gnatmake", so it can be a program name with args.
4404set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4405echo "$as_me:$LINENO: checking for $ac_word" >&5
4406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4407if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4409else
1c710c3c
DJ
4410 if test -n "$ac_ct_GNATMAKE"; then
4411 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4412else
1c710c3c
DJ
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4420 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425done
4426
2aeb72e9 4427 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4428fi
4429fi
1c710c3c
DJ
4430ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4431if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4432 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4433echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4434else
2aeb72e9
DD
4435 echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
5305be7e
RG
4437fi
4438
2aeb72e9 4439 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4440else
1c710c3c 4441 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4442fi
4443
2aeb72e9
DD
4444echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4445echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4446if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4448else
4449 cat >conftest.adb <<EOF
4450procedure conftest is begin null; end conftest;
4451EOF
4452acx_cv_cc_gcc_supports_ada=no
4453# There is a bug in old released versions of GCC which causes the
4454# driver to exit successfully when the appropriate language module
4455# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4456# Therefore we must check for the error message as well as an
4457# unsuccessful exit.
1db673ca
RO
4458# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4459# given a .adb file, but produce no object file. So we must check
4460# if an object file was really produced to guard against this.
55ffb5ed 4461errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4462if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4463 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4464fi
4465rm -f conftest.*
4466fi
2aeb72e9
DD
4467echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4468echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4469
5305be7e 4470if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4471 have_gnat=yes
4472else
4473 have_gnat=no
4474fi
4475
2aeb72e9
DD
4476echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4477echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4478if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4480else
4481 echo abfoo >t1
4482 echo cdfoo >t2
4483 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4484 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4485 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4486 :
4487 else
4488 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4489 fi
4490 fi
a76494aa
PB
4491 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4492 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4493 :
a76494aa
PB
4494 else
4495 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4496 fi
4497 fi
4498 rm t1 t2
4499
4500fi
2aeb72e9
DD
4501echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4502echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4503do_compare="$gcc_cv_prog_cmp_skip"
4504
4505
55ffb5ed 4506
acd26225 4507# Check for GMP, MPFR and MPC
e69bf64b 4508gmplibs="-lmpfr -lgmp"
6de9cd9a 4509gmpinc=
e69bf64b 4510have_gmp=no
5f4a82c0 4511mpclibs=-lmpc
acd26225
KG
4512mpcinc=
4513have_mpc=no
4514
4515# Specify a location for mpc
4516# check for this first so it ends up on the link line before mpfr.
4517
4518# Check whether --with-mpc or --without-mpc was given.
4519if test "${with_mpc+set}" = set; then
4520 withval="$with_mpc"
4521
4522fi;
4523
4524# Check whether --with-mpc_include or --without-mpc_include was given.
4525if test "${with_mpc_include+set}" = set; then
4526 withval="$with_mpc_include"
4527
4528fi;
4529
4530# Check whether --with-mpc_lib or --without-mpc_lib was given.
4531if test "${with_mpc_lib+set}" = set; then
4532 withval="$with_mpc_lib"
4533
4534fi;
4535
4536if test "x$with_mpc" != x; then
4537 mpclibs="-L$with_mpc/lib -lmpc"
4538 mpcinc="-I$with_mpc/include $mpcinc"
4539fi
4540if test "x$with_mpc_include" != x; then
4541 mpcinc="-I$with_mpc_include $mpcinc"
4542fi
4543if test "x$with_mpc_lib" != x; then
4544 mpclibs="-L$with_mpc_lib -lmpc"
4545fi
4546if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4547 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4548 mpcinc='-I$$s/mpc/src '"$mpcinc"
4549 # Do not test the mpc version. Assume that it is sufficient, since
4550 # it is in the source tree, and the library has not been built yet
4551 # but it would be included on the link line in the version check below
4552 # hence making the test fail.
4553 have_mpc=yes
4554fi
e69bf64b 4555
bebf829d
PB
4556# Specify a location for mpfr
4557# check for this first so it ends up on the link line before gmp.
1c710c3c 4558
2aeb72e9 4559# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4560if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4561 withval="$with_mpfr_dir"
4562 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4563Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4564echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4565Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4566 { (exit 1); exit 1; }; }
2aeb72e9 4567fi;
bebf829d
PB
4568
4569
2aeb72e9 4570# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4571if test "${with_mpfr+set}" = set; then
2aeb72e9 4572 withval="$with_mpfr"
1c710c3c 4573
2aeb72e9 4574fi;
bebf829d 4575
2aeb72e9 4576# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4577if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4578 withval="$with_mpfr_include"
1c710c3c 4579
2aeb72e9 4580fi;
8a877c9c 4581
2aeb72e9 4582# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4583if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4584 withval="$with_mpfr_lib"
8a877c9c 4585
2aeb72e9 4586fi;
bebf829d
PB
4587
4588if test "x$with_mpfr" != x; then
4589 gmplibs="-L$with_mpfr/lib $gmplibs"
4590 gmpinc="-I$with_mpfr/include"
4591fi
8a877c9c
KG
4592if test "x$with_mpfr_include" != x; then
4593 gmpinc="-I$with_mpfr_include"
4594fi
4595if test "x$with_mpfr_lib" != x; then
4596 gmplibs="-L$with_mpfr_lib $gmplibs"
4597fi
e69bf64b
PB
4598if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4599 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4600 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
acd26225 4601 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
e69bf64b
PB
4602 # Do not test the mpfr version. Assume that it is sufficient, since
4603 # it is in the source tree, and the library has not been built yet
4604 # but it would be included on the link line in the version check below
4605 # hence making the test fail.
4606 have_gmp=yes
4607fi
bebf829d 4608
6de9cd9a 4609# Specify a location for gmp
1c710c3c 4610
2aeb72e9 4611# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4612if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4613 withval="$with_gmp_dir"
4614 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4615Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4616echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4617Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4618 { (exit 1); exit 1; }; }
2aeb72e9 4619fi;
6de9cd9a 4620
6de9cd9a 4621
2aeb72e9 4622# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4623if test "${with_gmp+set}" = set; then
2aeb72e9 4624 withval="$with_gmp"
1c710c3c 4625
2aeb72e9 4626fi;
6de9cd9a 4627
2aeb72e9 4628# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4629if test "${with_gmp_include+set}" = set; then
2aeb72e9 4630 withval="$with_gmp_include"
1c710c3c 4631
2aeb72e9 4632fi;
8a877c9c 4633
2aeb72e9 4634# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4635if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4636 withval="$with_gmp_lib"
8a877c9c 4637
2aeb72e9 4638fi;
8a877c9c 4639
6de9cd9a 4640
bebf829d
PB
4641if test "x$with_gmp" != x; then
4642 gmplibs="-L$with_gmp/lib $gmplibs"
4643 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4644fi
8a877c9c
KG
4645if test "x$with_gmp_include" != x; then
4646 gmpinc="-I$with_gmp_include $gmpinc"
4647fi
4648if test "x$with_gmp_lib" != x; then
4649 gmplibs="-L$with_gmp_lib $gmplibs"
4650fi
e69bf64b
PB
4651if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4652 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4653 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9e3eba15 4654 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
acd26225 4655 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
4656 # Do not test the gmp version. Assume that it is sufficient, since
4657 # it is in the source tree, and the library has not been built yet
4658 # but it would be included on the link line in the version check below
4659 # hence making the test fail.
4660 have_gmp=yes
4661fi
6de9cd9a 4662
d943d7c4 4663if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4664 have_gmp=yes
4665 saved_CFLAGS="$CFLAGS"
4666 CFLAGS="$CFLAGS $gmpinc"
4667 # Check GMP actually works
2aeb72e9
DD
4668 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4669echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4670
4671cat >conftest.$ac_ext <<_ACEOF
4672/* confdefs.h. */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h. */
6de9cd9a 4677#include "gmp.h"
1c710c3c
DJ
4678int
4679main ()
4680{
6de9cd9a 4681
a3337ea2 4682 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
e69bf64b
PB
4683 choke me
4684 #endif
1c710c3c
DJ
4685
4686 ;
4687 return 0;
4688}
4689_ACEOF
4690rm -f conftest.$ac_objext
2aeb72e9
DD
4691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest.$ac_objext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 echo "$as_me:$LINENO: result: yes" >&5
4713echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4714else
4715 echo "$as_me: failed program was:" >&5
4716sed 's/^/| /' conftest.$ac_ext >&5
4717
2aeb72e9
DD
4718echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4720fi
2aeb72e9 4721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4722
acd26225 4723 # If we have GMP, check the MPFR version.
e69bf64b 4724 if test x"$have_gmp" = xyes; then
2aeb72e9
DD
4725 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4726echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4727 cat >conftest.$ac_ext <<_ACEOF
4728/* confdefs.h. */
4729_ACEOF
4730cat confdefs.h >>conftest.$ac_ext
4731cat >>conftest.$ac_ext <<_ACEOF
4732/* end confdefs.h. */
70ec446f 4733#include <gmp.h>
e69bf64b 4734 #include <mpfr.h>
1c710c3c
DJ
4735int
4736main ()
4737{
e48d66a9 4738
a3337ea2 4739 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
4740 choke me
4741 #endif
1c710c3c
DJ
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
acd26225
KG
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_c_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
acd26225 4763 { ac_try='test -s conftest.$ac_objext'
2aeb72e9
DD
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
1c710c3c
DJ
4769 cat >conftest.$ac_ext <<_ACEOF
4770/* confdefs.h. */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h. */
a3993f33 4775#include <gmp.h>
e69bf64b 4776 #include <mpfr.h>
1c710c3c
DJ
4777int
4778main ()
4779{
a3993f33 4780
36c713e0 4781 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
4782 choke me
4783 #endif
acd26225
KG
4784
4785 ;
4786 return 0;
4787}
4788_ACEOF
4789rm -f conftest.$ac_objext
4790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791 (eval $ac_compile) 2>conftest.er1
4792 ac_status=$?
4793 grep -v '^ *+' conftest.er1 >conftest.err
4794 rm -f conftest.er1
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try='test -z "$ac_c_werror_flag"
4799 || test ! -s conftest.err'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; } &&
4805 { ac_try='test -s conftest.$ac_objext'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4811 echo "$as_me:$LINENO: result: yes" >&5
4812echo "${ECHO_T}yes" >&6
4813else
4814 echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4818echo "${ECHO_T}buggy but acceptable" >&6
4819fi
4820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821else
4822 echo "$as_me: failed program was:" >&5
4823sed 's/^/| /' conftest.$ac_ext >&5
4824
4825echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6; have_gmp=no
4827fi
4828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 fi
4830
4831 # Check for the MPC header version.
4832 if test x"$have_mpc" != xyes ; then
4833 CFLAGS="$CFLAGS $mpcinc"
4834 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4835echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4836 cat >conftest.$ac_ext <<_ACEOF
4837/* confdefs.h. */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h. */
4842#include <mpc.h>
4843int
4844main ()
4845{
4846
4847 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4848 choke me
4849 #endif
4850
4851 ;
4852 return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 echo "$as_me:$LINENO: result: yes" >&5
4878echo "${ECHO_T}yes" >&6; have_mpc=maybe
4879else
4880 echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4885fi
4886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887 fi
4888
4889 # Now check the MPFR library.
4890 if test x"$have_gmp" = xyes; then
4891 saved_LIBS="$LIBS"
4892 LIBS="$LIBS $gmplibs"
4893 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4894echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4895 cat >conftest.$ac_ext <<_ACEOF
4896/* confdefs.h. */
4897_ACEOF
4898cat confdefs.h >>conftest.$ac_ext
4899cat >>conftest.$ac_ext <<_ACEOF
4900/* end confdefs.h. */
4901#include <gmp.h>
4902 #include <mpfr.h>
4903int
4904main ()
4905{
4906
4907 mpfr_t n;
4908 mpfr_t x;
4909 int t;
4910 mpfr_init (n);
4911 mpfr_init (x);
4912 mpfr_atan2 (n, n, x, GMP_RNDN);
4913 mpfr_erfc (n, x, GMP_RNDN);
4914 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4915
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4928 (exit $ac_status); } &&
4929 { ac_try='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try='test -s conftest$ac_exeext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4944else
4945 echo "$as_me: failed program was:" >&5
4946sed 's/^/| /' conftest.$ac_ext >&5
4947
acd26225
KG
4948echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4950fi
2aeb72e9 4951rm -f conftest.err conftest.$ac_objext \
1c710c3c 4952 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
4953 LIBS="$saved_LIBS"
4954 fi
4955
4956 if test x"$have_mpc" = xmaybe; then
4957 saved_LIBS="$LIBS"
4958 LIBS="$LIBS $mpclibs $gmplibs"
4959 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4960echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4961 cat >conftest.$ac_ext <<_ACEOF
4962/* confdefs.h. */
4963_ACEOF
4964cat confdefs.h >>conftest.$ac_ext
4965cat >>conftest.$ac_ext <<_ACEOF
4966/* end confdefs.h. */
4967#include <mpc.h>
4968int
4969main ()
4970{
4971
4972 mpc_t n;
4973 mpc_init2 (n, 53);
4974 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
4975 mpc_sin (n, n, MPC_RNDNN);
4976 mpc_cos (n, n, MPC_RNDNN);
4977 mpc_tan (n, n, MPC_RNDNN);
4978 mpc_sinh (n, n, MPC_RNDNN);
4979 mpc_cosh (n, n, MPC_RNDNN);
4980 mpc_tanh (n, n, MPC_RNDNN);
4981 mpc_exp (n, n, MPC_RNDNN);
4982 mpc_log (n, n, MPC_RNDNN);
4983 mpc_sqrt (n, n, MPC_RNDNN);
4984 mpc_proj (n, n, MPC_RNDNN);
4985 mpc_neg (n, n, MPC_RNDNN);
4986 mpc_sqr (n, n, MPC_RNDNN);
4987 mpc_clear (n);
4988
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993rm -f conftest.$ac_objext conftest$ac_exeext
4994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4995 (eval $ac_link) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest$ac_exeext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6; have_mpc=yes
1c710c3c
DJ
5017else
5018 echo "$as_me: failed program was:" >&5
5019sed 's/^/| /' conftest.$ac_ext >&5
5020
2aeb72e9 5021echo "$as_me:$LINENO: result: no" >&5
acd26225 5022echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
1c710c3c 5023fi
2aeb72e9 5024rm -f conftest.err conftest.$ac_objext \
1c710c3c 5025 conftest$ac_exeext conftest.$ac_ext
acd26225 5026 LIBS="$saved_LIBS"
e69bf64b 5027 fi
acd26225 5028
e69bf64b 5029 CFLAGS="$saved_CFLAGS"
6de9cd9a 5030
e69bf64b 5031 if test x$have_gmp != xyes; then
a3337ea2 5032 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
1c710c3c
DJ
5033Try the --with-gmp and/or --with-mpfr options to specify their locations.
5034Copies of these libraries' source code can be found at their respective
5035hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5036See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5037If you obtained GMP and/or MPFR from a vendor distribution package, make
5038sure that you have installed both the libraries and the header files.
5039They may be located in separate packages." >&5
a3337ea2 5040echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
ca558912
KG
5041Try the --with-gmp and/or --with-mpfr options to specify their locations.
5042Copies of these libraries' source code can be found at their respective
5043hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
5044See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5045If you obtained GMP and/or MPFR from a vendor distribution package, make
5046sure that you have installed both the libraries and the header files.
1c710c3c
DJ
5047They may be located in separate packages." >&2;}
5048 { (exit 1); exit 1; }; }
e69bf64b 5049 fi
70ec446f
KG
5050fi
5051
5f4a82c0
KG
5052if test x$have_mpc != xyes ; then
5053 mpcinc=
5054 mpclibs=
5055fi
5056
acd26225
KG
5057gmpinc="$mpcinc $gmpinc"
5058gmplibs="$mpclibs $gmplibs"
5059
5060# Flags needed for both GMP, MPFR and/or MPC.
5061
5062
6de9cd9a
DN
5063
5064
5065
9e3eba15 5066
f38095f3
JM
5067# Allow host libstdc++ to be specified for static linking with PPL.
5068
5069# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5070if test "${with_host_libstdcxx+set}" = set; then
5071 withval="$with_host_libstdcxx"
5072
5073fi;
5074
5075case $with_host_libstdcxx in
5076 no|yes)
5077 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5078echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5079 { (exit 1); exit 1; }; }
5080 ;;
5081esac
f8bf9252
SP
5082
5083# Check for PPL
5084ppl_major_version=0
5085ppl_minor_version=10
f38095f3 5086ppllibs=" -lppl_c -lppl -lgmpxx $with_host_libstdcxx "
f8bf9252
SP
5087pplinc=
5088
5089
5090# Check whether --with-ppl or --without-ppl was given.
5091if test "${with_ppl+set}" = set; then
5092 withval="$with_ppl"
5093
0b70eafd
DK
5094else
5095 with_ppl=no
f8bf9252
SP
5096fi;
5097
5098# Check whether --with-ppl_include or --without-ppl_include was given.
5099if test "${with_ppl_include+set}" = set; then
5100 withval="$with_ppl_include"
5101
5102fi;
5103
5104# Check whether --with-ppl_lib or --without-ppl_lib was given.
5105if test "${with_ppl_lib+set}" = set; then
5106 withval="$with_ppl_lib"
5107
5108fi;
5109
53095c56
SP
5110case $with_ppl in
5111 no)
5112 ppllibs=
5113 ;;
5114 *)
f38095f3 5115 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
53095c56
SP
5116 pplinc="-I$with_ppl/include $pplinc"
5117 LIBS="$ppllibs $LIBS"
5118 ;;
5119esac
f8bf9252
SP
5120if test "x$with_ppl_include" != x; then
5121 pplinc="-I$with_ppl_include $pplinc"
5122fi
5123if test "x$with_ppl_lib" != x; then
f38095f3 5124 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx $with_host_libstdcxx"
f8bf9252
SP
5125 LIBS="$ppllibs $LIBS"
5126fi
5127if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
f38095f3 5128 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '"$with_host_libstdcxx "
f8bf9252
SP
5129 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5130 LIBS="$ppllibs $LIBS"
5131fi
5132
d789184e
SP
5133# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5134if test "${enable_ppl_version_check+set}" = set; then
5135 enableval="$enable_ppl_version_check"
5136 ENABLE_PPL_CHECK=$enableval
5137else
5138 ENABLE_PPL_CHECK=yes
f8bf9252
SP
5139fi;
5140
d789184e
SP
5141if test "${ENABLE_PPL_CHECK}" = "yes"; then
5142 saved_CFLAGS="$CFLAGS"
5143 CFLAGS="$CFLAGS $pplinc $gmpinc"
5144 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
f8bf9252 5145echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
d789184e 5146 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152#include "ppl_c.h"
5153int
5154main ()
5155{
5156
d789184e
SP
5157 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5158 choke me
5159 #endif
f8bf9252
SP
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
5165rm -f conftest.$ac_objext
5166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -z "$ac_c_werror_flag"
5175 || test ! -s conftest.err'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try='test -s conftest.$ac_objext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183 (eval $ac_try) 2>&5
5184 ac_status=$?
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 echo "$as_me:$LINENO: result: yes" >&5
5188echo "${ECHO_T}yes" >&6
5189else
5190 echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193echo "$as_me:$LINENO: result: no" >&5
d789184e 5194echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
f8bf9252
SP
5195fi
5196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5197 CFLAGS="$saved_CFLAGS"
5198fi
5199
5200# Flags needed for PPL
5201
5202
f8bf9252 5203
f8bf9252 5204
d789184e 5205# Check for CLOOG
23d9794a 5206clooglibs=" -lcloog "
d789184e
SP
5207clooginc=" -DCLOOG_PPL_BACKEND "
5208
5209
5210# Check whether --with-cloog or --without-cloog was given.
5211if test "${with_cloog+set}" = set; then
5212 withval="$with_cloog"
5213
0b70eafd
DK
5214else
5215 with_cloog=no
d789184e
SP
5216fi;
5217
5218# Check whether --with-cloog_include or --without-cloog_include was given.
5219if test "${with_cloog_include+set}" = set; then
5220 withval="$with_cloog_include"
5221
5222fi;
5223
5224# Check whether --with-cloog_lib or --without-cloog_lib was given.
5225if test "${with_cloog_lib+set}" = set; then
5226 withval="$with_cloog_lib"
5227
5228fi;
5229
53095c56
SP
5230case $with_cloog in
5231 no)
5232 clooglibs=
5233 clooginc=
5234 ;;
5235 *)
5236 clooglibs="-L$with_cloog/lib -lcloog"
5237 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5238 LIBS="$clooglibs $LIBS"
5239 ;;
5240esac
d789184e
SP
5241if test "x$with_cloog_include" != x; then
5242 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5243fi
5244if test "x$with_cloog_lib" != x; then
5245 clooglibs="-L$with_cloog_lib -lcloog"
5246 LIBS="$clooglibs $LIBS"
5247fi
5248if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5249 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5250 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5251 LIBS="$clooglibs $LIBS"
5252fi
5253
5254# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5255if test "${enable_cloog_version_check+set}" = set; then
5256 enableval="$enable_cloog_version_check"
5257 ENABLE_CLOOG_CHECK=$enableval
5258else
5259 ENABLE_CLOOG_CHECK=yes
5260fi;
5261
5262if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5263 saved_CFLAGS="$CFLAGS"
5264 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5265 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
f8bf9252 5266echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
d789184e 5267 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#include "cloog/cloog.h"
5274int
5275main ()
5276{
5277
d789184e
SP
5278 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5279 choke me
5280 #endif
f8bf9252
SP
5281
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286rm -f conftest.$ac_objext
5287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
5310else
5311 echo "$as_me: failed program was:" >&5
5312sed 's/^/| /' conftest.$ac_ext >&5
5313
5314echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5316fi
5317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5318 CFLAGS="$saved_CFLAGS"
5319fi
f8bf9252
SP
5320
5321# Flags needed for CLOOG
5322
5323
5324
5325
1e0f07d3 5326# By default, C is the only stage 1 language.
e1888513 5327stage1_languages=,c,
2805b53a 5328
55ffb5ed
NN
5329# Figure out what language subdirectories are present.
5330# Look if the user specified --enable-languages="..."; if not, use
5331# the environment variable $LANGUAGES if defined. $LANGUAGES might
5332# go away some day.
5333# NB: embedded tabs in this IF block -- do not untabify
5334if test -d ${srcdir}/gcc; then
5335 if test x"${enable_languages+set}" != xset; then
5336 if test x"${LANGUAGES+set}" = xset; then
5337 enable_languages="${LANGUAGES}"
5338 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5339 else
5340 enable_languages=all
5341 fi
5342 else
5343 if test x"${enable_languages}" = x ||
5344 test x"${enable_languages}" = xyes;
5345 then
5346 echo configure.in: --enable-languages needs at least one language argument 1>&2
5347 exit 1
5348 fi
5349 fi
5350 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5351
7f26dfa3
FXC
5352 # 'f95' is the old name for the 'fortran' language. We issue a warning
5353 # and make the substitution.
5354 case ,${enable_languages}, in
5355 *,f95,*)
5356 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5357 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5358 ;;
5359 esac
5360
55ffb5ed
NN
5361 # First scan to see if an enabled language requires some other language.
5362 # We assume that a given config-lang.in will list all the language
5363 # front ends it requires, even if some are required indirectly.
5364 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5365 case ${lang_frag} in
5366 ..) ;;
5367 # The odd quoting in the next line works around
5368 # an apparent bug in bash 1.12 on linux.
5369 ${srcdir}/gcc/[*]/config-lang.in) ;;
5370 *)
5371 # From the config-lang.in, get $language, $lang_requires
5372 language=
5373 lang_requires=
5374 . ${lang_frag}
5375 for other in ${lang_requires} ; do
5376 case ,${enable_languages}, in
5377 *,$other,*) ;;
5378 *,all,*) ;;
5379 *,$language,*)
5380 echo " \`$other' language required by \`$language'; enabling" 1>&2
5381 enable_languages="${enable_languages},${other}"
5382 ;;
5383 esac
5384 done
5385 ;;
5386 esac
5387 done
5388
e1888513 5389 new_enable_languages=,c,
55ffb5ed 5390 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5391 potential_languages=,c,
55ffb5ed
NN
5392
5393 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5394 case ${lang_frag} in
5395 ..) ;;
5396 # The odd quoting in the next line works around
5397 # an apparent bug in bash 1.12 on linux.
5398 ${srcdir}/gcc/[*]/config-lang.in) ;;
5399 *)
1c710c3c 5400 # From the config-lang.in, get $language, $target_libs,
2805b53a 5401 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5402 language=
5403 target_libs=
5404 lang_dirs=
1546bb64 5405 subdir_requires=
e1888513
PB
5406 boot_language=no
5407 build_by_default=yes
55ffb5ed 5408 . ${lang_frag}
e1888513
PB
5409 if test x${language} = x; then
5410 echo "${lang_frag} doesn't set \$language." 1>&2
5411 exit 1
5412 fi
5413
5414 case ,${enable_languages}, in
5415 *,${language},*)
55ffb5ed
NN
5416 # Language was explicitly selected; include it.
5417 add_this_lang=yes
5418 ;;
e1888513
PB
5419 *,all,*)
5420 # 'all' was selected, select it if it is a default language
5421 add_this_lang=${build_by_default}
55ffb5ed
NN
5422 ;;
5423 *)
5424 add_this_lang=no
5425 ;;
5426 esac
6de9cd9a 5427
1546bb64 5428 # Disable languages that need other directories if these aren't available.
95695ad3 5429 for i in $subdir_requires; do
b6348cb3 5430 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5431 case ,${enable_languages}, in
5432 *,${language},*)
5433 # Specifically requested language; tell them.
1c710c3c
DJ
5434 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5435echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5436 { (exit 1); exit 1; }; }
1546bb64
PB
5437 ;;
5438 *)
5439 # Silently disable.
e1888513 5440 add_this_lang=unsupported
1546bb64
PB
5441 ;;
5442 esac
5443 done
5444
e1888513
PB
5445 # Disable Ada if no preexisting GNAT is available.
5446 case ,${enable_languages},:${language}:${have_gnat} in
5447 *,${language},*:ada:no)
5448 # Specifically requested language; tell them.
1c710c3c
DJ
5449 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5450echo "$as_me: error: GNAT is required to build $language" >&2;}
5451 { (exit 1); exit 1; }; }
e1888513
PB
5452 ;;
5453 *:ada:no)
5454 # Silently disable.
5455 add_this_lang=unsupported
5456 ;;
5457 esac
5458
4fab7234
HPN
5459 # Disable a language that is unsupported by the target.
5460 case " $unsupported_languages " in
5461 *" $language "*)
e1888513 5462 add_this_lang=unsupported
4fab7234
HPN
5463 ;;
5464 esac
5465
6de9cd9a 5466 case $add_this_lang in
e1888513 5467 unsupported)
55ffb5ed 5468 # Remove language-dependent dirs.
2805b53a
NN
5469 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5470 ;;
e1888513
PB
5471 no)
5472 # Remove language-dependent dirs; still show language as supported.
5473 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5474 potential_languages="${potential_languages}${language},"
5475 ;;
5476 yes)
5477 new_enable_languages="${new_enable_languages}${language},"
5478 potential_languages="${potential_languages}${language},"
2805b53a
NN
5479 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5480 case ${boot_language} in
5481 yes)
340de83f 5482 # Add to (comma-separated) list of stage 1 languages.
e1888513 5483 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
5484 ;;
5485 esac
5486 ;;
55ffb5ed
NN
5487 esac
5488 ;;
5489 esac
5490 done
5491
2aeb72e9 5492 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 5493if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
5494 enableval="$enable_stage1_languages"
5495 case ,${enable_stage1_languages}, in
e1888513
PB
5496 ,no,|,,)
5497 # Set it to something that will have no effect in the loop below
5498 enable_stage1_languages=c ;;
5499 ,yes,)
5500 enable_stage1_languages=`echo $new_enable_languages | \
5501 sed -e "s/^,//" -e "s/,$//" ` ;;
5502 *,all,*)
5503 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5504 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5505 esac
5506
5507 # Add "good" languages from enable_stage1_languages to stage1_languages,
5508 # while "bad" languages go in missing_languages. Leave no duplicates.
5509 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5510 case $potential_languages in
5511 *,$i,*)
5512 case $stage1_languages in
5513 *,$i,*) ;;
5514 *) stage1_languages="$stage1_languages$i," ;;
5515 esac ;;
5516 *)
5517 case $missing_languages in
5518 *,$i,*) ;;
5519 *) missing_languages="$missing_languages$i," ;;
5520 esac ;;
5521 esac
5522 done
2aeb72e9 5523fi;
e1888513
PB
5524
5525 # Remove leading/trailing commas that were added for simplicity
5526 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5527 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5528 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5529 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5530
55ffb5ed 5531 if test "x$missing_languages" != x; then
1c710c3c 5532 { { echo "$as_me:$LINENO: error:
0cf085e4 5533The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5534Supported languages are: ${potential_languages}" >&5
5535echo "$as_me: error:
5536The following requested languages could not be built: ${missing_languages}
5537Supported languages are: ${potential_languages}" >&2;}
5538 { (exit 1); exit 1; }; }
55ffb5ed 5539 fi
55ffb5ed
NN
5540 if test "x$new_enable_languages" != "x$enable_languages"; then
5541 echo The following languages will be built: ${new_enable_languages}
e1888513 5542 enable_languages="$new_enable_languages"
55ffb5ed 5543 fi
e1888513 5544
1c710c3c 5545
b2eaac4a 5546 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5547fi
5548
27079765
AH
5549# Handle --disable-<component> generically.
5550for dir in $configdirs $build_configdirs $target_configdirs ; do
5551 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5552 varname=`echo $dirname | sed -e s/+/_/g`
5553 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5554 noconfigdirs="$noconfigdirs $dir"
5555 fi
5556done
5557
7cd0cf9c 5558# Check for Boehm's garbage collector
2aeb72e9 5559# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 5560if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
5561 enableval="$enable_objc_gc"
5562 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5563 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5564 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5565echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5566 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5567 ;;
5568esac
2aeb72e9 5569fi;
7cd0cf9c
DA
5570
5571# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5572case ,${enable_languages},:${enable_objc_gc} in
5573 *,objc,*:yes)
7cd0cf9c
DA
5574 # Keep target-boehm-gc if requested for Objective-C.
5575 ;;
7cd0cf9c 5576 *)
2a79fd67
DA
5577 # Otherwise remove target-boehm-gc depending on target-libjava.
5578 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5579 noconfigdirs="$noconfigdirs target-boehm-gc"
5580 fi
7cd0cf9c
DA
5581 ;;
5582esac
5583
ee6a22df
L
5584# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5585# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5586# If we have the source for $noconfigdirs entries, add them to $notsupp.
5587
5588notsupp=""
5589for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5590 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5591 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5592 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5593 if test -r $srcdir/$dirname/configure ; then
5594 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5595 true
5596 else
5597 notsupp="$notsupp $dir"
5598 fi
5599 fi
5600 fi
ee6a22df
L
5601 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5602 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5603 if test -r $srcdir/$dirname/configure ; then
5604 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5605 true
5606 else
5607 notsupp="$notsupp $dir"
5608 fi
5609 fi
5610 fi
55ffb5ed
NN
5611 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5612 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5613 if test -r $srcdir/$dirname/configure ; then
5614 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5615 true
5616 else
5617 notsupp="$notsupp $dir"
5618 fi
5619 fi
5620 fi
5621done
5622
5623# Sometimes the tools are distributed with libiberty but with no other
5624# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5625# Don't let libgcc imply libiberty either.
55ffb5ed 5626if test -n "${target_configdirs}" ; then
54fdc474 5627 libgcc=
55ffb5ed
NN
5628 others=
5629 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5630 if test "$i" = "libgcc"; then
5631 libgcc=target-libgcc
5632 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5633 if test -r $srcdir/$i/configure ; then
5634 others=yes;
5635 break;
5636 fi
5637 fi
5638 done
5639 if test -z "${others}" ; then
54fdc474 5640 target_configdirs=$libgcc
55ffb5ed
NN
5641 fi
5642fi
5643
5644# Quietly strip out all directories which aren't configurable in this tree.
5645# This relies on all configurable subdirectories being autoconfiscated, which
5646# is now the case.
23f6b2f9
PB
5647build_configdirs_all="$build_configdirs"
5648build_configdirs=
5649for i in ${build_configdirs_all} ; do
1c710c3c 5650 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5651 if test -f ${srcdir}/$j/configure ; then
5652 build_configdirs="${build_configdirs} $i"
5653 fi
5654done
5655
55ffb5ed
NN
5656configdirs_all="$configdirs"
5657configdirs=
5658for i in ${configdirs_all} ; do
5659 if test -f ${srcdir}/$i/configure ; then
5660 configdirs="${configdirs} $i"
5661 fi
5662done
23f6b2f9 5663
55ffb5ed
NN
5664target_configdirs_all="$target_configdirs"
5665target_configdirs=
5666for i in ${target_configdirs_all} ; do
1c710c3c 5667 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5668 if test -f ${srcdir}/$j/configure ; then
5669 target_configdirs="${target_configdirs} $i"
5670 fi
5671done
5672
5673# Produce a warning message for the subdirs we can't configure.
5674# This isn't especially interesting in the Cygnus tree, but in the individual
5675# FSF releases, it's important to let people know when their machine isn't
5676# supported by the one or two programs in a package.
5677
5678if test -n "${notsupp}" && test -z "${norecursion}" ; then
5679 # If $appdirs is non-empty, at least one of those directories must still
5680 # be configured, or we error out. (E.g., if the gas release supports a
5681 # specified target in some subdirs but not the gas subdir, we shouldn't
5682 # pretend that all is well.)
5683 if test -n "$appdirs" ; then
5684 for dir in $appdirs ; do
5685 if test -r $dir/Makefile.in ; then
5686 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5687 appdirs=""
5688 break
5689 fi
23f6b2f9 5690 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5691 appdirs=""
5692 break
5693 fi
5694 fi
5695 done
5696 if test -n "$appdirs" ; then
5697 echo "*** This configuration is not supported by this package." 1>&2
5698 exit 1
5699 fi
5700 fi
5701 # Okay, some application will build, or we don't care to check. Still
5702 # notify of subdirs not getting built.
5703 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5704 echo " ${notsupp}" 1>&2
5705 echo " (Any other directories should still work fine.)" 1>&2
5706fi
5707
5708case "$host" in
5709 *msdosdjgpp*)
5710 enable_gdbtk=no ;;
5711esac
5712
c3a86da9
DJ
5713# To find our prefix, in gcc_cv_tool_prefix.
5714
5715# The user is always right.
5716if test "${PATH_SEPARATOR+set}" != set; then
5717 echo "#! /bin/sh" >conf$$.sh
5718 echo "exit 0" >>conf$$.sh
5719 chmod +x conf$$.sh
5720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5721 PATH_SEPARATOR=';'
5722 else
5723 PATH_SEPARATOR=:
5724 fi
5725 rm -f conf$$.sh
5726fi
5727
5728
5729
5730if test "x$exec_prefix" = xNONE; then
5731 if test "x$prefix" = xNONE; then
5732 gcc_cv_tool_prefix=$ac_default_prefix
5733 else
5734 gcc_cv_tool_prefix=$prefix
5735 fi
5736else
5737 gcc_cv_tool_prefix=$exec_prefix
5738fi
5739
5740# If there is no compiler in the tree, use the PATH only. In any
5741# case, if there is no compiler in the tree nobody should use
5742# AS_FOR_TARGET and LD_FOR_TARGET.
5743if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5744 gcc_version=`cat $srcdir/gcc/BASE-VER`
5745 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5746 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5747 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5748 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5749 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5750 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5751else
5752 gcc_cv_tool_dirs=
5753fi
5754
5755if test x$build = x$target && test -n "$md_exec_prefix"; then
5756 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5757fi
5758
5759
5760
55ffb5ed
NN
5761copy_dirs=
5762
1c710c3c 5763
2aeb72e9 5764# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5765if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5766 withval="$with_build_sysroot"
5767 if test x"$withval" != x ; then
526635cb
MM
5768 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5769 fi
5770else
5771 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5772fi;
526635cb
MM
5773
5774
c8aea42c
PB
5775
5776# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5777if test "${with_debug_prefix_map+set}" = set; then
5778 withval="$with_debug_prefix_map"
5779 if test x"$withval" != x; then
5780 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5781 for debug_map in $withval; do
5782 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5783 done
5784 fi
5785else
5786 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5787fi;
5788
5789
1c8bd6a3
PB
5790# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5791# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5792# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5793# We want to ensure that TARGET libraries (which we know are built with
5794# gcc) are built with "-O2 -g", so include those options when setting
5795# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5796if test "x$CFLAGS_FOR_TARGET" = x; then
5797 CFLAGS_FOR_TARGET=$CFLAGS
5798 case " $CFLAGS " in
5799 *" -O2 "*) ;;
5800 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5801 esac
5802 case " $CFLAGS " in
5803 *" -g "* | *" -g3 "*) ;;
5804 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5805 esac
5806fi
5807
5808
5809if test "x$CXXFLAGS_FOR_TARGET" = x; then
5810 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5811 case " $CXXFLAGS " in
5812 *" -O2 "*) ;;
5813 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5814 esac
5815 case " $CXXFLAGS " in
5816 *" -g "* | *" -g3 "*) ;;
5817 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5818 esac
5819fi
5820
5821
55ffb5ed
NN
5822# Handle --with-headers=XXX. If the value is not "yes", the contents of
5823# the named directory are copied to $(tooldir)/sys-include.
5824if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5825 if test x${is_cross_compiler} = xno ; then
5826 echo 1>&2 '***' --with-headers is only supported when cross compiling
5827 exit 1
5828 fi
5829 if test x"${with_headers}" != xyes ; then
c3a86da9 5830 x=${gcc_cv_tool_prefix}
1c710c3c 5831 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5832 fi
5833fi
5834
5835# Handle --with-libs=XXX. If the value is not "yes", the contents of
5836# the name directories are copied to $(tooldir)/lib. Multiple directories
5837# are permitted.
5838if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5839 if test x${is_cross_compiler} = xno ; then
5840 echo 1>&2 '***' --with-libs is only supported when cross compiling
5841 exit 1
5842 fi
5843 if test x"${with_libs}" != xyes ; then
5844 # Copy the libraries in reverse order, so that files in the first named
5845 # library override files in subsequent libraries.
c3a86da9 5846 x=${gcc_cv_tool_prefix}
55ffb5ed 5847 for l in ${with_libs}; do
1c710c3c 5848 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5849 done
5850 fi
5851fi
5852
e8b05380
PB
5853# Set with_gnu_as and with_gnu_ld as appropriate.
5854#
5855# This is done by determining whether or not the appropriate directory
5856# is available, and by checking whether or not specific configurations
5857# have requested that this magic not happen.
1c710c3c
DJ
5858#
5859# The command line options always override the explicit settings in
e8b05380
PB
5860# configure.in, and the settings in configure.in override this magic.
5861#
1c710c3c 5862# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5863# want to do that, then you should use the --without-gnu-as and
5864# --without-gnu-ld options for the configure script.
5865
5866if test x${use_gnu_as} = x &&
5867 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5868 with_gnu_as=yes
5869 extra_host_args="$extra_host_args --with-gnu-as"
5870fi
5871
5872if test x${use_gnu_ld} = x &&
5afab7ad 5873 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
5874 with_gnu_ld=yes
5875 extra_host_args="$extra_host_args --with-gnu-ld"
5876fi
5877
5878# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5879# can detect this case.
5880
5881if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5882 with_newlib=yes
5883 extra_host_args="$extra_host_args --with-newlib"
5884fi
5885
55ffb5ed
NN
5886# Handle ${copy_dirs}
5887set fnord ${copy_dirs}
5888shift
5889while test $# != 0 ; do
5890 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5891 :
5892 else
5893 echo Copying $1 to $2
5894
5895 # Use the install script to create the directory and all required
5896 # parent directories.
5897 if test -d $2 ; then
5898 :
5899 else
5900 echo >config.temp
5901 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5902 fi
5903
5904 # Copy the directory, assuming we have tar.
5905 # FIXME: Should we use B in the second tar? Not all systems support it.
5906 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5907
5908 # It is the responsibility of the user to correctly adjust all
5909 # symlinks. If somebody can figure out how to handle them correctly
5910 # here, feel free to add the code.
5911
5912 echo $1 > $2/COPIED
5913 fi
5914 shift; shift
5915done
5916
e8b05380
PB
5917# Determine a target-dependent exec_prefix that the installed
5918# gcc will search in. Keep this list sorted by triplet, with
5919# the *-*-osname triplets last.
5920md_exec_prefix=
5921case "${target}" in
5922 alpha*-*-*vms*)
5923 md_exec_prefix=/gnu/lib/gcc-lib
5924 ;;
30b74385 5925 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5926 md_exec_prefix=/dev/env/DJDIR/bin
5927 ;;
30b74385 5928 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5929 if test $with_gnu_as = yes; then
5930 md_exec_prefix=/usr/gnu/bin
5931 else
5932 md_exec_prefix=/usr/ccs/bin/elf
5933 fi
5934 ;;
5935
5936 mn10300-*-* | \
5937 powerpc-*-chorusos* | \
5938 powerpc*-*-eabi* | \
5939 powerpc*-*-sysv* | \
5940 powerpc*-*-kaos* | \
5941 s390x-ibm-tpf*)
5942 md_exec_prefix=/usr/ccs/bin
5943 ;;
5944 sparc64-*-elf*)
5945 ;;
5946 v850*-*-*)
5947 md_exec_prefix=/usr/ccs/bin
5948 ;;
aa12a573 5949 xtensa*-*-elf*)
e8b05380
PB
5950 ;;
5951
5952 *-*-beos* | \
5953 *-*-elf* | \
5954 *-*-hpux* | \
5955 *-*-netware* | \
5956 *-*-nto-qnx* | \
5957 *-*-rtems* | \
5958 *-*-solaris2* | \
30b74385 5959 *-*-sysv[45]* | \
e8b05380
PB
5960 *-*-vxworks* | \
5961 *-wrs-windiss)
5962 md_exec_prefix=/usr/ccs/bin
5963 ;;
5964esac
5965
671aa708
NN
5966extra_arflags_for_target=
5967extra_nmflags_for_target=
5968extra_ranlibflags_for_target=
5969target_makefile_frag=/dev/null
5970case "${target}" in
3e19841a
PB
5971 mep*-*-*)
5972 target_makefile_frag="config/mt-mep"
5973 ;;
58e24147
AM
5974 spu-*-*)
5975 target_makefile_frag="config/mt-spu"
5976 ;;
4bf6c438
RS
5977 mips*-sde-elf*)
5978 target_makefile_frag="config/mt-sde"
5979 ;;
1ec3b87b
RS
5980 mipsisa*-*-elfoabi*)
5981 target_makefile_frag="config/mt-mips-elfoabi"
5982 ;;
08d0963a
RS
5983 mips*-*-*linux* | mips*-*-gnu*)
5984 target_makefile_frag="config/mt-mips-gnu"
5985 ;;
61fec9ff 5986 *-*-netware*)
671aa708
NN
5987 target_makefile_frag="config/mt-netware"
5988 ;;
416ac4d4 5989 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 5990 target_makefile_frag="config/mt-gnu"
671aa708
NN
5991 ;;
5992 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5993 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5994 # commands to handle both 32-bit and 64-bit objects. These flags are
5995 # harmless if we're using GNU nm or ar.
5996 extra_arflags_for_target=" -X32_64"
5997 extra_nmflags_for_target=" -B -X32_64"
5998 ;;
5999 *-*-darwin*)
6000 # ranlib from Darwin requires the -c flag to look at common symbols.
6001 extra_ranlibflags_for_target=" -c"
6002 ;;
6003 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6004 target_makefile_frag="config/mt-wince"
6005 ;;
6006esac
6007
6008alphaieee_frag=/dev/null
6009case $target in
6010 alpha*-*-*)
6011 # This just makes sure to use the -mieee option to build target libs.
6012 # This should probably be set individually by each library.
6013 alphaieee_frag="config/mt-alphaieee"
6014 ;;
6015esac
6016
6017# If --enable-target-optspace always use -Os instead of -O2 to build
6018# the target libraries, similarly if it is not specified, use -Os
6019# on selected platforms.
6020ospace_frag=/dev/null
6021case "${enable_target_optspace}:${target}" in
6022 yes:*)
6023 ospace_frag="config/mt-ospace"
6024 ;;
6025 :d30v-*)
6026 ospace_frag="config/mt-d30v"
6027 ;;
6028 :m32r-* | :d10v-* | :fr30-*)
6029 ospace_frag="config/mt-ospace"
6030 ;;
6031 no:* | :*)
6032 ;;
6033 *)
6034 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6035 ;;
6036esac
6037
671aa708
NN
6038# Default to using --with-stabs for certain targets.
6039if test x${with_stabs} = x ; then
6040 case "${target}" in
89a95129 6041 mips*-*-irix[56]*)
671aa708
NN
6042 ;;
6043 mips*-*-* | alpha*-*-osf*)
6044 with_stabs=yes;
6045 extra_host_args="${extra_host_args} --with-stabs"
6046 ;;
6047 esac
6048fi
6049
6050# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6051# them automatically.
6052case "${host}" in
1c710c3c 6053 hppa*64*-*-hpux11*)
671aa708
NN
6054 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6055 ;;
6056esac
6057
671aa708
NN
6058# Some systems (e.g., one of the i386-aix systems the gas testers are
6059# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6060tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6061build_tooldir=${tooldir}
6062
671aa708
NN
6063# Create a .gdbinit file which runs the one in srcdir
6064# and tells GDB to look there for source files.
6065
6066if test -r ${srcdir}/.gdbinit ; then
6067 case ${srcdir} in
6068 .) ;;
6069 *) cat > ./.gdbinit <<EOF
6070# ${NO_EDIT}
6071dir ${srcdir}
6072dir .
6073source ${srcdir}/.gdbinit
6074EOF
6075 ;;
6076 esac
6077fi
6078
671aa708
NN
6079# Make sure that the compiler is able to generate an executable. If it
6080# can't, we are probably in trouble. We don't care whether we can run the
6081# executable--we might be using a cross compiler--we only care whether it
6082# can be created. At this point the main configure script has set CC.
6083we_are_ok=no
6084echo "int main () { return 0; }" > conftest.c
6085${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6086if test $? = 0 ; then
6087 if test -s conftest || test -s conftest.exe ; then
6088 we_are_ok=yes
6089 fi
1c710c3c 6090fi
671aa708
NN
6091case $we_are_ok in
6092 no)
6093 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6094 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6095 rm -f conftest*
6096 exit 1
6097 ;;
6098esac
6099rm -f conftest*
6100
6101# The Solaris /usr/ucb/cc compiler does not appear to work.
6102case "${host}" in
6103 sparc-sun-solaris2*)
6104 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6105 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6106 could_use=
6107 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6108 if test -d /opt/cygnus/bin ; then
6109 if test "$could_use" = "" ; then
6110 could_use="/opt/cygnus/bin"
6111 else
6112 could_use="$could_use or /opt/cygnus/bin"
6113 fi
6114 fi
6115 if test "$could_use" = "" ; then
6116 echo "Warning: compilation may fail because you're using"
6117 echo "/usr/ucb/cc. You should change your PATH or CC "
6118 echo "variable and rerun configure."
6119 else
6120 echo "Warning: compilation may fail because you're using"
6121 echo "/usr/ucb/cc, when you should use the C compiler from"
6122 echo "$could_use. You should change your"
6123 echo "PATH or CC variable and rerun configure."
6124 fi
6125 fi
6126 ;;
6127esac
6128
d89f0ad6 6129# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6130case "${host}" in
6131 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 6132 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6133 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6134 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6135esac
6136
d89f0ad6
AL
6137# On systems where the dynamic library environment variable is PATH,
6138# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6139# built executables to PATH.
6140if test "$RPATH_ENVVAR" = PATH; then
6141 GCC_SHLIB_SUBDIR=/shlib
6142else
6143 GCC_SHLIB_SUBDIR=
6144fi
6145
671aa708
NN
6146# Record target_configdirs and the configure arguments for target and
6147# build configuration in Makefile.
6148target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6149build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6150
671aa708
NN
6151# Determine whether gdb needs tk/tcl or not.
6152# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6153# and in that case we want gdb to be built without tk. Ugh!
6154# In fact I believe gdb is the *only* package directly dependent on tk,
6155# so we should be able to put the 'maybe's in unconditionally and
6156# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6157# 100% sure that that's safe though.
e914a571 6158
b4f96efe 6159gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6160case "$enable_gdbtk" in
6161 no)
6162 GDB_TK="" ;;
e914a571
AC
6163 yes)
6164 GDB_TK="${gdb_tk}" ;;
671aa708 6165 *)
e914a571
AC
6166 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6167 # distro. Eventually someone will fix this and move Insight, nee
6168 # gdbtk to a separate directory.
6169 if test -d ${srcdir}/gdb/gdbtk ; then
6170 GDB_TK="${gdb_tk}"
6171 else
6172 GDB_TK=""
6173 fi
6174 ;;
671aa708 6175esac
ef9db8d5
DJ
6176CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6177INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6178
60975492 6179# Strip out unwanted targets.
8b87bb96
NN
6180
6181# While at that, we remove Makefiles if we were started for recursive
6182# configuration, so that the top-level Makefile reconfigures them,
6183# like we used to do when configure itself was recursive.
8b87bb96 6184
60975492
PB
6185# Loop over modules. $extrasub must be used with care, limiting as
6186# much as possible the usage of range addresses. That's because autoconf
6187# splits the sed script to overcome limits in the number of commands,
6188# and relying on carefully-timed sed passes may turn out to be very hard
6189# to maintain later. In this particular case, you just have to be careful
6190# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6191
2aeb72e9 6192# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 6193if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
6194 enableval="$enable_bootstrap"
6195
f516a7da 6196else
ce521a9c 6197 enable_bootstrap=default
2aeb72e9 6198fi;
f516a7da 6199
ce521a9c
PB
6200# Issue errors and warnings for invalid/strange bootstrap combinations.
6201case "$configdirs" in
6202 *gcc*) have_compiler=yes ;;
6203 *) have_compiler=no ;;
6204esac
6205
6206case "$have_compiler:$host:$target:$enable_bootstrap" in
6207 *:*:*:no) ;;
6208
1ca26cd2 6209 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6210 # and we are in a native configuration.
6211 yes:$build:$build:default)
1ca26cd2 6212 enable_bootstrap=yes ;;
ce521a9c
PB
6213
6214 *:*:*:default)
6215 enable_bootstrap=no ;;
6216
6217 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6218 yes:$build:$build:yes)
ce521a9c
PB
6219 ;;
6220
6221 # Other configurations, but we have a compiler. Assume the user knows
6222 # what he's doing.
2d309510 6223 yes:*:*:yes)
1c710c3c
DJ
6224 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6225echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6226 ;;
6227
6228 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6229 no:*:*:yes)
1c710c3c
DJ
6230 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6231echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6232 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
6233
6234 # Fail if wrong command line
6235 *)
1c710c3c
DJ
6236 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6237echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6238 { (exit 1); exit 1; }; }
ce521a9c
PB
6239 ;;
6240esac
6241
6242# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
6243case "$enable_bootstrap" in
6244 yes)
5607edfd 6245 bootstrap_suffix=bootstrap ;;
f516a7da 6246 no)
5607edfd 6247 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
6248esac
6249
23f6b2f9 6250for module in ${build_configdirs} ; do
5607edfd
PB
6251 if test -z "${no_recursion}" \
6252 && test -f ${build_subdir}/${module}/Makefile; then
6253 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6254 rm -f ${build_subdir}/${module}/Makefile
6255 fi
6256 extrasub="$extrasub
6257/^@if build-$module\$/d
6258/^@endif build-$module\$/d
6259/^@if build-$module-$bootstrap_suffix\$/d
6260/^@endif build-$module-$bootstrap_suffix\$/d"
6261done
6262for module in ${configdirs} ; do
a6fbc1e2 6263 if test -z "${no_recursion}"; then
f063a9ed 6264 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6265 if test -f ${file}; then
6266 echo 1>&2 "*** removing ${file} to force reconfigure"
6267 rm -f ${file}
6268 fi
6269 done
5607edfd
PB
6270 fi
6271 extrasub="$extrasub
6272/^@if $module\$/d
6273/^@endif $module\$/d
6274/^@if $module-$bootstrap_suffix\$/d
6275/^@endif $module-$bootstrap_suffix\$/d"
6276done
6277for module in ${target_configdirs} ; do
6278 if test -z "${no_recursion}" \
6279 && test -f ${target_subdir}/${module}/Makefile; then
6280 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6281 rm -f ${target_subdir}/${module}/Makefile
6282 fi
6283 extrasub="$extrasub
6284/^@if target-$module\$/d
6285/^@endif target-$module\$/d
6286/^@if target-$module-$bootstrap_suffix\$/d
6287/^@endif target-$module-$bootstrap_suffix\$/d"
6288done
6289
60975492
PB
6290extrasub="$extrasub
6291/^@if /,/^@endif /d"
671aa708
NN
6292
6293# Create the serialization dependencies. This uses a temporary file.
6294
2aeb72e9 6295# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 6296if test "${enable_serial_configure+set}" = set; then
2aeb72e9 6297 enableval="$enable_serial_configure"
ade82b16 6298
2aeb72e9 6299fi;
ade82b16 6300
bf1d3e81
NN
6301case ${enable_serial_configure} in
6302 yes)
6303 enable_serial_build_configure=yes
6304 enable_serial_host_configure=yes
6305 enable_serial_target_configure=yes
6306 ;;
6307esac
6308
671aa708
NN
6309# These force 'configure's to be done one at a time, to avoid problems
6310# with contention over a shared config.cache.
6311rm -f serdep.tmp
ade82b16 6312echo '# serdep.tmp' > serdep.tmp
671aa708 6313olditem=
bf1d3e81 6314test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6315for item in ${build_configdirs} ; do
6316 case ${olditem} in
6317 "") ;;
ade82b16 6318 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6319 esac
6320 olditem=${item}
6321done
6322olditem=
bf1d3e81 6323test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6324for item in ${configdirs} ; do
6325 case ${olditem} in
6326 "") ;;
ade82b16 6327 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6328 esac
6329 olditem=${item}
6330done
6331olditem=
bf1d3e81 6332test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6333for item in ${target_configdirs} ; do
6334 case ${olditem} in
6335 "") ;;
ade82b16 6336 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6337 esac
6338 olditem=${item}
6339done
6340serialization_dependencies=serdep.tmp
6341
6342
ade82b16 6343# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6344# target, nonopt, and variable assignments. These are the ones we
6345# might not want to pass down to subconfigures. Also strip
6346# program-prefix, program-suffix, and program-transform-name, so that
6347# we can pass down a consistent program-transform-name.
6348baseargs=
6349keep_next=no
6350skip_next=no
6351eval "set -- $ac_configure_args"
44bfc3ac
DJ
6352for ac_arg
6353do
1c710c3c
DJ
6354 if test X"$skip_next" = X"yes"; then
6355 skip_next=no
6356 continue
6357 fi
6358 if test X"$keep_next" = X"yes"; then
6359 case $ac_arg in
6360 *\'*)
6361 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6362 esac
6363 baseargs="$baseargs '$ac_arg'"
6364 keep_next=no
6365 continue
6366 fi
6367
6368 # Handle separated arguments. Based on the logic generated by
6369 # autoconf 2.59.
6370 case $ac_arg in
6371 *=* | --config-cache | -C | -disable-* | --disable-* \
6372 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6373 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6374 | -with-* | --with-* | -without-* | --without-* | --x)
6375 separate_arg=no
6376 ;;
6377 -*)
6378 separate_arg=yes
6379 ;;
6380 *)
6381 separate_arg=no
6382 ;;
6383 esac
6384
6385 case "$ac_arg" in
6386 --no*)
6387 continue
6388 ;;
6389 --c* | \
6390 --sr* | \
6391 --ho* | \
6392 --bu* | \
6393 --t* | \
6394 --program-* | \
6395 -cache_file* | \
6396 -srcdir* | \
6397 -host* | \
6398 -build* | \
6399 -target* | \
6400 -program-prefix* | \
6401 -program-suffix* | \
6402 -program-transform-name* )
6403 skip_next=$separate_arg
6404 continue
6405 ;;
6406 -*)
6407 # An option. Add it.
6408 case $ac_arg in
6409 *\'*)
6410 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6411 esac
6412 baseargs="$baseargs '$ac_arg'"
6413 keep_next=$separate_arg
6414 ;;
6415 *)
6416 # Either a variable assignment, or a nonopt (triplet). Don't
6417 # pass it down; let the Makefile handle this.
6418 continue
6419 ;;
6420 esac
6421done
6422# Remove the initial space we just introduced and, as these will be
6423# expanded by make, quote '$'.
6424baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6425
43bb47c2
DJ
6426# Add in --program-transform-name, after --program-prefix and
6427# --program-suffix have been applied to it. Autoconf has already
6428# doubled dollar signs and backslashes in program_transform_name; we want
6429# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6430# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6431# Also, because we want to override the logic in subdir configure scripts to
6432# choose program_transform_name, replace any s,x,x, with s,y,y,.
6433sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6434${program_transform_name}
6435EOF_SED
6436gcc_transform_name=`cat conftestsed.out`
6437rm -f conftestsed.out
6438baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6439if test "$silent" = yes; then
6440 baseargs="$baseargs --silent"
6441fi
43bb47c2 6442
671aa708
NN
6443# For the build-side libraries, we just need to pretend we're native,
6444# and not use the same cache file. Multilibs are neither needed nor
6445# desired.
e69bf64b 6446build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6447
6448# For host modules, accept cache file option, or specification as blank.
6449case "${cache_file}" in
6450"") # empty
6451 cache_file_option="" ;;
6452/* | [A-Za-z]:[\\/]* ) # absolute path
6453 cache_file_option="--cache-file=${cache_file}" ;;
6454*) # relative path
6455 cache_file_option="--cache-file=../${cache_file}" ;;
6456esac
6457
09438bde
NN
6458# Host dirs don't like to share a cache file either, horribly enough.
6459# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6460host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6461
6462target_configargs=${baseargs}
6463
6464# Passing a --with-cross-host argument lets the target libraries know
6465# whether they are being built with a cross-compiler or being built
6466# native. However, it would be better to use other mechanisms to make the
6467# sorts of decisions they want to make on this basis. Please consider
6468# this option to be deprecated. FIXME.
6469if test x${is_cross_compiler} = xyes ; then
1c710c3c 6470 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6471fi
6472
6473# Default to --enable-multilib.
6474if test x${enable_multilib} = x ; then
6475 target_configargs="--enable-multilib ${target_configargs}"
6476fi
6477
6478# Pass --with-newlib if appropriate. Note that target_configdirs has
6479# changed from the earlier setting of with_newlib.
6480if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6481 target_configargs="--with-newlib ${target_configargs}"
6482fi
6483
6b9eb62c
NN
6484# Different target subdirs use different values of certain variables
6485# (notably CXX). Worse, multilibs use *lots* of different values.
6486# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6487# it doesn't automatically accept command-line overrides of them.
6488# This means it's not safe for target subdirs to share a cache file,
6489# which is disgusting, but there you have it. Hopefully this can be
6490# fixed in future. It's still worthwhile to use a cache file for each
6491# directory. I think.
6492
bebcd931
MS
6493# Pass the appropriate --build, --host, --target and --cache-file arguments.
6494# We need to pass --target, as newer autoconf's requires consistency
6495# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6496target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6497
671aa708
NN
6498FLAGS_FOR_TARGET=
6499case " $target_configdirs " in
6500 *" newlib "*)
6501 case " $target_configargs " in
6502 *" --with-newlib "*)
6503 case "$target" in
6504 *-cygwin*)
aa8f1f57 6505 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' ;;
671aa708
NN
6506 esac
6507
6508 # If we're not building GCC, don't discard standard headers.
6509 if test -d ${srcdir}/gcc; then
6510 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6511
6512 if test "${build}" != "${host}"; then
6513 # On Canadian crosses, CC_FOR_TARGET will have already been set
6514 # by `configure', so we won't have an opportunity to add -Bgcc/
6515 # to it. This is right: we don't want to search that directory
6516 # for binaries, but we want the header files in there, so add
6517 # them explicitly.
215c351a 6518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6519
6520 # Someone might think of using the pre-installed headers on
6521 # Canadian crosses, in case the installed compiler is not fully
6522 # compatible with the compiler being built. In this case, it
6523 # would be better to flag an error than risking having
6524 # incompatible object files being constructed. We can't
6525 # guarantee that an error will be flagged, but let's hope the
6526 # compiler will do it, when presented with incompatible header
6527 # files.
6528 fi
6529 fi
6530
6531 case "${target}-${is_cross_compiler}" in
f2a0e225 6532 i[3456789]86-*-linux*-no)
671aa708
NN
6533 # Here host == target, so we don't need to build gcc,
6534 # so we don't want to discard standard headers.
6535 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6536 ;;
6537 *)
6538 # If we're building newlib, use its generic headers last, but search
6539 # for any libc-related directories first (so make it the last -B
6540 # switch).
6541 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
6542
6543 # If we're building libgloss, find the startup file, simulator library
6544 # and linker script.
6545 case " $target_configdirs " in
6546 *" libgloss "*)
6547 # Look for startup file, simulator library and maybe linker script.
6548 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6549 # Look for libnosys.a in case the target needs it.
6550 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6551 # Most targets have the linker script in the source directory.
6552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6553 ;;
6554 esac
671aa708
NN
6555 ;;
6556 esac
6557 ;;
6558 esac
6559 ;;
6560esac
b91f0a41
CV
6561case "$target" in
6562*-mingw*)
6563 # Can't be handled as Cygwin above since Mingw does not use newlib.
6564 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' ;;
6565esac
671aa708 6566
6691a79e
ME
6567# Allow the user to override the flags for
6568# our build compiler if desired.
f019adc1
MF
6569if test x"${build}" = x"${host}" ; then
6570 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6571 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6572 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6573fi
6691a79e 6574
671aa708
NN
6575# On Canadian crosses, we'll be searching the right directories for
6576# the previously-installed cross compiler, so don't bother to add
6577# flags for directories within the install tree of the compiler
6578# being built; programs in there won't even run.
6579if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6580 # Search for pre-installed headers if nothing else fits.
9124bc53 6581 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
6582fi
6583
6584if test "x${use_gnu_ld}" = x &&
6585 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6586 # Arrange for us to find uninstalled linker scripts.
215c351a 6587 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6588fi
6589
e88a2c09
DD
6590# Search for other target-specific linker scripts and such.
6591case "${target}" in
3e19841a
PB
6592 mep*)
6593 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6594 ;;
e88a2c09
DD
6595esac
6596
671aa708 6597# Makefile fragments.
7b61653a
PE
6598for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6599do
6600 eval fragval=\$$frag
6601 if test $fragval != /dev/null; then
6602 eval $frag=${srcdir}/$fragval
6603 fi
6604done
671aa708
NN
6605
6606
6607
6608
6609
6610# Miscellanea: directories, flags, etc.
6611
6612
6613
6614
6615
6616
6617
d89f0ad6 6618
23f6b2f9 6619# Build module lists & subconfigure args.
671aa708
NN
6620
6621
6622
2abefe3d
PB
6623# Host module lists & subconfigure args.
6624
6625
6626
6627# Target module lists & subconfigure args.
6628
6629
6630
6631# Build tools.
6632
6633
6634
0999159b
PB
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
2abefe3d
PB
6649# Generate default definitions for YACC, M4, LEX and other programs that run
6650# on the build machine. These are used if the Makefile can't locate these
6651# programs in objdir.
6652MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6653
6654for ac_prog in 'bison -y' byacc yacc
6655do
1c710c3c 6656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6657set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6658echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6660if test "${ac_cv_prog_YACC+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6662else
6663 if test -n "$YACC"; then
6664 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6665else
1c710c3c
DJ
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6673 ac_cv_prog_YACC="$ac_prog"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679
2abefe3d
PB
6680fi
6681fi
1c710c3c 6682YACC=$ac_cv_prog_YACC
2abefe3d 6683if test -n "$YACC"; then
2aeb72e9
DD
6684 echo "$as_me:$LINENO: result: $YACC" >&5
6685echo "${ECHO_T}$YACC" >&6
2abefe3d 6686else
2aeb72e9
DD
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
2abefe3d
PB
6689fi
6690
1c710c3c 6691 test -n "$YACC" && break
2abefe3d
PB
6692done
6693test -n "$YACC" || YACC="$MISSING bison -y"
6694
6695case " $build_configdirs " in
6696 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6697 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6698esac
6699
6700for ac_prog in bison
6701do
1c710c3c 6702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6703set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6704echo "$as_me:$LINENO: checking for $ac_word" >&5
6705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6706if test "${ac_cv_prog_BISON+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6708else
6709 if test -n "$BISON"; then
6710 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6711else
1c710c3c
DJ
6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6719 ac_cv_prog_BISON="$ac_prog"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723done
6724done
6725
2abefe3d
PB
6726fi
6727fi
1c710c3c 6728BISON=$ac_cv_prog_BISON
2abefe3d 6729if test -n "$BISON"; then
2aeb72e9
DD
6730 echo "$as_me:$LINENO: result: $BISON" >&5
6731echo "${ECHO_T}$BISON" >&6
2abefe3d 6732else
2aeb72e9
DD
6733 echo "$as_me:$LINENO: result: no" >&5
6734echo "${ECHO_T}no" >&6
2abefe3d
PB
6735fi
6736
1c710c3c 6737 test -n "$BISON" && break
2abefe3d
PB
6738done
6739test -n "$BISON" || BISON="$MISSING bison"
6740
6741case " $build_configdirs " in
6742 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6743esac
6744
6745for ac_prog in gm4 gnum4 m4
6746do
1c710c3c 6747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6748set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6749echo "$as_me:$LINENO: checking for $ac_word" >&5
6750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6751if test "${ac_cv_prog_M4+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6753else
6754 if test -n "$M4"; then
6755 ac_cv_prog_M4="$M4" # Let the user override the test.
6756else
1c710c3c
DJ
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6764 ac_cv_prog_M4="$ac_prog"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769done
6770
2abefe3d
PB
6771fi
6772fi
1c710c3c 6773M4=$ac_cv_prog_M4
2abefe3d 6774if test -n "$M4"; then
2aeb72e9
DD
6775 echo "$as_me:$LINENO: result: $M4" >&5
6776echo "${ECHO_T}$M4" >&6
2abefe3d 6777else
2aeb72e9
DD
6778 echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6
2abefe3d
PB
6780fi
6781
1c710c3c 6782 test -n "$M4" && break
2abefe3d
PB
6783done
6784test -n "$M4" || M4="$MISSING m4"
6785
6786case " $build_configdirs " in
6787 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6788esac
6789
6790for ac_prog in flex lex
6791do
1c710c3c 6792 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6793set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6794echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6796if test "${ac_cv_prog_LEX+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6798else
6799 if test -n "$LEX"; then
6800 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6801else
1c710c3c
DJ
6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803for as_dir in $PATH
6804do
6805 IFS=$as_save_IFS
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6809 ac_cv_prog_LEX="$ac_prog"
6810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 break 2
6812 fi
6813done
6814done
6815
2abefe3d
PB
6816fi
6817fi
1c710c3c 6818LEX=$ac_cv_prog_LEX
2abefe3d 6819if test -n "$LEX"; then
2aeb72e9
DD
6820 echo "$as_me:$LINENO: result: $LEX" >&5
6821echo "${ECHO_T}$LEX" >&6
2abefe3d 6822else
2aeb72e9
DD
6823 echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6
2abefe3d
PB
6825fi
6826
1c710c3c 6827 test -n "$LEX" && break
2abefe3d
PB
6828done
6829test -n "$LEX" || LEX="$MISSING flex"
6830
6831case " $build_configdirs " in
6832 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6833 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6834esac
6835
6836for ac_prog in flex
6837do
1c710c3c 6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6839set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6840echo "$as_me:$LINENO: checking for $ac_word" >&5
6841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6842if test "${ac_cv_prog_FLEX+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6844else
6845 if test -n "$FLEX"; then
6846 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6847else
1c710c3c
DJ
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6855 ac_cv_prog_FLEX="$ac_prog"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859done
6860done
6861
2abefe3d
PB
6862fi
6863fi
1c710c3c 6864FLEX=$ac_cv_prog_FLEX
2abefe3d 6865if test -n "$FLEX"; then
2aeb72e9
DD
6866 echo "$as_me:$LINENO: result: $FLEX" >&5
6867echo "${ECHO_T}$FLEX" >&6
2abefe3d 6868else
2aeb72e9
DD
6869 echo "$as_me:$LINENO: result: no" >&5
6870echo "${ECHO_T}no" >&6
2abefe3d
PB
6871fi
6872
1c710c3c 6873 test -n "$FLEX" && break
2abefe3d
PB
6874done
6875test -n "$FLEX" || FLEX="$MISSING flex"
6876
6877case " $build_configdirs " in
6878 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6879esac
6880
6881for ac_prog in makeinfo
6882do
1c710c3c 6883 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6884set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6885echo "$as_me:$LINENO: checking for $ac_word" >&5
6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6887if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6889else
6890 if test -n "$MAKEINFO"; then
6891 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6892else
1c710c3c
DJ
6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6900 ac_cv_prog_MAKEINFO="$ac_prog"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904done
6905done
6906
2abefe3d
PB
6907fi
6908fi
1c710c3c 6909MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6910if test -n "$MAKEINFO"; then
2aeb72e9
DD
6911 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6912echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6913else
2aeb72e9
DD
6914 echo "$as_me:$LINENO: result: no" >&5
6915echo "${ECHO_T}no" >&6
2abefe3d
PB
6916fi
6917
1c710c3c 6918 test -n "$MAKEINFO" && break
2abefe3d
PB
6919done
6920test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6921
6922case " $build_configdirs " in
6923 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6924 *)
6925
d18ff35a 6926 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
6927 # higher, else we use the "missing" dummy.
6928 if ${MAKEINFO} --version \
d18ff35a 6929 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6930 :
6931 else
6932 MAKEINFO="$MISSING makeinfo"
6933 fi
6934 ;;
6935
6936esac
671aa708 6937
2abefe3d 6938# FIXME: expect and dejagnu may become build tools?
671aa708 6939
2abefe3d
PB
6940for ac_prog in expect
6941do
1c710c3c 6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6943set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6944echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6946if test "${ac_cv_prog_EXPECT+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6948else
6949 if test -n "$EXPECT"; then
6950 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6951else
1c710c3c
DJ
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6959 ac_cv_prog_EXPECT="$ac_prog"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964done
6965
2abefe3d
PB
6966fi
6967fi
1c710c3c 6968EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6969if test -n "$EXPECT"; then
2aeb72e9
DD
6970 echo "$as_me:$LINENO: result: $EXPECT" >&5
6971echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6972else
2aeb72e9
DD
6973 echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6
2abefe3d 6975fi
671aa708 6976
1c710c3c 6977 test -n "$EXPECT" && break
2abefe3d
PB
6978done
6979test -n "$EXPECT" || EXPECT="expect"
671aa708 6980
2abefe3d
PB
6981case " $configdirs " in
6982 *" expect "*)
6983 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6984 ;;
6985esac
671aa708 6986
2abefe3d
PB
6987for ac_prog in runtest
6988do
1c710c3c 6989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6990set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6991echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6993if test "${ac_cv_prog_RUNTEST+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6995else
6996 if test -n "$RUNTEST"; then
6997 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6998else
1c710c3c
DJ
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7006 ac_cv_prog_RUNTEST="$ac_prog"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
7012
2abefe3d
PB
7013fi
7014fi
1c710c3c 7015RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7016if test -n "$RUNTEST"; then
2aeb72e9
DD
7017 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7018echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 7019else
2aeb72e9
DD
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
2abefe3d 7022fi
671aa708 7023
1c710c3c 7024 test -n "$RUNTEST" && break
2abefe3d
PB
7025done
7026test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7027
2abefe3d
PB
7028case " $configdirs " in
7029 *" dejagnu "*)
c394e891 7030 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7031 ;;
7032esac
671aa708
NN
7033
7034
671aa708 7035# Host tools.
ca9f4b81
AO
7036ncn_tool_prefix=
7037test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7038ncn_target_tool_prefix=
7039test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7040
278a7a38
AO
7041
7042
7043if test -n "$AR"; then
7044 ac_cv_prog_AR=$AR
7045elif test -n "$ac_cv_prog_AR"; then
7046 AR=$ac_cv_prog_AR
7047fi
7048
7049if test -n "$ac_cv_prog_AR"; then
7050 for ncn_progname in ar; do
7051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7052set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7053echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7055if test "${ac_cv_prog_AR+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058 if test -n "$AR"; then
7059 ac_cv_prog_AR="$AR" # Let the user override the test.
7060else
7061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062for as_dir in $PATH
7063do
7064 IFS=$as_save_IFS
7065 test -z "$as_dir" && as_dir=.
7066 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7068 ac_cv_prog_AR="${ncn_progname}"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073done
7074
7075fi
7076fi
7077AR=$ac_cv_prog_AR
7078if test -n "$AR"; then
2aeb72e9
DD
7079 echo "$as_me:$LINENO: result: $AR" >&5
7080echo "${ECHO_T}$AR" >&6
278a7a38 7081else
2aeb72e9
DD
7082 echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
278a7a38
AO
7084fi
7085
7086 done
7087fi
7088
7089for ncn_progname in ar; do
2693c0b0
PB
7090 if test -n "$ncn_tool_prefix"; then
7091 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7092set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7093echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7095if test "${ac_cv_prog_AR+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7097else
7098 if test -n "$AR"; then
7099 ac_cv_prog_AR="$AR" # Let the user override the test.
7100else
1c710c3c
DJ
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7108 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112done
7113done
7114
ca9f4b81
AO
7115fi
7116fi
1c710c3c 7117AR=$ac_cv_prog_AR
ca9f4b81 7118if test -n "$AR"; then
2aeb72e9
DD
7119 echo "$as_me:$LINENO: result: $AR" >&5
7120echo "${ECHO_T}$AR" >&6
ca9f4b81 7121else
2aeb72e9
DD
7122 echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6
ca9f4b81
AO
7124fi
7125
2693c0b0
PB
7126 fi
7127 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7129set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7130echo "$as_me:$LINENO: checking for $ac_word" >&5
7131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7132if test "${ac_cv_prog_AR+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7134else
2693c0b0 7135 if test -n "$AR"; then
af71363e
AS
7136 ac_cv_prog_AR="$AR" # Let the user override the test.
7137else
1c710c3c
DJ
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7145 ac_cv_prog_AR="${ncn_progname}"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150done
7151
ca9f4b81
AO
7152fi
7153fi
1c710c3c 7154AR=$ac_cv_prog_AR
2693c0b0 7155if test -n "$AR"; then
2aeb72e9
DD
7156 echo "$as_me:$LINENO: result: $AR" >&5
7157echo "${ECHO_T}$AR" >&6
ca9f4b81 7158else
2aeb72e9
DD
7159 echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
ca9f4b81 7161fi
1c710c3c 7162
2693c0b0
PB
7163 fi
7164 test -n "$ac_cv_prog_AR" && break
7165done
7166
7167if test -z "$ac_cv_prog_AR" ; then
7168 set dummy ar
7169 if test $build = $host ; then
7170 AR="$2"
ca9f4b81 7171 else
2693c0b0 7172 AR="${ncn_tool_prefix}$2"
ca9f4b81 7173 fi
ca9f4b81
AO
7174fi
7175
278a7a38
AO
7176
7177
7178if test -n "$AS"; then
7179 ac_cv_prog_AS=$AS
7180elif test -n "$ac_cv_prog_AS"; then
7181 AS=$ac_cv_prog_AS
7182fi
7183
7184if test -n "$ac_cv_prog_AS"; then
7185 for ncn_progname in as; do
7186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7187set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7188echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7190if test "${ac_cv_prog_AS+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193 if test -n "$AS"; then
7194 ac_cv_prog_AS="$AS" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7203 ac_cv_prog_AS="${ncn_progname}"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208done
7209
7210fi
7211fi
7212AS=$ac_cv_prog_AS
7213if test -n "$AS"; then
2aeb72e9
DD
7214 echo "$as_me:$LINENO: result: $AS" >&5
7215echo "${ECHO_T}$AS" >&6
278a7a38 7216else
2aeb72e9
DD
7217 echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
278a7a38
AO
7219fi
7220
7221 done
7222fi
7223
7224for ncn_progname in as; do
2693c0b0
PB
7225 if test -n "$ncn_tool_prefix"; then
7226 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7227set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7228echo "$as_me:$LINENO: checking for $ac_word" >&5
7229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7230if test "${ac_cv_prog_AS+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7232else
7233 if test -n "$AS"; then
7234 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 7235else
1c710c3c
DJ
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7243 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248done
7249
ca9f4b81
AO
7250fi
7251fi
1c710c3c 7252AS=$ac_cv_prog_AS
ca9f4b81 7253if test -n "$AS"; then
2aeb72e9
DD
7254 echo "$as_me:$LINENO: result: $AS" >&5
7255echo "${ECHO_T}$AS" >&6
ca9f4b81 7256else
2aeb72e9
DD
7257 echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6
ca9f4b81
AO
7259fi
7260
2693c0b0
PB
7261 fi
7262 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7264set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7265echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7267if test "${ac_cv_prog_AS+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7269else
2693c0b0
PB
7270 if test -n "$AS"; then
7271 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 7272else
1c710c3c
DJ
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7280 ac_cv_prog_AS="${ncn_progname}"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286
ca9f4b81
AO
7287fi
7288fi
1c710c3c 7289AS=$ac_cv_prog_AS
2693c0b0 7290if test -n "$AS"; then
2aeb72e9
DD
7291 echo "$as_me:$LINENO: result: $AS" >&5
7292echo "${ECHO_T}$AS" >&6
ca9f4b81 7293else
2aeb72e9
DD
7294 echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
ca9f4b81 7296fi
1c710c3c 7297
2693c0b0
PB
7298 fi
7299 test -n "$ac_cv_prog_AS" && break
7300done
7301
7302if test -z "$ac_cv_prog_AS" ; then
7303 set dummy as
7304 if test $build = $host ; then
7305 AS="$2"
ca9f4b81 7306 else
2693c0b0 7307 AS="${ncn_tool_prefix}$2"
ca9f4b81 7308 fi
ca9f4b81
AO
7309fi
7310
278a7a38
AO
7311
7312
7313if test -n "$DLLTOOL"; then
7314 ac_cv_prog_DLLTOOL=$DLLTOOL
7315elif test -n "$ac_cv_prog_DLLTOOL"; then
7316 DLLTOOL=$ac_cv_prog_DLLTOOL
7317fi
7318
7319if test -n "$ac_cv_prog_DLLTOOL"; then
7320 for ncn_progname in dlltool; do
7321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7322set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7323echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7325if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328 if test -n "$DLLTOOL"; then
7329 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7338 ac_cv_prog_DLLTOOL="${ncn_progname}"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342done
7343done
7344
7345fi
7346fi
7347DLLTOOL=$ac_cv_prog_DLLTOOL
7348if test -n "$DLLTOOL"; then
2aeb72e9
DD
7349 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7350echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 7351else
2aeb72e9
DD
7352 echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6
278a7a38
AO
7354fi
7355
7356 done
7357fi
7358
7359for ncn_progname in dlltool; do
2693c0b0
PB
7360 if test -n "$ncn_tool_prefix"; then
7361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7362set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7363echo "$as_me:$LINENO: checking for $ac_word" >&5
7364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7365if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7367else
7368 if test -n "$DLLTOOL"; then
7369 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7370else
1c710c3c
DJ
7371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7378 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382done
7383done
7384
ca9f4b81
AO
7385fi
7386fi
1c710c3c 7387DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7388if test -n "$DLLTOOL"; then
2aeb72e9
DD
7389 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7390echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7391else
2aeb72e9
DD
7392 echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6
ca9f4b81
AO
7394fi
7395
2693c0b0
PB
7396 fi
7397 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7399set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7400echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7402if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7404else
2693c0b0
PB
7405 if test -n "$DLLTOOL"; then
7406 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7407else
1c710c3c
DJ
7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7415 ac_cv_prog_DLLTOOL="${ncn_progname}"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419done
7420done
7421
ca9f4b81
AO
7422fi
7423fi
1c710c3c 7424DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7425if test -n "$DLLTOOL"; then
2aeb72e9
DD
7426 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7427echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7428else
2aeb72e9
DD
7429 echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6
ca9f4b81 7431fi
1c710c3c 7432
2693c0b0
PB
7433 fi
7434 test -n "$ac_cv_prog_DLLTOOL" && break
7435done
7436
7437if test -z "$ac_cv_prog_DLLTOOL" ; then
7438 set dummy dlltool
7439 if test $build = $host ; then
7440 DLLTOOL="$2"
ca9f4b81 7441 else
2693c0b0 7442 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7443 fi
ca9f4b81
AO
7444fi
7445
278a7a38
AO
7446
7447
7448if test -n "$LD"; then
7449 ac_cv_prog_LD=$LD
7450elif test -n "$ac_cv_prog_LD"; then
7451 LD=$ac_cv_prog_LD
7452fi
7453
7454if test -n "$ac_cv_prog_LD"; then
7455 for ncn_progname in ld; do
7456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7457set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7458echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7460if test "${ac_cv_prog_LD+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463 if test -n "$LD"; then
7464 ac_cv_prog_LD="$LD" # Let the user override the test.
7465else
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7473 ac_cv_prog_LD="${ncn_progname}"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479
7480fi
7481fi
7482LD=$ac_cv_prog_LD
7483if test -n "$LD"; then
2aeb72e9
DD
7484 echo "$as_me:$LINENO: result: $LD" >&5
7485echo "${ECHO_T}$LD" >&6
278a7a38 7486else
2aeb72e9
DD
7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
278a7a38
AO
7489fi
7490
7491 done
7492fi
7493
7494for ncn_progname in ld; do
2693c0b0
PB
7495 if test -n "$ncn_tool_prefix"; then
7496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7497set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7498echo "$as_me:$LINENO: checking for $ac_word" >&5
7499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7500if test "${ac_cv_prog_LD+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7502else
7503 if test -n "$LD"; then
7504 ac_cv_prog_LD="$LD" # Let the user override the test.
7505else
1c710c3c
DJ
7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507for as_dir in $PATH
7508do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7513 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517done
7518done
7519
ca9f4b81
AO
7520fi
7521fi
1c710c3c 7522LD=$ac_cv_prog_LD
ca9f4b81 7523if test -n "$LD"; then
2aeb72e9
DD
7524 echo "$as_me:$LINENO: result: $LD" >&5
7525echo "${ECHO_T}$LD" >&6
ca9f4b81 7526else
2aeb72e9
DD
7527 echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6
ca9f4b81
AO
7529fi
7530
2693c0b0
PB
7531 fi
7532 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7534set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7535echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7537if test "${ac_cv_prog_LD+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7539else
2693c0b0
PB
7540 if test -n "$LD"; then
7541 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7542else
1c710c3c
DJ
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7550 ac_cv_prog_LD="${ncn_progname}"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555done
7556
ca9f4b81
AO
7557fi
7558fi
1c710c3c 7559LD=$ac_cv_prog_LD
2693c0b0 7560if test -n "$LD"; then
2aeb72e9
DD
7561 echo "$as_me:$LINENO: result: $LD" >&5
7562echo "${ECHO_T}$LD" >&6
ca9f4b81 7563else
2aeb72e9
DD
7564 echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6
ca9f4b81 7566fi
1c710c3c 7567
2693c0b0
PB
7568 fi
7569 test -n "$ac_cv_prog_LD" && break
7570done
7571
7572if test -z "$ac_cv_prog_LD" ; then
7573 set dummy ld
7574 if test $build = $host ; then
7575 LD="$2"
ca9f4b81 7576 else
2693c0b0 7577 LD="${ncn_tool_prefix}$2"
ca9f4b81 7578 fi
ca9f4b81
AO
7579fi
7580
278a7a38
AO
7581
7582
7583if test -n "$LIPO"; then
7584 ac_cv_prog_LIPO=$LIPO
7585elif test -n "$ac_cv_prog_LIPO"; then
7586 LIPO=$ac_cv_prog_LIPO
7587fi
7588
7589if test -n "$ac_cv_prog_LIPO"; then
7590 for ncn_progname in lipo; do
7591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7592set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7593echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7595if test "${ac_cv_prog_LIPO+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 if test -n "$LIPO"; then
7599 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7608 ac_cv_prog_LIPO="${ncn_progname}"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614
7615fi
7616fi
7617LIPO=$ac_cv_prog_LIPO
7618if test -n "$LIPO"; then
2aeb72e9
DD
7619 echo "$as_me:$LINENO: result: $LIPO" >&5
7620echo "${ECHO_T}$LIPO" >&6
278a7a38 7621else
2aeb72e9
DD
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
278a7a38
AO
7624fi
7625
7626 done
7627fi
7628
7629for ncn_progname in lipo; do
2abefe3d
PB
7630 if test -n "$ncn_tool_prefix"; then
7631 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7632set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7633echo "$as_me:$LINENO: checking for $ac_word" >&5
7634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7635if test "${ac_cv_prog_LIPO+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7637else
7638 if test -n "$LIPO"; then
7639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7640else
1c710c3c
DJ
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7648 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652done
7653done
7654
2abefe3d
PB
7655fi
7656fi
1c710c3c 7657LIPO=$ac_cv_prog_LIPO
2abefe3d 7658if test -n "$LIPO"; then
2aeb72e9
DD
7659 echo "$as_me:$LINENO: result: $LIPO" >&5
7660echo "${ECHO_T}$LIPO" >&6
2abefe3d 7661else
2aeb72e9
DD
7662 echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
2abefe3d
PB
7664fi
7665
7666 fi
7667 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7669set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7670echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7672if test "${ac_cv_prog_LIPO+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7674else
7675 if test -n "$LIPO"; then
7676 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7677else
1c710c3c
DJ
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7685 ac_cv_prog_LIPO="${ncn_progname}"
7686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689done
7690done
7691
2abefe3d
PB
7692fi
7693fi
1c710c3c 7694LIPO=$ac_cv_prog_LIPO
2abefe3d 7695if test -n "$LIPO"; then
2aeb72e9
DD
7696 echo "$as_me:$LINENO: result: $LIPO" >&5
7697echo "${ECHO_T}$LIPO" >&6
2abefe3d 7698else
2aeb72e9
DD
7699 echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6
2abefe3d 7701fi
1c710c3c 7702
2abefe3d
PB
7703 fi
7704 test -n "$ac_cv_prog_LIPO" && break
7705done
7706
7707if test -z "$ac_cv_prog_LIPO" ; then
7708 set dummy lipo
7709 if test $build = $host ; then
7710 LIPO="$2"
7711 else
7712 LIPO="${ncn_tool_prefix}$2"
7713 fi
7714fi
7715
278a7a38
AO
7716
7717
7718if test -n "$NM"; then
7719 ac_cv_prog_NM=$NM
7720elif test -n "$ac_cv_prog_NM"; then
7721 NM=$ac_cv_prog_NM
7722fi
7723
7724if test -n "$ac_cv_prog_NM"; then
7725 for ncn_progname in nm; do
7726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7727set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7730if test "${ac_cv_prog_NM+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7732else
7733 if test -n "$NM"; then
7734 ac_cv_prog_NM="$NM" # Let the user override the test.
7735else
1c710c3c
DJ
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7743 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749
ca9f4b81
AO
7750fi
7751fi
1c710c3c 7752NM=$ac_cv_prog_NM
ca9f4b81 7753if test -n "$NM"; then
2aeb72e9
DD
7754 echo "$as_me:$LINENO: result: $NM" >&5
7755echo "${ECHO_T}$NM" >&6
ca9f4b81 7756else
2aeb72e9
DD
7757 echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
ca9f4b81
AO
7759fi
7760
278a7a38
AO
7761 done
7762fi
7763
7764for ncn_progname in nm; do
7765 if test -n "$ncn_tool_prefix"; then
7766 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7767set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7768echo "$as_me:$LINENO: checking for $ac_word" >&5
7769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7770if test "${ac_cv_prog_NM+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7772else
2693c0b0
PB
7773 if test -n "$NM"; then
7774 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7775else
1c710c3c
DJ
7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777for as_dir in $PATH
7778do
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7783 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7786 fi
7787done
7788done
7789
ca9f4b81
AO
7790fi
7791fi
1c710c3c 7792NM=$ac_cv_prog_NM
2693c0b0 7793if test -n "$NM"; then
2aeb72e9
DD
7794 echo "$as_me:$LINENO: result: $NM" >&5
7795echo "${ECHO_T}$NM" >&6
ca9f4b81 7796else
2aeb72e9
DD
7797 echo "$as_me:$LINENO: result: no" >&5
7798echo "${ECHO_T}no" >&6
ca9f4b81 7799fi
1c710c3c 7800
2693c0b0 7801 fi
278a7a38
AO
7802 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7804set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7805echo "$as_me:$LINENO: checking for $ac_word" >&5
7806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7807if test "${ac_cv_prog_NM+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7809else
7810 if test -n "$NM"; then
7811 ac_cv_prog_NM="$NM" # Let the user override the test.
7812else
7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7820 ac_cv_prog_NM="${ncn_progname}"
7821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824done
7825done
7826
7827fi
7828fi
7829NM=$ac_cv_prog_NM
7830if test -n "$NM"; then
2aeb72e9
DD
7831 echo "$as_me:$LINENO: result: $NM" >&5
7832echo "${ECHO_T}$NM" >&6
278a7a38 7833else
2aeb72e9
DD
7834 echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6
278a7a38
AO
7836fi
7837
7838 fi
7839 test -n "$ac_cv_prog_NM" && break
7840done
7841
7842if test -z "$ac_cv_prog_NM" ; then
7843 set dummy nm
7844 if test $build = $host ; then
7845 NM="$2"
7846 else
7847 NM="${ncn_tool_prefix}$2"
7848 fi
7849fi
7850
7851
7852
7853if test -n "$RANLIB"; then
7854 ac_cv_prog_RANLIB=$RANLIB
7855elif test -n "$ac_cv_prog_RANLIB"; then
7856 RANLIB=$ac_cv_prog_RANLIB
7857fi
7858
7859if test -n "$ac_cv_prog_RANLIB"; then
7860 for ncn_progname in ranlib; do
7861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7862set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7863echo "$as_me:$LINENO: checking for $ac_word" >&5
7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7865if test "${ac_cv_prog_RANLIB+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868 if test -n "$RANLIB"; then
7869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7878 ac_cv_prog_RANLIB="${ncn_progname}"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884
7885fi
7886fi
7887RANLIB=$ac_cv_prog_RANLIB
7888if test -n "$RANLIB"; then
2aeb72e9
DD
7889 echo "$as_me:$LINENO: result: $RANLIB" >&5
7890echo "${ECHO_T}$RANLIB" >&6
278a7a38 7891else
2aeb72e9
DD
7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
278a7a38
AO
7894fi
7895
7896 done
7897fi
ca9f4b81 7898
278a7a38 7899for ncn_progname in ranlib; do
2693c0b0
PB
7900 if test -n "$ncn_tool_prefix"; then
7901 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7902set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7903echo "$as_me:$LINENO: checking for $ac_word" >&5
7904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7905if test "${ac_cv_prog_RANLIB+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7907else
7908 if test -n "$RANLIB"; then
7909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7910else
1c710c3c
DJ
7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7918 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922done
7923done
7924
ca9f4b81
AO
7925fi
7926fi
1c710c3c 7927RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7928if test -n "$RANLIB"; then
2aeb72e9
DD
7929 echo "$as_me:$LINENO: result: $RANLIB" >&5
7930echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7931else
2aeb72e9
DD
7932 echo "$as_me:$LINENO: result: no" >&5
7933echo "${ECHO_T}no" >&6
ca9f4b81
AO
7934fi
7935
2693c0b0
PB
7936 fi
7937 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7939set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7940echo "$as_me:$LINENO: checking for $ac_word" >&5
7941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7942if test "${ac_cv_prog_RANLIB+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7944else
2693c0b0
PB
7945 if test -n "$RANLIB"; then
7946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7947else
1c710c3c
DJ
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7955 ac_cv_prog_RANLIB="${ncn_progname}"
7956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959done
7960done
7961
ca9f4b81
AO
7962fi
7963fi
1c710c3c 7964RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7965if test -n "$RANLIB"; then
2aeb72e9
DD
7966 echo "$as_me:$LINENO: result: $RANLIB" >&5
7967echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7968else
2aeb72e9
DD
7969 echo "$as_me:$LINENO: result: no" >&5
7970echo "${ECHO_T}no" >&6
ca9f4b81 7971fi
1c710c3c 7972
ca9f4b81 7973 fi
2693c0b0
PB
7974 test -n "$ac_cv_prog_RANLIB" && break
7975done
7976
7977if test -z "$ac_cv_prog_RANLIB" ; then
7978 RANLIB=":"
ca9f4b81
AO
7979fi
7980
278a7a38
AO
7981
7982
7983if test -n "$STRIP"; then
7984 ac_cv_prog_STRIP=$STRIP
7985elif test -n "$ac_cv_prog_STRIP"; then
7986 STRIP=$ac_cv_prog_STRIP
7987fi
7988
7989if test -n "$ac_cv_prog_STRIP"; then
7990 for ncn_progname in strip; do
7991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7992set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7993echo "$as_me:$LINENO: checking for $ac_word" >&5
7994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7995if test "${ac_cv_prog_STRIP+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997else
7998 if test -n "$STRIP"; then
7999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8008 ac_cv_prog_STRIP="${ncn_progname}"
8009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012done
8013done
8014
8015fi
8016fi
8017STRIP=$ac_cv_prog_STRIP
8018if test -n "$STRIP"; then
2aeb72e9
DD
8019 echo "$as_me:$LINENO: result: $STRIP" >&5
8020echo "${ECHO_T}$STRIP" >&6
278a7a38 8021else
2aeb72e9
DD
8022 echo "$as_me:$LINENO: result: no" >&5
8023echo "${ECHO_T}no" >&6
278a7a38
AO
8024fi
8025
8026 done
8027fi
8028
8029for ncn_progname in strip; do
2abefe3d
PB
8030 if test -n "$ncn_tool_prefix"; then
8031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8032set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8033echo "$as_me:$LINENO: checking for $ac_word" >&5
8034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8035if test "${ac_cv_prog_STRIP+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
8037else
8038 if test -n "$STRIP"; then
8039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8040else
1c710c3c
DJ
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8048 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052done
8053done
8054
2abefe3d
PB
8055fi
8056fi
1c710c3c 8057STRIP=$ac_cv_prog_STRIP
2abefe3d 8058if test -n "$STRIP"; then
2aeb72e9
DD
8059 echo "$as_me:$LINENO: result: $STRIP" >&5
8060echo "${ECHO_T}$STRIP" >&6
2abefe3d 8061else
2aeb72e9
DD
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
2abefe3d
PB
8064fi
8065
8066 fi
8067 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8069set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8070echo "$as_me:$LINENO: checking for $ac_word" >&5
8071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8072if test "${ac_cv_prog_STRIP+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
8074else
8075 if test -n "$STRIP"; then
8076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8077else
1c710c3c
DJ
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8085 ac_cv_prog_STRIP="${ncn_progname}"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089done
8090done
8091
2abefe3d
PB
8092fi
8093fi
1c710c3c 8094STRIP=$ac_cv_prog_STRIP
2abefe3d 8095if test -n "$STRIP"; then
2aeb72e9
DD
8096 echo "$as_me:$LINENO: result: $STRIP" >&5
8097echo "${ECHO_T}$STRIP" >&6
2abefe3d 8098else
2aeb72e9
DD
8099 echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6
2abefe3d 8101fi
1c710c3c 8102
2abefe3d
PB
8103 fi
8104 test -n "$ac_cv_prog_STRIP" && break
8105done
8106
8107if test -z "$ac_cv_prog_STRIP" ; then
8108 STRIP=":"
8109fi
8110
278a7a38
AO
8111
8112
8113if test -n "$WINDRES"; then
8114 ac_cv_prog_WINDRES=$WINDRES
8115elif test -n "$ac_cv_prog_WINDRES"; then
8116 WINDRES=$ac_cv_prog_WINDRES
8117fi
8118
8119if test -n "$ac_cv_prog_WINDRES"; then
8120 for ncn_progname in windres; do
8121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8122set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8123echo "$as_me:$LINENO: checking for $ac_word" >&5
8124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8125if test "${ac_cv_prog_WINDRES+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128 if test -n "$WINDRES"; then
8129 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8138 ac_cv_prog_WINDRES="${ncn_progname}"
8139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142done
8143done
8144
8145fi
8146fi
8147WINDRES=$ac_cv_prog_WINDRES
8148if test -n "$WINDRES"; then
2aeb72e9
DD
8149 echo "$as_me:$LINENO: result: $WINDRES" >&5
8150echo "${ECHO_T}$WINDRES" >&6
278a7a38 8151else
2aeb72e9
DD
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
278a7a38
AO
8154fi
8155
8156 done
8157fi
8158
8159for ncn_progname in windres; do
2693c0b0
PB
8160 if test -n "$ncn_tool_prefix"; then
8161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8162set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8163echo "$as_me:$LINENO: checking for $ac_word" >&5
8164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8165if test "${ac_cv_prog_WINDRES+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8167else
8168 if test -n "$WINDRES"; then
8169 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8170else
1c710c3c
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
2aeb72e9 8177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8178 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182done
8183done
8184
ca9f4b81
AO
8185fi
8186fi
1c710c3c 8187WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 8188if test -n "$WINDRES"; then
2aeb72e9
DD
8189 echo "$as_me:$LINENO: result: $WINDRES" >&5
8190echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 8191else
2aeb72e9
DD
8192 echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6
ca9f4b81
AO
8194fi
8195
2693c0b0
PB
8196 fi
8197 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8199set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8200echo "$as_me:$LINENO: checking for $ac_word" >&5
8201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8202if test "${ac_cv_prog_WINDRES+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8204else
2693c0b0
PB
8205 if test -n "$WINDRES"; then
8206 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 8207else
1c710c3c
DJ
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8215 ac_cv_prog_WINDRES="${ncn_progname}"
8216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219done
8220done
8221
ca9f4b81
AO
8222fi
8223fi
1c710c3c 8224WINDRES=$ac_cv_prog_WINDRES
2693c0b0 8225if test -n "$WINDRES"; then
2aeb72e9
DD
8226 echo "$as_me:$LINENO: result: $WINDRES" >&5
8227echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 8228else
2aeb72e9
DD
8229 echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6
ca9f4b81 8231fi
1c710c3c 8232
2693c0b0
PB
8233 fi
8234 test -n "$ac_cv_prog_WINDRES" && break
8235done
8236
8237if test -z "$ac_cv_prog_WINDRES" ; then
8238 set dummy windres
8239 if test $build = $host ; then
8240 WINDRES="$2"
ca9f4b81 8241 else
2693c0b0 8242 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 8243 fi
ca9f4b81
AO
8244fi
8245
278a7a38
AO
8246
8247
901119ae
KT
8248if test -n "$WINDMC"; then
8249 ac_cv_prog_WINDMC=$WINDMC
8250elif test -n "$ac_cv_prog_WINDMC"; then
8251 WINDMC=$ac_cv_prog_WINDMC
8252fi
8253
8254if test -n "$ac_cv_prog_WINDMC"; then
8255 for ncn_progname in windmc; do
8256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8257set dummy ${ncn_progname}; ac_word=$2
8258echo "$as_me:$LINENO: checking for $ac_word" >&5
8259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8260if test "${ac_cv_prog_WINDMC+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262else
8263 if test -n "$WINDMC"; then
8264 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8265else
8266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8273 ac_cv_prog_WINDMC="${ncn_progname}"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8276 fi
8277done
8278done
8279
8280fi
8281fi
8282WINDMC=$ac_cv_prog_WINDMC
8283if test -n "$WINDMC"; then
8284 echo "$as_me:$LINENO: result: $WINDMC" >&5
8285echo "${ECHO_T}$WINDMC" >&6
8286else
8287 echo "$as_me:$LINENO: result: no" >&5
8288echo "${ECHO_T}no" >&6
8289fi
8290
8291 done
8292fi
8293
8294for ncn_progname in windmc; do
8295 if test -n "$ncn_tool_prefix"; then
8296 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8297set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8298echo "$as_me:$LINENO: checking for $ac_word" >&5
8299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8300if test "${ac_cv_prog_WINDMC+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 if test -n "$WINDMC"; then
8304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8305else
8306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317done
8318done
8319
8320fi
8321fi
8322WINDMC=$ac_cv_prog_WINDMC
8323if test -n "$WINDMC"; then
8324 echo "$as_me:$LINENO: result: $WINDMC" >&5
8325echo "${ECHO_T}$WINDMC" >&6
8326else
8327 echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6
8329fi
8330
8331 fi
8332 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8334set dummy ${ncn_progname}; ac_word=$2
8335echo "$as_me:$LINENO: checking for $ac_word" >&5
8336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8337if test "${ac_cv_prog_WINDMC+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339else
8340 if test -n "$WINDMC"; then
8341 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8342else
8343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344for as_dir in $PATH
8345do
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_WINDMC="${ncn_progname}"
8351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 break 2
8353 fi
8354done
8355done
8356
8357fi
8358fi
8359WINDMC=$ac_cv_prog_WINDMC
8360if test -n "$WINDMC"; then
8361 echo "$as_me:$LINENO: result: $WINDMC" >&5
8362echo "${ECHO_T}$WINDMC" >&6
8363else
8364 echo "$as_me:$LINENO: result: no" >&5
8365echo "${ECHO_T}no" >&6
8366fi
8367
8368 fi
8369 test -n "$ac_cv_prog_WINDMC" && break
8370done
8371
8372if test -z "$ac_cv_prog_WINDMC" ; then
8373 set dummy windmc
8374 if test $build = $host ; then
8375 WINDMC="$2"
8376 else
8377 WINDMC="${ncn_tool_prefix}$2"
8378 fi
8379fi
8380
8381
8382
278a7a38
AO
8383if test -n "$OBJCOPY"; then
8384 ac_cv_prog_OBJCOPY=$OBJCOPY
8385elif test -n "$ac_cv_prog_OBJCOPY"; then
8386 OBJCOPY=$ac_cv_prog_OBJCOPY
8387fi
8388
8389if test -n "$ac_cv_prog_OBJCOPY"; then
8390 for ncn_progname in objcopy; do
8391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8392set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8393echo "$as_me:$LINENO: checking for $ac_word" >&5
8394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8395if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397else
8398 if test -n "$OBJCOPY"; then
8399 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8400else
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8408 ac_cv_prog_OBJCOPY="${ncn_progname}"
8409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412done
8413done
8414
8415fi
8416fi
8417OBJCOPY=$ac_cv_prog_OBJCOPY
8418if test -n "$OBJCOPY"; then
2aeb72e9
DD
8419 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8420echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 8421else
2aeb72e9
DD
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
278a7a38
AO
8424fi
8425
8426 done
8427fi
8428
8429for ncn_progname in objcopy; do
2693c0b0
PB
8430 if test -n "$ncn_tool_prefix"; then
8431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8432set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8433echo "$as_me:$LINENO: checking for $ac_word" >&5
8434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8435if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8437else
8438 if test -n "$OBJCOPY"; then
8439 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8440else
1c710c3c
DJ
8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8448 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452done
8453done
8454
ca9f4b81
AO
8455fi
8456fi
1c710c3c 8457OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8458if test -n "$OBJCOPY"; then
2aeb72e9
DD
8459 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8460echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8461else
2aeb72e9
DD
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
ca9f4b81
AO
8464fi
8465
2693c0b0
PB
8466 fi
8467 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8469set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8470echo "$as_me:$LINENO: checking for $ac_word" >&5
8471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8472if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8474else
2693c0b0
PB
8475 if test -n "$OBJCOPY"; then
8476 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8477else
1c710c3c
DJ
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8485 ac_cv_prog_OBJCOPY="${ncn_progname}"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489done
8490done
8491
ca9f4b81
AO
8492fi
8493fi
1c710c3c 8494OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8495if test -n "$OBJCOPY"; then
2aeb72e9
DD
8496 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8497echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8498else
2aeb72e9
DD
8499 echo "$as_me:$LINENO: result: no" >&5
8500echo "${ECHO_T}no" >&6
ca9f4b81 8501fi
1c710c3c 8502
2693c0b0
PB
8503 fi
8504 test -n "$ac_cv_prog_OBJCOPY" && break
8505done
8506
8507if test -z "$ac_cv_prog_OBJCOPY" ; then
8508 set dummy objcopy
8509 if test $build = $host ; then
8510 OBJCOPY="$2"
ca9f4b81 8511 else
2693c0b0 8512 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8513 fi
ca9f4b81
AO
8514fi
8515
278a7a38
AO
8516
8517
8518if test -n "$OBJDUMP"; then
8519 ac_cv_prog_OBJDUMP=$OBJDUMP
8520elif test -n "$ac_cv_prog_OBJDUMP"; then
8521 OBJDUMP=$ac_cv_prog_OBJDUMP
8522fi
8523
8524if test -n "$ac_cv_prog_OBJDUMP"; then
8525 for ncn_progname in objdump; do
8526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8527set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8528echo "$as_me:$LINENO: checking for $ac_word" >&5
8529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8530if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533 if test -n "$OBJDUMP"; then
8534 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8535else
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8543 ac_cv_prog_OBJDUMP="${ncn_progname}"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547done
8548done
8549
8550fi
8551fi
8552OBJDUMP=$ac_cv_prog_OBJDUMP
8553if test -n "$OBJDUMP"; then
2aeb72e9
DD
8554 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8555echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 8556else
2aeb72e9
DD
8557 echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6
278a7a38
AO
8559fi
8560
8561 done
8562fi
8563
8564for ncn_progname in objdump; do
2693c0b0
PB
8565 if test -n "$ncn_tool_prefix"; then
8566 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8567set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8568echo "$as_me:$LINENO: checking for $ac_word" >&5
8569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8570if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8572else
8573 if test -n "$OBJDUMP"; then
8574 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8575else
1c710c3c
DJ
8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
8581 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8583 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 break 2
8586 fi
8587done
8588done
8589
ca9f4b81
AO
8590fi
8591fi
1c710c3c 8592OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8593if test -n "$OBJDUMP"; then
2aeb72e9
DD
8594 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8595echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8596else
2aeb72e9
DD
8597 echo "$as_me:$LINENO: result: no" >&5
8598echo "${ECHO_T}no" >&6
ca9f4b81
AO
8599fi
8600
2693c0b0
PB
8601 fi
8602 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8605echo "$as_me:$LINENO: checking for $ac_word" >&5
8606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8607if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8609else
2693c0b0
PB
8610 if test -n "$OBJDUMP"; then
8611 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8612else
1c710c3c
DJ
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8620 ac_cv_prog_OBJDUMP="${ncn_progname}"
8621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624done
8625done
8626
ca9f4b81
AO
8627fi
8628fi
1c710c3c 8629OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8630if test -n "$OBJDUMP"; then
2aeb72e9
DD
8631 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8632echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8633else
2aeb72e9
DD
8634 echo "$as_me:$LINENO: result: no" >&5
8635echo "${ECHO_T}no" >&6
ca9f4b81 8636fi
1c710c3c 8637
2693c0b0
PB
8638 fi
8639 test -n "$ac_cv_prog_OBJDUMP" && break
8640done
8641
8642if test -z "$ac_cv_prog_OBJDUMP" ; then
8643 set dummy objdump
8644 if test $build = $host ; then
8645 OBJDUMP="$2"
ca9f4b81 8646 else
2693c0b0 8647 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8648 fi
ca9f4b81
AO
8649fi
8650
671aa708
NN
8651
8652
8653
8654
8655
2abefe3d 8656# Target tools.
1c710c3c 8657
2aeb72e9 8658# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 8659if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
8660 withval="$with_build_time_tools"
8661 case x"$withval" in
e8b05380
PB
8662 x/*) ;;
8663 *)
8664 with_build_time_tools=
1c710c3c
DJ
8665 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8666echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8667 ;;
8668 esac
ca9f4b81 8669else
e8b05380 8670 with_build_time_tools=
2aeb72e9 8671fi;
ca9f4b81 8672
278a7a38
AO
8673
8674
8675if test -n "$CC_FOR_TARGET"; then
8676 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8677elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8678 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8679fi
8680
8681if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8682 for ncn_progname in cc gcc; do
8683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8684set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8685echo "$as_me:$LINENO: checking for $ac_word" >&5
8686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8687if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 if test -n "$CC_FOR_TARGET"; then
8691 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8692else
8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694for as_dir in $PATH
8695do
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8700 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8703 fi
8704done
8705done
8706
8707fi
8708fi
8709CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8710if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8711 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8712echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8713else
2aeb72e9
DD
8714 echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6
278a7a38
AO
8716fi
8717
8718 done
8719fi
8720
8721if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8722 for ncn_progname in cc gcc; do
2aeb72e9
DD
8723 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8724echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8725 if test -x $with_build_time_tools/${ncn_progname}; then
8726 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8727 echo "$as_me:$LINENO: result: yes" >&5
8728echo "${ECHO_T}yes" >&6
72a7ab82 8729 break
e8b05380 8730 else
2aeb72e9
DD
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
72a7ab82
AP
8733 fi
8734 done
4de997d1
PB
8735fi
8736
e8b05380
PB
8737if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8738 for ncn_progname in cc gcc; do
8739 if test -n "$ncn_target_tool_prefix"; then
8740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8741set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8742echo "$as_me:$LINENO: checking for $ac_word" >&5
8743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8744if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8746else
8747 if test -n "$CC_FOR_TARGET"; then
8748 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8749else
1c710c3c
DJ
8750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8757 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8760 fi
8761done
8762done
8763
4de997d1
PB
8764fi
8765fi
1c710c3c 8766CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8767if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8768 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8769echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8770else
2aeb72e9
DD
8771 echo "$as_me:$LINENO: result: no" >&5
8772echo "${ECHO_T}no" >&6
4de997d1
PB
8773fi
8774
e8b05380
PB
8775 fi
8776 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8778set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8779echo "$as_me:$LINENO: checking for $ac_word" >&5
8780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8781if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8783else
2693c0b0
PB
8784 if test -n "$CC_FOR_TARGET"; then
8785 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8786else
1c710c3c
DJ
8787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in $PATH
8789do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8794 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8796 break 2
8797 fi
8798done
8799done
8800
4de997d1
PB
8801fi
8802fi
1c710c3c 8803CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8804if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8805 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8806echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8807else
2aeb72e9
DD
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
4de997d1 8810fi
1c710c3c 8811
e8b05380
PB
8812 fi
8813 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8814 done
8815fi
1c710c3c 8816
2693c0b0
PB
8817if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8818 set dummy cc gcc
8819 if test $build = $target ; then
8820 CC_FOR_TARGET="$2"
4de997d1 8821 else
2693c0b0 8822 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8823 fi
1c00b503
PB
8824else
8825 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8826fi
8827
278a7a38
AO
8828
8829
8830if test -n "$CXX_FOR_TARGET"; then
8831 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8832elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8833 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8834fi
8835
8836if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8837 for ncn_progname in c++ g++ cxx gxx; do
8838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8839set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8840echo "$as_me:$LINENO: checking for $ac_word" >&5
8841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8842if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844else
8845 if test -n "$CXX_FOR_TARGET"; then
8846 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8847else
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8855 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859done
8860done
8861
8862fi
8863fi
8864CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8865if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8866 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8867echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8868else
2aeb72e9
DD
8869 echo "$as_me:$LINENO: result: no" >&5
8870echo "${ECHO_T}no" >&6
278a7a38
AO
8871fi
8872
8873 done
8874fi
8875
8876if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8877 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8878 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8879echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8880 if test -x $with_build_time_tools/${ncn_progname}; then
8881 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8882 echo "$as_me:$LINENO: result: yes" >&5
8883echo "${ECHO_T}yes" >&6
e8b05380
PB
8884 break
8885 else
2aeb72e9
DD
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
e8b05380
PB
8888 fi
8889 done
8890fi
8891
8892if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8893 for ncn_progname in c++ g++ cxx gxx; do
8894 if test -n "$ncn_target_tool_prefix"; then
8895 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8896set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8897echo "$as_me:$LINENO: checking for $ac_word" >&5
8898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8899if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8901else
8902 if test -n "$CXX_FOR_TARGET"; then
8903 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8904else
1c710c3c
DJ
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8912 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 break 2
8915 fi
8916done
8917done
8918
4de997d1
PB
8919fi
8920fi
1c710c3c 8921CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8922if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8923 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8924echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8925else
2aeb72e9
DD
8926 echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
4de997d1
PB
8928fi
8929
e8b05380
PB
8930 fi
8931 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8933set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8934echo "$as_me:$LINENO: checking for $ac_word" >&5
8935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8936if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8938else
2693c0b0
PB
8939 if test -n "$CXX_FOR_TARGET"; then
8940 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8941else
1c710c3c
DJ
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8949 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 break 2
8952 fi
8953done
8954done
8955
4de997d1
PB
8956fi
8957fi
1c710c3c 8958CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8959if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8960 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8961echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8962else
2aeb72e9
DD
8963 echo "$as_me:$LINENO: result: no" >&5
8964echo "${ECHO_T}no" >&6
4de997d1 8965fi
1c710c3c 8966
e8b05380
PB
8967 fi
8968 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8969 done
8970fi
1c710c3c 8971
2693c0b0
PB
8972if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8973 set dummy c++ g++ cxx gxx
8974 if test $build = $target ; then
8975 CXX_FOR_TARGET="$2"
4de997d1 8976 else
2693c0b0 8977 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8978 fi
1c00b503
PB
8979else
8980 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8981fi
8982
278a7a38
AO
8983
8984
8985if test -n "$GCC_FOR_TARGET"; then
8986 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8987elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8988 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8989fi
8990
8991if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8992 for ncn_progname in gcc; do
8993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8994set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8995echo "$as_me:$LINENO: checking for $ac_word" >&5
8996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8997if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999else
9000 if test -n "$GCC_FOR_TARGET"; then
9001 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9002else
9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004for as_dir in $PATH
9005do
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9010 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9013 fi
9014done
9015done
9016
9017fi
9018fi
9019GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9020if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9021 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9022echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 9023else
2aeb72e9
DD
9024 echo "$as_me:$LINENO: result: no" >&5
9025echo "${ECHO_T}no" >&6
278a7a38
AO
9026fi
9027
9028 done
9029fi
9030
9031if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9032 for ncn_progname in gcc; do
2aeb72e9
DD
9033 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9034echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9035 if test -x $with_build_time_tools/${ncn_progname}; then
9036 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9037 echo "$as_me:$LINENO: result: yes" >&5
9038echo "${ECHO_T}yes" >&6
e8b05380
PB
9039 break
9040 else
2aeb72e9
DD
9041 echo "$as_me:$LINENO: result: no" >&5
9042echo "${ECHO_T}no" >&6
e8b05380
PB
9043 fi
9044 done
9045fi
9046
9047if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9048 for ncn_progname in gcc; do
9049 if test -n "$ncn_target_tool_prefix"; then
9050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9051set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9052echo "$as_me:$LINENO: checking for $ac_word" >&5
9053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9054if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9056else
e8b05380
PB
9057 if test -n "$GCC_FOR_TARGET"; then
9058 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9059else
1c710c3c
DJ
9060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061for as_dir in $PATH
9062do
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9067 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9070 fi
9071done
9072done
9073
ca9f4b81
AO
9074fi
9075fi
1c710c3c 9076GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9077if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9078 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9079echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 9080else
2aeb72e9
DD
9081 echo "$as_me:$LINENO: result: no" >&5
9082echo "${ECHO_T}no" >&6
ca9f4b81
AO
9083fi
9084
e8b05380
PB
9085 fi
9086 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9088set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9089echo "$as_me:$LINENO: checking for $ac_word" >&5
9090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9091if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9093else
e8b05380
PB
9094 if test -n "$GCC_FOR_TARGET"; then
9095 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9096else
1c710c3c
DJ
9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098for as_dir in $PATH
9099do
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9104 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2
9107 fi
9108done
9109done
9110
ca9f4b81
AO
9111fi
9112fi
1c710c3c 9113GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9114if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9115 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9116echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 9117else
2aeb72e9
DD
9118 echo "$as_me:$LINENO: result: no" >&5
9119echo "${ECHO_T}no" >&6
ca9f4b81 9120fi
1c710c3c 9121
e8b05380
PB
9122 fi
9123 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9124 done
9125fi
1c710c3c 9126
e8b05380
PB
9127if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9128 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
9129else
9130 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
9131fi
9132
278a7a38
AO
9133
9134
9135if test -n "$GCJ_FOR_TARGET"; then
9136 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9137elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9138 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9139fi
9140
9141if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9142 for ncn_progname in gcj; do
9143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9144set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9145echo "$as_me:$LINENO: checking for $ac_word" >&5
9146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9147if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150 if test -n "$GCJ_FOR_TARGET"; then
9151 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9152else
9153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154for as_dir in $PATH
9155do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9160 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9163 fi
9164done
9165done
9166
9167fi
9168fi
9169GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9170if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9171 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9172echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9173else
2aeb72e9
DD
9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
278a7a38
AO
9176fi
9177
9178 done
9179fi
9180
9181if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9182 for ncn_progname in gcj; do
2aeb72e9
DD
9183 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9184echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9185 if test -x $with_build_time_tools/${ncn_progname}; then
9186 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9187 echo "$as_me:$LINENO: result: yes" >&5
9188echo "${ECHO_T}yes" >&6
e8b05380
PB
9189 break
9190 else
2aeb72e9
DD
9191 echo "$as_me:$LINENO: result: no" >&5
9192echo "${ECHO_T}no" >&6
e8b05380
PB
9193 fi
9194 done
9195fi
9196
9197if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9198 for ncn_progname in gcj; do
9199 if test -n "$ncn_target_tool_prefix"; then
9200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9201set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9202echo "$as_me:$LINENO: checking for $ac_word" >&5
9203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9204if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9206else
fb0103e5
RG
9207 if test -n "$GCJ_FOR_TARGET"; then
9208 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9209else
1c710c3c
DJ
9210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211for as_dir in $PATH
9212do
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9217 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9220 fi
9221done
9222done
9223
e8b05380
PB
9224fi
9225fi
278a7a38
AO
9226GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9227if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9228 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9229echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9230else
2aeb72e9
DD
9231 echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6
278a7a38
AO
9233fi
9234
9235 fi
9236 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9239echo "$as_me:$LINENO: checking for $ac_word" >&5
9240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9241if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244 if test -n "$GCJ_FOR_TARGET"; then
9245 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9246else
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9254 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258done
9259done
9260
9261fi
9262fi
9263GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9264if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9265 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9266echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9267else
2aeb72e9
DD
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
278a7a38
AO
9270fi
9271
9272 fi
9273 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9274 done
9275fi
9276
9277if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9278 set dummy gcj
9279 if test $build = $target ; then
9280 GCJ_FOR_TARGET="$2"
9281 else
9282 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9283 fi
1c00b503
PB
9284else
9285 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
9286fi
9287
9288
9289
9290if test -n "$GFORTRAN_FOR_TARGET"; then
9291 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9292elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9293 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
9294fi
9295
278a7a38
AO
9296if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9297 for ncn_progname in gfortran; do
9298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 9299set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9300echo "$as_me:$LINENO: checking for $ac_word" >&5
9301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9302if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 9303 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9304else
278a7a38
AO
9305 if test -n "$GFORTRAN_FOR_TARGET"; then
9306 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 9307else
1c710c3c
DJ
9308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309for as_dir in $PATH
9310do
9311 IFS=$as_save_IFS
9312 test -z "$as_dir" && as_dir=.
9313 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9315 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9317 break 2
9318 fi
9319done
9320done
9321
e8b05380
PB
9322fi
9323fi
278a7a38
AO
9324GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9325if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9326 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9327echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9328else
2aeb72e9
DD
9329 echo "$as_me:$LINENO: result: no" >&5
9330echo "${ECHO_T}no" >&6
e8b05380 9331fi
1c710c3c 9332
e8b05380
PB
9333 done
9334fi
1c710c3c 9335
278a7a38 9336if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9337 for ncn_progname in gfortran; do
2aeb72e9
DD
9338 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9339echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9340 if test -x $with_build_time_tools/${ncn_progname}; then
9341 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9342 echo "$as_me:$LINENO: result: yes" >&5
9343echo "${ECHO_T}yes" >&6
e8b05380
PB
9344 break
9345 else
2aeb72e9
DD
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
e8b05380
PB
9348 fi
9349 done
9350fi
9351
9352if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9353 for ncn_progname in gfortran; do
9354 if test -n "$ncn_target_tool_prefix"; then
9355 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9356set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9357echo "$as_me:$LINENO: checking for $ac_word" >&5
9358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9359if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9361else
9362 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9363 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9364else
9365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $PATH
9367do
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9372 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9375 fi
9376done
9377done
9378
e8b05380
PB
9379fi
9380fi
1c710c3c 9381GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9382if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9383 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9384echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9385else
2aeb72e9
DD
9386 echo "$as_me:$LINENO: result: no" >&5
9387echo "${ECHO_T}no" >&6
e8b05380
PB
9388fi
9389
9390 fi
9391 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9393set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9394echo "$as_me:$LINENO: checking for $ac_word" >&5
9395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9396if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9398else
9399 if test -n "$GFORTRAN_FOR_TARGET"; then
9400 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9401else
1c710c3c
DJ
9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9409 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9411 break 2
9412 fi
9413done
9414done
9415
e8b05380
PB
9416fi
9417fi
1c710c3c 9418GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9419if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9420 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9421echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9422else
2aeb72e9
DD
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
e8b05380 9425fi
1c710c3c 9426
e8b05380
PB
9427 fi
9428 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9429 done
9430fi
1c710c3c 9431
e8b05380
PB
9432if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9433 set dummy gfortran
2693c0b0 9434 if test $build = $target ; then
e8b05380 9435 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9436 else
e8b05380
PB
9437 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9438 fi
1c00b503
PB
9439else
9440 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9441fi
9442
9443
9444
e8b05380
PB
9445cat > conftest.c << \EOF
9446#ifdef __GNUC__
9447 gcc_yay;
9448#endif
9449EOF
9450if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9451 have_gcc_for_target=yes
9452else
9453 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9454 have_gcc_for_target=no
9455fi
9456rm conftest.c
9457
9458
9459
9460
9461if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9462 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9463 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9464echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9465 if test -x $with_build_time_tools/ar; then
9466 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9467 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
9468 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9469echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 9470 else
2aeb72e9
DD
9471 echo "$as_me:$LINENO: result: no" >&5
9472echo "${ECHO_T}no" >&6
d1f8db0c 9473 fi
e8b05380
PB
9474 elif test $build != $host && test $have_gcc_for_target = yes; then
9475 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9476 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9477 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9478 fi
9479fi
3e19841a 9480if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9481 # Extract the first word of "ar", so it can be a program name with args.
9482set dummy ar; ac_word=$2
2aeb72e9
DD
9483echo "$as_me:$LINENO: checking for $ac_word" >&5
9484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9485if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9487else
1c710c3c
DJ
9488 case $AR_FOR_TARGET in
9489 [\\/]* | ?:[\\/]*)
e8b05380
PB
9490 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9491 ;;
e8b05380 9492 *)
1c710c3c
DJ
9493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9494for as_dir in $gcc_cv_tool_dirs
9495do
9496 IFS=$as_save_IFS
9497 test -z "$as_dir" && as_dir=.
9498 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9500 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9502 break 2
9503 fi
9504done
9505done
9506
e8b05380
PB
9507 ;;
9508esac
9509fi
1c710c3c 9510AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 9511
e8b05380 9512if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9513 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9514echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9515else
2aeb72e9
DD
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
4de997d1
PB
9518fi
9519
e8b05380
PB
9520fi
9521if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9522
9523
9524if test -n "$AR_FOR_TARGET"; then
9525 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9526elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9527 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9528fi
9529
9530if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9531 for ncn_progname in ar; do
9532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9533set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9534echo "$as_me:$LINENO: checking for $ac_word" >&5
9535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9536if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539 if test -n "$AR_FOR_TARGET"; then
9540 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9541else
9542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543for as_dir in $PATH
9544do
9545 IFS=$as_save_IFS
9546 test -z "$as_dir" && as_dir=.
9547 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9549 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 break 2
9552 fi
9553done
9554done
9555
9556fi
9557fi
9558AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9559if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9560 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9561echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 9562else
2aeb72e9
DD
9563 echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
278a7a38
AO
9565fi
9566
9567 done
9568fi
9569
9570if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9571 for ncn_progname in ar; do
2aeb72e9
DD
9572 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9573echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9574 if test -x $with_build_time_tools/${ncn_progname}; then
9575 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9576 echo "$as_me:$LINENO: result: yes" >&5
9577echo "${ECHO_T}yes" >&6
e8b05380
PB
9578 break
9579 else
2aeb72e9
DD
9580 echo "$as_me:$LINENO: result: no" >&5
9581echo "${ECHO_T}no" >&6
e8b05380
PB
9582 fi
9583 done
9584fi
9585
9586if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9587 for ncn_progname in ar; do
9588 if test -n "$ncn_target_tool_prefix"; then
9589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9590set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9591echo "$as_me:$LINENO: checking for $ac_word" >&5
9592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9593if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9595else
e8b05380
PB
9596 if test -n "$AR_FOR_TARGET"; then
9597 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9598else
1c710c3c
DJ
9599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9606 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9608 break 2
9609 fi
9610done
9611done
9612
4de997d1
PB
9613fi
9614fi
1c710c3c 9615AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9616if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9617 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9618echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 9619else
2aeb72e9
DD
9620 echo "$as_me:$LINENO: result: no" >&5
9621echo "${ECHO_T}no" >&6
4de997d1
PB
9622fi
9623
e8b05380
PB
9624 fi
9625 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9628echo "$as_me:$LINENO: checking for $ac_word" >&5
9629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9630if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9632else
9633 if test -n "$AR_FOR_TARGET"; then
9634 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9635else
1c710c3c
DJ
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9643 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9646 fi
9647done
9648done
9649
e8b05380
PB
9650fi
9651fi
1c710c3c 9652AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9653if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9654 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9655echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9656else
2aeb72e9
DD
9657 echo "$as_me:$LINENO: result: no" >&5
9658echo "${ECHO_T}no" >&6
e8b05380 9659fi
1c710c3c 9660
e8b05380
PB
9661 fi
9662 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9663 done
9664fi
1c710c3c 9665
e8b05380
PB
9666if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9667 set dummy ar
9668 if test $build = $target ; then
9669 AR_FOR_TARGET="$2"
9670 else
9671 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9672 fi
1c00b503
PB
9673else
9674 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
9675fi
9676
d1f8db0c
PB
9677else
9678 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9679fi
9680
9681
9682
9683
9684if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9685 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9686 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9687echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9688 if test -x $with_build_time_tools/as; then
9689 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9690 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9691 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9692echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9693 else
2aeb72e9
DD
9694 echo "$as_me:$LINENO: result: no" >&5
9695echo "${ECHO_T}no" >&6
d1f8db0c 9696 fi
e8b05380
PB
9697 elif test $build != $host && test $have_gcc_for_target = yes; then
9698 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9699 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9700 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9701 fi
9702fi
3e19841a 9703if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9704 # Extract the first word of "as", so it can be a program name with args.
9705set dummy as; ac_word=$2
2aeb72e9
DD
9706echo "$as_me:$LINENO: checking for $ac_word" >&5
9707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9708if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9710else
1c710c3c
DJ
9711 case $AS_FOR_TARGET in
9712 [\\/]* | ?:[\\/]*)
e8b05380
PB
9713 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9714 ;;
e8b05380 9715 *)
1c710c3c
DJ
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717for as_dir in $gcc_cv_tool_dirs
9718do
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9723 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 break 2
9726 fi
9727done
9728done
9729
e8b05380
PB
9730 ;;
9731esac
9732fi
1c710c3c 9733AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9734
e8b05380 9735if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9736 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9737echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9738else
2aeb72e9
DD
9739 echo "$as_me:$LINENO: result: no" >&5
9740echo "${ECHO_T}no" >&6
e8b05380
PB
9741fi
9742
9743fi
9744if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9745
9746
9747if test -n "$AS_FOR_TARGET"; then
9748 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9749elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9750 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9751fi
9752
9753if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9754 for ncn_progname in as; do
9755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9756set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9757echo "$as_me:$LINENO: checking for $ac_word" >&5
9758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9759if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
9762 if test -n "$AS_FOR_TARGET"; then
9763 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9764else
9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766for as_dir in $PATH
9767do
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9772 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9775 fi
9776done
9777done
9778
9779fi
9780fi
9781AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9782if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9783 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9784echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9785else
2aeb72e9
DD
9786 echo "$as_me:$LINENO: result: no" >&5
9787echo "${ECHO_T}no" >&6
278a7a38
AO
9788fi
9789
9790 done
9791fi
9792
9793if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9794 for ncn_progname in as; do
2aeb72e9
DD
9795 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9796echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9797 if test -x $with_build_time_tools/${ncn_progname}; then
9798 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9799 echo "$as_me:$LINENO: result: yes" >&5
9800echo "${ECHO_T}yes" >&6
e8b05380
PB
9801 break
9802 else
2aeb72e9
DD
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
e8b05380
PB
9805 fi
9806 done
9807fi
9808
9809if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9810 for ncn_progname in as; do
9811 if test -n "$ncn_target_tool_prefix"; then
9812 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9813set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9814echo "$as_me:$LINENO: checking for $ac_word" >&5
9815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9816if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9818else
9819 if test -n "$AS_FOR_TARGET"; then
9820 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9821else
1c710c3c
DJ
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9829 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834done
9835
e8b05380
PB
9836fi
9837fi
1c710c3c 9838AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9839if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9840 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9841echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9842else
2aeb72e9
DD
9843 echo "$as_me:$LINENO: result: no" >&5
9844echo "${ECHO_T}no" >&6
e8b05380
PB
9845fi
9846
9847 fi
9848 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9850set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9851echo "$as_me:$LINENO: checking for $ac_word" >&5
9852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9853if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9855else
e8b05380
PB
9856 if test -n "$AS_FOR_TARGET"; then
9857 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9858else
1c710c3c
DJ
9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $PATH
9861do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9866 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9869 fi
9870done
9871done
9872
4de997d1
PB
9873fi
9874fi
1c710c3c 9875AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9876if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9877 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9878echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9879else
2aeb72e9
DD
9880 echo "$as_me:$LINENO: result: no" >&5
9881echo "${ECHO_T}no" >&6
4de997d1 9882fi
1c710c3c 9883
e8b05380
PB
9884 fi
9885 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9886 done
9887fi
1c710c3c 9888
e8b05380
PB
9889if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9890 set dummy as
9891 if test $build = $target ; then
9892 AS_FOR_TARGET="$2"
9893 else
9894 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9895 fi
1c00b503
PB
9896else
9897 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9898fi
2693c0b0 9899
d1f8db0c
PB
9900else
9901 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9902fi
9903
e8b05380
PB
9904
9905
9906
9907if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9908 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9909 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9910echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9911 if test -x $with_build_time_tools/dlltool; then
9912 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9913 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9914 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9915echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9916 else
2aeb72e9
DD
9917 echo "$as_me:$LINENO: result: no" >&5
9918echo "${ECHO_T}no" >&6
d1f8db0c 9919 fi
e8b05380
PB
9920 elif test $build != $host && test $have_gcc_for_target = yes; then
9921 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9922 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9923 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9924 fi
9925fi
3e19841a 9926if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9927 # Extract the first word of "dlltool", so it can be a program name with args.
9928set dummy dlltool; ac_word=$2
2aeb72e9
DD
9929echo "$as_me:$LINENO: checking for $ac_word" >&5
9930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9931if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9933else
1c710c3c
DJ
9934 case $DLLTOOL_FOR_TARGET in
9935 [\\/]* | ?:[\\/]*)
e8b05380
PB
9936 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9937 ;;
e8b05380 9938 *)
1c710c3c
DJ
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $gcc_cv_tool_dirs
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9946 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9949 fi
9950done
9951done
9952
e8b05380
PB
9953 ;;
9954esac
4de997d1 9955fi
1c710c3c 9956DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9957
e8b05380 9958if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9959 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9960echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9961else
2aeb72e9
DD
9962 echo "$as_me:$LINENO: result: no" >&5
9963echo "${ECHO_T}no" >&6
4de997d1
PB
9964fi
9965
e8b05380
PB
9966fi
9967if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9968
9969
9970if test -n "$DLLTOOL_FOR_TARGET"; then
9971 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9972elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9973 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9974fi
9975
9976if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9977 for ncn_progname in dlltool; do
9978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9979set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9980echo "$as_me:$LINENO: checking for $ac_word" >&5
9981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9982if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984else
9985 if test -n "$DLLTOOL_FOR_TARGET"; then
9986 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9987else
9988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
9993 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9995 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 break 2
9998 fi
9999done
10000done
10001
10002fi
10003fi
10004DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10005if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10006 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10007echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 10008else
2aeb72e9
DD
10009 echo "$as_me:$LINENO: result: no" >&5
10010echo "${ECHO_T}no" >&6
278a7a38
AO
10011fi
10012
10013 done
10014fi
10015
10016if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10017 for ncn_progname in dlltool; do
2aeb72e9
DD
10018 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10019echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10020 if test -x $with_build_time_tools/${ncn_progname}; then
10021 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10022 echo "$as_me:$LINENO: result: yes" >&5
10023echo "${ECHO_T}yes" >&6
e8b05380
PB
10024 break
10025 else
2aeb72e9
DD
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
e8b05380
PB
10028 fi
10029 done
10030fi
10031
10032if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10033 for ncn_progname in dlltool; do
10034 if test -n "$ncn_target_tool_prefix"; then
10035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10036set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10037echo "$as_me:$LINENO: checking for $ac_word" >&5
10038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10039if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10041else
e8b05380
PB
10042 if test -n "$DLLTOOL_FOR_TARGET"; then
10043 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10044else
1c710c3c
DJ
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
10050 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10052 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10054 break 2
10055 fi
10056done
10057done
10058
4de997d1
PB
10059fi
10060fi
1c710c3c 10061DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10062if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10063 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10064echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10065else
2aeb72e9
DD
10066 echo "$as_me:$LINENO: result: no" >&5
10067echo "${ECHO_T}no" >&6
4de997d1 10068fi
4de997d1 10069
e8b05380
PB
10070 fi
10071 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10073set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10074echo "$as_me:$LINENO: checking for $ac_word" >&5
10075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10076if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10078else
e8b05380
PB
10079 if test -n "$DLLTOOL_FOR_TARGET"; then
10080 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10081else
1c710c3c
DJ
10082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083for as_dir in $PATH
10084do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10089 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10092 fi
10093done
10094done
10095
4de997d1
PB
10096fi
10097fi
1c710c3c 10098DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10099if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10100 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10101echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10102else
2aeb72e9
DD
10103 echo "$as_me:$LINENO: result: no" >&5
10104echo "${ECHO_T}no" >&6
4de997d1 10105fi
1c710c3c 10106
e8b05380
PB
10107 fi
10108 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10109 done
10110fi
1c710c3c 10111
e8b05380
PB
10112if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10113 set dummy dlltool
10114 if test $build = $target ; then
10115 DLLTOOL_FOR_TARGET="$2"
10116 else
10117 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10118 fi
1c00b503
PB
10119else
10120 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
10121fi
10122
d1f8db0c
PB
10123else
10124 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
10125fi
10126
4de997d1 10127
e8b05380
PB
10128
10129
10130if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10131 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10132 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10133echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10134 if test -x $with_build_time_tools/ld; then
10135 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10136 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
10137 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10138echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 10139 else
2aeb72e9
DD
10140 echo "$as_me:$LINENO: result: no" >&5
10141echo "${ECHO_T}no" >&6
d1f8db0c 10142 fi
e8b05380
PB
10143 elif test $build != $host && test $have_gcc_for_target = yes; then
10144 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
10145 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10146 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 10147 fi
e8b05380 10148fi
3e19841a 10149if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10150 # Extract the first word of "ld", so it can be a program name with args.
10151set dummy ld; ac_word=$2
2aeb72e9
DD
10152echo "$as_me:$LINENO: checking for $ac_word" >&5
10153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10154if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10156else
1c710c3c
DJ
10157 case $LD_FOR_TARGET in
10158 [\\/]* | ?:[\\/]*)
e8b05380
PB
10159 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10160 ;;
e8b05380 10161 *)
1c710c3c
DJ
10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163for as_dir in $gcc_cv_tool_dirs
10164do
10165 IFS=$as_save_IFS
10166 test -z "$as_dir" && as_dir=.
10167 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10169 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10171 break 2
10172 fi
10173done
10174done
10175
e8b05380
PB
10176 ;;
10177esac
4de997d1 10178fi
1c710c3c 10179LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 10180
e8b05380 10181if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10182 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10183echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 10184else
2aeb72e9
DD
10185 echo "$as_me:$LINENO: result: no" >&5
10186echo "${ECHO_T}no" >&6
4de997d1 10187fi
2693c0b0 10188
e8b05380
PB
10189fi
10190if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
10191
10192
10193if test -n "$LD_FOR_TARGET"; then
10194 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10195elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10196 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10197fi
10198
10199if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10200 for ncn_progname in ld; do
10201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10202set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10203echo "$as_me:$LINENO: checking for $ac_word" >&5
10204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10205if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207else
10208 if test -n "$LD_FOR_TARGET"; then
10209 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10210else
10211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212for as_dir in $PATH
10213do
10214 IFS=$as_save_IFS
10215 test -z "$as_dir" && as_dir=.
10216 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10218 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10220 break 2
10221 fi
10222done
10223done
10224
10225fi
10226fi
10227LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10228if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10229 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10230echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 10231else
2aeb72e9
DD
10232 echo "$as_me:$LINENO: result: no" >&5
10233echo "${ECHO_T}no" >&6
278a7a38
AO
10234fi
10235
10236 done
10237fi
10238
10239if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10240 for ncn_progname in ld; do
2aeb72e9
DD
10241 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10242echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10243 if test -x $with_build_time_tools/${ncn_progname}; then
10244 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10245 echo "$as_me:$LINENO: result: yes" >&5
10246echo "${ECHO_T}yes" >&6
e8b05380
PB
10247 break
10248 else
2aeb72e9
DD
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
e8b05380
PB
10251 fi
10252 done
ca9f4b81
AO
10253fi
10254
e8b05380
PB
10255if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10256 for ncn_progname in ld; do
10257 if test -n "$ncn_target_tool_prefix"; then
10258 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10259set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10260echo "$as_me:$LINENO: checking for $ac_word" >&5
10261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10262if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10264else
4de997d1
PB
10265 if test -n "$LD_FOR_TARGET"; then
10266 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10267else
1c710c3c
DJ
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10275 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279done
10280done
10281
ca9f4b81
AO
10282fi
10283fi
1c710c3c 10284LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 10285if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10286 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10287echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10288else
2aeb72e9
DD
10289 echo "$as_me:$LINENO: result: no" >&5
10290echo "${ECHO_T}no" >&6
ca9f4b81
AO
10291fi
10292
e8b05380
PB
10293 fi
10294 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10296set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10297echo "$as_me:$LINENO: checking for $ac_word" >&5
10298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10299if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10301else
2693c0b0
PB
10302 if test -n "$LD_FOR_TARGET"; then
10303 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10304else
1c710c3c
DJ
10305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $PATH
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10312 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10315 fi
10316done
10317done
10318
ca9f4b81
AO
10319fi
10320fi
1c710c3c 10321LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10322if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10323 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10324echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10325else
2aeb72e9
DD
10326 echo "$as_me:$LINENO: result: no" >&5
10327echo "${ECHO_T}no" >&6
ca9f4b81 10328fi
1c710c3c 10329
e8b05380
PB
10330 fi
10331 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10332 done
10333fi
1c710c3c 10334
2693c0b0
PB
10335if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10336 set dummy ld
10337 if test $build = $target ; then
10338 LD_FOR_TARGET="$2"
ca9f4b81 10339 else
2693c0b0 10340 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10341 fi
1c00b503
PB
10342else
10343 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10344fi
10345
d1f8db0c
PB
10346else
10347 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10348fi
10349
10350
10351
10352
10353if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10354 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10355 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10356echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10357 if test -x $with_build_time_tools/lipo; then
10358 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10359 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
10360 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10361echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 10362 else
2aeb72e9
DD
10363 echo "$as_me:$LINENO: result: no" >&5
10364echo "${ECHO_T}no" >&6
d1f8db0c 10365 fi
e8b05380
PB
10366 elif test $build != $host && test $have_gcc_for_target = yes; then
10367 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10368 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10369 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10370 fi
10371fi
278a7a38
AO
10372if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10373 # Extract the first word of "lipo", so it can be a program name with args.
10374set dummy lipo; ac_word=$2
2aeb72e9
DD
10375echo "$as_me:$LINENO: checking for $ac_word" >&5
10376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10377if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379else
10380 case $LIPO_FOR_TARGET in
10381 [\\/]* | ?:[\\/]*)
10382 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10383 ;;
10384 *)
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $gcc_cv_tool_dirs
10387do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10392 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10395 fi
10396done
10397done
10398
10399 ;;
10400esac
10401fi
10402LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 10403
278a7a38 10404if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10405 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10406echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 10407else
2aeb72e9
DD
10408 echo "$as_me:$LINENO: result: no" >&5
10409echo "${ECHO_T}no" >&6
278a7a38
AO
10410fi
10411
10412fi
10413if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10414
10415
10416if test -n "$LIPO_FOR_TARGET"; then
10417 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10418elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10419 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10420fi
10421
10422if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10423 for ncn_progname in lipo; do
10424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10425set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10426echo "$as_me:$LINENO: checking for $ac_word" >&5
10427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 10428if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10429 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10430else
278a7a38
AO
10431 if test -n "$LIPO_FOR_TARGET"; then
10432 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10433else
10434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435for as_dir in $PATH
1c710c3c
DJ
10436do
10437 IFS=$as_save_IFS
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10441 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10443 break 2
10444 fi
10445done
10446done
10447
e8b05380 10448fi
278a7a38
AO
10449fi
10450LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10451if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10452 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10453echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 10454else
2aeb72e9
DD
10455 echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
e8b05380
PB
10457fi
10458
278a7a38 10459 done
e8b05380 10460fi
278a7a38
AO
10461
10462if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10463 for ncn_progname in lipo; do
2aeb72e9
DD
10464 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10465echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10466 if test -x $with_build_time_tools/${ncn_progname}; then
10467 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10468 echo "$as_me:$LINENO: result: yes" >&5
10469echo "${ECHO_T}yes" >&6
e8b05380
PB
10470 break
10471 else
2aeb72e9
DD
10472 echo "$as_me:$LINENO: result: no" >&5
10473echo "${ECHO_T}no" >&6
e8b05380
PB
10474 fi
10475 done
10476fi
10477
10478if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10479 for ncn_progname in lipo; do
10480 if test -n "$ncn_target_tool_prefix"; then
10481 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10482set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10483echo "$as_me:$LINENO: checking for $ac_word" >&5
10484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10485if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10487else
10488 if test -n "$LIPO_FOR_TARGET"; then
10489 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10490else
1c710c3c
DJ
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10498 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503done
10504
040b1c5a
GK
10505fi
10506fi
1c710c3c 10507LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10508if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10509 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10510echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10511else
2aeb72e9
DD
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
040b1c5a
GK
10514fi
10515
e8b05380
PB
10516 fi
10517 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10519set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10520echo "$as_me:$LINENO: checking for $ac_word" >&5
10521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10522if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10524else
10525 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10526 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10527else
1c710c3c
DJ
10528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529for as_dir in $PATH
10530do
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10535 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10538 fi
10539done
10540done
10541
040b1c5a
GK
10542fi
10543fi
1c710c3c 10544LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10545if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10546 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10547echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10548else
2aeb72e9
DD
10549 echo "$as_me:$LINENO: result: no" >&5
10550echo "${ECHO_T}no" >&6
040b1c5a 10551fi
1c710c3c 10552
e8b05380
PB
10553 fi
10554 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10555 done
10556fi
1c710c3c 10557
040b1c5a
GK
10558if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10559 set dummy lipo
10560 if test $build = $target ; then
10561 LIPO_FOR_TARGET="$2"
10562 else
10563 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10564 fi
1c00b503
PB
10565else
10566 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10567fi
10568
d1f8db0c
PB
10569else
10570 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10571fi
10572
10573
10574
10575
10576if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10577 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10578 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10579echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10580 if test -x $with_build_time_tools/nm; then
10581 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10582 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
10583 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10584echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 10585 else
2aeb72e9
DD
10586 echo "$as_me:$LINENO: result: no" >&5
10587echo "${ECHO_T}no" >&6
d1f8db0c 10588 fi
e8b05380
PB
10589 elif test $build != $host && test $have_gcc_for_target = yes; then
10590 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10591 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10592 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10593 fi
10594fi
3e19841a 10595if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10596 # Extract the first word of "nm", so it can be a program name with args.
10597set dummy nm; ac_word=$2
2aeb72e9
DD
10598echo "$as_me:$LINENO: checking for $ac_word" >&5
10599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10600if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10602else
1c710c3c
DJ
10603 case $NM_FOR_TARGET in
10604 [\\/]* | ?:[\\/]*)
e8b05380
PB
10605 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10606 ;;
e8b05380 10607 *)
1c710c3c
DJ
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $gcc_cv_tool_dirs
10610do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10615 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10618 fi
10619done
10620done
10621
e8b05380
PB
10622 ;;
10623esac
10624fi
1c710c3c 10625NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 10626
e8b05380 10627if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10628 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10629echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 10630else
2aeb72e9
DD
10631 echo "$as_me:$LINENO: result: no" >&5
10632echo "${ECHO_T}no" >&6
e8b05380
PB
10633fi
10634
10635fi
10636if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10637
10638
10639if test -n "$NM_FOR_TARGET"; then
10640 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10641elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10642 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10643fi
10644
10645if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10646 for ncn_progname in nm; do
10647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10648set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10649echo "$as_me:$LINENO: checking for $ac_word" >&5
10650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10651if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654 if test -n "$NM_FOR_TARGET"; then
10655 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10656else
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10664 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668done
10669done
10670
10671fi
10672fi
10673NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10674if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10675 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10676echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 10677else
2aeb72e9
DD
10678 echo "$as_me:$LINENO: result: no" >&5
10679echo "${ECHO_T}no" >&6
278a7a38
AO
10680fi
10681
10682 done
10683fi
10684
10685if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10686 for ncn_progname in nm; do
2aeb72e9
DD
10687 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10688echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10689 if test -x $with_build_time_tools/${ncn_progname}; then
10690 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10691 echo "$as_me:$LINENO: result: yes" >&5
10692echo "${ECHO_T}yes" >&6
e8b05380
PB
10693 break
10694 else
2aeb72e9
DD
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
e8b05380
PB
10697 fi
10698 done
10699fi
10700
10701if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10702 for ncn_progname in nm; do
10703 if test -n "$ncn_target_tool_prefix"; then
10704 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10705set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10706echo "$as_me:$LINENO: checking for $ac_word" >&5
10707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10708if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10710else
4de997d1
PB
10711 if test -n "$NM_FOR_TARGET"; then
10712 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10713else
1c710c3c
DJ
10714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715for as_dir in $PATH
10716do
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10721 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10724 fi
10725done
10726done
10727
ca9f4b81
AO
10728fi
10729fi
1c710c3c 10730NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10731if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10732 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10733echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10734else
2aeb72e9
DD
10735 echo "$as_me:$LINENO: result: no" >&5
10736echo "${ECHO_T}no" >&6
ca9f4b81
AO
10737fi
10738
e8b05380
PB
10739 fi
10740 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10742set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10743echo "$as_me:$LINENO: checking for $ac_word" >&5
10744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10745if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10747else
2693c0b0
PB
10748 if test -n "$NM_FOR_TARGET"; then
10749 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10750else
1c710c3c
DJ
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10758 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762done
10763done
10764
ca9f4b81
AO
10765fi
10766fi
1c710c3c 10767NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10768if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10769 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10770echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10771else
2aeb72e9
DD
10772 echo "$as_me:$LINENO: result: no" >&5
10773echo "${ECHO_T}no" >&6
ca9f4b81 10774fi
1c710c3c 10775
e8b05380
PB
10776 fi
10777 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10778 done
10779fi
1c710c3c 10780
2693c0b0
PB
10781if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10782 set dummy nm
10783 if test $build = $target ; then
10784 NM_FOR_TARGET="$2"
ca9f4b81 10785 else
2693c0b0 10786 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10787 fi
1c00b503
PB
10788else
10789 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10790fi
10791
d1f8db0c
PB
10792else
10793 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10794fi
10795
10796
10797
10798
10799if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10800 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10801 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10802echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10803 if test -x $with_build_time_tools/objdump; then
10804 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10805 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10806 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10807echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10808 else
2aeb72e9
DD
10809 echo "$as_me:$LINENO: result: no" >&5
10810echo "${ECHO_T}no" >&6
d1f8db0c 10811 fi
e8b05380
PB
10812 elif test $build != $host && test $have_gcc_for_target = yes; then
10813 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10814 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10815 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10816 fi
10817fi
3e19841a 10818if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10819 # Extract the first word of "objdump", so it can be a program name with args.
10820set dummy objdump; ac_word=$2
2aeb72e9
DD
10821echo "$as_me:$LINENO: checking for $ac_word" >&5
10822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10823if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10825else
1c710c3c
DJ
10826 case $OBJDUMP_FOR_TARGET in
10827 [\\/]* | ?:[\\/]*)
e8b05380
PB
10828 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10829 ;;
e8b05380 10830 *)
1c710c3c
DJ
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $gcc_cv_tool_dirs
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10838 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842done
10843done
10844
e8b05380
PB
10845 ;;
10846esac
10847fi
1c710c3c 10848OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10849
e8b05380 10850if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10851 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10852echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10853else
2aeb72e9
DD
10854 echo "$as_me:$LINENO: result: no" >&5
10855echo "${ECHO_T}no" >&6
e8b05380
PB
10856fi
10857
10858fi
10859if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10860
10861
10862if test -n "$OBJDUMP_FOR_TARGET"; then
10863 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10864elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10865 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10866fi
10867
10868if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10869 for ncn_progname in objdump; do
10870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10871set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10872echo "$as_me:$LINENO: checking for $ac_word" >&5
10873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10874if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876else
10877 if test -n "$OBJDUMP_FOR_TARGET"; then
10878 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10887 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891done
10892done
10893
10894fi
10895fi
10896OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10897if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10898 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10899echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10900else
2aeb72e9
DD
10901 echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6
278a7a38
AO
10903fi
10904
10905 done
10906fi
10907
10908if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10909 for ncn_progname in objdump; do
2aeb72e9
DD
10910 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10911echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10912 if test -x $with_build_time_tools/${ncn_progname}; then
10913 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10914 echo "$as_me:$LINENO: result: yes" >&5
10915echo "${ECHO_T}yes" >&6
e8b05380
PB
10916 break
10917 else
2aeb72e9
DD
10918 echo "$as_me:$LINENO: result: no" >&5
10919echo "${ECHO_T}no" >&6
e8b05380
PB
10920 fi
10921 done
10922fi
10923
10924if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10925 for ncn_progname in objdump; do
10926 if test -n "$ncn_target_tool_prefix"; then
10927 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10928set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10929echo "$as_me:$LINENO: checking for $ac_word" >&5
10930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10931if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10933else
10934 if test -n "$OBJDUMP_FOR_TARGET"; then
10935 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10936else
1c710c3c
DJ
10937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938for as_dir in $PATH
10939do
10940 IFS=$as_save_IFS
10941 test -z "$as_dir" && as_dir=.
10942 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10944 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946 break 2
10947 fi
10948done
10949done
10950
d739199a
DJ
10951fi
10952fi
1c710c3c 10953OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10954if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10955 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10956echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10957else
2aeb72e9
DD
10958 echo "$as_me:$LINENO: result: no" >&5
10959echo "${ECHO_T}no" >&6
d739199a
DJ
10960fi
10961
e8b05380
PB
10962 fi
10963 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10965set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10966echo "$as_me:$LINENO: checking for $ac_word" >&5
10967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10968if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10970else
10971 if test -n "$OBJDUMP_FOR_TARGET"; then
10972 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10973else
1c710c3c
DJ
10974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $PATH
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10981 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10984 fi
10985done
10986done
10987
d739199a
DJ
10988fi
10989fi
1c710c3c 10990OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10991if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10992 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10993echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10994else
2aeb72e9
DD
10995 echo "$as_me:$LINENO: result: no" >&5
10996echo "${ECHO_T}no" >&6
d739199a 10997fi
1c710c3c 10998
e8b05380
PB
10999 fi
11000 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11001 done
11002fi
1c710c3c 11003
d739199a
DJ
11004if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11005 set dummy objdump
11006 if test $build = $target ; then
11007 OBJDUMP_FOR_TARGET="$2"
11008 else
11009 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11010 fi
1c00b503
PB
11011else
11012 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
11013fi
11014
d1f8db0c
PB
11015else
11016 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
11017fi
11018
11019
11020
11021
11022if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11023 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11024 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11025echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11026 if test -x $with_build_time_tools/ranlib; then
11027 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11028 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
11029 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11030echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 11031 else
2aeb72e9
DD
11032 echo "$as_me:$LINENO: result: no" >&5
11033echo "${ECHO_T}no" >&6
d1f8db0c 11034 fi
e8b05380
PB
11035 elif test $build != $host && test $have_gcc_for_target = yes; then
11036 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
11037 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11038 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
11039 fi
11040fi
3e19841a 11041if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11042 # Extract the first word of "ranlib", so it can be a program name with args.
11043set dummy ranlib; ac_word=$2
2aeb72e9
DD
11044echo "$as_me:$LINENO: checking for $ac_word" >&5
11045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11046if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11048else
1c710c3c
DJ
11049 case $RANLIB_FOR_TARGET in
11050 [\\/]* | ?:[\\/]*)
e8b05380
PB
11051 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11052 ;;
e8b05380 11053 *)
1c710c3c
DJ
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055for as_dir in $gcc_cv_tool_dirs
11056do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11061 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065done
11066done
11067
e8b05380
PB
11068 ;;
11069esac
11070fi
1c710c3c 11071RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 11072
e8b05380 11073if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11074 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11075echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 11076else
2aeb72e9
DD
11077 echo "$as_me:$LINENO: result: no" >&5
11078echo "${ECHO_T}no" >&6
e8b05380
PB
11079fi
11080
11081fi
11082if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
11083
11084
11085if test -n "$RANLIB_FOR_TARGET"; then
11086 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11087elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11088 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11089fi
11090
11091if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11092 for ncn_progname in ranlib; do
11093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11094set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11095echo "$as_me:$LINENO: checking for $ac_word" >&5
11096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11097if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099else
11100 if test -n "$RANLIB_FOR_TARGET"; then
11101 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11102else
11103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104for as_dir in $PATH
11105do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11110 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114done
11115done
11116
11117fi
11118fi
11119RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11120if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11121 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11122echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 11123else
2aeb72e9
DD
11124 echo "$as_me:$LINENO: result: no" >&5
11125echo "${ECHO_T}no" >&6
278a7a38
AO
11126fi
11127
11128 done
11129fi
11130
11131if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11132 for ncn_progname in ranlib; do
2aeb72e9
DD
11133 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11134echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11135 if test -x $with_build_time_tools/${ncn_progname}; then
11136 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11137 echo "$as_me:$LINENO: result: yes" >&5
11138echo "${ECHO_T}yes" >&6
e8b05380
PB
11139 break
11140 else
2aeb72e9
DD
11141 echo "$as_me:$LINENO: result: no" >&5
11142echo "${ECHO_T}no" >&6
e8b05380
PB
11143 fi
11144 done
11145fi
11146
11147if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11148 for ncn_progname in ranlib; do
11149 if test -n "$ncn_target_tool_prefix"; then
11150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 11151set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11152echo "$as_me:$LINENO: checking for $ac_word" >&5
11153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11154if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11156else
4de997d1
PB
11157 if test -n "$RANLIB_FOR_TARGET"; then
11158 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11159else
1c710c3c
DJ
11160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161for as_dir in $PATH
11162do
11163 IFS=$as_save_IFS
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11167 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11169 break 2
11170 fi
11171done
11172done
11173
ca9f4b81
AO
11174fi
11175fi
1c710c3c 11176RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 11177if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11178 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11179echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 11180else
2aeb72e9
DD
11181 echo "$as_me:$LINENO: result: no" >&5
11182echo "${ECHO_T}no" >&6
ca9f4b81
AO
11183fi
11184
e8b05380
PB
11185 fi
11186 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11188set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11189echo "$as_me:$LINENO: checking for $ac_word" >&5
11190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11191if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11193else
2693c0b0
PB
11194 if test -n "$RANLIB_FOR_TARGET"; then
11195 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11196else
1c710c3c
DJ
11197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198for as_dir in $PATH
11199do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11204 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208done
11209done
11210
ca9f4b81
AO
11211fi
11212fi
1c710c3c 11213RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 11214if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11215 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11216echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 11217else
2aeb72e9
DD
11218 echo "$as_me:$LINENO: result: no" >&5
11219echo "${ECHO_T}no" >&6
ca9f4b81 11220fi
1c710c3c 11221
e8b05380
PB
11222 fi
11223 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11224 done
11225fi
1c710c3c 11226
e8b05380
PB
11227if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11228 set dummy ranlib
11229 if test $build = $target ; then
11230 RANLIB_FOR_TARGET="$2"
11231 else
11232 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11233 fi
1c00b503
PB
11234else
11235 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 11236fi
2693c0b0 11237
d1f8db0c
PB
11238else
11239 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
11240fi
11241
e8b05380
PB
11242
11243
11244
11245if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11246 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11247 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11248echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11249 if test -x $with_build_time_tools/strip; then
11250 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11251 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
11252 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11253echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 11254 else
2aeb72e9
DD
11255 echo "$as_me:$LINENO: result: no" >&5
11256echo "${ECHO_T}no" >&6
d1f8db0c 11257 fi
e8b05380
PB
11258 elif test $build != $host && test $have_gcc_for_target = yes; then
11259 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
11260 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11261 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
11262 fi
11263fi
3e19841a 11264if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11265 # Extract the first word of "strip", so it can be a program name with args.
11266set dummy strip; ac_word=$2
2aeb72e9
DD
11267echo "$as_me:$LINENO: checking for $ac_word" >&5
11268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11269if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11271else
1c710c3c
DJ
11272 case $STRIP_FOR_TARGET in
11273 [\\/]* | ?:[\\/]*)
e8b05380
PB
11274 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11275 ;;
e8b05380 11276 *)
1c710c3c
DJ
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278for as_dir in $gcc_cv_tool_dirs
11279do
11280 IFS=$as_save_IFS
11281 test -z "$as_dir" && as_dir=.
11282 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11284 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 break 2
11287 fi
11288done
11289done
11290
e8b05380
PB
11291 ;;
11292esac
11293fi
1c710c3c 11294STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 11295
e8b05380 11296if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11297 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11298echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 11299else
2aeb72e9
DD
11300 echo "$as_me:$LINENO: result: no" >&5
11301echo "${ECHO_T}no" >&6
e8b05380
PB
11302fi
11303
11304fi
11305if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
11306
11307
11308if test -n "$STRIP_FOR_TARGET"; then
11309 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11310elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11311 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11312fi
11313
11314if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11315 for ncn_progname in strip; do
11316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11317set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11318echo "$as_me:$LINENO: checking for $ac_word" >&5
11319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11320if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322else
11323 if test -n "$STRIP_FOR_TARGET"; then
11324 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11325else
11326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327for as_dir in $PATH
11328do
11329 IFS=$as_save_IFS
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11333 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11335 break 2
11336 fi
11337done
11338done
11339
11340fi
11341fi
11342STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11343if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11344 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11345echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 11346else
2aeb72e9
DD
11347 echo "$as_me:$LINENO: result: no" >&5
11348echo "${ECHO_T}no" >&6
278a7a38
AO
11349fi
11350
11351 done
11352fi
11353
11354if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11355 for ncn_progname in strip; do
2aeb72e9
DD
11356 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11357echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11358 if test -x $with_build_time_tools/${ncn_progname}; then
11359 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11360 echo "$as_me:$LINENO: result: yes" >&5
11361echo "${ECHO_T}yes" >&6
e8b05380
PB
11362 break
11363 else
2aeb72e9
DD
11364 echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
e8b05380
PB
11366 fi
11367 done
11368fi
11369
11370if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11371 for ncn_progname in strip; do
11372 if test -n "$ncn_target_tool_prefix"; then
11373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11374set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11375echo "$as_me:$LINENO: checking for $ac_word" >&5
11376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11377if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11379else
11380 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11381 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11382else
11383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384for as_dir in $PATH
11385do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11390 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394done
11395done
11396
040b1c5a
GK
11397fi
11398fi
1c710c3c 11399STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11400if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11401 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11402echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11403else
2aeb72e9
DD
11404 echo "$as_me:$LINENO: result: no" >&5
11405echo "${ECHO_T}no" >&6
040b1c5a
GK
11406fi
11407
e8b05380
PB
11408 fi
11409 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11411set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11412echo "$as_me:$LINENO: checking for $ac_word" >&5
11413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11414if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11416else
11417 if test -n "$STRIP_FOR_TARGET"; then
11418 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11419else
1c710c3c
DJ
11420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421for as_dir in $PATH
11422do
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11427 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11430 fi
11431done
11432done
11433
040b1c5a
GK
11434fi
11435fi
1c710c3c 11436STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11437if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11438 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11439echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11440else
2aeb72e9
DD
11441 echo "$as_me:$LINENO: result: no" >&5
11442echo "${ECHO_T}no" >&6
040b1c5a 11443fi
1c710c3c 11444
e8b05380
PB
11445 fi
11446 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11447 done
11448fi
1c710c3c 11449
040b1c5a
GK
11450if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11451 set dummy strip
11452 if test $build = $target ; then
11453 STRIP_FOR_TARGET="$2"
11454 else
11455 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11456 fi
1c00b503
PB
11457else
11458 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11459fi
11460
d1f8db0c
PB
11461else
11462 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11463fi
11464
11465
11466
11467
11468if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11469 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11470 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11471echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11472 if test -x $with_build_time_tools/windres; then
11473 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11474 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
11475 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11476echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 11477 else
2aeb72e9
DD
11478 echo "$as_me:$LINENO: result: no" >&5
11479echo "${ECHO_T}no" >&6
d1f8db0c 11480 fi
e8b05380
PB
11481 elif test $build != $host && test $have_gcc_for_target = yes; then
11482 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11483 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11484 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11485 fi
11486fi
3e19841a 11487if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11488 # Extract the first word of "windres", so it can be a program name with args.
11489set dummy windres; ac_word=$2
2aeb72e9
DD
11490echo "$as_me:$LINENO: checking for $ac_word" >&5
11491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11492if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11494else
1c710c3c
DJ
11495 case $WINDRES_FOR_TARGET in
11496 [\\/]* | ?:[\\/]*)
e8b05380
PB
11497 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11498 ;;
e8b05380 11499 *)
1c710c3c
DJ
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $gcc_cv_tool_dirs
11502do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
11505 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11507 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 break 2
11510 fi
11511done
11512done
11513
e8b05380
PB
11514 ;;
11515esac
11516fi
1c710c3c 11517WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 11518
e8b05380 11519if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11520 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11521echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 11522else
2aeb72e9
DD
11523 echo "$as_me:$LINENO: result: no" >&5
11524echo "${ECHO_T}no" >&6
e8b05380
PB
11525fi
11526
11527fi
11528if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11529
11530
11531if test -n "$WINDRES_FOR_TARGET"; then
11532 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11533elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11534 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11535fi
11536
11537if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11538 for ncn_progname in windres; do
11539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11540set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11541echo "$as_me:$LINENO: checking for $ac_word" >&5
11542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11543if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545else
11546 if test -n "$WINDRES_FOR_TARGET"; then
11547 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11548else
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11556 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11558 break 2
11559 fi
11560done
11561done
11562
11563fi
11564fi
11565WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11566if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11567 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11568echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 11569else
2aeb72e9
DD
11570 echo "$as_me:$LINENO: result: no" >&5
11571echo "${ECHO_T}no" >&6
278a7a38
AO
11572fi
11573
11574 done
11575fi
11576
11577if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11578 for ncn_progname in windres; do
2aeb72e9
DD
11579 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11580echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11581 if test -x $with_build_time_tools/${ncn_progname}; then
11582 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11583 echo "$as_me:$LINENO: result: yes" >&5
11584echo "${ECHO_T}yes" >&6
e8b05380
PB
11585 break
11586 else
2aeb72e9
DD
11587 echo "$as_me:$LINENO: result: no" >&5
11588echo "${ECHO_T}no" >&6
e8b05380
PB
11589 fi
11590 done
11591fi
11592
11593if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11594 for ncn_progname in windres; do
11595 if test -n "$ncn_target_tool_prefix"; then
11596 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11597set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11598echo "$as_me:$LINENO: checking for $ac_word" >&5
11599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11600if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11602else
4de997d1
PB
11603 if test -n "$WINDRES_FOR_TARGET"; then
11604 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11605else
1c710c3c
DJ
11606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607for as_dir in $PATH
11608do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11613 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11615 break 2
11616 fi
11617done
11618done
11619
ca9f4b81
AO
11620fi
11621fi
1c710c3c 11622WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11623if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11624 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11625echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11626else
2aeb72e9
DD
11627 echo "$as_me:$LINENO: result: no" >&5
11628echo "${ECHO_T}no" >&6
ca9f4b81
AO
11629fi
11630
e8b05380
PB
11631 fi
11632 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11634set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11635echo "$as_me:$LINENO: checking for $ac_word" >&5
11636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11637if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11639else
2693c0b0
PB
11640 if test -n "$WINDRES_FOR_TARGET"; then
11641 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11642else
1c710c3c
DJ
11643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644for as_dir in $PATH
11645do
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11650 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11653 fi
11654done
11655done
11656
ca9f4b81
AO
11657fi
11658fi
1c710c3c 11659WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11660if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11661 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11662echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11663else
2aeb72e9
DD
11664 echo "$as_me:$LINENO: result: no" >&5
11665echo "${ECHO_T}no" >&6
ca9f4b81 11666fi
1c710c3c 11667
e8b05380
PB
11668 fi
11669 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11670 done
11671fi
1c710c3c 11672
2693c0b0
PB
11673if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11674 set dummy windres
11675 if test $build = $target ; then
11676 WINDRES_FOR_TARGET="$2"
ca9f4b81 11677 else
2693c0b0 11678 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11679 fi
1c00b503
PB
11680else
11681 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
11682fi
11683
d1f8db0c
PB
11684else
11685 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11686fi
11687
4977bab6 11688
901119ae
KT
11689
11690
11691if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11692 if test -n "$with_build_time_tools"; then
11693 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11694echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11695 if test -x $with_build_time_tools/windmc; then
11696 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11697 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11698 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11699echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11700 else
11701 echo "$as_me:$LINENO: result: no" >&5
11702echo "${ECHO_T}no" >&6
11703 fi
11704 elif test $build != $host && test $have_gcc_for_target = yes; then
11705 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11706 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11707 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11708 fi
11709fi
11710if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11711 # Extract the first word of "windmc", so it can be a program name with args.
11712set dummy windmc; ac_word=$2
11713echo "$as_me:$LINENO: checking for $ac_word" >&5
11714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11715if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 case $WINDMC_FOR_TARGET in
11719 [\\/]* | ?:[\\/]*)
11720 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11721 ;;
11722 *)
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $gcc_cv_tool_dirs
11725do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11730 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11733 fi
11734done
11735done
11736
11737 ;;
11738esac
11739fi
11740WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11741
11742if test -n "$WINDMC_FOR_TARGET"; then
11743 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11744echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11745else
11746 echo "$as_me:$LINENO: result: no" >&5
11747echo "${ECHO_T}no" >&6
11748fi
11749
11750fi
11751if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11752
11753
11754if test -n "$WINDMC_FOR_TARGET"; then
11755 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11756elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11757 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11758fi
11759
11760if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11761 for ncn_progname in windmc; do
11762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11763set dummy ${ncn_progname}; ac_word=$2
11764echo "$as_me:$LINENO: checking for $ac_word" >&5
11765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11766if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 if test -n "$WINDMC_FOR_TARGET"; then
11770 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11771else
11772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773for as_dir in $PATH
11774do
11775 IFS=$as_save_IFS
11776 test -z "$as_dir" && as_dir=.
11777 for ac_exec_ext in '' $ac_executable_extensions; do
11778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11779 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11781 break 2
11782 fi
11783done
11784done
11785
11786fi
11787fi
11788WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11789if test -n "$WINDMC_FOR_TARGET"; then
11790 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11791echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11792else
11793 echo "$as_me:$LINENO: result: no" >&5
11794echo "${ECHO_T}no" >&6
11795fi
11796
11797 done
11798fi
11799
11800if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11801 for ncn_progname in windmc; do
11802 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11803echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11804 if test -x $with_build_time_tools/${ncn_progname}; then
11805 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11806 echo "$as_me:$LINENO: result: yes" >&5
11807echo "${ECHO_T}yes" >&6
11808 break
11809 else
11810 echo "$as_me:$LINENO: result: no" >&5
11811echo "${ECHO_T}no" >&6
11812 fi
11813 done
11814fi
11815
11816if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11817 for ncn_progname in windmc; do
11818 if test -n "$ncn_target_tool_prefix"; then
11819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11820set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11821echo "$as_me:$LINENO: checking for $ac_word" >&5
11822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11823if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825else
11826 if test -n "$WINDMC_FOR_TARGET"; then
11827 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11828else
11829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $PATH
11831do
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 break 2
11839 fi
11840done
11841done
11842
11843fi
11844fi
11845WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11846if test -n "$WINDMC_FOR_TARGET"; then
11847 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11848echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11849else
11850 echo "$as_me:$LINENO: result: no" >&5
11851echo "${ECHO_T}no" >&6
11852fi
11853
11854 fi
11855 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11857set dummy ${ncn_progname}; ac_word=$2
11858echo "$as_me:$LINENO: checking for $ac_word" >&5
11859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11860if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 if test -n "$WINDMC_FOR_TARGET"; then
11864 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11865else
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877done
11878done
11879
11880fi
11881fi
11882WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11883if test -n "$WINDMC_FOR_TARGET"; then
11884 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11885echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11886else
11887 echo "$as_me:$LINENO: result: no" >&5
11888echo "${ECHO_T}no" >&6
11889fi
11890
11891 fi
11892 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11893 done
11894fi
11895
11896if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11897 set dummy windmc
11898 if test $build = $target ; then
11899 WINDMC_FOR_TARGET="$2"
11900 else
11901 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11902 fi
1c00b503
PB
11903else
11904 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11905fi
11906
11907else
11908 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11909fi
11910
11911
2abefe3d
PB
11912RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11913
2aeb72e9
DD
11914echo "$as_me:$LINENO: checking where to find the target ar" >&5
11915echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11916if test "x${build}" != "x${host}" ; then
e8b05380
PB
11917 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11918 # We already found the complete path
172e41aa 11919 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11920 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11921echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11922 else
11923 # Canadian cross, just use what we found
2aeb72e9
DD
11924 echo "$as_me:$LINENO: result: pre-installed" >&5
11925echo "${ECHO_T}pre-installed" >&6
e8b05380 11926 fi
2abefe3d
PB
11927else
11928 ok=yes
11929 case " ${configdirs} " in
11930 *" binutils "*) ;;
11931 *) ok=no ;;
11932 esac
1c710c3c 11933
2abefe3d
PB
11934 if test $ok = yes; then
11935 # An in-tree tool is available and we can use it
11936 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11937 echo "$as_me:$LINENO: result: just compiled" >&5
11938echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11939 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11940 # We already found the complete path
172e41aa 11941 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11942 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11943echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11944 elif test "x$target" = "x$host"; then
11945 # We can use an host tool
11946 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11947 echo "$as_me:$LINENO: result: host tool" >&5
11948echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11949 else
11950 # We need a cross tool
2aeb72e9
DD
11951 echo "$as_me:$LINENO: result: pre-installed" >&5
11952echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11953 fi
11954fi
0b0dc272 11955
2aeb72e9
DD
11956echo "$as_me:$LINENO: checking where to find the target as" >&5
11957echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11958if test "x${build}" != "x${host}" ; then
e8b05380
PB
11959 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11960 # We already found the complete path
172e41aa 11961 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11962 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11963echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11964 else
11965 # Canadian cross, just use what we found
2aeb72e9
DD
11966 echo "$as_me:$LINENO: result: pre-installed" >&5
11967echo "${ECHO_T}pre-installed" >&6
e8b05380 11968 fi
2abefe3d
PB
11969else
11970 ok=yes
11971 case " ${configdirs} " in
11972 *" gas "*) ;;
11973 *) ok=no ;;
11974 esac
1c710c3c 11975
2abefe3d
PB
11976 if test $ok = yes; then
11977 # An in-tree tool is available and we can use it
11978 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11979 echo "$as_me:$LINENO: result: just compiled" >&5
11980echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11981 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11982 # We already found the complete path
172e41aa 11983 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11984 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11985echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11986 elif test "x$target" = "x$host"; then
11987 # We can use an host tool
11988 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11989 echo "$as_me:$LINENO: result: host tool" >&5
11990echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11991 else
11992 # We need a cross tool
2aeb72e9
DD
11993 echo "$as_me:$LINENO: result: pre-installed" >&5
11994echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11995 fi
11996fi
0b0dc272 11997
2aeb72e9
DD
11998echo "$as_me:$LINENO: checking where to find the target cc" >&5
11999echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 12000if test "x${build}" != "x${host}" ; then
e8b05380
PB
12001 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12002 # We already found the complete path
172e41aa 12003 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
12004 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12005echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12006 else
12007 # Canadian cross, just use what we found
2aeb72e9
DD
12008 echo "$as_me:$LINENO: result: pre-installed" >&5
12009echo "${ECHO_T}pre-installed" >&6
e8b05380 12010 fi
2abefe3d
PB
12011else
12012 ok=yes
12013 case " ${configdirs} " in
12014 *" gcc "*) ;;
12015 *) ok=no ;;
12016 esac
1c710c3c 12017
2abefe3d
PB
12018 if test $ok = yes; then
12019 # An in-tree tool is available and we can use it
12020 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12021 echo "$as_me:$LINENO: result: just compiled" >&5
12022echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12023 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12024 # We already found the complete path
172e41aa 12025 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
12026 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12027echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12028 elif test "x$target" = "x$host"; then
12029 # We can use an host tool
12030 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
12031 echo "$as_me:$LINENO: result: host tool" >&5
12032echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12033 else
12034 # We need a cross tool
2aeb72e9
DD
12035 echo "$as_me:$LINENO: result: pre-installed" >&5
12036echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12037 fi
12038fi
0b0dc272 12039
2aeb72e9
DD
12040echo "$as_me:$LINENO: checking where to find the target c++" >&5
12041echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 12042if test "x${build}" != "x${host}" ; then
e8b05380
PB
12043 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12044 # We already found the complete path
172e41aa 12045 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
12046 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12047echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12048 else
12049 # Canadian cross, just use what we found
2aeb72e9
DD
12050 echo "$as_me:$LINENO: result: pre-installed" >&5
12051echo "${ECHO_T}pre-installed" >&6
e8b05380 12052 fi
2abefe3d
PB
12053else
12054 ok=yes
12055 case " ${configdirs} " in
12056 *" gcc "*) ;;
12057 *) ok=no ;;
12058 esac
12059 case ,${enable_languages}, in
12060 *,c++,*) ;;
12061 *) ok=no ;;
12062 esac
12063 if test $ok = yes; then
12064 # An in-tree tool is available and we can use it
12065 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'
2aeb72e9
DD
12066 echo "$as_me:$LINENO: result: just compiled" >&5
12067echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12068 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12069 # We already found the complete path
172e41aa 12070 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
12071 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12072echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12073 elif test "x$target" = "x$host"; then
12074 # We can use an host tool
12075 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
12076 echo "$as_me:$LINENO: result: host tool" >&5
12077echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12078 else
12079 # We need a cross tool
2aeb72e9
DD
12080 echo "$as_me:$LINENO: result: pre-installed" >&5
12081echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12082 fi
12083fi
0b0dc272 12084
2aeb72e9
DD
12085echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12086echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 12087if test "x${build}" != "x${host}" ; then
e8b05380
PB
12088 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12089 # We already found the complete path
172e41aa 12090 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
12091 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12092echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12093 else
12094 # Canadian cross, just use what we found
2aeb72e9
DD
12095 echo "$as_me:$LINENO: result: pre-installed" >&5
12096echo "${ECHO_T}pre-installed" >&6
e8b05380 12097 fi
2abefe3d
PB
12098else
12099 ok=yes
12100 case " ${configdirs} " in
12101 *" gcc "*) ;;
12102 *) ok=no ;;
12103 esac
12104 case ,${enable_languages}, in
12105 *,c++,*) ;;
12106 *) ok=no ;;
12107 esac
12108 if test $ok = yes; then
12109 # An in-tree tool is available and we can use it
12110 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'
2aeb72e9
DD
12111 echo "$as_me:$LINENO: result: just compiled" >&5
12112echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12113 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12114 # We already found the complete path
172e41aa 12115 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
12116 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12117echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12118 elif test "x$target" = "x$host"; then
12119 # We can use an host tool
12120 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
12121 echo "$as_me:$LINENO: result: host tool" >&5
12122echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12123 else
12124 # We need a cross tool
2aeb72e9
DD
12125 echo "$as_me:$LINENO: result: pre-installed" >&5
12126echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12127 fi
12128fi
0b0dc272 12129
2aeb72e9
DD
12130echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12131echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 12132if test "x${build}" != "x${host}" ; then
e8b05380
PB
12133 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12134 # We already found the complete path
172e41aa 12135 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
12136 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12137echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12138 else
12139 # Canadian cross, just use what we found
2aeb72e9
DD
12140 echo "$as_me:$LINENO: result: pre-installed" >&5
12141echo "${ECHO_T}pre-installed" >&6
e8b05380 12142 fi
2abefe3d
PB
12143else
12144 ok=yes
12145 case " ${configdirs} " in
12146 *" binutils "*) ;;
12147 *) ok=no ;;
12148 esac
1c710c3c 12149
2abefe3d
PB
12150 if test $ok = yes; then
12151 # An in-tree tool is available and we can use it
12152 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
12153 echo "$as_me:$LINENO: result: just compiled" >&5
12154echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12155 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12156 # We already found the complete path
172e41aa 12157 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
12158 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12159echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12160 elif test "x$target" = "x$host"; then
12161 # We can use an host tool
12162 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
12163 echo "$as_me:$LINENO: result: host tool" >&5
12164echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12165 else
12166 # We need a cross tool
2aeb72e9
DD
12167 echo "$as_me:$LINENO: result: pre-installed" >&5
12168echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12169 fi
12170fi
0b0dc272 12171
2aeb72e9
DD
12172echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12173echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 12174if test "x${build}" != "x${host}" ; then
e8b05380
PB
12175 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12176 # We already found the complete path
172e41aa 12177 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
12178 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12179echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12180 else
12181 # Canadian cross, just use what we found
2aeb72e9
DD
12182 echo "$as_me:$LINENO: result: pre-installed" >&5
12183echo "${ECHO_T}pre-installed" >&6
e8b05380 12184 fi
2abefe3d
PB
12185else
12186 ok=yes
12187 case " ${configdirs} " in
12188 *" gcc "*) ;;
12189 *) ok=no ;;
12190 esac
1c710c3c 12191
2abefe3d
PB
12192 if test $ok = yes; then
12193 # An in-tree tool is available and we can use it
12194 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12195 echo "$as_me:$LINENO: result: just compiled" >&5
12196echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12197 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12198 # We already found the complete path
172e41aa 12199 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
12200 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12201echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12202 elif test "x$target" = "x$host"; then
12203 # We can use an host tool
12204 GCC_FOR_TARGET='$()'
2aeb72e9
DD
12205 echo "$as_me:$LINENO: result: host tool" >&5
12206echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12207 else
12208 # We need a cross tool
2aeb72e9
DD
12209 echo "$as_me:$LINENO: result: pre-installed" >&5
12210echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12211 fi
12212fi
0b0dc272 12213
2aeb72e9
DD
12214echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12215echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 12216if test "x${build}" != "x${host}" ; then
e8b05380
PB
12217 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12218 # We already found the complete path
172e41aa 12219 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
12220 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12221echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12222 else
12223 # Canadian cross, just use what we found
2aeb72e9
DD
12224 echo "$as_me:$LINENO: result: pre-installed" >&5
12225echo "${ECHO_T}pre-installed" >&6
e8b05380 12226 fi
2abefe3d
PB
12227else
12228 ok=yes
12229 case " ${configdirs} " in
12230 *" gcc "*) ;;
12231 *) ok=no ;;
12232 esac
12233 case ,${enable_languages}, in
12234 *,java,*) ;;
12235 *) ok=no ;;
12236 esac
12237 if test $ok = yes; then
12238 # An in-tree tool is available and we can use it
12239 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12240 echo "$as_me:$LINENO: result: just compiled" >&5
12241echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12242 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12243 # We already found the complete path
172e41aa 12244 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
12245 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12246echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12247 elif test "x$target" = "x$host"; then
12248 # We can use an host tool
12249 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
12250 echo "$as_me:$LINENO: result: host tool" >&5
12251echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12252 else
12253 # We need a cross tool
2aeb72e9
DD
12254 echo "$as_me:$LINENO: result: pre-installed" >&5
12255echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12256 fi
12257fi
0b0dc272 12258
2aeb72e9
DD
12259echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12260echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 12261if test "x${build}" != "x${host}" ; then
e8b05380
PB
12262 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12263 # We already found the complete path
172e41aa 12264 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12265 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12266echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12267 else
12268 # Canadian cross, just use what we found
2aeb72e9
DD
12269 echo "$as_me:$LINENO: result: pre-installed" >&5
12270echo "${ECHO_T}pre-installed" >&6
e8b05380 12271 fi
2abefe3d
PB
12272else
12273 ok=yes
12274 case " ${configdirs} " in
12275 *" gcc "*) ;;
12276 *) ok=no ;;
12277 esac
12278 case ,${enable_languages}, in
12279 *,fortran,*) ;;
12280 *) ok=no ;;
12281 esac
12282 if test $ok = yes; then
12283 # An in-tree tool is available and we can use it
12284 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12285 echo "$as_me:$LINENO: result: just compiled" >&5
12286echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12287 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12288 # We already found the complete path
172e41aa 12289 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12290 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12291echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12292 elif test "x$target" = "x$host"; then
12293 # We can use an host tool
12294 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
12295 echo "$as_me:$LINENO: result: host tool" >&5
12296echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12297 else
12298 # We need a cross tool
2aeb72e9
DD
12299 echo "$as_me:$LINENO: result: pre-installed" >&5
12300echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12301 fi
12302fi
0b0dc272 12303
2aeb72e9
DD
12304echo "$as_me:$LINENO: checking where to find the target ld" >&5
12305echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 12306if test "x${build}" != "x${host}" ; then
e8b05380
PB
12307 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12308 # We already found the complete path
172e41aa 12309 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12310 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12311echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12312 else
12313 # Canadian cross, just use what we found
2aeb72e9
DD
12314 echo "$as_me:$LINENO: result: pre-installed" >&5
12315echo "${ECHO_T}pre-installed" >&6
e8b05380 12316 fi
2abefe3d
PB
12317else
12318 ok=yes
12319 case " ${configdirs} " in
12320 *" ld "*) ;;
12321 *) ok=no ;;
12322 esac
1c710c3c 12323
2abefe3d
PB
12324 if test $ok = yes; then
12325 # An in-tree tool is available and we can use it
12326 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
12327 echo "$as_me:$LINENO: result: just compiled" >&5
12328echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12329 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12330 # We already found the complete path
172e41aa 12331 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12332 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12333echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12334 elif test "x$target" = "x$host"; then
12335 # We can use an host tool
12336 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
12337 echo "$as_me:$LINENO: result: host tool" >&5
12338echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12339 else
12340 # We need a cross tool
2aeb72e9
DD
12341 echo "$as_me:$LINENO: result: pre-installed" >&5
12342echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12343 fi
12344fi
0b0dc272 12345
2aeb72e9
DD
12346echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12347echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 12348if test "x${build}" != "x${host}" ; then
e8b05380
PB
12349 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12350 # We already found the complete path
172e41aa 12351 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12352 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12353echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12354 else
12355 # Canadian cross, just use what we found
2aeb72e9
DD
12356 echo "$as_me:$LINENO: result: pre-installed" >&5
12357echo "${ECHO_T}pre-installed" >&6
e8b05380 12358 fi
2abefe3d 12359else
e8b05380
PB
12360 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12361 # We already found the complete path
172e41aa 12362 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12363 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12364echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 12365 elif test "x$target" = "x$host"; then
2abefe3d
PB
12366 # We can use an host tool
12367 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
12368 echo "$as_me:$LINENO: result: host tool" >&5
12369echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12370 else
12371 # We need a cross tool
2aeb72e9
DD
12372 echo "$as_me:$LINENO: result: pre-installed" >&5
12373echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12374 fi
12375fi
0b0dc272 12376
2aeb72e9
DD
12377echo "$as_me:$LINENO: checking where to find the target nm" >&5
12378echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 12379if test "x${build}" != "x${host}" ; then
e8b05380
PB
12380 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12381 # We already found the complete path
172e41aa 12382 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12383 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12384echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12385 else
12386 # Canadian cross, just use what we found
2aeb72e9
DD
12387 echo "$as_me:$LINENO: result: pre-installed" >&5
12388echo "${ECHO_T}pre-installed" >&6
e8b05380 12389 fi
2abefe3d
PB
12390else
12391 ok=yes
12392 case " ${configdirs} " in
12393 *" binutils "*) ;;
12394 *) ok=no ;;
12395 esac
1c710c3c 12396
2abefe3d
PB
12397 if test $ok = yes; then
12398 # An in-tree tool is available and we can use it
12399 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
12400 echo "$as_me:$LINENO: result: just compiled" >&5
12401echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12402 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12403 # We already found the complete path
172e41aa 12404 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12405 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12406echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12407 elif test "x$target" = "x$host"; then
12408 # We can use an host tool
12409 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
12410 echo "$as_me:$LINENO: result: host tool" >&5
12411echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12412 else
12413 # We need a cross tool
2aeb72e9
DD
12414 echo "$as_me:$LINENO: result: pre-installed" >&5
12415echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12416 fi
12417fi
0b0dc272 12418
2aeb72e9
DD
12419echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12420echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 12421if test "x${build}" != "x${host}" ; then
e8b05380
PB
12422 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12423 # We already found the complete path
172e41aa 12424 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12426echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12427 else
12428 # Canadian cross, just use what we found
2aeb72e9
DD
12429 echo "$as_me:$LINENO: result: pre-installed" >&5
12430echo "${ECHO_T}pre-installed" >&6
e8b05380 12431 fi
2abefe3d
PB
12432else
12433 ok=yes
12434 case " ${configdirs} " in
12435 *" binutils "*) ;;
12436 *) ok=no ;;
12437 esac
1c710c3c 12438
2abefe3d
PB
12439 if test $ok = yes; then
12440 # An in-tree tool is available and we can use it
12441 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
12442 echo "$as_me:$LINENO: result: just compiled" >&5
12443echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12444 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12445 # We already found the complete path
172e41aa 12446 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12447 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12448echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12449 elif test "x$target" = "x$host"; then
12450 # We can use an host tool
12451 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
12452 echo "$as_me:$LINENO: result: host tool" >&5
12453echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12454 else
12455 # We need a cross tool
2aeb72e9
DD
12456 echo "$as_me:$LINENO: result: pre-installed" >&5
12457echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12458 fi
12459fi
0b0dc272 12460
2aeb72e9
DD
12461echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12462echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 12463if test "x${build}" != "x${host}" ; then
e8b05380
PB
12464 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12465 # We already found the complete path
172e41aa 12466 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12468echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12469 else
12470 # Canadian cross, just use what we found
2aeb72e9
DD
12471 echo "$as_me:$LINENO: result: pre-installed" >&5
12472echo "${ECHO_T}pre-installed" >&6
e8b05380 12473 fi
2abefe3d
PB
12474else
12475 ok=yes
12476 case " ${configdirs} " in
12477 *" binutils "*) ;;
12478 *) ok=no ;;
12479 esac
1c710c3c 12480
2abefe3d
PB
12481 if test $ok = yes; then
12482 # An in-tree tool is available and we can use it
12483 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
12484 echo "$as_me:$LINENO: result: just compiled" >&5
12485echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12486 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12487 # We already found the complete path
172e41aa 12488 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12489 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12490echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12491 elif test "x$target" = "x$host"; then
12492 # We can use an host tool
12493 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
12494 echo "$as_me:$LINENO: result: host tool" >&5
12495echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12496 else
12497 # We need a cross tool
2aeb72e9
DD
12498 echo "$as_me:$LINENO: result: pre-installed" >&5
12499echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12500 fi
12501fi
0b0dc272 12502
2aeb72e9
DD
12503echo "$as_me:$LINENO: checking where to find the target strip" >&5
12504echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 12505if test "x${build}" != "x${host}" ; then
e8b05380
PB
12506 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12507 # We already found the complete path
172e41aa 12508 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12509 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12510echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12511 else
12512 # Canadian cross, just use what we found
2aeb72e9
DD
12513 echo "$as_me:$LINENO: result: pre-installed" >&5
12514echo "${ECHO_T}pre-installed" >&6
e8b05380 12515 fi
2abefe3d
PB
12516else
12517 ok=yes
12518 case " ${configdirs} " in
12519 *" binutils "*) ;;
12520 *) ok=no ;;
12521 esac
1c710c3c 12522
2abefe3d
PB
12523 if test $ok = yes; then
12524 # An in-tree tool is available and we can use it
12525 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
12526 echo "$as_me:$LINENO: result: just compiled" >&5
12527echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12528 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12529 # We already found the complete path
172e41aa 12530 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12531 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12532echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12533 elif test "x$target" = "x$host"; then
12534 # We can use an host tool
12535 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
12536 echo "$as_me:$LINENO: result: host tool" >&5
12537echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12538 else
12539 # We need a cross tool
2aeb72e9
DD
12540 echo "$as_me:$LINENO: result: pre-installed" >&5
12541echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12542 fi
12543fi
0b0dc272 12544
2aeb72e9
DD
12545echo "$as_me:$LINENO: checking where to find the target windres" >&5
12546echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 12547if test "x${build}" != "x${host}" ; then
e8b05380
PB
12548 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12549 # We already found the complete path
172e41aa 12550 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12551 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12552echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12553 else
12554 # Canadian cross, just use what we found
2aeb72e9
DD
12555 echo "$as_me:$LINENO: result: pre-installed" >&5
12556echo "${ECHO_T}pre-installed" >&6
e8b05380 12557 fi
2abefe3d
PB
12558else
12559 ok=yes
12560 case " ${configdirs} " in
12561 *" binutils "*) ;;
12562 *) ok=no ;;
12563 esac
1c710c3c 12564
2abefe3d
PB
12565 if test $ok = yes; then
12566 # An in-tree tool is available and we can use it
12567 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
12568 echo "$as_me:$LINENO: result: just compiled" >&5
12569echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12570 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12571 # We already found the complete path
172e41aa 12572 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12573 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12574echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12575 elif test "x$target" = "x$host"; then
12576 # We can use an host tool
12577 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
12578 echo "$as_me:$LINENO: result: host tool" >&5
12579echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12580 else
12581 # We need a cross tool
2aeb72e9
DD
12582 echo "$as_me:$LINENO: result: pre-installed" >&5
12583echo "${ECHO_T}pre-installed" >&6
2abefe3d 12584 fi
671aa708 12585fi
be912515 12586
901119ae
KT
12587echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12588echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12589if test "x${build}" != "x${host}" ; then
12590 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12591 # We already found the complete path
12592 ac_dir=`dirname $WINDMC_FOR_TARGET`
12593 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12594echo "${ECHO_T}pre-installed in $ac_dir" >&6
12595 else
12596 # Canadian cross, just use what we found
12597 echo "$as_me:$LINENO: result: pre-installed" >&5
12598echo "${ECHO_T}pre-installed" >&6
12599 fi
12600else
12601 ok=yes
12602 case " ${configdirs} " in
12603 *" binutils "*) ;;
12604 *) ok=no ;;
12605 esac
12606
12607 if test $ok = yes; then
12608 # An in-tree tool is available and we can use it
12609 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12610 echo "$as_me:$LINENO: result: just compiled" >&5
12611echo "${ECHO_T}just compiled" >&6
12612 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12613 # We already found the complete path
12614 ac_dir=`dirname $WINDMC_FOR_TARGET`
12615 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12616echo "${ECHO_T}pre-installed in $ac_dir" >&6
12617 elif test "x$target" = "x$host"; then
12618 # We can use an host tool
12619 WINDMC_FOR_TARGET='$(WINDMC)'
12620 echo "$as_me:$LINENO: result: host tool" >&5
12621echo "${ECHO_T}host tool" >&6
12622 else
12623 # We need a cross tool
12624 echo "$as_me:$LINENO: result: pre-installed" >&5
12625echo "${ECHO_T}pre-installed" >&6
12626 fi
12627fi
12628
be912515
NN
12629
12630
2abefe3d 12631
0b0dc272 12632
671aa708
NN
12633# Certain tools may need extra flags.
12634AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12635RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12636NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12637
2abefe3d
PB
12638# When building target libraries, except in a Canadian cross, we use
12639# the same toolchain as the compiler we just built.
12640COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12641COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12642COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12643if test $host = $build; then
12644 case " $configdirs " in
12645 *" gcc "*)
12646 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12647 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12648 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12649 ;;
12650 esac
12651fi
12652
12653
12654
12655
12656
2aeb72e9
DD
12657echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12658echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12659# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 12660if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
12661 enableval="$enable_maintainer_mode"
12662 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12663else
12664 USE_MAINTAINER_MODE=no
2aeb72e9
DD
12665fi;
12666echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12667echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
12668
12669
12670if test "$USE_MAINTAINER_MODE" = yes; then
12671 MAINTAINER_MODE_TRUE=
12672 MAINTAINER_MODE_FALSE='#'
12673else
12674 MAINTAINER_MODE_TRUE='#'
12675 MAINTAINER_MODE_FALSE=
1c710c3c 12676fi
ee03dc5e
AO
12677MAINT=$MAINTAINER_MODE_TRUE
12678
2805b53a
NN
12679# ---------------------
12680# GCC bootstrap support
12681# ---------------------
12682
12683# Stage specific cflags for build.
12684stage1_cflags="-g"
12685case $build in
12686 vax-*-*)
12687 case ${GCC} in
12688 yes) stage1_cflags="-g -Wa,-J" ;;
12689 *) stage1_cflags="-g -J" ;;
12690 esac ;;
2805b53a
NN
12691esac
12692
0b50988a
EB
12693# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12694if test "$GCC" = yes; then
12695 saved_CFLAGS="$CFLAGS"
12696
12697 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12698 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12699 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12700echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12701 cat >conftest.$ac_ext <<_ACEOF
12702/* confdefs.h. */
12703_ACEOF
12704cat confdefs.h >>conftest.$ac_ext
12705cat >>conftest.$ac_ext <<_ACEOF
12706/* end confdefs.h. */
12707
9cc1244e
JJ
12708#if (__GNUC__ < 3) \
12709 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12710 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12711#error http://gcc.gnu.org/PR29382
12712#endif
12713
1c710c3c
DJ
12714int
12715main ()
12716{
12717
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722rm -f conftest.$ac_objext
2aeb72e9
DD
12723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12730 (exit $ac_status); } &&
12731 { ac_try='test -z "$ac_c_werror_flag"
12732 || test ! -s conftest.err'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 echo "$as_me:$LINENO: result: yes" >&5
12745echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12746else
12747 echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
2aeb72e9
DD
12750echo "$as_me:$LINENO: result: no" >&5
12751echo "${ECHO_T}no" >&6
1c710c3c 12752fi
2aeb72e9 12753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12754
12755 CFLAGS="$saved_CFLAGS"
12756fi
12757
12758
2805b53a 12759
8efea775 12760# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12761# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12762if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12763 enableval="$enable_stage1_checking"
12764 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12765else
e643dc23 12766 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12767 stage1_checking=--enable-checking=yes,types
8efea775 12768else
e643dc23 12769 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12770fi
2aeb72e9 12771fi;
8efea775
PB
12772
12773
2805b53a 12774# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12775# Check whether --enable-werror or --disable-werror was given.
2805b53a 12776if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12777 enableval="$enable_werror"
12778
2805b53a 12779else
416cfb5e 12780 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12781 enable_werror=yes
88fceb68
PB
12782else
12783 enable_werror=no
12784fi
2aeb72e9 12785fi;
09a9c095
NN
12786case ${enable_werror} in
12787 yes) stage2_werror_flag="--enable-werror-always" ;;
12788 *) stage2_werror_flag="" ;;
2805b53a
NN
12789esac
12790
12791
32845532 12792# Flags needed to enable html installing and building
1c710c3c 12793
2aeb72e9 12794# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12795if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12796 withval="$with_datarootdir"
12797 datarootdir="\${prefix}/${withval}"
32845532
CD
12798else
12799 datarootdir="\${prefix}/share"
2aeb72e9 12800fi;
32845532
CD
12801
12802
2aeb72e9 12803# Check whether --with-docdir or --without-docdir was given.
32845532 12804if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12805 withval="$with_docdir"
12806 docdir="\${prefix}/${withval}"
32845532
CD
12807else
12808 docdir="\${datarootdir}/doc"
2aeb72e9 12809fi;
32845532
CD
12810
12811
2aeb72e9 12812# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12813if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12814 withval="$with_pdfdir"
12815 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12816else
12817 pdfdir="\${docdir}"
2aeb72e9 12818fi;
9c4d2493
BM
12819
12820
2aeb72e9 12821# Check whether --with-htmldir or --without-htmldir was given.
32845532 12822if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12823 withval="$with_htmldir"
12824 htmldir="\${prefix}/${withval}"
32845532
CD
12825else
12826 htmldir="\${docdir}"
2aeb72e9 12827fi;
32845532
CD
12828
12829
12830
12831
172e41aa 12832
11a67599 12833
2aeb72e9 12834 ac_config_files="$ac_config_files Makefile"
1c710c3c 12835cat >confcache <<\_ACEOF
671aa708
NN
12836# This file is a shell script that caches the results of configure
12837# tests run on this system so they can be shared between configure
1c710c3c
DJ
12838# scripts and configure runs, see configure's option --config-cache.
12839# It is not useful on other systems. If it contains results you don't
12840# want to keep, you may remove or edit it.
671aa708 12841#
1c710c3c
DJ
12842# config.status only pays attention to the cache file if you give it
12843# the --recheck option to rerun configure.
671aa708 12844#
1c710c3c
DJ
12845# `ac_cv_env_foo' variables (set or unset) will be overridden when
12846# loading this file, other *unset* `ac_cv_foo' will be assigned the
12847# following values.
12848
12849_ACEOF
12850
671aa708
NN
12851# The following way of writing the cache mishandles newlines in values,
12852# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12853# So, don't put newlines in cache variables' values.
671aa708
NN
12854# Ultrix sh set writes to stderr and can't be redirected directly,
12855# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12856{
1c710c3c 12857 (set) 2>&1 |
2aeb72e9
DD
12858 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12859 *ac_space=\ *)
1c710c3c
DJ
12860 # `set' does not quote correctly, so add quotes (double-quote
12861 # substitution turns \\\\ into \\, and sed turns \\ into \).
12862 sed -n \
12863 "s/'/'\\\\''/g;
12864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12865 ;;
1c710c3c
DJ
12866 *)
12867 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12868 sed -n \
12869 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12870 ;;
2aeb72e9
DD
12871 esac;
12872} |
1c710c3c
DJ
12873 sed '
12874 t clear
2aeb72e9 12875 : clear
1c710c3c
DJ
12876 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12877 t end
2aeb72e9
DD
12878 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12879 : end' >>confcache
12880if diff $cache_file confcache >/dev/null 2>&1; then :; else
12881 if test -w $cache_file; then
12882 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12883 cat confcache >$cache_file
671aa708 12884 else
2aeb72e9 12885 echo "not updating unwritable cache $cache_file"
671aa708 12886 fi
4977bab6 12887fi
671aa708 12888rm -f confcache
79c06341 12889
671aa708
NN
12890test "x$prefix" = xNONE && prefix=$ac_default_prefix
12891# Let make expand exec_prefix.
12892test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12893
2aeb72e9
DD
12894# VPATH may cause trouble with some makes, so we remove $(srcdir),
12895# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12896# trailing colons and then remove the whole line if VPATH becomes empty
12897# (actually we leave an empty line to preserve line numbers).
12898if test "x$srcdir" = x.; then
12899 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12900s/:*\$(srcdir):*/:/;
12901s/:*\${srcdir}:*/:/;
12902s/:*@srcdir@:*/:/;
12903s/^\([^=]*=[ ]*\):*/\1/;
12904s/:*$//;
12905s/^[^=]*=[ ]*$//;
12906}'
12907fi
12908
671aa708
NN
12909# Transform confdefs.h into DEFS.
12910# Protect against shell expansion while executing Makefile rules.
12911# Protect against Makefile macro expansion.
1c710c3c
DJ
12912#
12913# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12914# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12915# look for a macro that doesn't take arguments.
2aeb72e9 12916cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12917t clear
2aeb72e9
DD
12918: clear
12919s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12920t quote
2aeb72e9 12921s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12922t quote
2aeb72e9
DD
12923d
12924: quote
12925s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12926s,\[,\\&,g
12927s,\],\\&,g
12928s,\$,$$,g
12929p
12930_ACEOF
12931# We use echo to avoid assuming a particular line-breaking character.
12932# The extra dot is to prevent the shell from consuming trailing
12933# line-breaks from the sub-command output. A line-break within
12934# single-quotes doesn't work because, if this script is created in a
12935# platform that uses two characters for line-breaks (e.g., DOS), tr
12936# would break.
12937ac_LF_and_DOT=`echo; echo .`
12938DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12939rm -f confdef2opt.sed
1c710c3c
DJ
12940
12941
12942ac_libobjs=
12943ac_ltlibobjs=
12944for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12945 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12946 ac_i=`echo "$ac_i" |
12947 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12948 # 2. Add them.
12949 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12950 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12951done
12952LIBOBJS=$ac_libobjs
fb0103e5 12953
1c710c3c 12954LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12955
af71363e 12956
1c710c3c
DJ
12957
12958: ${CONFIG_STATUS=./config.status}
12959ac_clean_files_save=$ac_clean_files
12960ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12961{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12962echo "$as_me: creating $CONFIG_STATUS" >&6;}
12963cat >$CONFIG_STATUS <<_ACEOF
12964#! $SHELL
12965# Generated by $as_me.
671aa708 12966# Run this file to recreate the current configuration.
671aa708 12967# Compiler output produced by configure, useful for debugging
1c710c3c 12968# configure, is in config.log if it exists.
0b0dc272 12969
1c710c3c
DJ
12970debug=false
12971ac_cs_recheck=false
12972ac_cs_silent=false
12973SHELL=\${CONFIG_SHELL-$SHELL}
12974_ACEOF
12975
12976cat >>$CONFIG_STATUS <<\_ACEOF
12977## --------------------- ##
12978## M4sh Initialization. ##
12979## --------------------- ##
12980
2aeb72e9 12981# Be Bourne compatible
1c710c3c
DJ
12982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12983 emulate sh
12984 NULLCMD=:
12985 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12986 # is contrary to our usage. Disable this feature.
12987 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12988elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12989 set -o posix
1c710c3c 12990fi
2aeb72e9 12991DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12992
12993# Support unset when possible.
12994if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12995 as_unset=unset
12996else
12997 as_unset=false
12998fi
12999
13000
13001# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 13002$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
13003PS1='$ '
13004PS2='> '
13005PS4='+ '
13006
13007# NLS nuisances.
13008for as_var in \
13009 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13010 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13011 LC_TELEPHONE LC_TIME
13012do
13013 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13014 eval $as_var=C; export $as_var
13015 else
2aeb72e9 13016 $as_unset $as_var
1c710c3c
DJ
13017 fi
13018done
13019
13020# Required to use basename.
2aeb72e9 13021if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
13022 as_expr=expr
13023else
13024 as_expr=false
13025fi
13026
2aeb72e9 13027if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
13028 as_basename=basename
13029else
13030 as_basename=false
13031fi
13032
13033
13034# Name of the executable.
2aeb72e9 13035as_me=`$as_basename "$0" ||
1c710c3c
DJ
13036$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13037 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
13038 X"$0" : 'X\(/\)$' \| \
13039 . : '\(.\)' 2>/dev/null ||
1c710c3c 13040echo X/"$0" |
2aeb72e9
DD
13041 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13042 /^X\/\(\/\/\)$/{ s//\1/; q; }
13043 /^X\/\(\/\).*/{ s//\1/; q; }
13044 s/.*/./; q'`
1c710c3c 13045
2aeb72e9
DD
13046
13047# PATH needs CR, and LINENO needs CR and PATH.
13048# Avoid depending upon Character Ranges.
13049as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13050as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13051as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13052as_cr_digits='0123456789'
13053as_cr_alnum=$as_cr_Letters$as_cr_digits
13054
13055# The user is always right.
13056if test "${PATH_SEPARATOR+set}" != set; then
13057 echo "#! /bin/sh" >conf$$.sh
13058 echo "exit 0" >>conf$$.sh
13059 chmod +x conf$$.sh
13060 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13061 PATH_SEPARATOR=';'
13062 else
13063 PATH_SEPARATOR=:
13064 fi
13065 rm -f conf$$.sh
13066fi
1c710c3c
DJ
13067
13068
2aeb72e9
DD
13069 as_lineno_1=$LINENO
13070 as_lineno_2=$LINENO
13071 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13072 test "x$as_lineno_1" != "x$as_lineno_2" &&
13073 test "x$as_lineno_3" = "x$as_lineno_2" || {
13074 # Find who we are. Look in the path if we contain no path at all
13075 # relative or not.
13076 case $0 in
13077 *[\\/]* ) as_myself=$0 ;;
13078 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079for as_dir in $PATH
13080do
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13084done
1c710c3c 13085
2aeb72e9
DD
13086 ;;
13087 esac
13088 # We did not find ourselves, most probably we were run as `sh COMMAND'
13089 # in which case we are not to be found in the path.
13090 if test "x$as_myself" = x; then
13091 as_myself=$0
13092 fi
13093 if test ! -f "$as_myself"; then
13094 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13095echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13096 { (exit 1); exit 1; }; }
13097 fi
13098 case $CONFIG_SHELL in
13099 '')
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for as_base in sh bash ksh sh5; do
13106 case $as_dir in
13107 /*)
13108 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
13109 as_lineno_1=$LINENO
13110 as_lineno_2=$LINENO
2aeb72e9 13111 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 13112 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
13113 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13114 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13115 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13116 CONFIG_SHELL=$as_dir/$as_base
13117 export CONFIG_SHELL
13118 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13119 fi;;
13120 esac
13121 done
13122done
13123;;
13124 esac
1c710c3c
DJ
13125
13126 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13127 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
13128 # line-number line before each line; the second 'sed' does the real
13129 # work. The second script uses 'N' to pair each line-number line
13130 # with the numbered line, and appends trailing '-' during
13131 # substitution so that $LINENO is not a special case at line end.
1c710c3c 13132 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
13133 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13134 sed '=' <$as_myself |
1c710c3c
DJ
13135 sed '
13136 N
2aeb72e9
DD
13137 s,$,-,
13138 : loop
13139 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 13140 t loop
2aeb72e9
DD
13141 s,-$,,
13142 s,^['$as_cr_digits']*\n,,
1c710c3c 13143 ' >$as_me.lineno &&
2aeb72e9
DD
13144 chmod +x $as_me.lineno ||
13145 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13146echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
13147 { (exit 1); exit 1; }; }
13148
13149 # Don't try to exec as it changes $[0], causing all sort of problems
13150 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
13151 # original and so on. Autoconf is especially sensible to this).
13152 . ./$as_me.lineno
1c710c3c
DJ
13153 # Exit status is that of the last command.
13154 exit
13155}
13156
13157
2aeb72e9
DD
13158case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13159 *c*,-n*) ECHO_N= ECHO_C='
13160' ECHO_T=' ' ;;
13161 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13162 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
13163esac
13164
2aeb72e9 13165if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
13166 as_expr=expr
13167else
13168 as_expr=false
13169fi
13170
13171rm -f conf$$ conf$$.exe conf$$.file
13172echo >conf$$.file
13173if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
13174 # We could just check for DJGPP; but this test a) works b) is more generic
13175 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13176 if test -f conf$$.exe; then
13177 # Don't use ln at all; we don't have any links
1c710c3c 13178 as_ln_s='cp -p'
2aeb72e9
DD
13179 else
13180 as_ln_s='ln -s'
13181 fi
1c710c3c
DJ
13182elif ln conf$$.file conf$$ 2>/dev/null; then
13183 as_ln_s=ln
13184else
13185 as_ln_s='cp -p'
13186fi
2aeb72e9 13187rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
13188
13189if mkdir -p . 2>/dev/null; then
13190 as_mkdir_p=:
13191else
13192 test -d ./-p && rmdir ./-p
13193 as_mkdir_p=false
13194fi
13195
2aeb72e9 13196as_executable_p="test -f"
1c710c3c
DJ
13197
13198# Sed expression to map a string onto a valid CPP name.
13199as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13200
13201# Sed expression to map a string onto a valid variable name.
13202as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13203
13204
2aeb72e9
DD
13205# IFS
13206# We need space, tab and new line, in precisely that order.
13207as_nl='
13208'
13209IFS=" $as_nl"
13210
13211# CDPATH.
13212$as_unset CDPATH
13213
1c710c3c
DJ
13214exec 6>&1
13215
2aeb72e9 13216# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 13217# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
13218# values after options handling. Logging --version etc. is OK.
13219exec 5>>config.log
13220{
13221 echo
13222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13223## Running $as_me. ##
13224_ASBOX
13225} >&5
13226cat >&5 <<_CSEOF
13227
1c710c3c 13228This file was extended by $as_me, which was
2aeb72e9 13229generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
13230
13231 CONFIG_FILES = $CONFIG_FILES
13232 CONFIG_HEADERS = $CONFIG_HEADERS
13233 CONFIG_LINKS = $CONFIG_LINKS
13234 CONFIG_COMMANDS = $CONFIG_COMMANDS
13235 $ $0 $@
13236
2aeb72e9
DD
13237_CSEOF
13238echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13239echo >&5
1c710c3c
DJ
13240_ACEOF
13241
13242# Files that config.status was made for.
2aeb72e9
DD
13243if test -n "$ac_config_files"; then
13244 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13245fi
1c710c3c 13246
2aeb72e9
DD
13247if test -n "$ac_config_headers"; then
13248 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13249fi
13250
13251if test -n "$ac_config_links"; then
13252 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13253fi
13254
13255if test -n "$ac_config_commands"; then
13256 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13257fi
1c710c3c
DJ
13258
13259cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 13260
1c710c3c
DJ
13261ac_cs_usage="\
13262\`$as_me' instantiates files from templates according to the
13263current configuration.
13264
13265Usage: $0 [OPTIONS] [FILE]...
13266
13267 -h, --help print this help, then exit
2aeb72e9 13268 -V, --version print version number, then exit
1c710c3c
DJ
13269 -q, --quiet do not print progress messages
13270 -d, --debug don't remove temporary files
13271 --recheck update $as_me by reconfiguring in the same conditions
13272 --file=FILE[:TEMPLATE]
13273 instantiate the configuration file FILE
13274
13275Configuration files:
13276$config_files
13277
13278Report bugs to <bug-autoconf@gnu.org>."
11a67599 13279_ACEOF
2aeb72e9 13280
1c710c3c
DJ
13281cat >>$CONFIG_STATUS <<_ACEOF
13282ac_cs_version="\\
13283config.status
2aeb72e9
DD
13284configured by $0, generated by GNU Autoconf 2.59,
13285 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 13286
2aeb72e9 13287Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
13288This config.status script is free software; the Free Software Foundation
13289gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
13290srcdir=$srcdir
13291INSTALL="$INSTALL"
1c710c3c
DJ
13292_ACEOF
13293
13294cat >>$CONFIG_STATUS <<\_ACEOF
13295# If no file are specified by the user, then we need to provide default
13296# value. By we need to know if files were specified by the user.
13297ac_need_defaults=:
13298while test $# != 0
a4b9e93e 13299do
1c710c3c
DJ
13300 case $1 in
13301 --*=*)
2aeb72e9
DD
13302 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13303 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
13304 ac_shift=:
13305 ;;
2aeb72e9 13306 -*)
1c710c3c
DJ
13307 ac_option=$1
13308 ac_optarg=$2
13309 ac_shift=shift
13310 ;;
2aeb72e9
DD
13311 *) # This is not an option, so the user has probably given explicit
13312 # arguments.
13313 ac_option=$1
13314 ac_need_defaults=false;;
1c710c3c
DJ
13315 esac
13316
13317 case $ac_option in
13318 # Handling of the options.
2aeb72e9
DD
13319_ACEOF
13320cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 13321 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13322 ac_cs_recheck=: ;;
2aeb72e9
DD
13323 --version | --vers* | -V )
13324 echo "$ac_cs_version"; exit 0 ;;
13325 --he | --h)
13326 # Conflict between --help and --header
13327 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13328Try \`$0 --help' for more information." >&5
13329echo "$as_me: error: ambiguous option: $1
13330Try \`$0 --help' for more information." >&2;}
13331 { (exit 1); exit 1; }; };;
13332 --help | --hel | -h )
13333 echo "$ac_cs_usage"; exit 0 ;;
13334 --debug | --d* | -d )
1c710c3c
DJ
13335 debug=: ;;
13336 --file | --fil | --fi | --f )
13337 $ac_shift
13338 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13339 ac_need_defaults=false;;
2aeb72e9
DD
13340 --header | --heade | --head | --hea )
13341 $ac_shift
13342 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13343 ac_need_defaults=false;;
1c710c3c
DJ
13344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13346 ac_cs_silent=: ;;
13347
13348 # This is an error.
2aeb72e9
DD
13349 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13350Try \`$0 --help' for more information." >&5
13351echo "$as_me: error: unrecognized option: $1
13352Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
13353 { (exit 1); exit 1; }; } ;;
13354
2aeb72e9 13355 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 13356
0b0dc272 13357 esac
1c710c3c 13358 shift
0b0dc272
AM
13359done
13360
1c710c3c 13361ac_configure_extra_args=
0b0dc272 13362
1c710c3c
DJ
13363if $ac_cs_silent; then
13364 exec 6>/dev/null
13365 ac_configure_extra_args="$ac_configure_extra_args --silent"
13366fi
0b0dc272 13367
1c710c3c
DJ
13368_ACEOF
13369cat >>$CONFIG_STATUS <<_ACEOF
13370if \$ac_cs_recheck; then
2aeb72e9
DD
13371 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13372 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
13373fi
13374
13375_ACEOF
13376
1c710c3c 13377
11a67599 13378
2aeb72e9
DD
13379
13380
13381cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
13382for ac_config_target in $ac_config_targets
13383do
2aeb72e9
DD
13384 case "$ac_config_target" in
13385 # Handling of arguments.
13386 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
13387 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13388echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13389 { (exit 1); exit 1; }; };;
13390 esac
13391done
13392
13393# If the user did not use the arguments to specify the items to instantiate,
13394# then the envvar interface is used. Set only those that are not.
13395# We use the long form for the default assignment because of an extremely
13396# bizarre bug on SunOS 4.1.3.
13397if $ac_need_defaults; then
13398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13399fi
13400
13401# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 13402# simply because there is no reason to put it here, and in addition,
1c710c3c 13403# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 13404# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
13405$debug ||
13406{
2aeb72e9 13407 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
13408 trap '{ (exit 1); exit 1; }' 1 2 13 15
13409}
2aeb72e9 13410
1c710c3c
DJ
13411# Create a (secure) tmp directory for tmp files.
13412
13413{
2aeb72e9 13414 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13415 test -n "$tmp" && test -d "$tmp"
13416} ||
13417{
2aeb72e9
DD
13418 tmp=./confstat$$-$RANDOM
13419 (umask 077 && mkdir $tmp)
1c710c3c
DJ
13420} ||
13421{
13422 echo "$me: cannot create a temporary directory in ." >&2
13423 { (exit 1); exit 1; }
13424}
13425
2aeb72e9
DD
13426_ACEOF
13427
13428cat >>$CONFIG_STATUS <<_ACEOF
13429
1c710c3c 13430#
2aeb72e9 13431# CONFIG_FILES section.
1c710c3c
DJ
13432#
13433
13434# No need to generate the scripts if there are no CONFIG_FILES.
13435# This happens for instance when ./config.status config.h
2aeb72e9
DD
13436if test -n "\$CONFIG_FILES"; then
13437 # Protect against being on the right side of a sed subst in config.status.
13438 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13439 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13440s,@SHELL@,$SHELL,;t t
13441s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13442s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13443s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13444s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13445s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13446s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13447s,@exec_prefix@,$exec_prefix,;t t
13448s,@prefix@,$prefix,;t t
13449s,@program_transform_name@,$program_transform_name,;t t
13450s,@bindir@,$bindir,;t t
13451s,@sbindir@,$sbindir,;t t
13452s,@libexecdir@,$libexecdir,;t t
13453s,@datadir@,$datadir,;t t
13454s,@sysconfdir@,$sysconfdir,;t t
13455s,@sharedstatedir@,$sharedstatedir,;t t
13456s,@localstatedir@,$localstatedir,;t t
13457s,@libdir@,$libdir,;t t
13458s,@includedir@,$includedir,;t t
13459s,@oldincludedir@,$oldincludedir,;t t
13460s,@infodir@,$infodir,;t t
13461s,@mandir@,$mandir,;t t
13462s,@build_alias@,$build_alias,;t t
13463s,@host_alias@,$host_alias,;t t
13464s,@target_alias@,$target_alias,;t t
13465s,@DEFS@,$DEFS,;t t
13466s,@ECHO_C@,$ECHO_C,;t t
13467s,@ECHO_N@,$ECHO_N,;t t
13468s,@ECHO_T@,$ECHO_T,;t t
13469s,@LIBS@,$LIBS,;t t
ad33ff57 13470s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
2aeb72e9
DD
13471s,@build@,$build,;t t
13472s,@build_cpu@,$build_cpu,;t t
13473s,@build_vendor@,$build_vendor,;t t
13474s,@build_os@,$build_os,;t t
13475s,@build_noncanonical@,$build_noncanonical,;t t
13476s,@host_noncanonical@,$host_noncanonical,;t t
13477s,@target_noncanonical@,$target_noncanonical,;t t
13478s,@host@,$host,;t t
13479s,@host_cpu@,$host_cpu,;t t
13480s,@host_vendor@,$host_vendor,;t t
13481s,@host_os@,$host_os,;t t
13482s,@target@,$target,;t t
13483s,@target_cpu@,$target_cpu,;t t
13484s,@target_vendor@,$target_vendor,;t t
13485s,@target_os@,$target_os,;t t
13486s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13487s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13488s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13489s,@LN@,$LN,;t t
13490s,@LN_S@,$LN_S,;t t
2aeb72e9
DD
13491s,@build_libsubdir@,$build_libsubdir,;t t
13492s,@build_subdir@,$build_subdir,;t t
13493s,@host_subdir@,$host_subdir,;t t
13494s,@target_subdir@,$target_subdir,;t t
13495s,@CC@,$CC,;t t
13496s,@CFLAGS@,$CFLAGS,;t t
13497s,@LDFLAGS@,$LDFLAGS,;t t
13498s,@CPPFLAGS@,$CPPFLAGS,;t t
13499s,@ac_ct_CC@,$ac_ct_CC,;t t
13500s,@EXEEXT@,$EXEEXT,;t t
13501s,@OBJEXT@,$OBJEXT,;t t
13502s,@CXX@,$CXX,;t t
13503s,@CXXFLAGS@,$CXXFLAGS,;t t
13504s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13505s,@GNATBIND@,$GNATBIND,;t t
13506s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13507s,@GNATMAKE@,$GNATMAKE,;t t
13508s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13509s,@do_compare@,$do_compare,;t t
13510s,@gmplibs@,$gmplibs,;t t
13511s,@gmpinc@,$gmpinc,;t t
9e3eba15 13512s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
acd26225
KG
13513s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13514s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
f8bf9252
SP
13515s,@ppllibs@,$ppllibs,;t t
13516s,@pplinc@,$pplinc,;t t
13517s,@clooglibs@,$clooglibs,;t t
13518s,@clooginc@,$clooginc,;t t
2aeb72e9
DD
13519s,@stage1_languages@,$stage1_languages,;t t
13520s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 13521s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
1c8bd6a3
PB
13522s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13523s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
2aeb72e9 13524s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
d89f0ad6 13525s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
2aeb72e9
DD
13526s,@tooldir@,$tooldir,;t t
13527s,@build_tooldir@,$build_tooldir,;t t
13528s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13529s,@GDB_TK@,$GDB_TK,;t t
13530s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13531s,@build_configargs@,$build_configargs,;t t
13532s,@build_configdirs@,$build_configdirs,;t t
13533s,@host_configargs@,$host_configargs,;t t
13534s,@configdirs@,$configdirs,;t t
13535s,@target_configargs@,$target_configargs,;t t
0999159b
PB
13536s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13537s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 13538s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
13539s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13540s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13541s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13542s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13543s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13544s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13545s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13546s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13547s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13548s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13549s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13550s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
13551s,@config_shell@,$config_shell,;t t
13552s,@YACC@,$YACC,;t t
13553s,@BISON@,$BISON,;t t
13554s,@M4@,$M4,;t t
13555s,@LEX@,$LEX,;t t
13556s,@FLEX@,$FLEX,;t t
13557s,@MAKEINFO@,$MAKEINFO,;t t
13558s,@EXPECT@,$EXPECT,;t t
13559s,@RUNTEST@,$RUNTEST,;t t
13560s,@AR@,$AR,;t t
13561s,@AS@,$AS,;t t
13562s,@DLLTOOL@,$DLLTOOL,;t t
13563s,@LD@,$LD,;t t
13564s,@LIPO@,$LIPO,;t t
13565s,@NM@,$NM,;t t
13566s,@RANLIB@,$RANLIB,;t t
13567s,@STRIP@,$STRIP,;t t
13568s,@WINDRES@,$WINDRES,;t t
901119ae 13569s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
13570s,@OBJCOPY@,$OBJCOPY,;t t
13571s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
13572s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13573s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13574s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13575s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13576s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13577s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13578s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13579s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13580s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13581s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13582s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13583s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13584s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13585s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13586s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 13587s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
13588s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13589s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13590s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13591s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13592s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13593s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13594s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13595s,@MAINT@,$MAINT,;t t
13596s,@stage1_cflags@,$stage1_cflags,;t t
13597s,@stage1_checking@,$stage1_checking,;t t
13598s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13599s,@datarootdir@,$datarootdir,;t t
13600s,@docdir@,$docdir,;t t
13601s,@pdfdir@,$pdfdir,;t t
13602s,@htmldir@,$htmldir,;t t
13603s,@LIBOBJS@,$LIBOBJS,;t t
13604s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13605/@serialization_dependencies@/r $serialization_dependencies
13606s,@serialization_dependencies@,,;t t
13607/@host_makefile_frag@/r $host_makefile_frag
13608s,@host_makefile_frag@,,;t t
13609/@target_makefile_frag@/r $target_makefile_frag
13610s,@target_makefile_frag@,,;t t
13611/@alphaieee_frag@/r $alphaieee_frag
13612s,@alphaieee_frag@,,;t t
13613/@ospace_frag@/r $ospace_frag
13614s,@ospace_frag@,,;t t
13615CEOF
79c06341 13616
1c710c3c
DJ
13617_ACEOF
13618
2aeb72e9
DD
13619 cat >>$CONFIG_STATUS <<\_ACEOF
13620 # Split the substitutions into bite-sized pieces for seds with
13621 # small command number limits, like on Digital OSF/1 and HP-UX.
13622 ac_max_sed_lines=48
13623 ac_sed_frag=1 # Number of current file.
13624 ac_beg=1 # First line for current file.
13625 ac_end=$ac_max_sed_lines # Line after last line for current file.
13626 ac_more_lines=:
13627 ac_sed_cmds=
13628 while $ac_more_lines; do
13629 if test $ac_beg -gt 1; then
13630 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13631 else
13632 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13633 fi
13634 if test ! -s $tmp/subs.frag; then
13635 ac_more_lines=false
13636 else
13637 # The purpose of the label and of the branching condition is to
13638 # speed up the sed processing (if there are no `@' at all, there
13639 # is no need to browse any of the substitutions).
13640 # These are the two extra sed commands mentioned above.
13641 (echo ':t
13642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13643 if test -z "$ac_sed_cmds"; then
13644 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13645 else
13646 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13647 fi
13648 ac_sed_frag=`expr $ac_sed_frag + 1`
13649 ac_beg=$ac_end
13650 ac_end=`expr $ac_end + $ac_max_sed_lines`
13651 fi
13652 done
13653 if test -z "$ac_sed_cmds"; then
13654 ac_sed_cmds=cat
11a67599 13655 fi
2aeb72e9 13656fi # test -n "$CONFIG_FILES"
11a67599 13657
11a67599 13658_ACEOF
1c710c3c 13659cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
13660for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13662 case $ac_file in
13663 - | *:- | *:-:* ) # input from stdin
13664 cat >$tmp/stdin
13665 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13667 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13669 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
13670 esac
13671
2aeb72e9
DD
13672 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13673 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
13674$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13675 X"$ac_file" : 'X\(//\)[^/]' \| \
13676 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
13677 X"$ac_file" : 'X\(/\)' \| \
13678 . : '\(.\)' 2>/dev/null ||
1c710c3c 13679echo X"$ac_file" |
2aeb72e9
DD
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13682 /^X\(\/\/\)$/{ s//\1/; q; }
13683 /^X\(\/\).*/{ s//\1/; q; }
13684 s/.*/./; q'`
13685 { if $as_mkdir_p; then
13686 mkdir -p "$ac_dir"
13687 else
13688 as_dir="$ac_dir"
1c710c3c 13689 as_dirs=
2aeb72e9
DD
13690 while test ! -d "$as_dir"; do
13691 as_dirs="$as_dir $as_dirs"
13692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
13693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13694 X"$as_dir" : 'X\(//\)[^/]' \| \
13695 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13696 X"$as_dir" : 'X\(/\)' \| \
13697 . : '\(.\)' 2>/dev/null ||
1c710c3c 13698echo X"$as_dir" |
2aeb72e9
DD
13699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13701 /^X\(\/\/\)$/{ s//\1/; q; }
13702 /^X\(\/\).*/{ s//\1/; q; }
13703 s/.*/./; q'`
1c710c3c 13704 done
2aeb72e9
DD
13705 test ! -n "$as_dirs" || mkdir $as_dirs
13706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13707echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13708 { (exit 1); exit 1; }; }; }
2aeb72e9 13709
1c710c3c 13710 ac_builddir=.
0b0dc272 13711
2aeb72e9 13712if test "$ac_dir" != .; then
1c710c3c 13713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13714 # A "../" for each directory in $ac_dir_suffix.
13715 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13716else
13717 ac_dir_suffix= ac_top_builddir=
13718fi
1c710c3c
DJ
13719
13720case $srcdir in
2aeb72e9 13721 .) # No --srcdir option. We are building in place.
1c710c3c 13722 ac_srcdir=.
2aeb72e9
DD
13723 if test -z "$ac_top_builddir"; then
13724 ac_top_srcdir=.
13725 else
13726 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13727 fi ;;
13728 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13729 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13730 ac_top_srcdir=$srcdir ;;
13731 *) # Relative path.
13732 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13733 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13734esac
a4b9e93e 13735
2aeb72e9
DD
13736# Do not use `cd foo && pwd` to compute absolute paths, because
13737# the directories may not exist.
13738case `pwd` in
13739.) ac_abs_builddir="$ac_dir";;
13740*)
13741 case "$ac_dir" in
13742 .) ac_abs_builddir=`pwd`;;
13743 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13744 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13745 esac;;
13746esac
13747case $ac_abs_builddir in
13748.) ac_abs_top_builddir=${ac_top_builddir}.;;
13749*)
13750 case ${ac_top_builddir}. in
13751 .) ac_abs_top_builddir=$ac_abs_builddir;;
13752 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13753 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13754 esac;;
13755esac
13756case $ac_abs_builddir in
13757.) ac_abs_srcdir=$ac_srcdir;;
13758*)
13759 case $ac_srcdir in
13760 .) ac_abs_srcdir=$ac_abs_builddir;;
13761 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13762 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13763 esac;;
13764esac
13765case $ac_abs_builddir in
13766.) ac_abs_top_srcdir=$ac_top_srcdir;;
13767*)
13768 case $ac_top_srcdir in
13769 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13770 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13771 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13772 esac;;
13773esac
0b0dc272 13774
1c710c3c
DJ
13775
13776 case $INSTALL in
13777 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13778 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13779 esac
11a67599 13780
2aeb72e9
DD
13781 if test x"$ac_file" != x-; then
13782 { echo "$as_me:$LINENO: creating $ac_file" >&5
13783echo "$as_me: creating $ac_file" >&6;}
13784 rm -f "$ac_file"
13785 fi
13786 # Let's still pretend it is `configure' which instantiates (i.e., don't
13787 # use $as_me), people would be surprised to read:
13788 # /* config.h. Generated by config.status. */
13789 if test x"$ac_file" = x-; then
13790 configure_input=
13791 else
13792 configure_input="$ac_file. "
13793 fi
13794 configure_input=$configure_input"Generated from `echo $ac_file_in |
13795 sed 's,.*/,,'` by configure."
13796
13797 # First look for the input files in the build tree, otherwise in the
13798 # src tree.
13799 ac_file_inputs=`IFS=:
13800 for f in $ac_file_in; do
13801 case $f in
13802 -) echo $tmp/stdin ;;
13803 [\\/$]*)
13804 # Absolute (can't be DOS-style, as IFS=:)
13805 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13806echo "$as_me: error: cannot find input file: $f" >&2;}
13807 { (exit 1); exit 1; }; }
13808 echo "$f";;
13809 *) # Relative
13810 if test -f "$f"; then
13811 # Build tree
13812 echo "$f"
13813 elif test -f "$srcdir/$f"; then
13814 # Source tree
13815 echo "$srcdir/$f"
13816 else
13817 # /dev/null tree
13818 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13819echo "$as_me: error: cannot find input file: $f" >&2;}
13820 { (exit 1); exit 1; }; }
13821 fi;;
13822 esac
13823 done` || { (exit 1); exit 1; }
11a67599 13824_ACEOF
1c710c3c
DJ
13825cat >>$CONFIG_STATUS <<_ACEOF
13826 sed "$ac_vpsub
13827$extrasub
13828_ACEOF
13829cat >>$CONFIG_STATUS <<\_ACEOF
13830:t
13831/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13832s,@configure_input@,$configure_input,;t t
13833s,@srcdir@,$ac_srcdir,;t t
13834s,@abs_srcdir@,$ac_abs_srcdir,;t t
13835s,@top_srcdir@,$ac_top_srcdir,;t t
13836s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13837s,@builddir@,$ac_builddir,;t t
13838s,@abs_builddir@,$ac_abs_builddir,;t t
13839s,@top_builddir@,$ac_top_builddir,;t t
13840s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13841s,@INSTALL@,$ac_INSTALL,;t t
13842" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13843 rm -f $tmp/stdin
13844 if test x"$ac_file" != x-; then
13845 mv $tmp/out $ac_file
13846 else
13847 cat $tmp/out
13848 rm -f $tmp/out
13849 fi
11a67599 13850
2aeb72e9
DD
13851done
13852_ACEOF
11a67599 13853
2aeb72e9 13854cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13855
1c710c3c
DJ
13856{ (exit 0); exit 0; }
13857_ACEOF
671aa708 13858chmod +x $CONFIG_STATUS
1c710c3c
DJ
13859ac_clean_files=$ac_clean_files_save
13860
13861
13862# configure is writing to config.log, and then calls config.status.
13863# config.status does its own redirection, appending to config.log.
13864# Unfortunately, on DOS this fails, as config.log is still kept open
13865# by configure, so config.status won't be able to write to it; its
13866# output is simply discarded. So we exec the FD to /dev/null,
13867# effectively closing config.log, so it can be properly (re)opened and
13868# appended to by config.status. When coming back to configure, we
13869# need to make the FD available again.
13870if test "$no_create" != yes; then
13871 ac_cs_success=:
13872 ac_config_status_args=
13873 test "$silent" = yes &&
13874 ac_config_status_args="$ac_config_status_args --quiet"
13875 exec 5>/dev/null
13876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13877 exec 5>>config.log
13878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13879 # would make configure fail if this is the last instruction.
13880 $ac_cs_success || { (exit 1); exit 1; }
13881fi
79c06341 13882