]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
LIBTOOLFLAGS, and *_LINK fixes for Automake 1.11
[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"
f2689b09 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 stage1_ldflags stage1_libs poststage1_ldflags poststage1_libs 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 compare_exclusions 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
00020c16 938 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e
SP
939 --disable-ppl-version-check disable check for PPL version
940 --disable-cloog-version-check disable check for CLooG version
30b74385 941 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 942 stage1. Mostly useful for compiler development.
30b74385
RW
943 --enable-objc-gc enable use of Boehm's garbage collector with the
944 GNU Objective-C runtime
945 --enable-bootstrap enable bootstrapping [yes if native build]
946 --enable-serial-[{host,target,build}-]configure
947 force sequential configuration of
1c710c3c 948 sub-packages for the host, target or build
30b74385 949 machine, or all sub-packages
1c710c3c
DJ
950 --enable-maintainer-mode enable make rules and dependencies not useful
951 (and sometimes confusing) to the casual installer
30b74385
RW
952 --enable-stage1-checking[=all] choose additional checking for stage1
953 of the compiler
1c710c3c
DJ
954 --enable-werror enable -Werror in bootstrap stage2 and later
955
956Optional Packages:
957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
959 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
960 --with-mpc=PATH specify prefix directory for installed MPC package.
961 Equivalent to --with-mpc-include=PATH/include
962 plus --with-mpc-lib=PATH/lib
963 --with-mpc-include=PATH
964 specify directory for installed MPC include files
965 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
966 --with-mpfr-dir=PATH this option has been REMOVED
967 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
968 Equivalent to --with-mpfr-include=PATH/include
969 plus --with-mpfr-lib=PATH/lib
970 --with-mpfr-include=PATH
30b74385
RW
971 specify directory for installed MPFR include files
972 --with-mpfr-lib=PATH specify directory for the installed MPFR library
973 --with-gmp-dir=PATH this option has been REMOVED
974 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
975 Equivalent to --with-gmp-include=PATH/include
976 plus --with-gmp-lib=PATH/lib
30b74385
RW
977 --with-gmp-include=PATH specify directory for installed GMP include files
978 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
979 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
980 when linking with PPL
00020c16
ILT
981 --with-stage1-ldflags=FLAGS Linker flags for stage1
982 -with-stage1-libs=LIBS Libraries for stage1
983 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
984 --with-boot-libs=LIBS Libraries for stage2 and later
f8bf9252
SP
985 --with-ppl=PATH Specify prefix directory for the installed PPL package
986 Equivalent to --with-ppl-include=PATH/include
987 plus --with-ppl-lib=PATH/lib
988 --with-ppl-include=PATH Specify directory for installed PPL include files
989 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 990 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
991 Equivalent to --with-cloog-include=PATH/include
992 plus --with-cloog-lib=PATH/lib
d789184e
SP
993 --with-cloog-include=PATH Specify directory for installed CLooG include files
994 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 995 --with-build-sysroot=SYSROOT
1c710c3c 996 use sysroot as the system root during the build
c8aea42c
PB
997 --with-debug-prefix-map='A=B C=D ...'
998 map A to B, C to D ... in debug information
30b74385 999 --with-build-time-tools=PATH
1c710c3c 1000 use given path to find target tools during the build
30b74385
RW
1001 --with-datarootdir use datarootdir as the data root directory.
1002 --with-docdir install documentation in this directory.
1003 --with-pdfdir install pdf in this directory.
1004 --with-htmldir install html in this directory.
1c710c3c
DJ
1005
1006Some influential environment variables:
1007 CC C compiler command
1008 CFLAGS C compiler flags
1009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1010 nonstandard directory <lib dir>
2aeb72e9
DD
1011 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1012 headers in a nonstandard directory <include dir>
c3a86da9
DJ
1013 CXX C++ compiler command
1014 CXXFLAGS C++ compiler flags
278a7a38
AO
1015 AR AR for the host
1016 AS AS for the host
1017 DLLTOOL DLLTOOL for the host
1018 LD LD for the host
1019 LIPO LIPO for the host
1020 NM NM for the host
1021 RANLIB RANLIB for the host
1022 STRIP STRIP for the host
1023 WINDRES WINDRES for the host
901119ae 1024 WINDMC WINDMC for the host
278a7a38
AO
1025 OBJCOPY OBJCOPY for the host
1026 OBJDUMP OBJDUMP for the host
1027 CC_FOR_TARGET
1028 CC for the target
1029 CXX_FOR_TARGET
1030 CXX for the target
1031 GCC_FOR_TARGET
1032 GCC for the target
1033 GCJ_FOR_TARGET
1034 GCJ for the target
1035 GFORTRAN_FOR_TARGET
1036 GFORTRAN for the target
1037 AR_FOR_TARGET
1038 AR for the target
1039 AS_FOR_TARGET
1040 AS for the target
1041 DLLTOOL_FOR_TARGET
1042 DLLTOOL for the target
1043 LD_FOR_TARGET
1044 LD for the target
1045 LIPO_FOR_TARGET
1046 LIPO for the target
1047 NM_FOR_TARGET
1048 NM for the target
1049 OBJDUMP_FOR_TARGET
1050 OBJDUMP for the target
1051 RANLIB_FOR_TARGET
1052 RANLIB for the target
1053 STRIP_FOR_TARGET
1054 STRIP for the target
1055 WINDRES_FOR_TARGET
1056 WINDRES for the target
901119ae
KT
1057 WINDMC_FOR_TARGET
1058 WINDMC for the target
1c710c3c
DJ
1059
1060Use these variables to override the choices made by `configure' or to help
1061it to find libraries and programs with nonstandard names/locations.
1062
1063_ACEOF
1064fi
1065
1066if test "$ac_init_help" = "recursive"; then
1067 # If there are subdirs, report their specific --help.
2aeb72e9 1068 ac_popdir=`pwd`
1c710c3c 1069 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1070 test -d $ac_dir || continue
1c710c3c
DJ
1071 ac_builddir=.
1072
2aeb72e9 1073if test "$ac_dir" != .; then
1c710c3c 1074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1075 # A "../" for each directory in $ac_dir_suffix.
1076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077else
1078 ac_dir_suffix= ac_top_builddir=
1079fi
1c710c3c
DJ
1080
1081case $srcdir in
2aeb72e9 1082 .) # No --srcdir option. We are building in place.
1c710c3c 1083 ac_srcdir=.
2aeb72e9
DD
1084 if test -z "$ac_top_builddir"; then
1085 ac_top_srcdir=.
1086 else
1087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088 fi ;;
1089 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1090 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1091 ac_top_srcdir=$srcdir ;;
1092 *) # Relative path.
1093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095esac
1096
1097# Do not use `cd foo && pwd` to compute absolute paths, because
1098# the directories may not exist.
1099case `pwd` in
1100.) ac_abs_builddir="$ac_dir";;
1101*)
1102 case "$ac_dir" in
1103 .) ac_abs_builddir=`pwd`;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106 esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_builddir=${ac_top_builddir}.;;
1110*)
1111 case ${ac_top_builddir}. in
1112 .) ac_abs_top_builddir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115 esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_srcdir=$ac_srcdir;;
1119*)
1120 case $ac_srcdir in
1121 .) ac_abs_srcdir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_srcdir=$ac_top_srcdir;;
1128*)
1129 case $ac_top_srcdir in
1130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133 esac;;
1c710c3c 1134esac
2aeb72e9
DD
1135
1136 cd $ac_dir
1137 # Check for guested configure; otherwise get Cygnus style configure.
1138 if test -f $ac_srcdir/configure.gnu; then
1139 echo
1140 $SHELL $ac_srcdir/configure.gnu --help=recursive
1141 elif test -f $ac_srcdir/configure; then
1142 echo
1143 $SHELL $ac_srcdir/configure --help=recursive
1144 elif test -f $ac_srcdir/configure.ac ||
1145 test -f $ac_srcdir/configure.in; then
1146 echo
1147 $ac_configure --help
1c710c3c
DJ
1148 else
1149 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1150 fi
1151 cd $ac_popdir
1c710c3c
DJ
1152 done
1153fi
1154
2aeb72e9 1155test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1156if $ac_init_version; then
1157 cat <<\_ACEOF
1158
2aeb72e9 1159Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1160This configure script is free software; the Free Software Foundation
1161gives unlimited permission to copy, distribute and modify it.
1162_ACEOF
2aeb72e9 1163 exit 0
0b0dc272 1164fi
2aeb72e9
DD
1165exec 5>config.log
1166cat >&5 <<_ACEOF
1c710c3c
DJ
1167This file contains any messages produced by compilers while
1168running configure, to aid debugging if configure makes a mistake.
1169
1170It was created by $as_me, which was
2aeb72e9 1171generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1172
1173 $ $0 $@
1174
1175_ACEOF
1176{
1177cat <<_ASUNAME
1178## --------- ##
1179## Platform. ##
1180## --------- ##
1181
1182hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186uname -v = `(uname -v) 2>/dev/null || echo unknown`
1187
1188/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1190
1191/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1192/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1193/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1194hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1195/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1196/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1197/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198
1199_ASUNAME
1200
1201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202for as_dir in $PATH
1203do
1204 IFS=$as_save_IFS
1205 test -z "$as_dir" && as_dir=.
1206 echo "PATH: $as_dir"
1207done
1208
1209} >&5
1210
1211cat >&5 <<_ACEOF
1212
1213
1214## ----------- ##
1215## Core tests. ##
1216## ----------- ##
1217
1218_ACEOF
1219
1220
1221# Keep a trace of the command line.
1222# Strip out --no-create and --no-recursion so they do not pile up.
1223# Strip out --silent because we don't want to record it for future runs.
1224# Also quote any args containing shell meta-characters.
1225# Make two passes to allow for proper duplicate-argument suppression.
1226ac_configure_args=
1227ac_configure_args0=
1228ac_configure_args1=
2aeb72e9 1229ac_sep=
1c710c3c
DJ
1230ac_must_keep_next=false
1231for ac_pass in 1 2
1232do
1233 for ac_arg
1234 do
1235 case $ac_arg in
1236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 continue ;;
2aeb72e9 1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1241 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 esac
1243 case $ac_pass in
1244 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245 2)
1246 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247 if test $ac_must_keep_next = true; then
1248 ac_must_keep_next=false # Got value, back to normal.
1249 else
1250 case $ac_arg in
1251 *=* | --config-cache | -C | -disable-* | --disable-* \
1252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254 | -with-* | --with-* | -without-* | --without-* | --x)
1255 case "$ac_configure_args0 " in
1256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257 esac
1258 ;;
1259 -* ) ac_must_keep_next=true ;;
1260 esac
1261 fi
2aeb72e9
DD
1262 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263 # Get rid of the leading space.
1264 ac_sep=" "
1c710c3c
DJ
1265 ;;
1266 esac
1267 done
1268done
1269$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1271
1272# When interrupted or exit'd, cleanup temporary files, and complete
1273# config.log. We remove comments because anyway the quotes in there
1274# would cause problems or look ugly.
2aeb72e9
DD
1275# WARNING: Be sure not to use single quotes in there, as some shells,
1276# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1277trap 'exit_status=$?
1278 # Save into config.log some information that might help in debugging.
1279 {
1280 echo
1281
1282 cat <<\_ASBOX
1283## ---------------- ##
1284## Cache variables. ##
1285## ---------------- ##
1286_ASBOX
1287 echo
1288 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1289{
1c710c3c 1290 (set) 2>&1 |
2aeb72e9
DD
1291 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292 *ac_space=\ *)
1c710c3c 1293 sed -n \
2aeb72e9
DD
1294 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1296 ;;
1c710c3c 1297 *)
2aeb72e9
DD
1298 sed -n \
1299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1300 ;;
2aeb72e9
DD
1301 esac;
1302}
1c710c3c
DJ
1303 echo
1304
1305 cat <<\_ASBOX
1306## ----------------- ##
1307## Output variables. ##
1308## ----------------- ##
1309_ASBOX
1310 echo
1311 for ac_var in $ac_subst_vars
1312 do
2aeb72e9
DD
1313 eval ac_val=$`echo $ac_var`
1314 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1315 done | sort
1316 echo
1317
1318 if test -n "$ac_subst_files"; then
1319 cat <<\_ASBOX
2aeb72e9
DD
1320## ------------- ##
1321## Output files. ##
1322## ------------- ##
1c710c3c
DJ
1323_ASBOX
1324 echo
1325 for ac_var in $ac_subst_files
1326 do
2aeb72e9
DD
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1329 done | sort
1330 echo
1331 fi
1332
1333 if test -s confdefs.h; then
1334 cat <<\_ASBOX
1335## ----------- ##
1336## confdefs.h. ##
1337## ----------- ##
1338_ASBOX
1339 echo
2aeb72e9 1340 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1341 echo
1342 fi
1343 test "$ac_signal" != 0 &&
1344 echo "$as_me: caught signal $ac_signal"
1345 echo "$as_me: exit $exit_status"
1346 } >&5
2aeb72e9
DD
1347 rm -f core *.core &&
1348 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1349 exit $exit_status
2aeb72e9 1350 ' 0
1c710c3c
DJ
1351for ac_signal in 1 2 13 15; do
1352 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353done
1354ac_signal=0
1355
1356# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1357rm -rf conftest* confdefs.h
1358# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359echo >confdefs.h
1c710c3c
DJ
1360
1361# Predefined preprocessor variables.
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_NAME "$PACKAGE_NAME"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_VERSION "$PACKAGE_VERSION"
1375_ACEOF
0b0dc272 1376
1c710c3c
DJ
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_STRING "$PACKAGE_STRING"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385_ACEOF
1386
1387
1388# Let the site file select an alternate cache file if it wants to.
671aa708 1389# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1390if test -z "$CONFIG_SITE"; then
1391 if test "x$prefix" != xNONE; then
1392 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393 else
1394 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1395 fi
671aa708 1396fi
2aeb72e9 1397for ac_site_file in $CONFIG_SITE; do
671aa708 1398 if test -r "$ac_site_file"; then
1c710c3c
DJ
1399 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400echo "$as_me: loading site script $ac_site_file" >&6;}
1401 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1402 . "$ac_site_file"
1403 fi
1404done
1405
1406if test -r "$cache_file"; then
1c710c3c
DJ
1407 # Some versions of bash will fail to source /dev/null (special
1408 # files actually), so we avoid doing that.
1409 if test -f "$cache_file"; then
1410 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411echo "$as_me: loading cache $cache_file" >&6;}
1412 case $cache_file in
2aeb72e9
DD
1413 [\\/]* | ?:[\\/]* ) . $cache_file;;
1414 *) . ./$cache_file;;
1c710c3c
DJ
1415 esac
1416 fi
671aa708 1417else
1c710c3c
DJ
1418 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419echo "$as_me: creating cache $cache_file" >&6;}
1420 >$cache_file
1421fi
1422
1423# Check that the precious variables saved in the cache have kept the same
1424# value.
1425ac_cache_corrupted=false
2aeb72e9
DD
1426for ac_var in `(set) 2>&1 |
1427 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1430 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1432 case $ac_old_set,$ac_new_set in
1433 set,)
1434 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436 ac_cache_corrupted=: ;;
1437 ,set)
1438 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440 ac_cache_corrupted=: ;;
1441 ,);;
1442 *)
1443 if test "x$ac_old_val" != "x$ac_new_val"; then
7142fb32
PB
1444 # differences in whitespace do not lead to failure.
1445 ac_old_val_w=`echo x $ac_old_val`
1446 ac_new_val_w=`echo x $ac_new_val`
1447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1448 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1c710c3c 1449echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
7142fb32
PB
1450 ac_cache_corrupted=:
1451 else
1452 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1453echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1454 eval $ac_var=\$ac_old_val
1455 fi
1456 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1457echo "$as_me: former value: \`$ac_old_val'" >&2;}
1458 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1459echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
1460 fi;;
1461 esac
1462 # Pass precious variables to config.status.
1463 if test "$ac_new_set" = set; then
1464 case $ac_new_val in
2aeb72e9
DD
1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1467 *) ac_arg=$ac_var=$ac_new_val ;;
1468 esac
1469 case " $ac_configure_args " in
1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472 esac
1473 fi
1474done
1475if $ac_cache_corrupted; then
18c04407
RW
1476 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1477echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
671aa708
NN
1483fi
1484
2aeb72e9
DD
1485ac_ext=c
1486ac_cpp='$CPP $CPPFLAGS'
1487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1c710c3c
DJ
1491
1492
1493
1494
671aa708
NN
1495
1496
d02c69be 1497
1c710c3c
DJ
1498
1499
1500
1501
1502
1503
1504
1505
1506
18c04407
RW
1507
1508
1509
1c710c3c
DJ
1510
1511
0115d4a3 1512
1c710c3c 1513
ad33ff57
RW
1514
1515progname=$0
1516# if PWD already has a value, it is probably wrong.
1517if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1518
1519# Export original configure arguments for use by sub-configures.
1520# Quote arguments with shell meta charatcers.
1521TOPLEVEL_CONFIGURE_ARGUMENTS=
1522set -- "$progname" "$@"
1523for ac_arg
1524do
1525 case "$ac_arg" in
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1527 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1528 # if the argument is of the form -foo=baz, quote the baz part only
1529 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1530 *) ;;
1531 esac
1532 # Add the quoted argument to the list.
1533 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1534done
1535if test "$silent" = yes; then
1536 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1537fi
1538# Remove the initial space we just introduced and, as these will be
1539# expanded by make, quote '$'.
1540TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1541
1c710c3c
DJ
1542
1543# Find the build, host, and target systems.
671aa708 1544ac_aux_dir=
2aeb72e9
DD
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
671aa708
NN
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 break
2aeb72e9 1550 elif test -f $ac_dir/install.sh; then
671aa708
NN
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
2aeb72e9 1554 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
671aa708
NN
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1563 { (exit 1); exit 1; }; }
671aa708 1564fi
2aeb72e9
DD
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1568
1c710c3c 1569# Make sure we can run config.sub.
2aeb72e9
DD
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1573 { (exit 1); exit 1; }; }
1574
2aeb72e9
DD
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
2aeb72e9
DD
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
2aeb72e9
DD
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1590 { (exit 1); exit 1; }; }
1591
1592fi
2aeb72e9
DD
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1595build=$ac_cv_build
2aeb72e9
DD
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1599
671aa708 1600
1c710c3c
DJ
1601 case ${build_alias} in
1602 "") build_noncanonical=${build} ;;
1603 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1604esac
1605
1606
af71363e 1607
1c710c3c
DJ
1608 case ${host_alias} in
1609 "") host_noncanonical=${build_noncanonical} ;;
1610 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1611esac
1612
af71363e 1613
1c710c3c
DJ
1614
1615 case ${target_alias} in
1616 "") target_noncanonical=${host_noncanonical} ;;
1617 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1618esac
1619
af71363e 1620
1c710c3c
DJ
1621
1622
1623test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1624 test "$program_prefix$program_suffix$program_transform_name" = \
1625 NONENONEs,x,x, &&
1c710c3c 1626 program_transform_name=s,y,y,
af71363e 1627
2aeb72e9
DD
1628echo "$as_me:$LINENO: checking host system type" >&5
1629echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1630if test "${ac_cv_host+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1632else
2aeb72e9
DD
1633 ac_cv_host_alias=$host_alias
1634test -z "$ac_cv_host_alias" &&
1635 ac_cv_host_alias=$ac_cv_build_alias
1636ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1639 { (exit 1); exit 1; }; }
1640
af71363e 1641fi
2aeb72e9
DD
1642echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1643echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1644host=$ac_cv_host
2aeb72e9
DD
1645host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking target system type" >&5
1651echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1652if test "${ac_cv_target+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
2aeb72e9
DD
1655 ac_cv_target_alias=$target_alias
1656test "x$ac_cv_target_alias" = "x" &&
1657 ac_cv_target_alias=$ac_cv_host_alias
1658ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1661 { (exit 1); exit 1; }; }
1662
1663fi
2aeb72e9
DD
1664echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1665echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1666target=$ac_cv_target
2aeb72e9
DD
1667target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1670
1671
1672# The aliases save the names the user supplied, while $host etc.
1673# will get canonicalized.
1674test -n "$target_alias" &&
1675 test "$program_prefix$program_suffix$program_transform_name" = \
1676 NONENONEs,x,x, &&
1677 program_prefix=${target_alias}-
671aa708 1678test "$program_prefix" != NONE &&
2aeb72e9 1679 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1680# Use a double $ so make ignores it.
1681test "$program_suffix" != NONE &&
2aeb72e9 1682 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1683# Double any \ or $. echo might interpret backslashes.
1684# By default was `s,x,x', remove it if useless.
1685cat <<\_ACEOF >conftest.sed
1686s/[\\$]/&&/g;s/;s,x,x,$//
1687_ACEOF
1688program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1689rm conftest.sed
af71363e 1690
671aa708
NN
1691
1692
775956d0
NN
1693# Get 'install' or 'install-sh' and its variants.
1694# Find a good install program. We prefer a C program (faster),
1695# so one script is as good as another. But avoid the broken or
1696# incompatible versions:
1697# SysV /etc/install, /usr/sbin/install
1698# SunOS /usr/etc/install
1699# IRIX /sbin/install
1700# AIX /bin/install
1c710c3c 1701# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1702# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1705# OS/2's system install, which has a completely different semantic
775956d0 1706# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1707# Reject install programs that cannot install multiple files.
2aeb72e9
DD
1708echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1710if test -z "$INSTALL"; then
1c710c3c
DJ
1711if test "${ac_cv_path_install+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 # Account for people who put trailing slashes in PATH elements.
1720case $as_dir/ in
1721 ./ | .// | /cC/* | \
1722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724 /usr/ucb/* ) ;;
1725 *)
1726 # OSF1 and SCO ODT 3.0 have their own names for install.
1727 # Don't use installbsd from OSF since it installs stuff as root
1728 # by default.
1729 for ac_prog in ginstall scoinst install; do
1730 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1731 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1732 if test $ac_prog = install &&
1c710c3c 1733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1734 # AIX install. It has an incompatible calling convention.
1735 :
1c710c3c
DJ
1736 elif test $ac_prog = install &&
1737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738 # program-specific install script used by HP pwplus--don't use.
1739 :
775956d0 1740 else
38d24731
RW
1741 rm -rf conftest.one conftest.two conftest.dir
1742 echo one > conftest.one
1743 echo two > conftest.two
1744 mkdir conftest.dir
1745 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1746 test -s conftest.one && test -s conftest.two &&
1747 test -s conftest.dir/conftest.one &&
1748 test -s conftest.dir/conftest.two
1749 then
1750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1751 break 3
1752 fi
775956d0
NN
1753 fi
1754 fi
1755 done
1c710c3c
DJ
1756 done
1757 ;;
1758esac
1759done
1760
38d24731 1761rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
1762
1763fi
1764 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1765 INSTALL=$ac_cv_path_install
775956d0 1766 else
38d24731
RW
1767 # As a last resort, use the slow shell script. Don't cache a
1768 # value for INSTALL within a source directory, because that will
775956d0 1769 # break other packages using the cache if that directory is
38d24731 1770 # removed, or if the value is a relative name.
1c710c3c 1771 INSTALL=$ac_install_sh
775956d0
NN
1772 fi
1773fi
2aeb72e9
DD
1774echo "$as_me:$LINENO: result: $INSTALL" >&5
1775echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1776
1777# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1778# It thinks the first close brace ends the variable substitution.
1779test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1780
1c710c3c 1781test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1782
1783test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1784
2aeb72e9
DD
1785echo "$as_me:$LINENO: checking whether ln works" >&5
1786echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1787if test "${acx_cv_prog_LN+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1789else
1790 rm -f conftestdata_t
1791echo >conftestdata_f
1792if ln conftestdata_f conftestdata_t 2>/dev/null
1793then
1794 acx_cv_prog_LN=ln
1795else
1796 acx_cv_prog_LN=no
1797fi
1798rm -f conftestdata_f conftestdata_t
1799
1800fi
1801if test $acx_cv_prog_LN = no; then
1802 LN="cp"
2aeb72e9
DD
1803 echo "$as_me:$LINENO: result: no, using $LN" >&5
1804echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1805else
1806 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1807 echo "$as_me:$LINENO: result: yes" >&5
1808echo "${ECHO_T}yes" >&6
ad6717df
PB
1809fi
1810
2aeb72e9
DD
1811echo "$as_me:$LINENO: checking whether ln -s works" >&5
1812echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1813LN_S=$as_ln_s
1814if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1815 echo "$as_me:$LINENO: result: yes" >&5
1816echo "${ECHO_T}yes" >&6
fb0103e5 1817else
2aeb72e9
DD
1818 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1819echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1820fi
1821
775956d0 1822
79c06341 1823### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1824### If we are on Windows, search for the shell. This will permit people
1825### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1826### without also having to set CONFIG_SHELL. This code will work when
1827### using bash, which sets OSTYPE.
1828case "${OSTYPE}" in
1829*win32*)
671aa708
NN
1830 if test x${CONFIG_SHELL} = x ; then
1831 if test ! -f /bin/sh ; then
1832 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1833 CONFIG_SHELL=${SHELL}
1834 export CONFIG_SHELL
1835 else
1836 for prog in sh sh.exe bash bash.exe; do
1837 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1838 for dir in $PATH; do
1839 test -z "$dir" && dir=.
1840 if test -f $dir/$prog; then
1841 CONFIG_SHELL=$dir/$prog
1842 export CONFIG_SHELL
1843 break
1844 fi
1845 done
1846 IFS="$save_ifs"
1847 test -n "${CONFIG_SHELL}" && break
1848 done
1849 fi
1850 fi
1851 fi
1852 ;;
1853esac
1854
1855config_shell=${CONFIG_SHELL-/bin/sh}
1856
671aa708 1857moveifchange=${srcdir}/move-if-change
79c06341 1858
ee6a22df
L
1859srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1860
1861# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1862# a relative path.
1863if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1864 INSTALL="${srcpwd}/install-sh -c"
1865fi
1866
671aa708
NN
1867# Set srcdir to "." if that's what it is.
1868# This is important for multilib support.
1869pwd=`${PWDCMD-pwd}`
671aa708
NN
1870if test "${pwd}" = "${srcpwd}" ; then
1871 srcdir=.
79c06341
JL
1872fi
1873
671aa708 1874topsrcdir=$srcpwd
5d4a5ee6 1875
671aa708 1876extra_host_args=
afabd8e6 1877
671aa708
NN
1878### To add a new directory to the tree, first choose whether it is a target
1879### or a host dependent tool. Then put it into the appropriate list
1880### (library or tools, host or target), doing a dependency sort.
79c06341 1881
1c710c3c 1882# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1883# configdirs, or target_configdirs; see the serialization section below.
79c06341 1884
1c710c3c
DJ
1885# Dependency sorting is only needed when *configuration* must be done in
1886# a particular order. In all cases a dependency should be specified in
671aa708 1887# the Makefile, whether or not it's implicitly specified here.
79c06341 1888
671aa708
NN
1889# Double entries in build_configdirs, configdirs, or target_configdirs may
1890# cause circular dependencies and break everything horribly.
79c06341 1891
23f6b2f9
PB
1892# these library is used by various programs built for the build
1893# environment
1894#
1895build_libs="build-libiberty"
1896
1897# these tools are built for the build environment
71b5d516 1898build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1899
671aa708
NN
1900# these libraries are used by various programs built for the host environment
1901#
acd26225 1902host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
671aa708 1903
671aa708
NN
1904# these tools are built for the host environment
1905# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1906# know that we are building the simulator.
1907# binutils, gas and ld appear in that order because it makes sense to run
1908# "make check" in that particular order.
5afab7ad 1909# If --enable-gold is used, "gold" will replace "ld".
8c32c9f0 1910host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen 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
1911
1912# libgcj represents the runtime libraries only used by gcj.
1913libgcj="target-libffi \
671aa708
NN
1914 target-zlib \
1915 target-qthreads \
1916 target-libjava"
1917
1918# these libraries are built for the target environment, and are built after
1919# the host libraries and the host tools (which may be a cross compiler)
1920#
291f172e
DJ
1921target_libraries="target-libgcc \
1922 target-libiberty \
671aa708
NN
1923 target-libgloss \
1924 target-newlib \
6d3b5aea 1925 target-libgomp \
cb543528 1926 target-libstdc++-v3 \
6de9cd9a 1927 target-libmudflap \
77008252 1928 target-libssp \
6de9cd9a 1929 target-libgfortran \
7cd0cf9c 1930 target-boehm-gc \
77d187bc 1931 ${libgcj} \
d9cdb878 1932 target-libobjc \
6d3b5aea 1933 target-libada"
671aa708 1934
4dbda6f0
NN
1935# these tools are built using the target libraries, and are intended to
1936# run only in the target environment
671aa708 1937#
4dbda6f0 1938# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1939# list belongs in this list. those programs are also very likely
1940# candidates for the "native_only" list which follows
1941#
97286f7f 1942target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1943
671aa708 1944################################################################################
79c06341 1945
671aa708
NN
1946## All tools belong in one of the four categories, and are assigned above
1947## We assign ${configdirs} this way to remove all embedded newlines. This
1948## is important because configure will choke if they ever get through.
1949## ${configdirs} is directories we build using the host tools.
1950## ${target_configdirs} is directories we build using the target tools.
671aa708 1951configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1952target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1953build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1954
ac9e6043
RW
1955
1956
671aa708 1957################################################################################
79c06341 1958
671aa708 1959srcname="gnu development package"
79c06341 1960
671aa708
NN
1961# This gets set non-empty for some net releases of packages.
1962appdirs=""
79c06341 1963
671aa708
NN
1964# Define is_cross_compiler to save on calls to 'test'.
1965is_cross_compiler=
1966if test x"${host}" = x"${target}" ; then
1967 is_cross_compiler=no
79c06341 1968else
671aa708 1969 is_cross_compiler=yes
1c710c3c 1970fi
79c06341 1971
b4acb5ef 1972# Find the build and target subdir names.
8b87bb96 1973
2e9e6f68
DJ
1974# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1975# have matching libraries, they should use host libraries: Makefile.tpl
1976# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1977# However, they still use the build modules, because the corresponding
1978# host modules (e.g. bison) are only built for the host when bootstrap
1979# finishes. So:
1980# - build_subdir is where we find build modules, and never changes.
1981# - build_libsubdir is where we find build libraries, and can be overridden.
1982
1983# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1984build_subdir="build-${build_noncanonical}"
1c710c3c 1985
2aeb72e9 1986# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1987if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1988 withval="$with_build_libsubdir"
1989 build_libsubdir="$withval"
2e9e6f68
DJ
1990else
1991 build_libsubdir="$build_subdir"
2aeb72e9 1992fi;
215c351a
PB
1993# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1994if ( test $srcdir = . && test -d gcc ) \
1995 || test -d $srcdir/../host-${host_noncanonical}; then
1996 host_subdir="host-${host_noncanonical}"
1997else
1998 host_subdir=.
1999fi
8b87bb96
NN
2000# No prefix.
2001target_subdir=${target_noncanonical}
1c710c3c 2002
79c06341 2003
671aa708
NN
2004# Skipdirs are removed silently.
2005skipdirs=
2006# Noconfigdirs are removed loudly.
2007noconfigdirs=""
79c06341 2008
671aa708
NN
2009use_gnu_ld=
2010# Make sure we don't let GNU ld be added if we didn't want it.
2011if test x$with_gnu_ld = xno ; then
2012 use_gnu_ld=no
5afab7ad 2013 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2014fi
2015
671aa708
NN
2016use_gnu_as=
2017# Make sure we don't let GNU as be added if we didn't want it.
2018if test x$with_gnu_as = xno ; then
2019 use_gnu_as=no
2020 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2021fi
2022
1c710c3c 2023# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2024# it's not even worth trying to configure, much less build, that tool.
79c06341 2025
671aa708
NN
2026case ${with_x} in
2027 yes | "") ;; # the default value for this tree is that X11 is available
2028 no)
b4f96efe 2029 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2030 # We won't be able to build gdbtk without X.
1c710c3c 2031 enable_gdbtk=no
671aa708
NN
2032 ;;
2033 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2034esac
79c06341 2035
671aa708 2036# Some tools are only suitable for building in a "native" situation.
1c710c3c 2037# Remove these if host!=target.
9e299237 2038native_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 2039
671aa708
NN
2040# Similarly, some are only suitable for cross toolchains.
2041# Remove these if host=target.
2042cross_only="target-libgloss target-newlib target-opcodes"
2043
2044case $is_cross_compiler in
2045 no) skipdirs="${skipdirs} ${cross_only}" ;;
2046 yes) skipdirs="${skipdirs} ${native_only}" ;;
2047esac
79c06341 2048
671aa708
NN
2049# If both --with-headers and --with-libs are specified, default to
2050# --without-newlib.
ee6a22df
L
2051if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2052 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2053 if test x"${with_newlib}" = x ; then
2054 with_newlib=no
2055 fi
79c06341
JL
2056fi
2057
671aa708
NN
2058# Recognize --with-newlib/--without-newlib.
2059case ${with_newlib} in
2060 no) skipdirs="${skipdirs} target-newlib" ;;
2061 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2062esac
79c06341 2063
5afab7ad
ILT
2064# Handle --enable-gold.
2065
2066# Check whether --enable-gold or --disable-gold was given.
2067if test "${enable_gold+set}" = set; then
2068 enableval="$enable_gold"
2069 ENABLE_GOLD=$enableval
2070else
2071 ENABLE_GOLD=no
2072fi;
2073if test "${ENABLE_GOLD}" = "yes"; then
2074 # Check for ELF target.
2075 is_elf=no
2076 case "${target}" in
2077 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2078 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
144c9175 2079 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
5afab7ad
ILT
2080 case "${target}" in
2081 *-*-linux*aout* | *-*-linux*oldld*)
2082 ;;
2083 *)
2084 is_elf=yes
2085 ;;
2086 esac
2087 esac
2088
2089 if test "$is_elf" = "yes"; then
2090 # Check for target supported by gold.
2091 case "${target}" in
7f1245df 2092 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
5afab7ad
ILT
2093 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2094 ;;
2095 esac
2096 fi
2097fi
2098
671aa708 2099# Configure extra directories which are host specific
79c06341 2100
671aa708
NN
2101case "${host}" in
2102 *-cygwin*)
2103 configdirs="$configdirs libtermcap" ;;
2104esac
79c06341 2105
4fab7234
HPN
2106# A target can indicate whether a language isn't supported for some reason.
2107# Only spaces may be used in this macro; not newlines or tabs.
2108unsupported_languages=
2109
1c710c3c 2110# Remove more programs from consideration, based on the host or
671aa708
NN
2111# target this usually means that a port of the program doesn't
2112# exist yet.
ec8d6ddc 2113
671aa708
NN
2114case "${host}" in
2115 hppa*64*-*-*)
2116 noconfigdirs="$noconfigdirs byacc"
2117 ;;
f2a0e225 2118 i[3456789]86-*-vsta)
b4f96efe 2119 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2120 ;;
f2a0e225 2121 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2122 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2123 ;;
95af8923
KT
2124 x86_64-*-mingw*)
2125 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2126 ;;
f2a0e225 2127 i[3456789]86-*-mingw32*)
b4f96efe 2128 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2129 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2130 ;;
f2a0e225 2131 i[3456789]86-*-beos*)
b4f96efe 2132 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2133 ;;
671aa708 2134 *-*-cygwin*)
a22c2d8d 2135 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2136 ;;
2137 *-*-netbsd*)
a22c2d8d 2138 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2139 ;;
2140 ppc*-*-pe)
b4f96efe 2141 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2142 ;;
2143 powerpc-*-beos*)
b4f96efe 2144 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2145 ;;
671aa708 2146esac
ec8d6ddc 2147
6de9cd9a 2148
2aeb72e9 2149# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2150if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2151 enableval="$enable_libada"
2152 ENABLE_LIBADA=$enableval
d9cdb878
AC
2153else
2154 ENABLE_LIBADA=yes
2aeb72e9 2155fi;
d9cdb878 2156if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2157 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2158fi
2159
2aeb72e9 2160# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2161if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2162 enableval="$enable_libssp"
2163 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2164else
2165 ENABLE_LIBSSP=yes
2aeb72e9 2166fi;
ef0087a7 2167
671aa708
NN
2168# Save it here so that, even in case of --enable-libgcj, if the Java
2169# front-end isn't enabled, we still get libgcj disabled.
2170libgcj_saved=$libgcj
2171case $enable_libgcj in
2172yes)
2173 # If we reset it here, it won't get added to noconfigdirs in the
2174 # target-specific build rules, so it will be forcibly enabled
2175 # (unless the Java language itself isn't enabled).
2176 libgcj=
2177 ;;
2178no)
2179 # Make sure we get it printed in the list of not supported target libs.
2180 noconfigdirs="$noconfigdirs ${libgcj}"
2181 ;;
2182esac
ec8d6ddc 2183
6de9cd9a 2184
27079765
AH
2185# Disable libmudflap on some systems.
2186if test x$enable_libmudflap = x ; then
dfcada9a 2187 case "${target}" in
416ac4d4 2188 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2189 # Enable libmudflap by default in GNU and friends.
dfcada9a 2190 ;;
a3e8d8b4
LR
2191 *-*-freebsd*)
2192 # Enable libmudflap by default in FreeBSD.
2193 ;;
dfcada9a
MM
2194 *)
2195 # Disable it by default everywhere else.
2196 noconfigdirs="$noconfigdirs target-libmudflap"
2197 ;;
2198 esac
27079765 2199fi
6de9cd9a 2200
27079765
AH
2201# Disable libgomp on non POSIX hosted systems.
2202if test x$enable_libgomp = x ; then
953ff289
DN
2203 # Enable libgomp by default on hosted POSIX systems.
2204 case "${target}" in
416ac4d4 2205 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
2206 ;;
2207 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2208 ;;
04879af3 2209 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2210 ;;
cac90078 2211 *-*-darwin* | *-*-aix*)
953ff289
DN
2212 ;;
2213 *)
2214 noconfigdirs="$noconfigdirs target-libgomp"
2215 ;;
2216 esac
27079765 2217fi
953ff289 2218
c03353e2
RIL
2219# Default libgloss CPU subdirectory.
2220libgloss_dir="$target_cpu"
6de9cd9a 2221
671aa708
NN
2222case "${target}" in
2223 *-*-chorusos)
cb253473 2224 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2225 ;;
75eeae1a 2226 powerpc-*-darwin*)
e1514c3f 2227 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2228 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2229 ;;
354ebf88
RW
2230 i[3456789]86-*-darwin*)
2231 noconfigdirs="$noconfigdirs ld gprof"
2232 noconfigdirs="$noconfigdirs sim target-rda"
2233 ;;
2234 x86_64-*-darwin[912]*)
0db3a858
TG
2235 noconfigdirs="$noconfigdirs ld gas gprof"
2236 noconfigdirs="$noconfigdirs sim target-rda"
2237 ;;
42c1cd8a
AT
2238 *-*-darwin*)
2239 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2240 noconfigdirs="$noconfigdirs sim target-rda"
2241 noconfigdirs="$noconfigdirs ${libgcj}"
2242 ;;
671aa708 2243 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2244 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2245 ;;
c3f84f61 2246 *-*-freebsd*)
6de9cd9a
DN
2247 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2248 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2249 && test -f /usr/local/include/gmp.h; then
2250 with_gmp=/usr/local
2251 fi
2252
2253 # Skip some stuff that's unsupported on some FreeBSD configurations.
2254 case "${target}" in
2255 i*86-*-*) ;;
2256 alpha*-*-*) ;;
2257 *)
cb253473 2258 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2259 ;;
2260 esac
2261 ;;
ef4e7569
US
2262 *-*-kaos*)
2263 # Remove unsupported stuff on all kaOS configurations.
cb253473 2264 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2265 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2266 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2267 noconfigdirs="$noconfigdirs target-libgloss"
2268 ;;
671aa708
NN
2269 *-*-netbsd*)
2270 # Skip some stuff on all NetBSD configurations.
2271 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2272
2273 # Skip some stuff that's unsupported on some NetBSD configurations.
2274 case "${target}" in
2275 i*86-*-netbsdelf*) ;;
0590b963 2276 arm*-*-netbsdelf*) ;;
671aa708 2277 *)
cb253473 2278 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2279 ;;
2280 esac
2281 ;;
61fec9ff 2282 *-*-netware*)
cb253473 2283 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2284 ;;
2285 *-*-rtems*)
cb253473 2286 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2287 ;;
a8ba31f2
EC
2288 # The tpf target doesn't support gdb yet.
2289 *-*-tpf*)
cb253473 2290 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2291 ;;
5785c0ed 2292 *-*-uclinux*)
cb253473 2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2294 ;;
671aa708 2295 *-*-vxworks*)
cb253473 2296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2297 ;;
2298 alpha*-dec-osf*)
2299 # ld works, but does not support shared libraries.
2300 # newlib is not 64 bit ready. I'm not sure about fileutils.
2301 # gas doesn't generate exception information.
2302 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2303 ;;
2304 alpha*-*-*vms*)
cb253473 2305 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2306 ;;
2307 alpha*-*-linux*)
2308 # newlib is not 64 bit ready
2309 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2310 ;;
671aa708
NN
2311 alpha*-*-*)
2312 # newlib is not 64 bit ready
cb253473 2313 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2314 ;;
33952f6f 2315 am33_2.0-*-linux*)
cb253473 2316 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2317 ;;
671aa708 2318 sh-*-linux*)
cb253473 2319 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2320 ;;
671aa708 2321 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2322 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2323 noconfigdirs="$noconfigdirs target-examples"
2324 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2325 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2326 noconfigdirs="$noconfigdirs expect dejagnu"
2327 # the C++ libraries don't build on top of CE's C libraries
cb543528 2328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2329 noconfigdirs="$noconfigdirs target-newlib"
2330 case "${host}" in
2331 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2332 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2333 ;;
2334 esac
c03353e2 2335 libgloss_dir=wince
671aa708
NN
2336 ;;
2337 arc-*-*)
cb253473 2338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2339 ;;
ee6a22df 2340 arm-semi-aof )
ee6a22df 2341 ;;
671aa708 2342 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2343 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2344 libgloss_dir=arm
671aa708 2345 ;;
b3f8d95d 2346 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2347 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2348 libgloss_dir=arm
671aa708 2349 ;;
077fc835 2350 arm*-*-linux-gnueabi)
c4e9bf2b 2351 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2352 case ${with_newlib} in
2353 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2354 esac
c03353e2 2355 libgloss_dir=arm
077fc835 2356 ;;
972974fc 2357 arm*-*-symbianelf*)
cb253473 2358 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2359 libgloss_dir=arm
972974fc 2360 ;;
671aa708 2361 arm-*-pe*)
cb253473 2362 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2363 ;;
671aa708 2364 thumb-*-coff)
cb253473 2365 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2366 ;;
2367 thumb-*-elf)
cb253473 2368 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2369 ;;
671aa708 2370 thumb-*-pe)
cb253473 2371 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2372 ;;
2373 arm-*-riscix*)
cb253473 2374 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2375 ;;
2376 avr-*-*)
ac3949d9 2377 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 2378 ;;
6b65a26d 2379 bfin-*-*)
8b3c6c5a 2380 noconfigdirs="$noconfigdirs gdb"
61efc800 2381 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2382 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2383 fi
2384 ;;
671aa708 2385 c4x-*-* | tic4x-*-*)
cb253473 2386 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2387 ;;
2388 c54x*-*-* | tic54x-*-*)
cb253473 2389 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2390 ;;
c993ae60
SR
2391 cr16-*-*)
2392 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2393 ;;
40d64b5a 2394 cris-*-* | crisv32-*-*)
4fab7234 2395 unsupported_languages="$unsupported_languages java"
40d64b5a 2396 case "${target}" in
c2e0d3a9 2397 *-*-aout)
7f26dfa3 2398 unsupported_languages="$unsupported_languages fortran"
4fab7234 2399 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2400 *-*-elf)
789ec619 2401 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2402 *-*-linux*)
789ec619 2403 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2404 *)
7f26dfa3 2405 unsupported_languages="$unsupported_languages fortran"
cb253473 2406 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2407 esac
c03353e2 2408 libgloss_dir=cris
671aa708 2409 ;;
25b656e7 2410 crx-*-*)
cb253473 2411 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2412 ;;
671aa708 2413 d10v-*-*)
cb253473 2414 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2415 ;;
2416 d30v-*-*)
cb253473 2417 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2418 ;;
c03353e2
RIL
2419 ep9312-*-elf | ep9312-*-coff)
2420 libgloss_dir=arm
2421 ;;
671aa708 2422 fr30-*-elf*)
cb253473 2423 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2424 ;;
2425 frv-*-*)
cb253473 2426 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2427 ;;
55f2d967
AG
2428 moxie-*-*)
2429 noconfigdirs="$noconfigdirs ${libgcj}"
2430 noconfigdirs="$noconfigdirs gprof"
2431 ;;
671aa708 2432 h8300*-*-*)
cb253473 2433 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2434 ;;
2435 h8500-*-*)
cb253473 2436 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2437 ;;
ee6a22df 2438 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2439 ;;
671aa708
NN
2440 hppa*64*-*-linux* | parisc*64*-*-linux*)
2441 # In this case, it's because the hppa64-linux target is for
2442 # the kernel only at this point and has no libc, and thus no
2443 # headers, crt*.o, etc., all of which are needed by these.
2444 noconfigdirs="$noconfigdirs target-zlib"
2445 ;;
3e732ba0
JDA
2446 parisc*-*-linux* | hppa*-*-linux*)
2447 ;;
671aa708 2448 hppa*-*-*elf* | \
671aa708
NN
2449 hppa*-*-lites* | \
2450 hppa*-*-openbsd* | \
2451 hppa*64*-*-*)
cb253473 2452 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2453 ;;
2a332582
JDA
2454 hppa*-hp-hpux11*)
2455 noconfigdirs="$noconfigdirs ld shellutils"
2456 ;;
c03353e2
RIL
2457 hppa*-*-pro*)
2458 libgloss_dir=pa
2459 ;;
671aa708
NN
2460 hppa*-*-*)
2461 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2462 # build on HP-UX 10.20.
cb253473 2463 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2464 ;;
fb87ad5d 2465 i960-*-*)
cb253473 2466 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2467 ;;
671aa708
NN
2468 ia64*-*-elf*)
2469 # No gdb support yet.
b4f96efe 2470 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2471 ;;
2472 ia64*-**-hpux*)
2473 # No gdb or ld support yet.
cb253473 2474 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2475 ;;
52535a64
DR
2476 ia64*-*-*vms*)
2477 # No gdb or ld support yet.
2478 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2479 ;;
ee6a22df 2480 i370-*-opened*)
ee6a22df 2481 ;;
f2a0e225 2482 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2483 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2484 libgloss_dir=i386
671aa708 2485 ;;
f2a0e225 2486 i[3456789]86-*-linux*)
671aa708
NN
2487 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2488 # not build java stuff by default.
2489 case "${target}" in
2490 *-*-*libc1*)
cb253473 2491 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2492 esac
2493
2494 # This section makes it possible to build newlib natively on linux.
2495 # If we are using a cross compiler then don't configure newlib.
2496 if test x${is_cross_compiler} != xno ; then
3aa83176 2497 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2498 fi
2499 noconfigdirs="$noconfigdirs target-libgloss"
2500 # If we are not using a cross compiler, do configure newlib.
2501 # Note however, that newlib will only be configured in this situation
2502 # if the --with-newlib option has been given, because otherwise
2503 # 'target-newlib' will appear in skipdirs.
2504 ;;
f2a0e225 2505 i[3456789]86-*-mingw32*)
b91f0a41
CV
2506 target_configdirs="$target_configdirs target-winsup"
2507 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2508 ;;
95af8923
KT
2509 x86_64-*-mingw*)
2510 target_configdirs="$target_configdirs target-winsup"
2511 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2512 ;;
671aa708
NN
2513 *-*-cygwin*)
2514 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 2515 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 2516 # always build newlib if winsup directory is present.
b91f0a41 2517 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2518 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2519 elif test -d "$srcdir/newlib"; then
b91f0a41 2520 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2521 fi
1c710c3c 2522 ;;
ee6a22df
L
2523 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2524 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2525 ;;
f2a0e225 2526 i[3456789]86-*-pe)
cb253473 2527 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2528 ;;
f2a0e225 2529 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2530 # The linker does not yet know about weak symbols in COFF,
2531 # and is not configured to handle mixed ELF and COFF.
cb253473 2532 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2533 ;;
f2a0e225 2534 i[3456789]86-*-sco*)
cb253473 2535 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2536 ;;
f2a0e225 2537 i[3456789]86-*-solaris2*)
671aa708
NN
2538 noconfigdirs="$noconfigdirs target-libgloss"
2539 ;;
f2a0e225 2540 i[3456789]86-*-sysv4*)
cb253473 2541 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2542 ;;
f2a0e225 2543 i[3456789]86-*-beos*)
cb253473 2544 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2545 ;;
d1f8db0c
PB
2546 i[3456789]86-*-rdos*)
2547 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2548 ;;
fb87ad5d 2549 m32r-*-*)
cb253473 2550 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2551 ;;
671aa708 2552 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2553 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2554 libgloss_dir=m68hc11
671aa708
NN
2555 ;;
2556 m68k-*-elf*)
cb253473 2557 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2558 ;;
2559 m68k-*-coff*)
cb253473 2560 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2561 ;;
c03353e2
RIL
2562 m68*-*-* | fido-*-*)
2563 libgloss_dir=m68k
2564 ;;
671aa708
NN
2565 mcore-*-pe*)
2566 # The EPOC C++ environment does not support exceptions or rtti,
2567 # and so building libstdc++-v3 tends not to always work.
2568 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2569 ;;
2570 mmix-*-*)
4fab7234 2571 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2572 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2573 ;;
2574 mn10200-*-*)
cb253473 2575 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2576 ;;
2577 mn10300-*-*)
cb253473 2578 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2579 ;;
ab34901f 2580 mt-*-*)
79dd769c
AH
2581 noconfigdirs="$noconfigdirs sim"
2582 ;;
671aa708
NN
2583 powerpc-*-aix*)
2584 # copied from rs6000-*-* entry
a891a473 2585 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
2586 ;;
2587 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2588 target_configdirs="$target_configdirs target-winsup"
cb253473 2589 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2590 # always build newlib.
2591 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2592 ;;
2593 # This is temporary until we can link against shared libraries
2594 powerpcle-*-solaris*)
cb253473 2595 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2596 libgloss_dir=rs6000
671aa708
NN
2597 ;;
2598 powerpc-*-beos*)
cb253473 2599 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2600 ;;
671aa708 2601 powerpc-*-eabi)
cb253473 2602 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2603 libgloss_dir=rs6000
ee6a22df
L
2604 ;;
2605 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2606 libgloss_dir=rs6000
671aa708 2607 ;;
671aa708 2608 rs6000-*-lynxos*)
cb253473 2609 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2610 ;;
2611 rs6000-*-aix*)
a891a473 2612 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
2613 ;;
2614 rs6000-*-*)
cb253473 2615 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2616 ;;
2617 m68k-apollo-*)
cb253473 2618 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2619 ;;
ca9fe997
ME
2620 microblaze*)
2621 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2622 ;;
d9dced13
RS
2623 mips*-sde-elf*)
2624 skipdirs="$skipdirs target-libiberty"
2625 noconfigdirs="$noconfigdirs ${libgcj}"
2626 if test x$with_newlib = xyes; then
2627 noconfigdirs="$noconfigdirs gprof"
2628 fi
2629 libgloss_dir=mips
2630 ;;
671aa708 2631 mips*-*-irix5*)
cb253473 2632 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2633 ;;
2634 mips*-*-irix6*)
671aa708
NN
2635 # Linking libjava exceeds command-line length limits on at least
2636 # IRIX 6.2, but not on IRIX 6.5.
2637 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2638 # <oldham@codesourcery.com>
cb253473 2639 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2640 ;;
671aa708 2641 mips*-*-bsd*)
cb253473 2642 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2643 ;;
671aa708
NN
2644 mips*-*-linux*)
2645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2646 ;;
2647 mips*-*-*)
cb253473 2648 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2649 libgloss_dir=mips
671aa708
NN
2650 ;;
2651 romp-*-*)
cb253473 2652 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2653 ;;
669f01d8 2654 sh-*-* | sh64-*-*)
671aa708 2655 case "${host}" in
f2a0e225
KC
2656 i[3456789]86-*-vsta) ;; # don't add gprof back in
2657 i[3456789]86-*-go32*) ;; # don't add gprof back in
2658 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2659 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2660 esac
ea2002ba
CB
2661 case "${target}" in
2662 sh*-*-elf)
2663 noconfigdirs="$noconfigdirs ${libgcj}" ;;
2664 *)
2665 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
2666 esac
671aa708 2667 ;;
c03353e2
RIL
2668 sparclet-*-aout* | sparc86x-*-*)
2669 libgloss_dir=sparc
2670 ;;
671aa708 2671 sparc-*-elf*)
cb253473 2672 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2673 ;;
2674 sparc64-*-elf*)
cb253473 2675 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2676 libgloss_dir=sparc
671aa708
NN
2677 ;;
2678 sparclite-*-*)
cb253473 2679 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2680 libgloss_dir=sparc
671aa708
NN
2681 ;;
2682 sparc-*-sunos4*)
cb253473 2683 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2684 if test x${is_cross_compiler} != xno ; then
2685 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2686 else
2687 use_gnu_ld=no
2688 fi
2689 ;;
bba5e0ca 2690 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2691 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2692 ;;
671aa708
NN
2693 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2694 ;;
2695 v810-*-*)
cb253473 2696 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2697 ;;
2698 v850-*-*)
cb253473 2699 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2700 ;;
2701 v850e-*-*)
cb253473 2702 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2703 ;;
2704 v850ea-*-*)
cb253473 2705 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2706 ;;
2707 vax-*-vms)
cb253473 2708 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2709 ;;
2710 vax-*-*)
cb253473 2711 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2712 ;;
aa12a573 2713 xtensa*-*-*)
cb253473 2714 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2715 ;;
671aa708 2716 ip2k-*-*)
cb253473 2717 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2718 ;;
416ac4d4 2719 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
2720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2721 ;;
2722 *-*-lynxos*)
cb253473 2723 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2724 ;;
671aa708 2725 *-*-*)
cb253473 2726 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2727 ;;
2728esac
79c06341 2729
671aa708
NN
2730# If we aren't building newlib, then don't build libgloss, since libgloss
2731# depends upon some newlib header files.
2732case "${noconfigdirs}" in
2733 *target-libgloss*) ;;
2734 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2735esac
2736
671aa708
NN
2737# Work in distributions that contain no compiler tools, like Autoconf.
2738tentative_cc=""
2739host_makefile_frag=/dev/null
2740if test -d ${srcdir}/config ; then
2741case "${host}" in
2742 m68k-hp-hpux*)
2743 # Avoid "too much defining" errors from HPUX compiler.
2744 tentative_cc="cc -Wp,-H256000"
2745 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2746 # If it's HP/UX ar, this should be harmless.
2747 RANLIB="ar ts"
2748 ;;
2749 m68k-apollo-sysv*)
2750 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2751 ;;
2752 m68k-apollo-bsd*)
2753 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2754 # chokes on bfd, the compiler won't let you assign integers to enums, and
2755 # other problems. Defining CC to gcc is a questionable way to say "don't use
2756 # the apollo compiler" (the preferred version of GCC could be called cc,
2757 # or whatever), but I'm not sure leaving CC as cc is any better...
2758 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2759 # Used to have BISON=yacc.
2760 tentative_cc=gcc
2761 ;;
2762 m88k-dg-dgux*)
2763 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2764 ;;
2765 m88k-harris-cxux*)
2766 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2767 tentative_cc="cc -Xa"
2768 host_makefile_frag="config/mh-cxux"
2769 ;;
2770 m88k-motorola-sysv*)
2771 ;;
2772 mips*-dec-ultrix*)
2773 tentative_cc="cc -Wf,-XNg1000"
2774 host_makefile_frag="config/mh-decstation"
2775 ;;
2776 mips*-nec-sysv4*)
2777 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2778 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2779 host_makefile_frag="config/mh-necv4"
2780 ;;
2781 mips*-sgi-irix4*)
2782 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2783 # environment. Also bump switch table size so that cp-parse will
2784 # compile. Bump string length limit so linker builds.
2785 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2786 ;;
2787 mips*-*-sysv4*)
2788 host_makefile_frag="config/mh-sysv4"
2789 ;;
2790 mips*-*-sysv*)
2791 # This is for a MIPS running RISC/os 4.52C.
2792
2793 # This is needed for GDB, but needs to be in the top-level make because
2794 # if a library is compiled with the bsd headers and gets linked with the
2795 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2796 # a different size).
2797 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2798 # known except to select the sysv environment. Could we use /proc instead?
2799 # These "sysv environments" and "bsd environments" often end up being a pain.
2800 #
2801 # This is not part of CFLAGS because perhaps not all C compilers have this
2802 # option.
2803 tentative_cc="cc -systype sysv"
2804 ;;
2805 i370-ibm-opened*)
2806 tentative_cc="c89"
2807 ;;
f2a0e225 2808 i[3456789]86-*-sysv5*)
671aa708
NN
2809 host_makefile_frag="config/mh-sysv5"
2810 ;;
f2a0e225 2811 i[3456789]86-*-dgux*)
671aa708
NN
2812 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2813 host_makefile_frag="config/mh-dgux386"
2814 ;;
f2a0e225 2815 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2816 # The MetaWare compiler will generate a copyright message unless you
2817 # turn it off by adding the -Hnocopyr flag.
2818 tentative_cc="cc -Hnocopyr"
2819 ;;
f2a0e225 2820 i[3456789]86-ncr-sysv4*)
671aa708
NN
2821 # for an NCR 3000 (i486/SVR4) system.
2822 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2823 # This compiler not only emits obnoxious copyright messages every time
2824 # you run it, but it chokes and dies on a whole bunch of GNU source
2825 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2826 tentative_cc="/usr/ccs/ATT/cc"
2827 host_makefile_frag="config/mh-ncr3000"
2828 ;;
f2a0e225 2829 i[3456789]86-*-sco3.2v5*)
671aa708 2830 ;;
f2a0e225 2831 i[3456789]86-*-sco*)
671aa708
NN
2832 # The native C compiler botches some simple uses of const. Unfortunately,
2833 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2834 tentative_cc="cc -Dconst="
2835 host_makefile_frag="config/mh-sco"
2836 ;;
f2a0e225 2837 i[3456789]86-*-udk*)
671aa708
NN
2838 host_makefile_frag="config/mh-sysv5"
2839 ;;
f2a0e225 2840 i[3456789]86-*-solaris2*)
671aa708
NN
2841 host_makefile_frag="config/mh-sysv4"
2842 ;;
f2a0e225 2843 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2844 host_makefile_frag="config/mh-djgpp"
2845 ;;
2846 *-cygwin*)
2a79c47f
NC
2847
2848echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2849echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2850echo a >cygwin-cat-check
2851if test `cat cygwin-cat-check` == a ; then
2852 rm cygwin-cat-check
2853 echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6
2855else
2856 rm cygwin-cat-check
2857 echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6
2859 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2860 Please either mount the build directory in binary mode or run the following
2861 commands before running any configure script:
2862set -o igncr
2863export SHELLOPTS
2864 " >&5
2865echo "$as_me: error: The cat command does not ignore carriage return characters.
2866 Please either mount the build directory in binary mode or run the following
2867 commands before running any configure script:
2868set -o igncr
2869export SHELLOPTS
2870 " >&2;}
2871 { (exit 1); exit 1; }; }
2872fi
2873
671aa708
NN
2874 host_makefile_frag="config/mh-cygwin"
2875 ;;
c53a18d3 2876 *-mingw*)
1f5a6b84 2877 host_makefile_frag="config/mh-mingw"
95af8923 2878 ;;
671aa708
NN
2879 *-interix*)
2880 host_makefile_frag="config/mh-interix"
2881 ;;
2882 vax-*-ultrix2*)
2883 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2884 tentative_cc=gcc
2885 ;;
2886 *-*-solaris2*)
2887 host_makefile_frag="config/mh-solaris"
2888 ;;
2889 m68k-sun-sunos*)
2890 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2891 # without overflowing the jump tables (-J says to use a 32 bit table)
2892 tentative_cc="cc -J"
2893 ;;
efd41714 2894 hppa*-hp-hpux10*)
671aa708 2895 tentative_cc="cc -Wp,-H256000"
efd41714 2896 host_makefile_frag="config/mh-pa-hpux10"
671aa708 2897 ;;
efd41714
PB
2898 hppa*-hp-hpux* | hppa*-*-hiux*)
2899 tentative_cc="cc -Wp,-H256000"
2900 host_makefile_frag="config/mh-pa"
2901 ;;
2902 hppa*-*)
2903 host_makefile_frag="config/mh-pa"
2904 ;;
2905 *-hp-hpux* | *-*-hiux*)
671aa708
NN
2906 tentative_cc="cc -Wp,-H256000"
2907 ;;
2908 rs6000-*-lynxos*)
2909 # /bin/cc is less than useful for our purposes. Always use GCC
2910 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2911 host_makefile_frag="config/mh-lynxrs6k"
2912 ;;
45f366ab 2913 powerpc-*-darwin*)
be8fff81
RB
2914 host_makefile_frag="config/mh-ppc-darwin"
2915 ;;
d19bca38
PB
2916 powerpc-*-aix*)
2917 host_makefile_frag="config/mh-ppc-aix"
2918 ;;
2919 rs6000-*-aix*)
2920 host_makefile_frag="config/mh-ppc-aix"
2921 ;;
671aa708
NN
2922 *-*-lynxos*)
2923 # /bin/cc is less than useful for our purposes. Always use GCC
2924 tentative_cc="/bin/gcc"
2925 ;;
2926 *-*-sysv4*)
2927 host_makefile_frag="config/mh-sysv4"
2928 ;;
95c53c62
RS
2929 # This is placed last to prevent interfering with the cases above.
2930 i[3456789]86-*-*)
2931 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2932 host_makefile_frag="config/mh-x86omitfp"
2933 ;;
671aa708
NN
2934esac
2935fi
2936
55ffb5ed
NN
2937# If we aren't going to be using gcc, see if we can extract a definition
2938# of CC from the fragment.
2939# Actually, use the 'pre-extracted' version above.
2940if test -z "${CC}" && test "${build}" = "${host}" ; then
2941 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2942 found=
2943 for dir in $PATH; do
2944 test -z "$dir" && dir=.
2945 if test -f $dir/gcc; then
2946 found=yes
2947 break
2948 fi
2949 done
2950 IFS="$save_ifs"
2951 if test -z "${found}" && test -n "${tentative_cc}" ; then
2952 CC=$tentative_cc
2953 fi
2954fi
2955
2956if test "${build}" != "${host}" ; then
0999159b
PB
2957 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2958 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2959 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2960 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2961 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2962 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2963 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2964 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2965 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2966 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2967 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2968 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2969else
2970 AR_FOR_BUILD="\$(AR)"
2971 AS_FOR_BUILD="\$(AS)"
fb0103e5 2972 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2973 CXX_FOR_BUILD="\$(CXX)"
2974 GCJ_FOR_BUILD="\$(GCJ)"
2975 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2976 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2977 LD_FOR_BUILD="\$(LD)"
2978 NM_FOR_BUILD="\$(NM)"
2979 RANLIB_FOR_BUILD="\$(RANLIB)"
2980 WINDRES_FOR_BUILD="\$(WINDRES)"
2981 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2982fi
2983
2984ac_ext=c
1c710c3c
DJ
2985ac_cpp='$CPP $CPPFLAGS'
2986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2991set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2992echo "$as_me:$LINENO: checking for $ac_word" >&5
2993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2994if test "${ac_cv_prog_CC+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011done
3012done
3013
3014fi
3015fi
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
2aeb72e9
DD
3018 echo "$as_me:$LINENO: result: $CC" >&5
3019echo "${ECHO_T}$CC" >&6
1c710c3c 3020else
2aeb72e9
DD
3021 echo "$as_me:$LINENO: result: no" >&5
3022echo "${ECHO_T}no" >&6
1c710c3c
DJ
3023fi
3024
3025fi
3026if test -z "$ac_cv_prog_CC"; then
3027 ac_ct_CC=$CC
fb0103e5
RG
3028 # Extract the first word of "gcc", so it can be a program name with args.
3029set dummy gcc; ac_word=$2
2aeb72e9
DD
3030echo "$as_me:$LINENO: checking for $ac_word" >&5
3031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3045 ac_cv_prog_ac_ct_CC="gcc"
3046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049done
3050done
3051
3052fi
3053fi
3054ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3057echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 3058else
2aeb72e9
DD
3059 echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
1c710c3c
DJ
3061fi
3062
2aeb72e9 3063 CC=$ac_ct_CC
1c710c3c
DJ
3064else
3065 CC="$ac_cv_prog_CC"
3066fi
3067
3068if test -z "$CC"; then
2aeb72e9
DD
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3071set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
3072echo "$as_me:$LINENO: checking for $ac_word" >&5
3073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3074if test "${ac_cv_prog_CC+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3076else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079else
1c710c3c
DJ
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3087 ac_cv_prog_CC="${ac_tool_prefix}cc"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092done
3093
0b0dc272 3094fi
0b0dc272 3095fi
1c710c3c 3096CC=$ac_cv_prog_CC
af71363e 3097if test -n "$CC"; then
2aeb72e9
DD
3098 echo "$as_me:$LINENO: result: $CC" >&5
3099echo "${ECHO_T}$CC" >&6
0b0dc272 3100else
2aeb72e9
DD
3101 echo "$as_me:$LINENO: result: no" >&5
3102echo "${ECHO_T}no" >&6
0b0dc272
AM
3103fi
3104
2aeb72e9
DD
3105fi
3106if test -z "$ac_cv_prog_CC"; then
3107 ac_ct_CC=$CC
3108 # Extract the first word of "cc", so it can be a program name with args.
3109set dummy cc; ac_word=$2
3110echo "$as_me:$LINENO: checking for $ac_word" >&5
3111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="cc"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
11a67599 3128 fi
2aeb72e9
DD
3129done
3130done
3131
3132fi
3133fi
3134ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135if test -n "$ac_ct_CC"; then
3136 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3137echo "${ECHO_T}$ac_ct_CC" >&6
3138else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141fi
3142
3143 CC=$ac_ct_CC
3144else
3145 CC="$ac_cv_prog_CC"
3146fi
3147
1c710c3c 3148fi
55ffb5ed
NN
3149if test -z "$CC"; then
3150 # Extract the first word of "cc", so it can be a program name with args.
3151set dummy cc; ac_word=$2
2aeb72e9
DD
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3154if test "${ac_cv_prog_CC+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3156else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159else
0b0dc272 3160 ac_prog_rejected=no
1c710c3c
DJ
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3169 ac_prog_rejected=yes
3170 continue
3171 fi
3172 ac_cv_prog_CC="cc"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176done
3177done
3178
55ffb5ed
NN
3179if test $ac_prog_rejected = yes; then
3180 # We found a bogon in the path, so make sure we never use it.
3181 set dummy $ac_cv_prog_CC
3182 shift
1c710c3c 3183 if test $# != 0; then
55ffb5ed
NN
3184 # We chose a different compiler from the bogus one.
3185 # However, it has the same basename, so the bogon will be chosen
3186 # first if we set CC to just the basename; use the full file name.
3187 shift
1c710c3c 3188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3189 fi
3190fi
3191fi
3192fi
1c710c3c 3193CC=$ac_cv_prog_CC
55ffb5ed 3194if test -n "$CC"; then
2aeb72e9
DD
3195 echo "$as_me:$LINENO: result: $CC" >&5
3196echo "${ECHO_T}$CC" >&6
55ffb5ed 3197else
2aeb72e9
DD
3198 echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
55ffb5ed
NN
3200fi
3201
1c710c3c
DJ
3202fi
3203if test -z "$CC"; then
3204 if test -n "$ac_tool_prefix"; then
2aeb72e9 3205 for ac_prog in cl
1c710c3c
DJ
3206 do
3207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3208set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3209echo "$as_me:$LINENO: checking for $ac_word" >&5
3210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3211if test "${ac_cv_prog_CC+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3213else
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3216else
1c710c3c
DJ
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228done
3229done
3230
55ffb5ed
NN
3231fi
3232fi
1c710c3c 3233CC=$ac_cv_prog_CC
55ffb5ed 3234if test -n "$CC"; then
2aeb72e9
DD
3235 echo "$as_me:$LINENO: result: $CC" >&5
3236echo "${ECHO_T}$CC" >&6
a4b9e93e 3237else
2aeb72e9
DD
3238 echo "$as_me:$LINENO: result: no" >&5
3239echo "${ECHO_T}no" >&6
fb0103e5 3240fi
af71363e 3241
1c710c3c
DJ
3242 test -n "$CC" && break
3243 done
af71363e 3244fi
1c710c3c
DJ
3245if test -z "$CC"; then
3246 ac_ct_CC=$CC
2aeb72e9 3247 for ac_prog in cl
1c710c3c
DJ
3248do
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3255else
1c710c3c
DJ
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3258else
1c710c3c
DJ
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3266 ac_cv_prog_ac_ct_CC="$ac_prog"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270done
3271done
3272
af71363e
AS
3273fi
3274fi
1c710c3c
DJ
3275ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3277 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3278echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3279else
2aeb72e9
DD
3280 echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
af71363e 3282fi
0b0dc272 3283
1c710c3c
DJ
3284 test -n "$ac_ct_CC" && break
3285done
3286
2aeb72e9 3287 CC=$ac_ct_CC
1c710c3c
DJ
3288fi
3289
3290fi
3291
3292
18c04407
RW
3293test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3294echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1c710c3c
DJ
3296See \`config.log' for more details." >&5
3297echo "$as_me: error: no acceptable C compiler found in \$PATH
3298See \`config.log' for more details." >&2;}
18c04407 3299 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3300
3301# Provide some information about the compiler.
2aeb72e9
DD
3302echo "$as_me:$LINENO:" \
3303 "checking for C compiler version" >&5
1c710c3c 3304ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3305{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3306 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }
2aeb72e9
DD
3310{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3311 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }
2aeb72e9
DD
3315{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3316 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }
3320
3321cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
3327
3328int
3329main ()
3330{
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336ac_clean_files_save=$ac_clean_files
3337ac_clean_files="$ac_clean_files a.out a.exe b.out"
3338# Try to create an executable without -o first, disregard a.out.
3339# It will help us diagnose broken compilers, and finding out an intuition
3340# of exeext.
2aeb72e9
DD
3341echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3342echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3343ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3344if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3345 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; then
2aeb72e9
DD
3349 # Find the output, starting from the most likely. This scheme is
3350# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3351# resort.
3352
3353# Be careful to initialize this variable, since it used to be cached.
3354# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3355ac_cv_exeext=
3356# b.out is created by i960 compilers.
3357for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3358do
3359 test -f "$ac_file" || continue
3360 case $ac_file in
2aeb72e9
DD
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3362 ;;
3363 conftest.$ac_ext )
3364 # This is the source file.
1c710c3c
DJ
3365 ;;
3366 [ab].out )
3367 # We found the default executable, but exeext='' is most
3368 # certainly right.
3369 break;;
3370 *.* )
2aeb72e9
DD
3371 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 # FIXME: I believe we export ac_cv_exeext for Libtool,
3373 # but it would be cool to find out if it's true. Does anybody
3374 # maintain Libtool? --akim.
3375 export ac_cv_exeext
1c710c3c
DJ
3376 break;;
3377 * )
3378 break;;
3379 esac
3380done
3381else
3382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
18c04407
RW
3385{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3386echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3387{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3388See \`config.log' for more details." >&5
3389echo "$as_me: error: C compiler cannot create executables
3390See \`config.log' for more details." >&2;}
18c04407 3391 { (exit 77); exit 77; }; }; }
1c710c3c
DJ
3392fi
3393
3394ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3395echo "$as_me:$LINENO: result: $ac_file" >&5
3396echo "${ECHO_T}$ac_file" >&6
1c710c3c 3397
2aeb72e9 3398# Check the compiler produces executables we can run. If not, either
1c710c3c 3399# the compiler is broken, or we cross compile.
2aeb72e9
DD
3400echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3401echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3402# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3403# If not cross compiling, check that we can run a simple program.
3404if test "$cross_compiling" != yes; then
3405 if { ac_try='./$ac_file'
2aeb72e9
DD
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
1c710c3c
DJ
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
18c04407
RW
3416 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3417echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1c710c3c
DJ
3419If you meant to cross compile, use \`--host'.
3420See \`config.log' for more details." >&5
3421echo "$as_me: error: cannot run C compiled programs.
3422If you meant to cross compile, use \`--host'.
3423See \`config.log' for more details." >&2;}
18c04407 3424 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3425 fi
3426 fi
3427fi
2aeb72e9
DD
3428echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3430
3431rm -f a.out a.exe conftest$ac_cv_exeext b.out
3432ac_clean_files=$ac_clean_files_save
2aeb72e9 3433# Check the compiler produces executables we can run. If not, either
1c710c3c 3434# the compiler is broken, or we cross compile.
2aeb72e9
DD
3435echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3436echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3437echo "$as_me:$LINENO: result: $cross_compiling" >&5
3438echo "${ECHO_T}$cross_compiling" >&6
3439
3440echo "$as_me:$LINENO: checking for suffix of executables" >&5
3441echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>&5
1c710c3c
DJ
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; then
3447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3448# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3449# work properly (i.e., refer to `conftest.exe'), while it won't with
3450# `rm'.
3451for ac_file in conftest.exe conftest conftest.*; do
3452 test -f "$ac_file" || continue
3453 case $ac_file in
2aeb72e9 3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3456 export ac_cv_exeext
1c710c3c
DJ
3457 break;;
3458 * ) break;;
3459 esac
3460done
af71363e 3461else
18c04407
RW
3462 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3463echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1c710c3c
DJ
3465See \`config.log' for more details." >&5
3466echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3467See \`config.log' for more details." >&2;}
18c04407 3468 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3469fi
3470
3471rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3472echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3473echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3474
3475rm -f conftest.$ac_ext
3476EXEEXT=$ac_cv_exeext
3477ac_exeext=$EXEEXT
2aeb72e9
DD
3478echo "$as_me:$LINENO: checking for suffix of object files" >&5
3479echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3480if test "${ac_cv_objext+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483 cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h. */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h. */
3489
3490int
3491main ()
3492{
3493
3494 ;
3495 return 0;
3496}
3497_ACEOF
3498rm -f conftest.o conftest.obj
2aeb72e9
DD
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
1c710c3c
DJ
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; then
2aeb72e9 3504 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3505 case $ac_file in
2aeb72e9 3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3508 break;;
3509 esac
3510done
3511else
3512 echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
18c04407
RW
3515{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3517{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3518See \`config.log' for more details." >&5
3519echo "$as_me: error: cannot compute suffix of object files: cannot compile
3520See \`config.log' for more details." >&2;}
18c04407 3521 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3522fi
3523
3524rm -f conftest.$ac_cv_objext conftest.$ac_ext
3525fi
2aeb72e9
DD
3526echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3527echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3528OBJEXT=$ac_cv_objext
3529ac_objext=$OBJEXT
2aeb72e9
DD
3530echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3531echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3532if test "${ac_cv_c_compiler_gnu+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534else
3535 cat >conftest.$ac_ext <<_ACEOF
3536/* confdefs.h. */
3537_ACEOF
3538cat confdefs.h >>conftest.$ac_ext
3539cat >>conftest.$ac_ext <<_ACEOF
3540/* end confdefs.h. */
3541
3542int
3543main ()
3544{
3545#ifndef __GNUC__
3546 choke me
3547#endif
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
2aeb72e9
DD
3554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3561 (exit $ac_status); } &&
3562 { ac_try='test -z "$ac_c_werror_flag"
3563 || test ! -s conftest.err'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; } &&
3569 { ac_try='test -s conftest.$ac_objext'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; }; then
1c710c3c
DJ
3575 ac_compiler_gnu=yes
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
2aeb72e9 3580ac_compiler_gnu=no
1c710c3c 3581fi
2aeb72e9 3582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3583ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584
3585fi
2aeb72e9
DD
3586echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3587echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3588GCC=`test $ac_compiler_gnu = yes && echo yes`
3589ac_test_CFLAGS=${CFLAGS+set}
3590ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3591CFLAGS="-g"
3592echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3593echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3594if test "${ac_cv_prog_cc_g+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
2aeb72e9 3597 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3598/* confdefs.h. */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h. */
3603
3604int
3605main ()
3606{
3607
3608 ;
3609 return 0;
3610}
3611_ACEOF
3612rm -f conftest.$ac_objext
2aeb72e9
DD
3613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
1c710c3c
DJ
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
1c710c3c
DJ
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3633 (exit $ac_status); }; }; then
55ffb5ed
NN
3634 ac_cv_prog_cc_g=yes
3635else
1c710c3c
DJ
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3638
2aeb72e9 3639ac_cv_prog_cc_g=no
0b0dc272 3640fi
2aeb72e9 3641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3642fi
2aeb72e9
DD
3643echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3644echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3645if test "$ac_test_CFLAGS" = set; then
1c710c3c 3646 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3647elif test $ac_cv_prog_cc_g = yes; then
3648 if test "$GCC" = yes; then
3649 CFLAGS="-g -O2"
3650 else
3651 CFLAGS="-g"
3652 fi
3653else
3654 if test "$GCC" = yes; then
3655 CFLAGS="-O2"
3656 else
3657 CFLAGS=
3658 fi
3659fi
2aeb72e9
DD
3660echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3661echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3662if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
2aeb72e9 3665 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3666ac_save_CC=$CC
3667cat >conftest.$ac_ext <<_ACEOF
3668/* confdefs.h. */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h. */
3673#include <stdarg.h>
3674#include <stdio.h>
3675#include <sys/types.h>
3676#include <sys/stat.h>
3677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3678struct buf { int x; };
3679FILE * (*rcsopen) (struct buf *, struct stat *, int);
3680static char *e (p, i)
3681 char **p;
3682 int i;
3683{
3684 return p[i];
3685}
3686static char *f (char * (*g) (char **, int), char **p, ...)
3687{
3688 char *s;
3689 va_list v;
3690 va_start (v,p);
3691 s = g (p, va_arg (v,int));
3692 va_end (v);
3693 return s;
3694}
3695
3696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3697 function prototypes and stuff, but not '\xHH' hex character constants.
3698 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3699 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3701 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3702 that's true only with -std1. */
1c710c3c
DJ
3703int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3704
3705int test (int i, double x);
3706struct s1 {int (*f) (int a);};
3707struct s2 {int (*f) (double a);};
3708int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3709int argc;
3710char **argv;
3711int
3712main ()
3713{
3714return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3715 ;
3716 return 0;
3717}
3718_ACEOF
2aeb72e9
DD
3719# Don't try gcc -ansi; that turns off useful extensions and
3720# breaks some systems' header files.
3721# AIX -qlanglvl=ansi
3722# Ultrix and OSF/1 -std1
3723# HP-UX 10.20 and later -Ae
3724# HP-UX older versions -Aa -D_HPUX_SOURCE
3725# SVR4 -Xc -D__EXTENSIONS__
3726for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3727do
3728 CC="$ac_save_CC $ac_arg"
3729 rm -f conftest.$ac_objext
2aeb72e9
DD
3730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3732 ac_status=$?
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3737 (exit $ac_status); } &&
3738 { ac_try='test -z "$ac_c_werror_flag"
3739 || test ! -s conftest.err'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_cv_prog_cc_stdc=$ac_arg
3752break
1c710c3c
DJ
3753else
3754 echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757fi
2aeb72e9 3758rm -f conftest.err conftest.$ac_objext
1c710c3c 3759done
2aeb72e9 3760rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3761CC=$ac_save_CC
3762
3763fi
2aeb72e9
DD
3764
3765case "x$ac_cv_prog_cc_stdc" in
3766 x|xno)
3767 echo "$as_me:$LINENO: result: none needed" >&5
3768echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3769 *)
2aeb72e9
DD
3770 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3771echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3772 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3773esac
3774
2aeb72e9
DD
3775# Some people use a C++ compiler to compile C. Since we use `exit',
3776# in C++ we need to declare it. In case someone uses the same compiler
3777# for both compiling C and C++ we need to have the C++ compiler decide
3778# the declaration of exit, since it's the most demanding environment.
3779cat >conftest.$ac_ext <<_ACEOF
3780#ifndef __cplusplus
3781 choke me
3782#endif
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 for ac_declaration in \
3807 '' \
3808 'extern "C" void std::exit (int) throw (); using std::exit;' \
3809 'extern "C" void std::exit (int); using std::exit;' \
3810 'extern "C" void exit (int) throw ();' \
3811 'extern "C" void exit (int);' \
3812 'void exit (int);'
3813do
3814 cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
3820$ac_declaration
3821#include <stdlib.h>
3822int
3823main ()
3824{
3825exit (42);
3826 ;
3827 return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext
3831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 :
3853else
3854 echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857continue
3858fi
3859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860 cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h. */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h. */
3866$ac_declaration
3867int
3868main ()
3869{
3870exit (42);
3871 ;
3872 return 0;
3873}
3874_ACEOF
3875rm -f conftest.$ac_objext
3876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } &&
3884 { ac_try='test -z "$ac_c_werror_flag"
3885 || test ! -s conftest.err'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887 (eval $ac_try) 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; } &&
3891 { ac_try='test -s conftest.$ac_objext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 break
3898else
3899 echo "$as_me: failed program was:" >&5
3900sed 's/^/| /' conftest.$ac_ext >&5
3901
3902fi
3903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3904done
3905rm -f conftest*
3906if test -n "$ac_declaration"; then
3907 echo '#ifdef __cplusplus' >>confdefs.h
3908 echo $ac_declaration >>confdefs.h
3909 echo '#endif' >>confdefs.h
3910fi
3911
3912else
3913 echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916fi
3917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3918ac_ext=c
3919ac_cpp='$CPP $CPPFLAGS'
3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923
3924ac_ext=cc
3925ac_cpp='$CXXCPP $CPPFLAGS'
3926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3929if test -n "$ac_tool_prefix"; then
3930 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3931 do
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934echo "$as_me:$LINENO: checking for $ac_word" >&5
3935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3936if test "${ac_cv_prog_CXX+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 if test -n "$CXX"; then
3940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3941else
3942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943for as_dir in $PATH
3944do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3952 fi
3953done
3954done
55ffb5ed 3955
c3a86da9
DJ
3956fi
3957fi
3958CXX=$ac_cv_prog_CXX
3959if test -n "$CXX"; then
2aeb72e9
DD
3960 echo "$as_me:$LINENO: result: $CXX" >&5
3961echo "${ECHO_T}$CXX" >&6
c3a86da9 3962else
2aeb72e9
DD
3963 echo "$as_me:$LINENO: result: no" >&5
3964echo "${ECHO_T}no" >&6
c3a86da9
DJ
3965fi
3966
3967 test -n "$CXX" && break
3968 done
3969fi
3970if test -z "$CXX"; then
3971 ac_ct_CXX=$CXX
2aeb72e9 3972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3973do
3974 # Extract the first word of "$ac_prog", so it can be a program name with args.
3975set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3976echo "$as_me:$LINENO: checking for $ac_word" >&5
3977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3978if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981 if test -n "$ac_ct_CXX"; then
3982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3991 ac_cv_prog_ac_ct_CXX="$ac_prog"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995done
3996done
3997
3998fi
3999fi
4000ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4001if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
4002 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4003echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 4004else
2aeb72e9
DD
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
c3a86da9
DJ
4007fi
4008
4009 test -n "$ac_ct_CXX" && break
4010done
2aeb72e9 4011test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 4012
2aeb72e9 4013 CXX=$ac_ct_CXX
c3a86da9
DJ
4014fi
4015
2aeb72e9 4016
c3a86da9 4017# Provide some information about the compiler.
2aeb72e9
DD
4018echo "$as_me:$LINENO:" \
4019 "checking for C++ compiler version" >&5
c3a86da9 4020ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
4021{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4022 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }
2aeb72e9
DD
4026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4027 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
2aeb72e9
DD
4031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4032 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }
4036
2aeb72e9
DD
4037echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4038echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
4039if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048
4049int
4050main ()
4051{
4052#ifndef __GNUC__
4053 choke me
4054#endif
4055
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext
2aeb72e9
DD
4061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4062 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4068 (exit $ac_status); } &&
4069 { ac_try='test -z "$ac_cxx_werror_flag"
4070 || test ! -s conftest.err'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 (eval $ac_try) 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
c3a86da9
DJ
4082 ac_compiler_gnu=yes
4083else
4084 echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
2aeb72e9 4087ac_compiler_gnu=no
c3a86da9 4088fi
2aeb72e9 4089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4090ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4091
4092fi
2aeb72e9
DD
4093echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4094echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
4095GXX=`test $ac_compiler_gnu = yes && echo yes`
4096ac_test_CXXFLAGS=${CXXFLAGS+set}
4097ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
4098CXXFLAGS="-g"
4099echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4100echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
4101if test "${ac_cv_prog_cxx_g+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
2aeb72e9 4104 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110
4111int
4112main ()
4113{
4114
4115 ;
4116 return 0;
4117}
4118_ACEOF
4119rm -f conftest.$ac_objext
2aeb72e9
DD
4120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_cxx_werror_flag"
4129 || test ! -s conftest.err'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 (eval $ac_try) 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 (eval $ac_try) 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; }; then
c3a86da9
DJ
4141 ac_cv_prog_cxx_g=yes
4142else
4143 echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
2aeb72e9
DD
4146ac_cv_prog_cxx_g=no
4147fi
4148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149fi
4150echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4151echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4152if test "$ac_test_CXXFLAGS" = set; then
4153 CXXFLAGS=$ac_save_CXXFLAGS
4154elif test $ac_cv_prog_cxx_g = yes; then
4155 if test "$GXX" = yes; then
4156 CXXFLAGS="-g -O2"
4157 else
4158 CXXFLAGS="-g"
4159 fi
4160else
4161 if test "$GXX" = yes; then
4162 CXXFLAGS="-O2"
4163 else
4164 CXXFLAGS=
4165 fi
4166fi
4167for ac_declaration in \
4168 '' \
4169 'extern "C" void std::exit (int) throw (); using std::exit;' \
4170 'extern "C" void std::exit (int); using std::exit;' \
4171 'extern "C" void exit (int) throw ();' \
4172 'extern "C" void exit (int);' \
4173 'void exit (int);'
4174do
4175 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4176/* confdefs.h. */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h. */
2aeb72e9
DD
4181$ac_declaration
4182#include <stdlib.h>
c3a86da9
DJ
4183int
4184main ()
4185{
2aeb72e9 4186exit (42);
c3a86da9
DJ
4187 ;
4188 return 0;
4189}
4190_ACEOF
4191rm -f conftest.$ac_objext
2aeb72e9
DD
4192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4199 (exit $ac_status); } &&
4200 { ac_try='test -z "$ac_cxx_werror_flag"
4201 || test ! -s conftest.err'
4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
c3a86da9
DJ
4213 :
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4217
2aeb72e9
DD
4218continue
4219fi
4220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4222/* confdefs.h. */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h. */
2aeb72e9 4227$ac_declaration
c3a86da9
DJ
4228int
4229main ()
4230{
2aeb72e9 4231exit (42);
c3a86da9
DJ
4232 ;
4233 return 0;
4234}
4235_ACEOF
4236rm -f conftest.$ac_objext
2aeb72e9
DD
4237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4244 (exit $ac_status); } &&
4245 { ac_try='test -z "$ac_cxx_werror_flag"
4246 || test ! -s conftest.err'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 (eval $ac_try) 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; } &&
4252 { ac_try='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 break
c3a86da9
DJ
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
11a67599 4263fi
2aeb72e9
DD
4264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265done
4266rm -f conftest*
4267if test -n "$ac_declaration"; then
4268 echo '#ifdef __cplusplus' >>confdefs.h
4269 echo $ac_declaration >>confdefs.h
4270 echo '#endif' >>confdefs.h
c3a86da9
DJ
4271fi
4272
4273ac_ext=c
4274ac_cpp='$CPP $CPPFLAGS'
4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279
4280# We must set the default linker to the linker used by gcc for the correct
4281# operation of libtool. If LD is not defined and we are using gcc, try to
4282# set the LD default to the ld used by gcc.
4283if test -z "$LD"; then
4284 if test "$GCC" = yes; then
4285 case $build in
4286 *-*-mingw*)
4287 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4288 *)
4289 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4290 esac
4291 case $gcc_prog_ld in
4292 # Accept absolute paths.
4293 [\\/]* | [A-Za-z]:[\\/]*)
4294 LD="$gcc_prog_ld" ;;
4295 esac
4296 fi
23f6b2f9
PB
4297fi
4298
23f6b2f9
PB
4299
4300
55ffb5ed 4301
1c710c3c
DJ
4302if test -n "$ac_tool_prefix"; then
4303 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4304set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4305echo "$as_me:$LINENO: checking for $ac_word" >&5
4306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4307if test "${ac_cv_prog_GNATBIND+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4309else
4310 if test -n "$GNATBIND"; then
4311 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4312else
1c710c3c
DJ
4313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314for as_dir in $PATH
4315do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4320 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324done
4325done
4326
55ffb5ed
NN
4327fi
4328fi
1c710c3c 4329GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4330if test -n "$GNATBIND"; then
2aeb72e9
DD
4331 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4332echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4333else
2aeb72e9
DD
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
55ffb5ed
NN
4336fi
4337
1c710c3c 4338fi
55ffb5ed 4339if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4340 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4341 # Extract the first word of "gnatbind", so it can be a program name with args.
4342set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4343echo "$as_me:$LINENO: checking for $ac_word" >&5
4344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4345if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4347else
1c710c3c
DJ
4348 if test -n "$ac_ct_GNATBIND"; then
4349 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4350else
1c710c3c
DJ
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4358 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362done
4363done
4364
2aeb72e9 4365 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4366fi
4367fi
1c710c3c
DJ
4368ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4369if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4370 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4371echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4372else
2aeb72e9
DD
4373 echo "$as_me:$LINENO: result: no" >&5
4374echo "${ECHO_T}no" >&6
55ffb5ed
NN
4375fi
4376
2aeb72e9 4377 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4378else
1c710c3c 4379 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4380fi
4381
1c710c3c
DJ
4382if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4384set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4385echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4387if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4389else
4390 if test -n "$GNATMAKE"; then
4391 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4392else
1c710c3c
DJ
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4400 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404done
4405done
4406
5305be7e
RG
4407fi
4408fi
1c710c3c 4409GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4410if test -n "$GNATMAKE"; then
2aeb72e9
DD
4411 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4412echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4413else
2aeb72e9
DD
4414 echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6
5305be7e
RG
4416fi
4417
1c710c3c 4418fi
5305be7e 4419if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4420 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4421 # Extract the first word of "gnatmake", so it can be a program name with args.
4422set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4423echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4425if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4427else
1c710c3c
DJ
4428 if test -n "$ac_ct_GNATMAKE"; then
4429 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4430else
1c710c3c
DJ
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4438 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
4443done
4444
2aeb72e9 4445 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4446fi
4447fi
1c710c3c
DJ
4448ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4449if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4450 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4451echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4452else
2aeb72e9
DD
4453 echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6
5305be7e
RG
4455fi
4456
2aeb72e9 4457 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4458else
1c710c3c 4459 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4460fi
4461
2aeb72e9
DD
4462echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4463echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4464if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4466else
4467 cat >conftest.adb <<EOF
4468procedure conftest is begin null; end conftest;
4469EOF
4470acx_cv_cc_gcc_supports_ada=no
4471# There is a bug in old released versions of GCC which causes the
4472# driver to exit successfully when the appropriate language module
4473# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4474# Therefore we must check for the error message as well as an
4475# unsuccessful exit.
1db673ca
RO
4476# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4477# given a .adb file, but produce no object file. So we must check
4478# if an object file was really produced to guard against this.
55ffb5ed 4479errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4480if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4481 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4482fi
4483rm -f conftest.*
4484fi
2aeb72e9
DD
4485echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4486echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4487
5305be7e 4488if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4489 have_gnat=yes
4490else
4491 have_gnat=no
4492fi
4493
2aeb72e9
DD
4494echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4495echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4496if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4498else
4499 echo abfoo >t1
4500 echo cdfoo >t2
4501 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4502 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4503 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4504 :
4505 else
4506 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4507 fi
4508 fi
a76494aa
PB
4509 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4510 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4511 :
a76494aa
PB
4512 else
4513 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4514 fi
4515 fi
4516 rm t1 t2
4517
4518fi
2aeb72e9
DD
4519echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4520echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4521do_compare="$gcc_cv_prog_cmp_skip"
4522
4523
55ffb5ed 4524
00020c16
ILT
4525# See if we are building gcc with C++.
4526# Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
4527if test "${enable_build_with_cxx+set}" = set; then
4528 enableval="$enable_build_with_cxx"
4529 ENABLE_BUILD_WITH_CXX=$enableval
4530else
4531 ENABLE_BUILD_WITH_CXX=no
4532fi;
4533
acd26225 4534# Check for GMP, MPFR and MPC
e69bf64b 4535gmplibs="-lmpfr -lgmp"
6de9cd9a 4536gmpinc=
e69bf64b 4537have_gmp=no
5f4a82c0 4538mpclibs=-lmpc
acd26225
KG
4539mpcinc=
4540have_mpc=no
4541
4542# Specify a location for mpc
4543# check for this first so it ends up on the link line before mpfr.
4544
4545# Check whether --with-mpc or --without-mpc was given.
4546if test "${with_mpc+set}" = set; then
4547 withval="$with_mpc"
4548
4549fi;
4550
4551# Check whether --with-mpc_include or --without-mpc_include was given.
4552if test "${with_mpc_include+set}" = set; then
4553 withval="$with_mpc_include"
4554
4555fi;
4556
4557# Check whether --with-mpc_lib or --without-mpc_lib was given.
4558if test "${with_mpc_lib+set}" = set; then
4559 withval="$with_mpc_lib"
4560
4561fi;
4562
4563if test "x$with_mpc" != x; then
4564 mpclibs="-L$with_mpc/lib -lmpc"
4565 mpcinc="-I$with_mpc/include $mpcinc"
4566fi
4567if test "x$with_mpc_include" != x; then
4568 mpcinc="-I$with_mpc_include $mpcinc"
4569fi
4570if test "x$with_mpc_lib" != x; then
4571 mpclibs="-L$with_mpc_lib -lmpc"
4572fi
4573if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4574 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4575 mpcinc='-I$$s/mpc/src '"$mpcinc"
4576 # Do not test the mpc version. Assume that it is sufficient, since
4577 # it is in the source tree, and the library has not been built yet
4578 # but it would be included on the link line in the version check below
4579 # hence making the test fail.
4580 have_mpc=yes
4581fi
e69bf64b 4582
bebf829d
PB
4583# Specify a location for mpfr
4584# check for this first so it ends up on the link line before gmp.
1c710c3c 4585
2aeb72e9 4586# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4587if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4588 withval="$with_mpfr_dir"
4589 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4590Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4591echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4592Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4593 { (exit 1); exit 1; }; }
2aeb72e9 4594fi;
bebf829d
PB
4595
4596
2aeb72e9 4597# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4598if test "${with_mpfr+set}" = set; then
2aeb72e9 4599 withval="$with_mpfr"
1c710c3c 4600
2aeb72e9 4601fi;
bebf829d 4602
2aeb72e9 4603# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4604if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4605 withval="$with_mpfr_include"
1c710c3c 4606
2aeb72e9 4607fi;
8a877c9c 4608
2aeb72e9 4609# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4610if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4611 withval="$with_mpfr_lib"
8a877c9c 4612
2aeb72e9 4613fi;
bebf829d
PB
4614
4615if test "x$with_mpfr" != x; then
4616 gmplibs="-L$with_mpfr/lib $gmplibs"
4617 gmpinc="-I$with_mpfr/include"
4618fi
8a877c9c
KG
4619if test "x$with_mpfr_include" != x; then
4620 gmpinc="-I$with_mpfr_include"
4621fi
4622if test "x$with_mpfr_lib" != x; then
4623 gmplibs="-L$with_mpfr_lib $gmplibs"
4624fi
e69bf64b
PB
4625if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4626 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4627 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
acd26225 4628 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
e69bf64b
PB
4629 # Do not test the mpfr version. Assume that it is sufficient, since
4630 # it is in the source tree, and the library has not been built yet
4631 # but it would be included on the link line in the version check below
4632 # hence making the test fail.
4633 have_gmp=yes
4634fi
bebf829d 4635
6de9cd9a 4636# Specify a location for gmp
1c710c3c 4637
2aeb72e9 4638# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4639if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4640 withval="$with_gmp_dir"
4641 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4642Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4643echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4644Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4645 { (exit 1); exit 1; }; }
2aeb72e9 4646fi;
6de9cd9a 4647
6de9cd9a 4648
2aeb72e9 4649# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4650if test "${with_gmp+set}" = set; then
2aeb72e9 4651 withval="$with_gmp"
1c710c3c 4652
2aeb72e9 4653fi;
6de9cd9a 4654
2aeb72e9 4655# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4656if test "${with_gmp_include+set}" = set; then
2aeb72e9 4657 withval="$with_gmp_include"
1c710c3c 4658
2aeb72e9 4659fi;
8a877c9c 4660
2aeb72e9 4661# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4662if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4663 withval="$with_gmp_lib"
8a877c9c 4664
2aeb72e9 4665fi;
8a877c9c 4666
6de9cd9a 4667
bebf829d
PB
4668if test "x$with_gmp" != x; then
4669 gmplibs="-L$with_gmp/lib $gmplibs"
4670 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4671fi
8a877c9c
KG
4672if test "x$with_gmp_include" != x; then
4673 gmpinc="-I$with_gmp_include $gmpinc"
4674fi
4675if test "x$with_gmp_lib" != x; then
4676 gmplibs="-L$with_gmp_lib $gmplibs"
4677fi
e69bf64b
PB
4678if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4679 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4680 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9e3eba15 4681 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
acd26225 4682 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
4683 # Do not test the gmp version. Assume that it is sufficient, since
4684 # it is in the source tree, and the library has not been built yet
4685 # but it would be included on the link line in the version check below
4686 # hence making the test fail.
4687 have_gmp=yes
4688fi
6de9cd9a 4689
d943d7c4 4690if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4691 have_gmp=yes
4692 saved_CFLAGS="$CFLAGS"
4693 CFLAGS="$CFLAGS $gmpinc"
4694 # Check GMP actually works
2aeb72e9
DD
4695 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4696echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4697
4698cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
6de9cd9a 4704#include "gmp.h"
1c710c3c
DJ
4705int
4706main ()
4707{
6de9cd9a 4708
a3337ea2 4709 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
e69bf64b
PB
4710 choke me
4711 #endif
1c710c3c
DJ
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
4717rm -f conftest.$ac_objext
2aeb72e9
DD
4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 echo "$as_me:$LINENO: result: yes" >&5
4740echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4741else
4742 echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
2aeb72e9
DD
4745echo "$as_me:$LINENO: result: no" >&5
4746echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4747fi
2aeb72e9 4748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4749
acd26225 4750 # If we have GMP, check the MPFR version.
e69bf64b 4751 if test x"$have_gmp" = xyes; then
2aeb72e9
DD
4752 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4753echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4754 cat >conftest.$ac_ext <<_ACEOF
4755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
70ec446f 4760#include <gmp.h>
e69bf64b 4761 #include <mpfr.h>
1c710c3c
DJ
4762int
4763main ()
4764{
e48d66a9 4765
a3337ea2 4766 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
4767 choke me
4768 #endif
1c710c3c
DJ
4769
4770 ;
4771 return 0;
4772}
4773_ACEOF
acd26225
KG
4774rm -f conftest.$ac_objext
4775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4777 ac_status=$?
4778 grep -v '^ *+' conftest.er1 >conftest.err
4779 rm -f conftest.er1
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4782 (exit $ac_status); } &&
4783 { ac_try='test -z "$ac_c_werror_flag"
4784 || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
acd26225 4790 { ac_try='test -s conftest.$ac_objext'
2aeb72e9
DD
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
1c710c3c
DJ
4796 cat >conftest.$ac_ext <<_ACEOF
4797/* confdefs.h. */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h. */
a3993f33 4802#include <gmp.h>
e69bf64b 4803 #include <mpfr.h>
1c710c3c
DJ
4804int
4805main ()
4806{
a3993f33 4807
36c713e0 4808 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
4809 choke me
4810 #endif
acd26225
KG
4811
4812 ;
4813 return 0;
4814}
4815_ACEOF
4816rm -f conftest.$ac_objext
4817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>conftest.er1
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -z "$ac_c_werror_flag"
4826 || test ! -s conftest.err'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; } &&
4832 { ac_try='test -s conftest.$ac_objext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 echo "$as_me:$LINENO: result: yes" >&5
4839echo "${ECHO_T}yes" >&6
4840else
4841 echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4845echo "${ECHO_T}buggy but acceptable" >&6
4846fi
4847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848else
4849 echo "$as_me: failed program was:" >&5
4850sed 's/^/| /' conftest.$ac_ext >&5
4851
4852echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6; have_gmp=no
4854fi
4855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857
4858 # Check for the MPC header version.
4859 if test x"$have_mpc" != xyes ; then
4860 CFLAGS="$CFLAGS $mpcinc"
4861 echo "$as_me:$LINENO: checking for the correct version of mpc.h" >&5
4862echo $ECHO_N "checking for the correct version of mpc.h... $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864/* confdefs.h. */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
4868/* end confdefs.h. */
4869#include <mpc.h>
4870int
4871main ()
4872{
4873
4874 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
4875 choke me
4876 #endif
4877
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 echo "$as_me:$LINENO: result: yes" >&5
4905echo "${ECHO_T}yes" >&6; have_mpc=maybe
4906else
4907 echo "$as_me: failed program was:" >&5
4908sed 's/^/| /' conftest.$ac_ext >&5
4909
4910echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
4912fi
4913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914 fi
4915
4916 # Now check the MPFR library.
4917 if test x"$have_gmp" = xyes; then
4918 saved_LIBS="$LIBS"
4919 LIBS="$LIBS $gmplibs"
4920 echo "$as_me:$LINENO: checking for the correct version of the gmp/mpfr libraries" >&5
4921echo $ECHO_N "checking for the correct version of the gmp/mpfr libraries... $ECHO_C" >&6
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#include <gmp.h>
4929 #include <mpfr.h>
4930int
4931main ()
4932{
4933
4934 mpfr_t n;
4935 mpfr_t x;
4936 int t;
4937 mpfr_init (n);
4938 mpfr_init (x);
4939 mpfr_atan2 (n, n, x, GMP_RNDN);
4940 mpfr_erfc (n, x, GMP_RNDN);
4941 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4942
4943 ;
4944 return 0;
4945}
4946_ACEOF
4947rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4949 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4955 (exit $ac_status); } &&
4956 { ac_try='test -z "$ac_c_werror_flag"
4957 || test ! -s conftest.err'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959 (eval $ac_try) 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; } &&
4963 { ac_try='test -s conftest$ac_exeext'
4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4965 (eval $ac_try) 2>&5
4966 ac_status=$?
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4971else
4972 echo "$as_me: failed program was:" >&5
4973sed 's/^/| /' conftest.$ac_ext >&5
4974
acd26225
KG
4975echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4977fi
2aeb72e9 4978rm -f conftest.err conftest.$ac_objext \
1c710c3c 4979 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
4980 LIBS="$saved_LIBS"
4981 fi
4982
4983 if test x"$have_mpc" = xmaybe; then
4984 saved_LIBS="$LIBS"
4985 LIBS="$LIBS $mpclibs $gmplibs"
4986 echo "$as_me:$LINENO: checking for the correct version of the mpc library" >&5
4987echo $ECHO_N "checking for the correct version of the mpc library... $ECHO_C" >&6
4988 cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994#include <mpc.h>
4995int
4996main ()
4997{
4998
4999 mpc_t n;
5000 mpc_init2 (n, 53);
5001 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5002 mpc_sin (n, n, MPC_RNDNN);
5003 mpc_cos (n, n, MPC_RNDNN);
5004 mpc_tan (n, n, MPC_RNDNN);
5005 mpc_sinh (n, n, MPC_RNDNN);
5006 mpc_cosh (n, n, MPC_RNDNN);
5007 mpc_tanh (n, n, MPC_RNDNN);
5008 mpc_exp (n, n, MPC_RNDNN);
5009 mpc_log (n, n, MPC_RNDNN);
5010 mpc_sqrt (n, n, MPC_RNDNN);
5011 mpc_proj (n, n, MPC_RNDNN);
5012 mpc_neg (n, n, MPC_RNDNN);
5013 mpc_sqr (n, n, MPC_RNDNN);
5014 mpc_clear (n);
5015
5016 ;
5017 return 0;
5018}
5019_ACEOF
5020rm -f conftest.$ac_objext conftest$ac_exeext
5021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>conftest.er1
5023 ac_status=$?
5024 grep -v '^ *+' conftest.er1 >conftest.err
5025 rm -f conftest.er1
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try='test -s conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6; have_mpc=yes
1c710c3c
DJ
5044else
5045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
2aeb72e9 5048echo "$as_me:$LINENO: result: no" >&5
acd26225 5049echo "${ECHO_T}no" >&6; have_mpc=no; mpclibs= ; mpcinc=
1c710c3c 5050fi
2aeb72e9 5051rm -f conftest.err conftest.$ac_objext \
1c710c3c 5052 conftest$ac_exeext conftest.$ac_ext
acd26225 5053 LIBS="$saved_LIBS"
e69bf64b 5054 fi
acd26225 5055
e69bf64b 5056 CFLAGS="$saved_CFLAGS"
6de9cd9a 5057
e69bf64b 5058 if test x$have_gmp != xyes; then
a3337ea2 5059 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
1c710c3c
DJ
5060Try the --with-gmp and/or --with-mpfr options to specify their locations.
5061Copies of these libraries' source code can be found at their respective
5062hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5063See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5064If you obtained GMP and/or MPFR from a vendor distribution package, make
5065sure that you have installed both the libraries and the header files.
5066They may be located in separate packages." >&5
a3337ea2 5067echo "$as_me: error: Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
ca558912
KG
5068Try the --with-gmp and/or --with-mpfr options to specify their locations.
5069Copies of these libraries' source code can be found at their respective
5070hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
5071See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5072If you obtained GMP and/or MPFR from a vendor distribution package, make
5073sure that you have installed both the libraries and the header files.
1c710c3c
DJ
5074They may be located in separate packages." >&2;}
5075 { (exit 1); exit 1; }; }
e69bf64b 5076 fi
70ec446f
KG
5077fi
5078
5f4a82c0
KG
5079if test x$have_mpc != xyes ; then
5080 mpcinc=
5081 mpclibs=
5082fi
5083
acd26225
KG
5084gmpinc="$mpcinc $gmpinc"
5085gmplibs="$mpclibs $gmplibs"
5086
5087# Flags needed for both GMP, MPFR and/or MPC.
5088
5089
6de9cd9a
DN
5090
5091
5092
9e3eba15 5093
f38095f3
JM
5094# Allow host libstdc++ to be specified for static linking with PPL.
5095
5096# Check whether --with-host-libstdcxx or --without-host-libstdcxx was given.
5097if test "${with_host_libstdcxx+set}" = set; then
5098 withval="$with_host_libstdcxx"
5099
5100fi;
5101
5102case $with_host_libstdcxx in
5103 no|yes)
5104 { { echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
5105echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
5106 { (exit 1); exit 1; }; }
5107 ;;
5108esac
f8bf9252 5109
00020c16
ILT
5110# Linker flags to use for stage1 or when not boostrapping.
5111
5112# Check whether --with-stage1-ldflags or --without-stage1-ldflags was given.
5113if test "${with_stage1_ldflags+set}" = set; then
5114 withval="$with_stage1_ldflags"
5115 if test "$withval" = "no" -o "$withval" = "yes"; then
5116 stage1_ldflags=
5117 else
5118 stage1_ldflags=$withval
5119 fi
5120else
5121 stage1_ldflags=
5122fi;
5123
5124
5125# Libraries to use for stage1 or when not bootstrapping.
5126
5127# Check whether --with-stage1-libs or --without-stage1-libs was given.
5128if test "${with_stage1_libs+set}" = set; then
5129 withval="$with_stage1_libs"
5130 if test "$withval" = "no" -o "$withval" = "yes"; then
5131 stage1_libs=
5132 else
5133 stage1_libs=$withval
5134 fi
5135else
5136 stage1_libs=$with_host_libstdcxx
5137fi;
5138
5139
5140# Linker flags to use for stage2 and later builds.
5141
5142# Check whether --with-boot-ldflags or --without-boot-ldflags was given.
5143if test "${with_boot_ldflags+set}" = set; then
5144 withval="$with_boot_ldflags"
5145 if test "$withval" = "no" -o "$withval" = "yes"; then
5146 poststage1_ldflags=
5147 else
5148 poststage1_ldflags=$withval
5149 fi
5150else
5151 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5152 poststage1_ldflags=-static-libstdc++
5153 else
5154 poststage1_ldflags=
5155 fi
5156fi;
5157
5158
5159# Libraries to use for stage2 and later builds. This defaults to the
5160# argument passed to --with-host-libstdcxx.
5161
5162# Check whether --with-boot-libs or --without-boot-libs was given.
5163if test "${with_boot_libs+set}" = set; then
5164 withval="$with_boot_libs"
e90e6bd7
ILT
5165 if test "$withval" = "no" -o "$withval" = "yes"; then
5166 poststage1_libs=
5167 else
5168 poststage1_libs=$withval
5169 fi
5170else
00020c16
ILT
5171 poststage1_libs=$with_host_libstdcxx
5172fi;
5173
5174
f8bf9252
SP
5175# Check for PPL
5176ppl_major_version=0
5177ppl_minor_version=10
00020c16 5178ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5179pplinc=
5180
5181
5182# Check whether --with-ppl or --without-ppl was given.
5183if test "${with_ppl+set}" = set; then
5184 withval="$with_ppl"
5185
0b70eafd
DK
5186else
5187 with_ppl=no
f8bf9252
SP
5188fi;
5189
5190# Check whether --with-ppl_include or --without-ppl_include was given.
5191if test "${with_ppl_include+set}" = set; then
5192 withval="$with_ppl_include"
5193
5194fi;
5195
5196# Check whether --with-ppl_lib or --without-ppl_lib was given.
5197if test "${with_ppl_lib+set}" = set; then
5198 withval="$with_ppl_lib"
5199
5200fi;
5201
53095c56
SP
5202case $with_ppl in
5203 no)
5204 ppllibs=
5205 ;;
5206 *)
00020c16 5207 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56
SP
5208 pplinc="-I$with_ppl/include $pplinc"
5209 LIBS="$ppllibs $LIBS"
5210 ;;
5211esac
f8bf9252
SP
5212if test "x$with_ppl_include" != x; then
5213 pplinc="-I$with_ppl_include $pplinc"
5214fi
5215if test "x$with_ppl_lib" != x; then
00020c16 5216 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5217 LIBS="$ppllibs $LIBS"
5218fi
5219if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
00020c16 5220 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
f8bf9252
SP
5221 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5222 LIBS="$ppllibs $LIBS"
5223fi
5224
d789184e
SP
5225# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
5226if test "${enable_ppl_version_check+set}" = set; then
5227 enableval="$enable_ppl_version_check"
5228 ENABLE_PPL_CHECK=$enableval
5229else
5230 ENABLE_PPL_CHECK=yes
f8bf9252
SP
5231fi;
5232
d789184e
SP
5233if test "${ENABLE_PPL_CHECK}" = "yes"; then
5234 saved_CFLAGS="$CFLAGS"
5235 CFLAGS="$CFLAGS $pplinc $gmpinc"
5236 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
f8bf9252 5237echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
d789184e 5238 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
5244#include "ppl_c.h"
5245int
5246main ()
5247{
5248
d789184e
SP
5249 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5250 choke me
5251 #endif
f8bf9252
SP
5252
5253 ;
5254 return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
5281else
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285echo "$as_me:$LINENO: result: no" >&5
d789184e 5286echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
f8bf9252
SP
5287fi
5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5289 CFLAGS="$saved_CFLAGS"
5290fi
5291
5292# Flags needed for PPL
5293
5294
f8bf9252 5295
f8bf9252 5296
d789184e 5297# Check for CLOOG
23d9794a 5298clooglibs=" -lcloog "
d789184e
SP
5299clooginc=" -DCLOOG_PPL_BACKEND "
5300
5301
5302# Check whether --with-cloog or --without-cloog was given.
5303if test "${with_cloog+set}" = set; then
5304 withval="$with_cloog"
5305
0b70eafd
DK
5306else
5307 with_cloog=no
d789184e
SP
5308fi;
5309
5310# Check whether --with-cloog_include or --without-cloog_include was given.
5311if test "${with_cloog_include+set}" = set; then
5312 withval="$with_cloog_include"
5313
5314fi;
5315
5316# Check whether --with-cloog_lib or --without-cloog_lib was given.
5317if test "${with_cloog_lib+set}" = set; then
5318 withval="$with_cloog_lib"
5319
5320fi;
5321
53095c56
SP
5322case $with_cloog in
5323 no)
5324 clooglibs=
5325 clooginc=
5326 ;;
5327 *)
5328 clooglibs="-L$with_cloog/lib -lcloog"
5329 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5330 LIBS="$clooglibs $LIBS"
5331 ;;
5332esac
d789184e
SP
5333if test "x$with_cloog_include" != x; then
5334 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5335fi
5336if test "x$with_cloog_lib" != x; then
5337 clooglibs="-L$with_cloog_lib -lcloog"
5338 LIBS="$clooglibs $LIBS"
5339fi
5340if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5341 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5342 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5343 LIBS="$clooglibs $LIBS"
5344fi
5345
5346# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
5347if test "${enable_cloog_version_check+set}" = set; then
5348 enableval="$enable_cloog_version_check"
5349 ENABLE_CLOOG_CHECK=$enableval
5350else
5351 ENABLE_CLOOG_CHECK=yes
5352fi;
5353
5354if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5355 saved_CFLAGS="$CFLAGS"
5356 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5357 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
f8bf9252 5358echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
d789184e 5359 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
5360/* confdefs.h. */
5361_ACEOF
5362cat confdefs.h >>conftest.$ac_ext
5363cat >>conftest.$ac_ext <<_ACEOF
5364/* end confdefs.h. */
5365#include "cloog/cloog.h"
5366int
5367main ()
5368{
5369
d789184e
SP
5370 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5371 choke me
5372 #endif
f8bf9252
SP
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 echo "$as_me:$LINENO: result: yes" >&5
5401echo "${ECHO_T}yes" >&6
5402else
5403 echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5408fi
5409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5410 CFLAGS="$saved_CFLAGS"
5411fi
f8bf9252
SP
5412
5413# Flags needed for CLOOG
5414
5415
5416
5417
1e0f07d3 5418# By default, C is the only stage 1 language.
e1888513 5419stage1_languages=,c,
2805b53a 5420
00020c16
ILT
5421# Target libraries that we bootstrap.
5422bootstrap_target_libs=,target-libgcc,
5423
55ffb5ed
NN
5424# Figure out what language subdirectories are present.
5425# Look if the user specified --enable-languages="..."; if not, use
5426# the environment variable $LANGUAGES if defined. $LANGUAGES might
5427# go away some day.
5428# NB: embedded tabs in this IF block -- do not untabify
5429if test -d ${srcdir}/gcc; then
5430 if test x"${enable_languages+set}" != xset; then
5431 if test x"${LANGUAGES+set}" = xset; then
5432 enable_languages="${LANGUAGES}"
5433 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5434 else
5435 enable_languages=all
5436 fi
5437 else
5438 if test x"${enable_languages}" = x ||
5439 test x"${enable_languages}" = xyes;
5440 then
5441 echo configure.in: --enable-languages needs at least one language argument 1>&2
5442 exit 1
5443 fi
5444 fi
5445 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5446
7f26dfa3
FXC
5447 # 'f95' is the old name for the 'fortran' language. We issue a warning
5448 # and make the substitution.
5449 case ,${enable_languages}, in
5450 *,f95,*)
5451 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5452 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5453 ;;
5454 esac
5455
55ffb5ed
NN
5456 # First scan to see if an enabled language requires some other language.
5457 # We assume that a given config-lang.in will list all the language
5458 # front ends it requires, even if some are required indirectly.
5459 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5460 case ${lang_frag} in
5461 ..) ;;
5462 # The odd quoting in the next line works around
5463 # an apparent bug in bash 1.12 on linux.
5464 ${srcdir}/gcc/[*]/config-lang.in) ;;
5465 *)
5466 # From the config-lang.in, get $language, $lang_requires
5467 language=
5468 lang_requires=
5469 . ${lang_frag}
5470 for other in ${lang_requires} ; do
5471 case ,${enable_languages}, in
5472 *,$other,*) ;;
5473 *,all,*) ;;
5474 *,$language,*)
5475 echo " \`$other' language required by \`$language'; enabling" 1>&2
5476 enable_languages="${enable_languages},${other}"
5477 ;;
5478 esac
5479 done
5480 ;;
5481 esac
5482 done
5483
e1888513 5484 new_enable_languages=,c,
55ffb5ed 5485 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5486 potential_languages=,c,
55ffb5ed
NN
5487
5488 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5489 case ${lang_frag} in
5490 ..) ;;
5491 # The odd quoting in the next line works around
5492 # an apparent bug in bash 1.12 on linux.
5493 ${srcdir}/gcc/[*]/config-lang.in) ;;
5494 *)
1c710c3c 5495 # From the config-lang.in, get $language, $target_libs,
2805b53a 5496 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5497 language=
5498 target_libs=
5499 lang_dirs=
1546bb64 5500 subdir_requires=
e1888513
PB
5501 boot_language=no
5502 build_by_default=yes
55ffb5ed 5503 . ${lang_frag}
e1888513
PB
5504 if test x${language} = x; then
5505 echo "${lang_frag} doesn't set \$language." 1>&2
5506 exit 1
5507 fi
5508
00020c16
ILT
5509 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5510 boot_language=yes
5511 fi
5512
e1888513
PB
5513 case ,${enable_languages}, in
5514 *,${language},*)
55ffb5ed
NN
5515 # Language was explicitly selected; include it.
5516 add_this_lang=yes
5517 ;;
e1888513
PB
5518 *,all,*)
5519 # 'all' was selected, select it if it is a default language
5520 add_this_lang=${build_by_default}
55ffb5ed
NN
5521 ;;
5522 *)
5523 add_this_lang=no
5524 ;;
5525 esac
6de9cd9a 5526
1546bb64 5527 # Disable languages that need other directories if these aren't available.
95695ad3 5528 for i in $subdir_requires; do
b6348cb3 5529 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5530 case ,${enable_languages}, in
5531 *,${language},*)
5532 # Specifically requested language; tell them.
1c710c3c
DJ
5533 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5534echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5535 { (exit 1); exit 1; }; }
1546bb64
PB
5536 ;;
5537 *)
5538 # Silently disable.
e1888513 5539 add_this_lang=unsupported
1546bb64
PB
5540 ;;
5541 esac
5542 done
5543
e1888513
PB
5544 # Disable Ada if no preexisting GNAT is available.
5545 case ,${enable_languages},:${language}:${have_gnat} in
5546 *,${language},*:ada:no)
5547 # Specifically requested language; tell them.
1c710c3c
DJ
5548 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5549echo "$as_me: error: GNAT is required to build $language" >&2;}
5550 { (exit 1); exit 1; }; }
e1888513
PB
5551 ;;
5552 *:ada:no)
5553 # Silently disable.
5554 add_this_lang=unsupported
5555 ;;
5556 esac
5557
4fab7234
HPN
5558 # Disable a language that is unsupported by the target.
5559 case " $unsupported_languages " in
5560 *" $language "*)
e1888513 5561 add_this_lang=unsupported
4fab7234
HPN
5562 ;;
5563 esac
5564
6de9cd9a 5565 case $add_this_lang in
e1888513 5566 unsupported)
55ffb5ed 5567 # Remove language-dependent dirs.
2805b53a
NN
5568 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5569 ;;
e1888513
PB
5570 no)
5571 # Remove language-dependent dirs; still show language as supported.
5572 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5573 potential_languages="${potential_languages}${language},"
5574 ;;
5575 yes)
5576 new_enable_languages="${new_enable_languages}${language},"
5577 potential_languages="${potential_languages}${language},"
2805b53a
NN
5578 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5579 case ${boot_language} in
5580 yes)
340de83f 5581 # Add to (comma-separated) list of stage 1 languages.
e1888513 5582 stage1_languages="${stage1_languages}${language},"
00020c16
ILT
5583 # We need to bootstrap any supporting libraries.
5584 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
5585 ;;
5586 esac
5587 ;;
55ffb5ed
NN
5588 esac
5589 ;;
5590 esac
5591 done
5592
2aeb72e9 5593 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 5594if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
5595 enableval="$enable_stage1_languages"
5596 case ,${enable_stage1_languages}, in
e1888513
PB
5597 ,no,|,,)
5598 # Set it to something that will have no effect in the loop below
5599 enable_stage1_languages=c ;;
5600 ,yes,)
5601 enable_stage1_languages=`echo $new_enable_languages | \
5602 sed -e "s/^,//" -e "s/,$//" ` ;;
5603 *,all,*)
5604 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5605 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5606 esac
5607
5608 # Add "good" languages from enable_stage1_languages to stage1_languages,
5609 # while "bad" languages go in missing_languages. Leave no duplicates.
5610 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5611 case $potential_languages in
5612 *,$i,*)
5613 case $stage1_languages in
5614 *,$i,*) ;;
5615 *) stage1_languages="$stage1_languages$i," ;;
5616 esac ;;
5617 *)
5618 case $missing_languages in
5619 *,$i,*) ;;
5620 *) missing_languages="$missing_languages$i," ;;
5621 esac ;;
5622 esac
5623 done
2aeb72e9 5624fi;
e1888513
PB
5625
5626 # Remove leading/trailing commas that were added for simplicity
5627 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5628 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5629 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5630 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5631
55ffb5ed 5632 if test "x$missing_languages" != x; then
1c710c3c 5633 { { echo "$as_me:$LINENO: error:
0cf085e4 5634The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5635Supported languages are: ${potential_languages}" >&5
5636echo "$as_me: error:
5637The following requested languages could not be built: ${missing_languages}
5638Supported languages are: ${potential_languages}" >&2;}
5639 { (exit 1); exit 1; }; }
55ffb5ed 5640 fi
55ffb5ed
NN
5641 if test "x$new_enable_languages" != "x$enable_languages"; then
5642 echo The following languages will be built: ${new_enable_languages}
e1888513 5643 enable_languages="$new_enable_languages"
55ffb5ed 5644 fi
e1888513 5645
1c710c3c 5646
b2eaac4a 5647 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5648fi
5649
27079765
AH
5650# Handle --disable-<component> generically.
5651for dir in $configdirs $build_configdirs $target_configdirs ; do
5652 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5653 varname=`echo $dirname | sed -e s/+/_/g`
5654 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5655 noconfigdirs="$noconfigdirs $dir"
5656 fi
5657done
5658
7cd0cf9c 5659# Check for Boehm's garbage collector
2aeb72e9 5660# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 5661if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
5662 enableval="$enable_objc_gc"
5663 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5664 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5665 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5666echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5667 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5668 ;;
5669esac
2aeb72e9 5670fi;
7cd0cf9c
DA
5671
5672# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5673case ,${enable_languages},:${enable_objc_gc} in
5674 *,objc,*:yes)
7cd0cf9c
DA
5675 # Keep target-boehm-gc if requested for Objective-C.
5676 ;;
7cd0cf9c 5677 *)
2a79fd67
DA
5678 # Otherwise remove target-boehm-gc depending on target-libjava.
5679 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5680 noconfigdirs="$noconfigdirs target-boehm-gc"
5681 fi
7cd0cf9c
DA
5682 ;;
5683esac
5684
ee6a22df
L
5685# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5686# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5687# If we have the source for $noconfigdirs entries, add them to $notsupp.
5688
5689notsupp=""
5690for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5691 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5692 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5693 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5694 if test -r $srcdir/$dirname/configure ; then
5695 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5696 true
5697 else
5698 notsupp="$notsupp $dir"
5699 fi
5700 fi
5701 fi
ee6a22df
L
5702 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5703 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5704 if test -r $srcdir/$dirname/configure ; then
5705 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5706 true
5707 else
5708 notsupp="$notsupp $dir"
5709 fi
5710 fi
5711 fi
55ffb5ed
NN
5712 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5713 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5714 if test -r $srcdir/$dirname/configure ; then
5715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5716 true
5717 else
5718 notsupp="$notsupp $dir"
5719 fi
5720 fi
5721 fi
5722done
5723
5724# Sometimes the tools are distributed with libiberty but with no other
5725# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5726# Don't let libgcc imply libiberty either.
55ffb5ed 5727if test -n "${target_configdirs}" ; then
54fdc474 5728 libgcc=
55ffb5ed
NN
5729 others=
5730 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5731 if test "$i" = "libgcc"; then
5732 libgcc=target-libgcc
5733 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5734 if test -r $srcdir/$i/configure ; then
5735 others=yes;
5736 break;
5737 fi
5738 fi
5739 done
5740 if test -z "${others}" ; then
54fdc474 5741 target_configdirs=$libgcc
55ffb5ed
NN
5742 fi
5743fi
5744
5745# Quietly strip out all directories which aren't configurable in this tree.
5746# This relies on all configurable subdirectories being autoconfiscated, which
5747# is now the case.
23f6b2f9
PB
5748build_configdirs_all="$build_configdirs"
5749build_configdirs=
5750for i in ${build_configdirs_all} ; do
1c710c3c 5751 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5752 if test -f ${srcdir}/$j/configure ; then
5753 build_configdirs="${build_configdirs} $i"
5754 fi
5755done
5756
55ffb5ed
NN
5757configdirs_all="$configdirs"
5758configdirs=
5759for i in ${configdirs_all} ; do
5760 if test -f ${srcdir}/$i/configure ; then
5761 configdirs="${configdirs} $i"
5762 fi
5763done
23f6b2f9 5764
55ffb5ed
NN
5765target_configdirs_all="$target_configdirs"
5766target_configdirs=
5767for i in ${target_configdirs_all} ; do
1c710c3c 5768 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5769 if test -f ${srcdir}/$j/configure ; then
5770 target_configdirs="${target_configdirs} $i"
5771 fi
5772done
5773
5774# Produce a warning message for the subdirs we can't configure.
5775# This isn't especially interesting in the Cygnus tree, but in the individual
5776# FSF releases, it's important to let people know when their machine isn't
5777# supported by the one or two programs in a package.
5778
5779if test -n "${notsupp}" && test -z "${norecursion}" ; then
5780 # If $appdirs is non-empty, at least one of those directories must still
5781 # be configured, or we error out. (E.g., if the gas release supports a
5782 # specified target in some subdirs but not the gas subdir, we shouldn't
5783 # pretend that all is well.)
5784 if test -n "$appdirs" ; then
5785 for dir in $appdirs ; do
5786 if test -r $dir/Makefile.in ; then
5787 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5788 appdirs=""
5789 break
5790 fi
23f6b2f9 5791 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5792 appdirs=""
5793 break
5794 fi
5795 fi
5796 done
5797 if test -n "$appdirs" ; then
5798 echo "*** This configuration is not supported by this package." 1>&2
5799 exit 1
5800 fi
5801 fi
5802 # Okay, some application will build, or we don't care to check. Still
5803 # notify of subdirs not getting built.
5804 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5805 echo " ${notsupp}" 1>&2
5806 echo " (Any other directories should still work fine.)" 1>&2
5807fi
5808
5809case "$host" in
5810 *msdosdjgpp*)
5811 enable_gdbtk=no ;;
5812esac
5813
c3a86da9
DJ
5814# To find our prefix, in gcc_cv_tool_prefix.
5815
5816# The user is always right.
5817if test "${PATH_SEPARATOR+set}" != set; then
5818 echo "#! /bin/sh" >conf$$.sh
5819 echo "exit 0" >>conf$$.sh
5820 chmod +x conf$$.sh
5821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5822 PATH_SEPARATOR=';'
5823 else
5824 PATH_SEPARATOR=:
5825 fi
5826 rm -f conf$$.sh
5827fi
5828
5829
5830
5831if test "x$exec_prefix" = xNONE; then
5832 if test "x$prefix" = xNONE; then
5833 gcc_cv_tool_prefix=$ac_default_prefix
5834 else
5835 gcc_cv_tool_prefix=$prefix
5836 fi
5837else
5838 gcc_cv_tool_prefix=$exec_prefix
5839fi
5840
5841# If there is no compiler in the tree, use the PATH only. In any
5842# case, if there is no compiler in the tree nobody should use
5843# AS_FOR_TARGET and LD_FOR_TARGET.
5844if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5845 gcc_version=`cat $srcdir/gcc/BASE-VER`
5846 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5847 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5848 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5849 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5850 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5851 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5852else
5853 gcc_cv_tool_dirs=
5854fi
5855
5856if test x$build = x$target && test -n "$md_exec_prefix"; then
5857 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5858fi
5859
5860
5861
55ffb5ed
NN
5862copy_dirs=
5863
1c710c3c 5864
2aeb72e9 5865# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5866if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5867 withval="$with_build_sysroot"
5868 if test x"$withval" != x ; then
526635cb
MM
5869 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5870 fi
5871else
5872 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5873fi;
526635cb
MM
5874
5875
c8aea42c
PB
5876
5877# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5878if test "${with_debug_prefix_map+set}" = set; then
5879 withval="$with_debug_prefix_map"
5880 if test x"$withval" != x; then
5881 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5882 for debug_map in $withval; do
5883 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5884 done
5885 fi
5886else
5887 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5888fi;
5889
5890
1c8bd6a3
PB
5891# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5892# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5893# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5894# We want to ensure that TARGET libraries (which we know are built with
5895# gcc) are built with "-O2 -g", so include those options when setting
5896# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5897if test "x$CFLAGS_FOR_TARGET" = x; then
5898 CFLAGS_FOR_TARGET=$CFLAGS
5899 case " $CFLAGS " in
5900 *" -O2 "*) ;;
5901 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5902 esac
5903 case " $CFLAGS " in
5904 *" -g "* | *" -g3 "*) ;;
5905 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5906 esac
5907fi
5908
5909
5910if test "x$CXXFLAGS_FOR_TARGET" = x; then
5911 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5912 case " $CXXFLAGS " in
5913 *" -O2 "*) ;;
5914 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5915 esac
5916 case " $CXXFLAGS " in
5917 *" -g "* | *" -g3 "*) ;;
5918 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5919 esac
5920fi
5921
5922
55ffb5ed
NN
5923# Handle --with-headers=XXX. If the value is not "yes", the contents of
5924# the named directory are copied to $(tooldir)/sys-include.
5925if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5926 if test x${is_cross_compiler} = xno ; then
5927 echo 1>&2 '***' --with-headers is only supported when cross compiling
5928 exit 1
5929 fi
5930 if test x"${with_headers}" != xyes ; then
c3a86da9 5931 x=${gcc_cv_tool_prefix}
1c710c3c 5932 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5933 fi
5934fi
5935
5936# Handle --with-libs=XXX. If the value is not "yes", the contents of
5937# the name directories are copied to $(tooldir)/lib. Multiple directories
5938# are permitted.
5939if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5940 if test x${is_cross_compiler} = xno ; then
5941 echo 1>&2 '***' --with-libs is only supported when cross compiling
5942 exit 1
5943 fi
5944 if test x"${with_libs}" != xyes ; then
5945 # Copy the libraries in reverse order, so that files in the first named
5946 # library override files in subsequent libraries.
c3a86da9 5947 x=${gcc_cv_tool_prefix}
55ffb5ed 5948 for l in ${with_libs}; do
1c710c3c 5949 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5950 done
5951 fi
5952fi
5953
e8b05380
PB
5954# Set with_gnu_as and with_gnu_ld as appropriate.
5955#
5956# This is done by determining whether or not the appropriate directory
5957# is available, and by checking whether or not specific configurations
5958# have requested that this magic not happen.
1c710c3c
DJ
5959#
5960# The command line options always override the explicit settings in
e8b05380
PB
5961# configure.in, and the settings in configure.in override this magic.
5962#
1c710c3c 5963# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5964# want to do that, then you should use the --without-gnu-as and
5965# --without-gnu-ld options for the configure script.
5966
5967if test x${use_gnu_as} = x &&
5968 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5969 with_gnu_as=yes
5970 extra_host_args="$extra_host_args --with-gnu-as"
5971fi
5972
5973if test x${use_gnu_ld} = x &&
5afab7ad 5974 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
5975 with_gnu_ld=yes
5976 extra_host_args="$extra_host_args --with-gnu-ld"
5977fi
5978
5979# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5980# can detect this case.
5981
5982if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5983 with_newlib=yes
5984 extra_host_args="$extra_host_args --with-newlib"
5985fi
5986
55ffb5ed
NN
5987# Handle ${copy_dirs}
5988set fnord ${copy_dirs}
5989shift
5990while test $# != 0 ; do
5991 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5992 :
5993 else
5994 echo Copying $1 to $2
5995
5996 # Use the install script to create the directory and all required
5997 # parent directories.
5998 if test -d $2 ; then
5999 :
6000 else
6001 echo >config.temp
6002 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6003 fi
6004
6005 # Copy the directory, assuming we have tar.
6006 # FIXME: Should we use B in the second tar? Not all systems support it.
6007 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6008
6009 # It is the responsibility of the user to correctly adjust all
6010 # symlinks. If somebody can figure out how to handle them correctly
6011 # here, feel free to add the code.
6012
6013 echo $1 > $2/COPIED
6014 fi
6015 shift; shift
6016done
6017
e8b05380
PB
6018# Determine a target-dependent exec_prefix that the installed
6019# gcc will search in. Keep this list sorted by triplet, with
6020# the *-*-osname triplets last.
6021md_exec_prefix=
6022case "${target}" in
6023 alpha*-*-*vms*)
6024 md_exec_prefix=/gnu/lib/gcc-lib
6025 ;;
30b74385 6026 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6027 md_exec_prefix=/dev/env/DJDIR/bin
6028 ;;
30b74385 6029 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6030 if test $with_gnu_as = yes; then
6031 md_exec_prefix=/usr/gnu/bin
6032 else
6033 md_exec_prefix=/usr/ccs/bin/elf
6034 fi
6035 ;;
6036
6037 mn10300-*-* | \
6038 powerpc-*-chorusos* | \
6039 powerpc*-*-eabi* | \
6040 powerpc*-*-sysv* | \
6041 powerpc*-*-kaos* | \
6042 s390x-ibm-tpf*)
6043 md_exec_prefix=/usr/ccs/bin
6044 ;;
6045 sparc64-*-elf*)
6046 ;;
6047 v850*-*-*)
6048 md_exec_prefix=/usr/ccs/bin
6049 ;;
aa12a573 6050 xtensa*-*-elf*)
e8b05380
PB
6051 ;;
6052
6053 *-*-beos* | \
6054 *-*-elf* | \
6055 *-*-hpux* | \
6056 *-*-netware* | \
6057 *-*-nto-qnx* | \
6058 *-*-rtems* | \
6059 *-*-solaris2* | \
30b74385 6060 *-*-sysv[45]* | \
e8b05380
PB
6061 *-*-vxworks* | \
6062 *-wrs-windiss)
6063 md_exec_prefix=/usr/ccs/bin
6064 ;;
6065esac
6066
671aa708
NN
6067extra_arflags_for_target=
6068extra_nmflags_for_target=
6069extra_ranlibflags_for_target=
6070target_makefile_frag=/dev/null
6071case "${target}" in
3e19841a
PB
6072 mep*-*-*)
6073 target_makefile_frag="config/mt-mep"
6074 ;;
58e24147
AM
6075 spu-*-*)
6076 target_makefile_frag="config/mt-spu"
6077 ;;
4bf6c438
RS
6078 mips*-sde-elf*)
6079 target_makefile_frag="config/mt-sde"
6080 ;;
1ec3b87b
RS
6081 mipsisa*-*-elfoabi*)
6082 target_makefile_frag="config/mt-mips-elfoabi"
6083 ;;
08d0963a
RS
6084 mips*-*-*linux* | mips*-*-gnu*)
6085 target_makefile_frag="config/mt-mips-gnu"
6086 ;;
61fec9ff 6087 *-*-netware*)
671aa708
NN
6088 target_makefile_frag="config/mt-netware"
6089 ;;
416ac4d4 6090 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6091 target_makefile_frag="config/mt-gnu"
671aa708
NN
6092 ;;
6093 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6094 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6095 # commands to handle both 32-bit and 64-bit objects. These flags are
6096 # harmless if we're using GNU nm or ar.
6097 extra_arflags_for_target=" -X32_64"
6098 extra_nmflags_for_target=" -B -X32_64"
6099 ;;
6100 *-*-darwin*)
6101 # ranlib from Darwin requires the -c flag to look at common symbols.
6102 extra_ranlibflags_for_target=" -c"
6103 ;;
6104 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6105 target_makefile_frag="config/mt-wince"
6106 ;;
6107esac
6108
6109alphaieee_frag=/dev/null
6110case $target in
6111 alpha*-*-*)
6112 # This just makes sure to use the -mieee option to build target libs.
6113 # This should probably be set individually by each library.
6114 alphaieee_frag="config/mt-alphaieee"
6115 ;;
6116esac
6117
6118# If --enable-target-optspace always use -Os instead of -O2 to build
6119# the target libraries, similarly if it is not specified, use -Os
6120# on selected platforms.
6121ospace_frag=/dev/null
6122case "${enable_target_optspace}:${target}" in
6123 yes:*)
6124 ospace_frag="config/mt-ospace"
6125 ;;
6126 :d30v-*)
6127 ospace_frag="config/mt-d30v"
6128 ;;
6129 :m32r-* | :d10v-* | :fr30-*)
6130 ospace_frag="config/mt-ospace"
6131 ;;
6132 no:* | :*)
6133 ;;
6134 *)
6135 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6136 ;;
6137esac
6138
671aa708
NN
6139# Default to using --with-stabs for certain targets.
6140if test x${with_stabs} = x ; then
6141 case "${target}" in
89a95129 6142 mips*-*-irix[56]*)
671aa708
NN
6143 ;;
6144 mips*-*-* | alpha*-*-osf*)
6145 with_stabs=yes;
6146 extra_host_args="${extra_host_args} --with-stabs"
6147 ;;
6148 esac
6149fi
6150
6151# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6152# them automatically.
6153case "${host}" in
1c710c3c 6154 hppa*64*-*-hpux11*)
671aa708
NN
6155 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6156 ;;
6157esac
6158
671aa708
NN
6159# Some systems (e.g., one of the i386-aix systems the gas testers are
6160# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6161tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6162build_tooldir=${tooldir}
6163
671aa708
NN
6164# Create a .gdbinit file which runs the one in srcdir
6165# and tells GDB to look there for source files.
6166
6167if test -r ${srcdir}/.gdbinit ; then
6168 case ${srcdir} in
6169 .) ;;
6170 *) cat > ./.gdbinit <<EOF
6171# ${NO_EDIT}
6172dir ${srcdir}
6173dir .
6174source ${srcdir}/.gdbinit
6175EOF
6176 ;;
6177 esac
6178fi
6179
671aa708
NN
6180# Make sure that the compiler is able to generate an executable. If it
6181# can't, we are probably in trouble. We don't care whether we can run the
6182# executable--we might be using a cross compiler--we only care whether it
6183# can be created. At this point the main configure script has set CC.
6184we_are_ok=no
6185echo "int main () { return 0; }" > conftest.c
6186${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6187if test $? = 0 ; then
6188 if test -s conftest || test -s conftest.exe ; then
6189 we_are_ok=yes
6190 fi
1c710c3c 6191fi
671aa708
NN
6192case $we_are_ok in
6193 no)
6194 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6195 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6196 rm -f conftest*
6197 exit 1
6198 ;;
6199esac
6200rm -f conftest*
6201
6202# The Solaris /usr/ucb/cc compiler does not appear to work.
6203case "${host}" in
6204 sparc-sun-solaris2*)
6205 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6206 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6207 could_use=
6208 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6209 if test -d /opt/cygnus/bin ; then
6210 if test "$could_use" = "" ; then
6211 could_use="/opt/cygnus/bin"
6212 else
6213 could_use="$could_use or /opt/cygnus/bin"
6214 fi
6215 fi
6216 if test "$could_use" = "" ; then
6217 echo "Warning: compilation may fail because you're using"
6218 echo "/usr/ucb/cc. You should change your PATH or CC "
6219 echo "variable and rerun configure."
6220 else
6221 echo "Warning: compilation may fail because you're using"
6222 echo "/usr/ucb/cc, when you should use the C compiler from"
6223 echo "$could_use. You should change your"
6224 echo "PATH or CC variable and rerun configure."
6225 fi
6226 fi
6227 ;;
6228esac
6229
d89f0ad6 6230# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6231case "${host}" in
6232 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 6233 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6234 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6235 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6236esac
6237
d89f0ad6
AL
6238# On systems where the dynamic library environment variable is PATH,
6239# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6240# built executables to PATH.
6241if test "$RPATH_ENVVAR" = PATH; then
6242 GCC_SHLIB_SUBDIR=/shlib
6243else
6244 GCC_SHLIB_SUBDIR=
6245fi
6246
671aa708
NN
6247# Record target_configdirs and the configure arguments for target and
6248# build configuration in Makefile.
6249target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6250build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6251
671aa708
NN
6252# Determine whether gdb needs tk/tcl or not.
6253# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6254# and in that case we want gdb to be built without tk. Ugh!
6255# In fact I believe gdb is the *only* package directly dependent on tk,
6256# so we should be able to put the 'maybe's in unconditionally and
6257# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6258# 100% sure that that's safe though.
e914a571 6259
b4f96efe 6260gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6261case "$enable_gdbtk" in
6262 no)
6263 GDB_TK="" ;;
e914a571
AC
6264 yes)
6265 GDB_TK="${gdb_tk}" ;;
671aa708 6266 *)
e914a571
AC
6267 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6268 # distro. Eventually someone will fix this and move Insight, nee
6269 # gdbtk to a separate directory.
6270 if test -d ${srcdir}/gdb/gdbtk ; then
6271 GDB_TK="${gdb_tk}"
6272 else
6273 GDB_TK=""
6274 fi
6275 ;;
671aa708 6276esac
ef9db8d5
DJ
6277CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6278INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6279
60975492 6280# Strip out unwanted targets.
8b87bb96
NN
6281
6282# While at that, we remove Makefiles if we were started for recursive
6283# configuration, so that the top-level Makefile reconfigures them,
6284# like we used to do when configure itself was recursive.
8b87bb96 6285
60975492
PB
6286# Loop over modules. $extrasub must be used with care, limiting as
6287# much as possible the usage of range addresses. That's because autoconf
6288# splits the sed script to overcome limits in the number of commands,
6289# and relying on carefully-timed sed passes may turn out to be very hard
6290# to maintain later. In this particular case, you just have to be careful
6291# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6292
2aeb72e9 6293# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 6294if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
6295 enableval="$enable_bootstrap"
6296
f516a7da 6297else
ce521a9c 6298 enable_bootstrap=default
2aeb72e9 6299fi;
f516a7da 6300
ce521a9c
PB
6301# Issue errors and warnings for invalid/strange bootstrap combinations.
6302case "$configdirs" in
6303 *gcc*) have_compiler=yes ;;
6304 *) have_compiler=no ;;
6305esac
6306
6307case "$have_compiler:$host:$target:$enable_bootstrap" in
6308 *:*:*:no) ;;
6309
1ca26cd2 6310 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6311 # and we are in a native configuration.
6312 yes:$build:$build:default)
1ca26cd2 6313 enable_bootstrap=yes ;;
ce521a9c
PB
6314
6315 *:*:*:default)
6316 enable_bootstrap=no ;;
6317
6318 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6319 yes:$build:$build:yes)
ce521a9c
PB
6320 ;;
6321
6322 # Other configurations, but we have a compiler. Assume the user knows
6323 # what he's doing.
2d309510 6324 yes:*:*:yes)
1c710c3c
DJ
6325 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
6326echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6327 ;;
6328
6329 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6330 no:*:*:yes)
1c710c3c
DJ
6331 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
6332echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
6333 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
6334
6335 # Fail if wrong command line
6336 *)
1c710c3c
DJ
6337 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
6338echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
6339 { (exit 1); exit 1; }; }
ce521a9c
PB
6340 ;;
6341esac
6342
6343# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
6344case "$enable_bootstrap" in
6345 yes)
5607edfd 6346 bootstrap_suffix=bootstrap ;;
f516a7da 6347 no)
5607edfd 6348 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
6349esac
6350
23f6b2f9 6351for module in ${build_configdirs} ; do
5607edfd
PB
6352 if test -z "${no_recursion}" \
6353 && test -f ${build_subdir}/${module}/Makefile; then
6354 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6355 rm -f ${build_subdir}/${module}/Makefile
6356 fi
6357 extrasub="$extrasub
6358/^@if build-$module\$/d
6359/^@endif build-$module\$/d
6360/^@if build-$module-$bootstrap_suffix\$/d
6361/^@endif build-$module-$bootstrap_suffix\$/d"
6362done
6363for module in ${configdirs} ; do
a6fbc1e2 6364 if test -z "${no_recursion}"; then
f063a9ed 6365 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6366 if test -f ${file}; then
6367 echo 1>&2 "*** removing ${file} to force reconfigure"
6368 rm -f ${file}
6369 fi
6370 done
5607edfd
PB
6371 fi
6372 extrasub="$extrasub
6373/^@if $module\$/d
6374/^@endif $module\$/d
6375/^@if $module-$bootstrap_suffix\$/d
6376/^@endif $module-$bootstrap_suffix\$/d"
6377done
6378for module in ${target_configdirs} ; do
6379 if test -z "${no_recursion}" \
6380 && test -f ${target_subdir}/${module}/Makefile; then
6381 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6382 rm -f ${target_subdir}/${module}/Makefile
6383 fi
00020c16
ILT
6384
6385 # We only bootstrap target libraries listed in bootstrap_target_libs.
6386 case $bootstrap_target_libs in
6387 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6388 *) target_bootstrap_suffix=no-bootstrap ;;
6389 esac
6390
5607edfd
PB
6391 extrasub="$extrasub
6392/^@if target-$module\$/d
6393/^@endif target-$module\$/d
00020c16
ILT
6394/^@if target-$module-$target_bootstrap_suffix\$/d
6395/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
6396done
6397
60975492
PB
6398extrasub="$extrasub
6399/^@if /,/^@endif /d"
671aa708
NN
6400
6401# Create the serialization dependencies. This uses a temporary file.
6402
2aeb72e9 6403# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 6404if test "${enable_serial_configure+set}" = set; then
2aeb72e9 6405 enableval="$enable_serial_configure"
ade82b16 6406
2aeb72e9 6407fi;
ade82b16 6408
bf1d3e81
NN
6409case ${enable_serial_configure} in
6410 yes)
6411 enable_serial_build_configure=yes
6412 enable_serial_host_configure=yes
6413 enable_serial_target_configure=yes
6414 ;;
6415esac
6416
671aa708
NN
6417# These force 'configure's to be done one at a time, to avoid problems
6418# with contention over a shared config.cache.
6419rm -f serdep.tmp
ade82b16 6420echo '# serdep.tmp' > serdep.tmp
671aa708 6421olditem=
bf1d3e81 6422test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6423for item in ${build_configdirs} ; do
6424 case ${olditem} in
6425 "") ;;
ade82b16 6426 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6427 esac
6428 olditem=${item}
6429done
6430olditem=
bf1d3e81 6431test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6432for item in ${configdirs} ; do
6433 case ${olditem} in
6434 "") ;;
ade82b16 6435 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6436 esac
6437 olditem=${item}
6438done
6439olditem=
bf1d3e81 6440test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6441for item in ${target_configdirs} ; do
6442 case ${olditem} in
6443 "") ;;
ade82b16 6444 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6445 esac
6446 olditem=${item}
6447done
6448serialization_dependencies=serdep.tmp
6449
6450
ade82b16 6451# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6452# target, nonopt, and variable assignments. These are the ones we
6453# might not want to pass down to subconfigures. Also strip
6454# program-prefix, program-suffix, and program-transform-name, so that
6455# we can pass down a consistent program-transform-name.
6456baseargs=
6457keep_next=no
6458skip_next=no
6459eval "set -- $ac_configure_args"
44bfc3ac
DJ
6460for ac_arg
6461do
1c710c3c
DJ
6462 if test X"$skip_next" = X"yes"; then
6463 skip_next=no
6464 continue
6465 fi
6466 if test X"$keep_next" = X"yes"; then
6467 case $ac_arg in
6468 *\'*)
6469 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6470 esac
6471 baseargs="$baseargs '$ac_arg'"
6472 keep_next=no
6473 continue
6474 fi
6475
6476 # Handle separated arguments. Based on the logic generated by
6477 # autoconf 2.59.
6478 case $ac_arg in
6479 *=* | --config-cache | -C | -disable-* | --disable-* \
6480 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6481 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6482 | -with-* | --with-* | -without-* | --without-* | --x)
6483 separate_arg=no
6484 ;;
6485 -*)
6486 separate_arg=yes
6487 ;;
6488 *)
6489 separate_arg=no
6490 ;;
6491 esac
6492
6493 case "$ac_arg" in
6494 --no*)
6495 continue
6496 ;;
6497 --c* | \
6498 --sr* | \
6499 --ho* | \
6500 --bu* | \
6501 --t* | \
6502 --program-* | \
6503 -cache_file* | \
6504 -srcdir* | \
6505 -host* | \
6506 -build* | \
6507 -target* | \
6508 -program-prefix* | \
6509 -program-suffix* | \
6510 -program-transform-name* )
6511 skip_next=$separate_arg
6512 continue
6513 ;;
6514 -*)
6515 # An option. Add it.
6516 case $ac_arg in
6517 *\'*)
6518 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6519 esac
6520 baseargs="$baseargs '$ac_arg'"
6521 keep_next=$separate_arg
6522 ;;
6523 *)
6524 # Either a variable assignment, or a nonopt (triplet). Don't
6525 # pass it down; let the Makefile handle this.
6526 continue
6527 ;;
6528 esac
6529done
6530# Remove the initial space we just introduced and, as these will be
6531# expanded by make, quote '$'.
6532baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6533
43bb47c2
DJ
6534# Add in --program-transform-name, after --program-prefix and
6535# --program-suffix have been applied to it. Autoconf has already
6536# doubled dollar signs and backslashes in program_transform_name; we want
6537# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6538# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6539# Also, because we want to override the logic in subdir configure scripts to
6540# choose program_transform_name, replace any s,x,x, with s,y,y,.
6541sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6542${program_transform_name}
6543EOF_SED
6544gcc_transform_name=`cat conftestsed.out`
6545rm -f conftestsed.out
6546baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6547if test "$silent" = yes; then
6548 baseargs="$baseargs --silent"
6549fi
0115d4a3 6550baseargs="$baseargs --disable-option-checking"
43bb47c2 6551
671aa708
NN
6552# For the build-side libraries, we just need to pretend we're native,
6553# and not use the same cache file. Multilibs are neither needed nor
6554# desired.
e69bf64b 6555build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6556
6557# For host modules, accept cache file option, or specification as blank.
6558case "${cache_file}" in
6559"") # empty
6560 cache_file_option="" ;;
6561/* | [A-Za-z]:[\\/]* ) # absolute path
6562 cache_file_option="--cache-file=${cache_file}" ;;
6563*) # relative path
6564 cache_file_option="--cache-file=../${cache_file}" ;;
6565esac
6566
09438bde
NN
6567# Host dirs don't like to share a cache file either, horribly enough.
6568# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6569host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6570
6571target_configargs=${baseargs}
6572
6573# Passing a --with-cross-host argument lets the target libraries know
6574# whether they are being built with a cross-compiler or being built
6575# native. However, it would be better to use other mechanisms to make the
6576# sorts of decisions they want to make on this basis. Please consider
6577# this option to be deprecated. FIXME.
6578if test x${is_cross_compiler} = xyes ; then
1c710c3c 6579 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6580fi
6581
6582# Default to --enable-multilib.
6583if test x${enable_multilib} = x ; then
6584 target_configargs="--enable-multilib ${target_configargs}"
6585fi
6586
6587# Pass --with-newlib if appropriate. Note that target_configdirs has
6588# changed from the earlier setting of with_newlib.
6589if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6590 target_configargs="--with-newlib ${target_configargs}"
6591fi
6592
6b9eb62c
NN
6593# Different target subdirs use different values of certain variables
6594# (notably CXX). Worse, multilibs use *lots* of different values.
6595# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6596# it doesn't automatically accept command-line overrides of them.
6597# This means it's not safe for target subdirs to share a cache file,
6598# which is disgusting, but there you have it. Hopefully this can be
6599# fixed in future. It's still worthwhile to use a cache file for each
6600# directory. I think.
6601
bebcd931
MS
6602# Pass the appropriate --build, --host, --target and --cache-file arguments.
6603# We need to pass --target, as newer autoconf's requires consistency
6604# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6605target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6606
671aa708
NN
6607FLAGS_FOR_TARGET=
6608case " $target_configdirs " in
6609 *" newlib "*)
6610 case " $target_configargs " in
6611 *" --with-newlib "*)
6612 case "$target" in
6613 *-cygwin*)
aa8f1f57 6614 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
6615 esac
6616
6617 # If we're not building GCC, don't discard standard headers.
6618 if test -d ${srcdir}/gcc; then
6619 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6620
6621 if test "${build}" != "${host}"; then
6622 # On Canadian crosses, CC_FOR_TARGET will have already been set
6623 # by `configure', so we won't have an opportunity to add -Bgcc/
6624 # to it. This is right: we don't want to search that directory
6625 # for binaries, but we want the header files in there, so add
6626 # them explicitly.
215c351a 6627 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6628
6629 # Someone might think of using the pre-installed headers on
6630 # Canadian crosses, in case the installed compiler is not fully
6631 # compatible with the compiler being built. In this case, it
6632 # would be better to flag an error than risking having
6633 # incompatible object files being constructed. We can't
6634 # guarantee that an error will be flagged, but let's hope the
6635 # compiler will do it, when presented with incompatible header
6636 # files.
6637 fi
6638 fi
6639
6640 case "${target}-${is_cross_compiler}" in
f2a0e225 6641 i[3456789]86-*-linux*-no)
671aa708
NN
6642 # Here host == target, so we don't need to build gcc,
6643 # so we don't want to discard standard headers.
6644 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6645 ;;
6646 *)
6647 # If we're building newlib, use its generic headers last, but search
6648 # for any libc-related directories first (so make it the last -B
6649 # switch).
6650 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
6651
6652 # If we're building libgloss, find the startup file, simulator library
6653 # and linker script.
6654 case " $target_configdirs " in
6655 *" libgloss "*)
6656 # Look for startup file, simulator library and maybe linker script.
6657 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6658 # Look for libnosys.a in case the target needs it.
6659 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6660 # Most targets have the linker script in the source directory.
6661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6662 ;;
6663 esac
671aa708
NN
6664 ;;
6665 esac
6666 ;;
6667 esac
6668 ;;
6669esac
b91f0a41
CV
6670case "$target" in
6671*-mingw*)
6672 # Can't be handled as Cygwin above since Mingw does not use newlib.
6673 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' ;;
6674esac
671aa708 6675
6691a79e
ME
6676# Allow the user to override the flags for
6677# our build compiler if desired.
f019adc1
MF
6678if test x"${build}" = x"${host}" ; then
6679 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6680 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6681 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6682fi
6691a79e 6683
671aa708
NN
6684# On Canadian crosses, we'll be searching the right directories for
6685# the previously-installed cross compiler, so don't bother to add
6686# flags for directories within the install tree of the compiler
6687# being built; programs in there won't even run.
6688if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6689 # Search for pre-installed headers if nothing else fits.
9124bc53 6690 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
6691fi
6692
6693if test "x${use_gnu_ld}" = x &&
6694 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6695 # Arrange for us to find uninstalled linker scripts.
215c351a 6696 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6697fi
6698
e88a2c09
DD
6699# Search for other target-specific linker scripts and such.
6700case "${target}" in
3e19841a
PB
6701 mep*)
6702 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6703 ;;
e88a2c09
DD
6704esac
6705
671aa708 6706# Makefile fragments.
7b61653a
PE
6707for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6708do
6709 eval fragval=\$$frag
6710 if test $fragval != /dev/null; then
6711 eval $frag=${srcdir}/$fragval
6712 fi
6713done
671aa708
NN
6714
6715
6716
6717
6718
6719# Miscellanea: directories, flags, etc.
6720
6721
6722
6723
6724
6725
6726
d89f0ad6 6727
23f6b2f9 6728# Build module lists & subconfigure args.
671aa708
NN
6729
6730
6731
2abefe3d
PB
6732# Host module lists & subconfigure args.
6733
6734
6735
6736# Target module lists & subconfigure args.
6737
6738
6739
6740# Build tools.
6741
6742
6743
0999159b
PB
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
2abefe3d
PB
6758# Generate default definitions for YACC, M4, LEX and other programs that run
6759# on the build machine. These are used if the Makefile can't locate these
6760# programs in objdir.
6761MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6762
6763for ac_prog in 'bison -y' byacc yacc
6764do
1c710c3c 6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6766set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6767echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6769if test "${ac_cv_prog_YACC+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6771else
6772 if test -n "$YACC"; then
6773 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6774else
1c710c3c
DJ
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6782 ac_cv_prog_YACC="$ac_prog"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788
2abefe3d
PB
6789fi
6790fi
1c710c3c 6791YACC=$ac_cv_prog_YACC
2abefe3d 6792if test -n "$YACC"; then
2aeb72e9
DD
6793 echo "$as_me:$LINENO: result: $YACC" >&5
6794echo "${ECHO_T}$YACC" >&6
2abefe3d 6795else
2aeb72e9
DD
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
2abefe3d
PB
6798fi
6799
1c710c3c 6800 test -n "$YACC" && break
2abefe3d
PB
6801done
6802test -n "$YACC" || YACC="$MISSING bison -y"
6803
6804case " $build_configdirs " in
6805 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6806 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6807esac
6808
6809for ac_prog in bison
6810do
1c710c3c 6811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6812set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6813echo "$as_me:$LINENO: checking for $ac_word" >&5
6814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6815if test "${ac_cv_prog_BISON+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6817else
6818 if test -n "$BISON"; then
6819 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6820else
1c710c3c
DJ
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6828 ac_cv_prog_BISON="$ac_prog"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832done
6833done
6834
2abefe3d
PB
6835fi
6836fi
1c710c3c 6837BISON=$ac_cv_prog_BISON
2abefe3d 6838if test -n "$BISON"; then
2aeb72e9
DD
6839 echo "$as_me:$LINENO: result: $BISON" >&5
6840echo "${ECHO_T}$BISON" >&6
2abefe3d 6841else
2aeb72e9
DD
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
2abefe3d
PB
6844fi
6845
1c710c3c 6846 test -n "$BISON" && break
2abefe3d
PB
6847done
6848test -n "$BISON" || BISON="$MISSING bison"
6849
6850case " $build_configdirs " in
6851 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6852esac
6853
6854for ac_prog in gm4 gnum4 m4
6855do
1c710c3c 6856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6857set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6858echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6860if test "${ac_cv_prog_M4+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6862else
6863 if test -n "$M4"; then
6864 ac_cv_prog_M4="$M4" # Let the user override the test.
6865else
1c710c3c
DJ
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6873 ac_cv_prog_M4="$ac_prog"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878done
6879
2abefe3d
PB
6880fi
6881fi
1c710c3c 6882M4=$ac_cv_prog_M4
2abefe3d 6883if test -n "$M4"; then
2aeb72e9
DD
6884 echo "$as_me:$LINENO: result: $M4" >&5
6885echo "${ECHO_T}$M4" >&6
2abefe3d 6886else
2aeb72e9
DD
6887 echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6
2abefe3d
PB
6889fi
6890
1c710c3c 6891 test -n "$M4" && break
2abefe3d
PB
6892done
6893test -n "$M4" || M4="$MISSING m4"
6894
6895case " $build_configdirs " in
6896 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6897esac
6898
6899for ac_prog in flex lex
6900do
1c710c3c 6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6902set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6903echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6905if test "${ac_cv_prog_LEX+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6907else
6908 if test -n "$LEX"; then
6909 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6910else
1c710c3c
DJ
6911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6918 ac_cv_prog_LEX="$ac_prog"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923done
6924
2abefe3d
PB
6925fi
6926fi
1c710c3c 6927LEX=$ac_cv_prog_LEX
2abefe3d 6928if test -n "$LEX"; then
2aeb72e9
DD
6929 echo "$as_me:$LINENO: result: $LEX" >&5
6930echo "${ECHO_T}$LEX" >&6
2abefe3d 6931else
2aeb72e9
DD
6932 echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6
2abefe3d
PB
6934fi
6935
1c710c3c 6936 test -n "$LEX" && break
2abefe3d
PB
6937done
6938test -n "$LEX" || LEX="$MISSING flex"
6939
6940case " $build_configdirs " in
6941 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6942 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6943esac
6944
6945for ac_prog in flex
6946do
1c710c3c 6947 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6948set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6949echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6951if test "${ac_cv_prog_FLEX+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6953else
6954 if test -n "$FLEX"; then
6955 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6956else
1c710c3c
DJ
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6964 ac_cv_prog_FLEX="$ac_prog"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970
2abefe3d
PB
6971fi
6972fi
1c710c3c 6973FLEX=$ac_cv_prog_FLEX
2abefe3d 6974if test -n "$FLEX"; then
2aeb72e9
DD
6975 echo "$as_me:$LINENO: result: $FLEX" >&5
6976echo "${ECHO_T}$FLEX" >&6
2abefe3d 6977else
2aeb72e9
DD
6978 echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6
2abefe3d
PB
6980fi
6981
1c710c3c 6982 test -n "$FLEX" && break
2abefe3d
PB
6983done
6984test -n "$FLEX" || FLEX="$MISSING flex"
6985
6986case " $build_configdirs " in
6987 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6988esac
6989
6990for ac_prog in makeinfo
6991do
1c710c3c 6992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6993set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6994echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6996if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6998else
6999 if test -n "$MAKEINFO"; then
7000 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7001else
1c710c3c
DJ
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7009 ac_cv_prog_MAKEINFO="$ac_prog"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015
2abefe3d
PB
7016fi
7017fi
1c710c3c 7018MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7019if test -n "$MAKEINFO"; then
2aeb72e9
DD
7020 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7021echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 7022else
2aeb72e9
DD
7023 echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6
2abefe3d
PB
7025fi
7026
1c710c3c 7027 test -n "$MAKEINFO" && break
2abefe3d
PB
7028done
7029test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7030
7031case " $build_configdirs " in
7032 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7033 *)
7034
d18ff35a 7035 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7036 # higher, else we use the "missing" dummy.
7037 if ${MAKEINFO} --version \
d18ff35a 7038 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7039 :
7040 else
7041 MAKEINFO="$MISSING makeinfo"
7042 fi
7043 ;;
7044
7045esac
671aa708 7046
2abefe3d 7047# FIXME: expect and dejagnu may become build tools?
671aa708 7048
2abefe3d
PB
7049for ac_prog in expect
7050do
1c710c3c 7051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7052set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
7053echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7055if test "${ac_cv_prog_EXPECT+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7057else
7058 if test -n "$EXPECT"; then
7059 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7060else
1c710c3c
DJ
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
1c710c3c
DJ
7068 ac_cv_prog_EXPECT="$ac_prog"
7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 break 2
7071 fi
7072done
7073done
7074
2abefe3d
PB
7075fi
7076fi
1c710c3c 7077EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7078if test -n "$EXPECT"; then
2aeb72e9
DD
7079 echo "$as_me:$LINENO: result: $EXPECT" >&5
7080echo "${ECHO_T}$EXPECT" >&6
2abefe3d 7081else
2aeb72e9
DD
7082 echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
2abefe3d 7084fi
671aa708 7085
1c710c3c 7086 test -n "$EXPECT" && break
2abefe3d
PB
7087done
7088test -n "$EXPECT" || EXPECT="expect"
671aa708 7089
2abefe3d
PB
7090case " $configdirs " in
7091 *" expect "*)
7092 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7093 ;;
7094esac
671aa708 7095
2abefe3d
PB
7096for ac_prog in runtest
7097do
1c710c3c 7098 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7099set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
7100echo "$as_me:$LINENO: checking for $ac_word" >&5
7101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7102if test "${ac_cv_prog_RUNTEST+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7104else
7105 if test -n "$RUNTEST"; then
7106 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7107else
1c710c3c
DJ
7108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7115 ac_cv_prog_RUNTEST="$ac_prog"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121
2abefe3d
PB
7122fi
7123fi
1c710c3c 7124RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7125if test -n "$RUNTEST"; then
2aeb72e9
DD
7126 echo "$as_me:$LINENO: result: $RUNTEST" >&5
7127echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 7128else
2aeb72e9
DD
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
2abefe3d 7131fi
671aa708 7132
1c710c3c 7133 test -n "$RUNTEST" && break
2abefe3d
PB
7134done
7135test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7136
2abefe3d
PB
7137case " $configdirs " in
7138 *" dejagnu "*)
c394e891 7139 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7140 ;;
7141esac
671aa708
NN
7142
7143
671aa708 7144# Host tools.
ca9f4b81
AO
7145ncn_tool_prefix=
7146test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7147ncn_target_tool_prefix=
7148test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7149
278a7a38
AO
7150
7151
7152if test -n "$AR"; then
7153 ac_cv_prog_AR=$AR
7154elif test -n "$ac_cv_prog_AR"; then
7155 AR=$ac_cv_prog_AR
7156fi
7157
7158if test -n "$ac_cv_prog_AR"; then
7159 for ncn_progname in ar; do
7160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7161set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7162echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7164if test "${ac_cv_prog_AR+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 if test -n "$AR"; then
7168 ac_cv_prog_AR="$AR" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7177 ac_cv_prog_AR="${ncn_progname}"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183
7184fi
7185fi
7186AR=$ac_cv_prog_AR
7187if test -n "$AR"; then
2aeb72e9
DD
7188 echo "$as_me:$LINENO: result: $AR" >&5
7189echo "${ECHO_T}$AR" >&6
278a7a38 7190else
2aeb72e9
DD
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
278a7a38
AO
7193fi
7194
7195 done
7196fi
7197
7198for ncn_progname in ar; do
2693c0b0
PB
7199 if test -n "$ncn_tool_prefix"; then
7200 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7201set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7202echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7204if test "${ac_cv_prog_AR+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7206else
7207 if test -n "$AR"; then
7208 ac_cv_prog_AR="$AR" # Let the user override the test.
7209else
1c710c3c
DJ
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7217 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221done
7222done
7223
ca9f4b81
AO
7224fi
7225fi
1c710c3c 7226AR=$ac_cv_prog_AR
ca9f4b81 7227if test -n "$AR"; then
2aeb72e9
DD
7228 echo "$as_me:$LINENO: result: $AR" >&5
7229echo "${ECHO_T}$AR" >&6
ca9f4b81 7230else
2aeb72e9
DD
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
ca9f4b81
AO
7233fi
7234
2693c0b0
PB
7235 fi
7236 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7238set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7239echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7241if test "${ac_cv_prog_AR+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7243else
2693c0b0 7244 if test -n "$AR"; then
af71363e
AS
7245 ac_cv_prog_AR="$AR" # Let the user override the test.
7246else
1c710c3c
DJ
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7254 ac_cv_prog_AR="${ncn_progname}"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258done
7259done
7260
ca9f4b81
AO
7261fi
7262fi
1c710c3c 7263AR=$ac_cv_prog_AR
2693c0b0 7264if test -n "$AR"; then
2aeb72e9
DD
7265 echo "$as_me:$LINENO: result: $AR" >&5
7266echo "${ECHO_T}$AR" >&6
ca9f4b81 7267else
2aeb72e9
DD
7268 echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6
ca9f4b81 7270fi
1c710c3c 7271
2693c0b0
PB
7272 fi
7273 test -n "$ac_cv_prog_AR" && break
7274done
7275
7276if test -z "$ac_cv_prog_AR" ; then
7277 set dummy ar
7278 if test $build = $host ; then
7279 AR="$2"
ca9f4b81 7280 else
2693c0b0 7281 AR="${ncn_tool_prefix}$2"
ca9f4b81 7282 fi
ca9f4b81
AO
7283fi
7284
278a7a38
AO
7285
7286
7287if test -n "$AS"; then
7288 ac_cv_prog_AS=$AS
7289elif test -n "$ac_cv_prog_AS"; then
7290 AS=$ac_cv_prog_AS
7291fi
7292
7293if test -n "$ac_cv_prog_AS"; then
7294 for ncn_progname in as; do
7295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7296set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7297echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7299if test "${ac_cv_prog_AS+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 if test -n "$AS"; then
7303 ac_cv_prog_AS="$AS" # Let the user override the test.
7304else
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7312 ac_cv_prog_AS="${ncn_progname}"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316done
7317done
7318
7319fi
7320fi
7321AS=$ac_cv_prog_AS
7322if test -n "$AS"; then
2aeb72e9
DD
7323 echo "$as_me:$LINENO: result: $AS" >&5
7324echo "${ECHO_T}$AS" >&6
278a7a38 7325else
2aeb72e9
DD
7326 echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
278a7a38
AO
7328fi
7329
7330 done
7331fi
7332
7333for ncn_progname in as; do
2693c0b0
PB
7334 if test -n "$ncn_tool_prefix"; then
7335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7336set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7337echo "$as_me:$LINENO: checking for $ac_word" >&5
7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7339if test "${ac_cv_prog_AS+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7341else
7342 if test -n "$AS"; then
7343 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 7344else
1c710c3c
DJ
7345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7352 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356done
7357done
7358
ca9f4b81
AO
7359fi
7360fi
1c710c3c 7361AS=$ac_cv_prog_AS
ca9f4b81 7362if test -n "$AS"; then
2aeb72e9
DD
7363 echo "$as_me:$LINENO: result: $AS" >&5
7364echo "${ECHO_T}$AS" >&6
ca9f4b81 7365else
2aeb72e9
DD
7366 echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6
ca9f4b81
AO
7368fi
7369
2693c0b0
PB
7370 fi
7371 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7373set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7374echo "$as_me:$LINENO: checking for $ac_word" >&5
7375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7376if test "${ac_cv_prog_AS+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7378else
2693c0b0
PB
7379 if test -n "$AS"; then
7380 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 7381else
1c710c3c
DJ
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7389 ac_cv_prog_AS="${ncn_progname}"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393done
7394done
7395
ca9f4b81
AO
7396fi
7397fi
1c710c3c 7398AS=$ac_cv_prog_AS
2693c0b0 7399if test -n "$AS"; then
2aeb72e9
DD
7400 echo "$as_me:$LINENO: result: $AS" >&5
7401echo "${ECHO_T}$AS" >&6
ca9f4b81 7402else
2aeb72e9
DD
7403 echo "$as_me:$LINENO: result: no" >&5
7404echo "${ECHO_T}no" >&6
ca9f4b81 7405fi
1c710c3c 7406
2693c0b0
PB
7407 fi
7408 test -n "$ac_cv_prog_AS" && break
7409done
7410
7411if test -z "$ac_cv_prog_AS" ; then
7412 set dummy as
7413 if test $build = $host ; then
7414 AS="$2"
ca9f4b81 7415 else
2693c0b0 7416 AS="${ncn_tool_prefix}$2"
ca9f4b81 7417 fi
ca9f4b81
AO
7418fi
7419
278a7a38
AO
7420
7421
7422if test -n "$DLLTOOL"; then
7423 ac_cv_prog_DLLTOOL=$DLLTOOL
7424elif test -n "$ac_cv_prog_DLLTOOL"; then
7425 DLLTOOL=$ac_cv_prog_DLLTOOL
7426fi
7427
7428if test -n "$ac_cv_prog_DLLTOOL"; then
7429 for ncn_progname in dlltool; do
7430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7431set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7432echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7434if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 if test -n "$DLLTOOL"; then
7438 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7439else
7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $PATH
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7447 ac_cv_prog_DLLTOOL="${ncn_progname}"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
7454fi
7455fi
7456DLLTOOL=$ac_cv_prog_DLLTOOL
7457if test -n "$DLLTOOL"; then
2aeb72e9
DD
7458 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7459echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 7460else
2aeb72e9
DD
7461 echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
278a7a38
AO
7463fi
7464
7465 done
7466fi
7467
7468for ncn_progname in dlltool; do
2693c0b0
PB
7469 if test -n "$ncn_tool_prefix"; then
7470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7471set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7472echo "$as_me:$LINENO: checking for $ac_word" >&5
7473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7474if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7476else
7477 if test -n "$DLLTOOL"; then
7478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7479else
1c710c3c
DJ
7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7487 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7490 fi
7491done
7492done
7493
ca9f4b81
AO
7494fi
7495fi
1c710c3c 7496DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7497if test -n "$DLLTOOL"; then
2aeb72e9
DD
7498 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7499echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7500else
2aeb72e9
DD
7501 echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
ca9f4b81
AO
7503fi
7504
2693c0b0
PB
7505 fi
7506 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7508set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7509echo "$as_me:$LINENO: checking for $ac_word" >&5
7510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7511if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7513else
2693c0b0
PB
7514 if test -n "$DLLTOOL"; then
7515 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7516else
1c710c3c
DJ
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7524 ac_cv_prog_DLLTOOL="${ncn_progname}"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7527 fi
7528done
7529done
7530
ca9f4b81
AO
7531fi
7532fi
1c710c3c 7533DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7534if test -n "$DLLTOOL"; then
2aeb72e9
DD
7535 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7536echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7537else
2aeb72e9
DD
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
ca9f4b81 7540fi
1c710c3c 7541
2693c0b0
PB
7542 fi
7543 test -n "$ac_cv_prog_DLLTOOL" && break
7544done
7545
7546if test -z "$ac_cv_prog_DLLTOOL" ; then
7547 set dummy dlltool
7548 if test $build = $host ; then
7549 DLLTOOL="$2"
ca9f4b81 7550 else
2693c0b0 7551 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7552 fi
ca9f4b81
AO
7553fi
7554
278a7a38
AO
7555
7556
7557if test -n "$LD"; then
7558 ac_cv_prog_LD=$LD
7559elif test -n "$ac_cv_prog_LD"; then
7560 LD=$ac_cv_prog_LD
7561fi
7562
7563if test -n "$ac_cv_prog_LD"; then
7564 for ncn_progname in ld; do
7565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7566set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7567echo "$as_me:$LINENO: checking for $ac_word" >&5
7568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7569if test "${ac_cv_prog_LD+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572 if test -n "$LD"; then
7573 ac_cv_prog_LD="$LD" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7582 ac_cv_prog_LD="${ncn_progname}"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588
7589fi
7590fi
7591LD=$ac_cv_prog_LD
7592if test -n "$LD"; then
2aeb72e9
DD
7593 echo "$as_me:$LINENO: result: $LD" >&5
7594echo "${ECHO_T}$LD" >&6
278a7a38 7595else
2aeb72e9
DD
7596 echo "$as_me:$LINENO: result: no" >&5
7597echo "${ECHO_T}no" >&6
278a7a38
AO
7598fi
7599
7600 done
7601fi
7602
7603for ncn_progname in ld; do
2693c0b0
PB
7604 if test -n "$ncn_tool_prefix"; then
7605 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7606set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7607echo "$as_me:$LINENO: checking for $ac_word" >&5
7608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7609if test "${ac_cv_prog_LD+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7611else
7612 if test -n "$LD"; then
7613 ac_cv_prog_LD="$LD" # Let the user override the test.
7614else
1c710c3c
DJ
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7622 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627done
7628
ca9f4b81
AO
7629fi
7630fi
1c710c3c 7631LD=$ac_cv_prog_LD
ca9f4b81 7632if test -n "$LD"; then
2aeb72e9
DD
7633 echo "$as_me:$LINENO: result: $LD" >&5
7634echo "${ECHO_T}$LD" >&6
ca9f4b81 7635else
2aeb72e9
DD
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
ca9f4b81
AO
7638fi
7639
2693c0b0
PB
7640 fi
7641 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7643set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7644echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7646if test "${ac_cv_prog_LD+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7648else
2693c0b0
PB
7649 if test -n "$LD"; then
7650 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7651else
1c710c3c
DJ
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7659 ac_cv_prog_LD="${ncn_progname}"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664done
7665
ca9f4b81
AO
7666fi
7667fi
1c710c3c 7668LD=$ac_cv_prog_LD
2693c0b0 7669if test -n "$LD"; then
2aeb72e9
DD
7670 echo "$as_me:$LINENO: result: $LD" >&5
7671echo "${ECHO_T}$LD" >&6
ca9f4b81 7672else
2aeb72e9
DD
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
ca9f4b81 7675fi
1c710c3c 7676
2693c0b0
PB
7677 fi
7678 test -n "$ac_cv_prog_LD" && break
7679done
7680
7681if test -z "$ac_cv_prog_LD" ; then
7682 set dummy ld
7683 if test $build = $host ; then
7684 LD="$2"
ca9f4b81 7685 else
2693c0b0 7686 LD="${ncn_tool_prefix}$2"
ca9f4b81 7687 fi
ca9f4b81
AO
7688fi
7689
278a7a38
AO
7690
7691
7692if test -n "$LIPO"; then
7693 ac_cv_prog_LIPO=$LIPO
7694elif test -n "$ac_cv_prog_LIPO"; then
7695 LIPO=$ac_cv_prog_LIPO
7696fi
7697
7698if test -n "$ac_cv_prog_LIPO"; then
7699 for ncn_progname in lipo; do
7700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7701set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7704if test "${ac_cv_prog_LIPO+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 if test -n "$LIPO"; then
7708 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7717 ac_cv_prog_LIPO="${ncn_progname}"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
7724fi
7725fi
7726LIPO=$ac_cv_prog_LIPO
7727if test -n "$LIPO"; then
2aeb72e9
DD
7728 echo "$as_me:$LINENO: result: $LIPO" >&5
7729echo "${ECHO_T}$LIPO" >&6
278a7a38 7730else
2aeb72e9
DD
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
278a7a38
AO
7733fi
7734
7735 done
7736fi
7737
7738for ncn_progname in lipo; do
2abefe3d
PB
7739 if test -n "$ncn_tool_prefix"; then
7740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7742echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7744if test "${ac_cv_prog_LIPO+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7746else
7747 if test -n "$LIPO"; then
7748 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7749else
1c710c3c
DJ
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7757 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761done
7762done
7763
2abefe3d
PB
7764fi
7765fi
1c710c3c 7766LIPO=$ac_cv_prog_LIPO
2abefe3d 7767if test -n "$LIPO"; then
2aeb72e9
DD
7768 echo "$as_me:$LINENO: result: $LIPO" >&5
7769echo "${ECHO_T}$LIPO" >&6
2abefe3d 7770else
2aeb72e9
DD
7771 echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
2abefe3d
PB
7773fi
7774
7775 fi
7776 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7778set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7781if test "${ac_cv_prog_LIPO+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7783else
7784 if test -n "$LIPO"; then
7785 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7786else
1c710c3c
DJ
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7794 ac_cv_prog_LIPO="${ncn_progname}"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7797 fi
7798done
7799done
7800
2abefe3d
PB
7801fi
7802fi
1c710c3c 7803LIPO=$ac_cv_prog_LIPO
2abefe3d 7804if test -n "$LIPO"; then
2aeb72e9
DD
7805 echo "$as_me:$LINENO: result: $LIPO" >&5
7806echo "${ECHO_T}$LIPO" >&6
2abefe3d 7807else
2aeb72e9
DD
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
2abefe3d 7810fi
1c710c3c 7811
2abefe3d
PB
7812 fi
7813 test -n "$ac_cv_prog_LIPO" && break
7814done
7815
7816if test -z "$ac_cv_prog_LIPO" ; then
7817 set dummy lipo
7818 if test $build = $host ; then
7819 LIPO="$2"
7820 else
7821 LIPO="${ncn_tool_prefix}$2"
7822 fi
7823fi
7824
278a7a38
AO
7825
7826
7827if test -n "$NM"; then
7828 ac_cv_prog_NM=$NM
7829elif test -n "$ac_cv_prog_NM"; then
7830 NM=$ac_cv_prog_NM
7831fi
7832
7833if test -n "$ac_cv_prog_NM"; then
7834 for ncn_progname in nm; do
7835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7836set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7839if test "${ac_cv_prog_NM+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7841else
7842 if test -n "$NM"; then
7843 ac_cv_prog_NM="$NM" # Let the user override the test.
7844else
1c710c3c
DJ
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7852 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7855 fi
7856done
7857done
7858
ca9f4b81
AO
7859fi
7860fi
1c710c3c 7861NM=$ac_cv_prog_NM
ca9f4b81 7862if test -n "$NM"; then
2aeb72e9
DD
7863 echo "$as_me:$LINENO: result: $NM" >&5
7864echo "${ECHO_T}$NM" >&6
ca9f4b81 7865else
2aeb72e9
DD
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
ca9f4b81
AO
7868fi
7869
278a7a38
AO
7870 done
7871fi
7872
7873for ncn_progname in nm; do
7874 if test -n "$ncn_tool_prefix"; then
7875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7876set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7877echo "$as_me:$LINENO: checking for $ac_word" >&5
7878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7879if test "${ac_cv_prog_NM+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7881else
2693c0b0
PB
7882 if test -n "$NM"; then
7883 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7884else
1c710c3c
DJ
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7892 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896done
7897done
7898
ca9f4b81
AO
7899fi
7900fi
1c710c3c 7901NM=$ac_cv_prog_NM
2693c0b0 7902if test -n "$NM"; then
2aeb72e9
DD
7903 echo "$as_me:$LINENO: result: $NM" >&5
7904echo "${ECHO_T}$NM" >&6
ca9f4b81 7905else
2aeb72e9
DD
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
ca9f4b81 7908fi
1c710c3c 7909
2693c0b0 7910 fi
278a7a38
AO
7911 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7913set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7914echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7916if test "${ac_cv_prog_NM+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919 if test -n "$NM"; then
7920 ac_cv_prog_NM="$NM" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7929 ac_cv_prog_NM="${ncn_progname}"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934done
7935
7936fi
7937fi
7938NM=$ac_cv_prog_NM
7939if test -n "$NM"; then
2aeb72e9
DD
7940 echo "$as_me:$LINENO: result: $NM" >&5
7941echo "${ECHO_T}$NM" >&6
278a7a38 7942else
2aeb72e9
DD
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
278a7a38
AO
7945fi
7946
7947 fi
7948 test -n "$ac_cv_prog_NM" && break
7949done
7950
7951if test -z "$ac_cv_prog_NM" ; then
7952 set dummy nm
7953 if test $build = $host ; then
7954 NM="$2"
7955 else
7956 NM="${ncn_tool_prefix}$2"
7957 fi
7958fi
7959
7960
7961
7962if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB=$RANLIB
7964elif test -n "$ac_cv_prog_RANLIB"; then
7965 RANLIB=$ac_cv_prog_RANLIB
7966fi
7967
7968if test -n "$ac_cv_prog_RANLIB"; then
7969 for ncn_progname in ranlib; do
7970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7972echo "$as_me:$LINENO: checking for $ac_word" >&5
7973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7974if test "${ac_cv_prog_RANLIB+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976else
7977 if test -n "$RANLIB"; then
7978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7987 ac_cv_prog_RANLIB="${ncn_progname}"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993
7994fi
7995fi
7996RANLIB=$ac_cv_prog_RANLIB
7997if test -n "$RANLIB"; then
2aeb72e9
DD
7998 echo "$as_me:$LINENO: result: $RANLIB" >&5
7999echo "${ECHO_T}$RANLIB" >&6
278a7a38 8000else
2aeb72e9
DD
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
278a7a38
AO
8003fi
8004
8005 done
8006fi
ca9f4b81 8007
278a7a38 8008for ncn_progname in ranlib; do
2693c0b0
PB
8009 if test -n "$ncn_tool_prefix"; then
8010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8011set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8012echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8014if test "${ac_cv_prog_RANLIB+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8016else
8017 if test -n "$RANLIB"; then
8018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8019else
1c710c3c
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8027 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033
ca9f4b81
AO
8034fi
8035fi
1c710c3c 8036RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8037if test -n "$RANLIB"; then
2aeb72e9
DD
8038 echo "$as_me:$LINENO: result: $RANLIB" >&5
8039echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 8040else
2aeb72e9
DD
8041 echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6
ca9f4b81
AO
8043fi
8044
2693c0b0
PB
8045 fi
8046 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8048set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8051if test "${ac_cv_prog_RANLIB+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8053else
2693c0b0
PB
8054 if test -n "$RANLIB"; then
8055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8056else
1c710c3c
DJ
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8064 ac_cv_prog_RANLIB="${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
ca9f4b81
AO
8071fi
8072fi
1c710c3c 8073RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8074if test -n "$RANLIB"; then
2aeb72e9
DD
8075 echo "$as_me:$LINENO: result: $RANLIB" >&5
8076echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 8077else
2aeb72e9
DD
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
ca9f4b81 8080fi
1c710c3c 8081
ca9f4b81 8082 fi
2693c0b0
PB
8083 test -n "$ac_cv_prog_RANLIB" && break
8084done
8085
8086if test -z "$ac_cv_prog_RANLIB" ; then
8087 RANLIB=":"
ca9f4b81
AO
8088fi
8089
278a7a38
AO
8090
8091
8092if test -n "$STRIP"; then
8093 ac_cv_prog_STRIP=$STRIP
8094elif test -n "$ac_cv_prog_STRIP"; then
8095 STRIP=$ac_cv_prog_STRIP
8096fi
8097
8098if test -n "$ac_cv_prog_STRIP"; then
8099 for ncn_progname in strip; do
8100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8101set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8102echo "$as_me:$LINENO: checking for $ac_word" >&5
8103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8104if test "${ac_cv_prog_STRIP+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107 if test -n "$STRIP"; then
8108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8117 ac_cv_prog_STRIP="${ncn_progname}"
8118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8120 fi
8121done
8122done
8123
8124fi
8125fi
8126STRIP=$ac_cv_prog_STRIP
8127if test -n "$STRIP"; then
2aeb72e9
DD
8128 echo "$as_me:$LINENO: result: $STRIP" >&5
8129echo "${ECHO_T}$STRIP" >&6
278a7a38 8130else
2aeb72e9
DD
8131 echo "$as_me:$LINENO: result: no" >&5
8132echo "${ECHO_T}no" >&6
278a7a38
AO
8133fi
8134
8135 done
8136fi
8137
8138for ncn_progname in strip; do
2abefe3d
PB
8139 if test -n "$ncn_tool_prefix"; then
8140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8141set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8142echo "$as_me:$LINENO: checking for $ac_word" >&5
8143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8144if test "${ac_cv_prog_STRIP+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
8146else
8147 if test -n "$STRIP"; then
8148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8149else
1c710c3c
DJ
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8157 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161done
8162done
8163
2abefe3d
PB
8164fi
8165fi
1c710c3c 8166STRIP=$ac_cv_prog_STRIP
2abefe3d 8167if test -n "$STRIP"; then
2aeb72e9
DD
8168 echo "$as_me:$LINENO: result: $STRIP" >&5
8169echo "${ECHO_T}$STRIP" >&6
2abefe3d 8170else
2aeb72e9
DD
8171 echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
2abefe3d
PB
8173fi
8174
8175 fi
8176 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8178set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8179echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8181if test "${ac_cv_prog_STRIP+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
8183else
8184 if test -n "$STRIP"; then
8185 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8186else
1c710c3c
DJ
8187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188for as_dir in $PATH
8189do
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8194 ac_cv_prog_STRIP="${ncn_progname}"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8197 fi
8198done
8199done
8200
2abefe3d
PB
8201fi
8202fi
1c710c3c 8203STRIP=$ac_cv_prog_STRIP
2abefe3d 8204if test -n "$STRIP"; then
2aeb72e9
DD
8205 echo "$as_me:$LINENO: result: $STRIP" >&5
8206echo "${ECHO_T}$STRIP" >&6
2abefe3d 8207else
2aeb72e9
DD
8208 echo "$as_me:$LINENO: result: no" >&5
8209echo "${ECHO_T}no" >&6
2abefe3d 8210fi
1c710c3c 8211
2abefe3d
PB
8212 fi
8213 test -n "$ac_cv_prog_STRIP" && break
8214done
8215
8216if test -z "$ac_cv_prog_STRIP" ; then
8217 STRIP=":"
8218fi
8219
278a7a38
AO
8220
8221
8222if test -n "$WINDRES"; then
8223 ac_cv_prog_WINDRES=$WINDRES
8224elif test -n "$ac_cv_prog_WINDRES"; then
8225 WINDRES=$ac_cv_prog_WINDRES
8226fi
8227
8228if test -n "$ac_cv_prog_WINDRES"; then
8229 for ncn_progname in windres; do
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8232echo "$as_me:$LINENO: checking for $ac_word" >&5
8233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8234if test "${ac_cv_prog_WINDRES+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237 if test -n "$WINDRES"; then
8238 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8239else
8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241for as_dir in $PATH
8242do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8247 ac_cv_prog_WINDRES="${ncn_progname}"
8248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251done
8252done
8253
8254fi
8255fi
8256WINDRES=$ac_cv_prog_WINDRES
8257if test -n "$WINDRES"; then
2aeb72e9
DD
8258 echo "$as_me:$LINENO: result: $WINDRES" >&5
8259echo "${ECHO_T}$WINDRES" >&6
278a7a38 8260else
2aeb72e9
DD
8261 echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6
278a7a38
AO
8263fi
8264
8265 done
8266fi
8267
8268for ncn_progname in windres; do
2693c0b0
PB
8269 if test -n "$ncn_tool_prefix"; then
8270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8272echo "$as_me:$LINENO: checking for $ac_word" >&5
8273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8274if test "${ac_cv_prog_WINDRES+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8276else
8277 if test -n "$WINDRES"; then
8278 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8279else
1c710c3c
DJ
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8287 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291done
8292done
8293
ca9f4b81
AO
8294fi
8295fi
1c710c3c 8296WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 8297if test -n "$WINDRES"; then
2aeb72e9
DD
8298 echo "$as_me:$LINENO: result: $WINDRES" >&5
8299echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 8300else
2aeb72e9
DD
8301 echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6
ca9f4b81
AO
8303fi
8304
2693c0b0
PB
8305 fi
8306 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8309echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8311if test "${ac_cv_prog_WINDRES+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8313else
2693c0b0
PB
8314 if test -n "$WINDRES"; then
8315 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 8316else
1c710c3c
DJ
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8324 ac_cv_prog_WINDRES="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329done
8330
ca9f4b81
AO
8331fi
8332fi
1c710c3c 8333WINDRES=$ac_cv_prog_WINDRES
2693c0b0 8334if test -n "$WINDRES"; then
2aeb72e9
DD
8335 echo "$as_me:$LINENO: result: $WINDRES" >&5
8336echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 8337else
2aeb72e9
DD
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
ca9f4b81 8340fi
1c710c3c 8341
2693c0b0
PB
8342 fi
8343 test -n "$ac_cv_prog_WINDRES" && break
8344done
8345
8346if test -z "$ac_cv_prog_WINDRES" ; then
8347 set dummy windres
8348 if test $build = $host ; then
8349 WINDRES="$2"
ca9f4b81 8350 else
2693c0b0 8351 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 8352 fi
ca9f4b81
AO
8353fi
8354
278a7a38
AO
8355
8356
901119ae
KT
8357if test -n "$WINDMC"; then
8358 ac_cv_prog_WINDMC=$WINDMC
8359elif test -n "$ac_cv_prog_WINDMC"; then
8360 WINDMC=$ac_cv_prog_WINDMC
8361fi
8362
8363if test -n "$ac_cv_prog_WINDMC"; then
8364 for ncn_progname in windmc; do
8365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8366set dummy ${ncn_progname}; ac_word=$2
8367echo "$as_me:$LINENO: checking for $ac_word" >&5
8368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8369if test "${ac_cv_prog_WINDMC+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371else
8372 if test -n "$WINDMC"; then
8373 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8374else
8375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376for as_dir in $PATH
8377do
8378 IFS=$as_save_IFS
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_WINDMC="${ncn_progname}"
8383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386done
8387done
8388
8389fi
8390fi
8391WINDMC=$ac_cv_prog_WINDMC
8392if test -n "$WINDMC"; then
8393 echo "$as_me:$LINENO: result: $WINDMC" >&5
8394echo "${ECHO_T}$WINDMC" >&6
8395else
8396 echo "$as_me:$LINENO: result: no" >&5
8397echo "${ECHO_T}no" >&6
8398fi
8399
8400 done
8401fi
8402
8403for ncn_progname in windmc; do
8404 if test -n "$ncn_tool_prefix"; then
8405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8407echo "$as_me:$LINENO: checking for $ac_word" >&5
8408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8409if test "${ac_cv_prog_WINDMC+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 if test -n "$WINDMC"; then
8413 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426done
8427done
8428
8429fi
8430fi
8431WINDMC=$ac_cv_prog_WINDMC
8432if test -n "$WINDMC"; then
8433 echo "$as_me:$LINENO: result: $WINDMC" >&5
8434echo "${ECHO_T}$WINDMC" >&6
8435else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438fi
8439
8440 fi
8441 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8443set dummy ${ncn_progname}; ac_word=$2
8444echo "$as_me:$LINENO: checking for $ac_word" >&5
8445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8446if test "${ac_cv_prog_WINDMC+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 if test -n "$WINDMC"; then
8450 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8451else
8452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459 ac_cv_prog_WINDMC="${ncn_progname}"
8460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8462 fi
8463done
8464done
8465
8466fi
8467fi
8468WINDMC=$ac_cv_prog_WINDMC
8469if test -n "$WINDMC"; then
8470 echo "$as_me:$LINENO: result: $WINDMC" >&5
8471echo "${ECHO_T}$WINDMC" >&6
8472else
8473 echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6
8475fi
8476
8477 fi
8478 test -n "$ac_cv_prog_WINDMC" && break
8479done
8480
8481if test -z "$ac_cv_prog_WINDMC" ; then
8482 set dummy windmc
8483 if test $build = $host ; then
8484 WINDMC="$2"
8485 else
8486 WINDMC="${ncn_tool_prefix}$2"
8487 fi
8488fi
8489
8490
8491
278a7a38
AO
8492if test -n "$OBJCOPY"; then
8493 ac_cv_prog_OBJCOPY=$OBJCOPY
8494elif test -n "$ac_cv_prog_OBJCOPY"; then
8495 OBJCOPY=$ac_cv_prog_OBJCOPY
8496fi
8497
8498if test -n "$ac_cv_prog_OBJCOPY"; then
8499 for ncn_progname in objcopy; do
8500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8501set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8502echo "$as_me:$LINENO: checking for $ac_word" >&5
8503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8504if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507 if test -n "$OBJCOPY"; then
8508 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8509else
8510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511for as_dir in $PATH
8512do
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8517 ac_cv_prog_OBJCOPY="${ncn_progname}"
8518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8520 fi
8521done
8522done
8523
8524fi
8525fi
8526OBJCOPY=$ac_cv_prog_OBJCOPY
8527if test -n "$OBJCOPY"; then
2aeb72e9
DD
8528 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8529echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 8530else
2aeb72e9
DD
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
278a7a38
AO
8533fi
8534
8535 done
8536fi
8537
8538for ncn_progname in objcopy; do
2693c0b0
PB
8539 if test -n "$ncn_tool_prefix"; then
8540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8541set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8542echo "$as_me:$LINENO: checking for $ac_word" >&5
8543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8544if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8546else
8547 if test -n "$OBJCOPY"; then
8548 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8549else
1c710c3c
DJ
8550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551for as_dir in $PATH
8552do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8557 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561done
8562done
8563
ca9f4b81
AO
8564fi
8565fi
1c710c3c 8566OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8567if test -n "$OBJCOPY"; then
2aeb72e9
DD
8568 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8569echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8570else
2aeb72e9
DD
8571 echo "$as_me:$LINENO: result: no" >&5
8572echo "${ECHO_T}no" >&6
ca9f4b81
AO
8573fi
8574
2693c0b0
PB
8575 fi
8576 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8578set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8579echo "$as_me:$LINENO: checking for $ac_word" >&5
8580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8581if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8583else
2693c0b0
PB
8584 if test -n "$OBJCOPY"; then
8585 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8586else
1c710c3c
DJ
8587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588for as_dir in $PATH
8589do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8594 ac_cv_prog_OBJCOPY="${ncn_progname}"
8595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8597 fi
8598done
8599done
8600
ca9f4b81
AO
8601fi
8602fi
1c710c3c 8603OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8604if test -n "$OBJCOPY"; then
2aeb72e9
DD
8605 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8606echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8607else
2aeb72e9
DD
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
ca9f4b81 8610fi
1c710c3c 8611
2693c0b0
PB
8612 fi
8613 test -n "$ac_cv_prog_OBJCOPY" && break
8614done
8615
8616if test -z "$ac_cv_prog_OBJCOPY" ; then
8617 set dummy objcopy
8618 if test $build = $host ; then
8619 OBJCOPY="$2"
ca9f4b81 8620 else
2693c0b0 8621 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8622 fi
ca9f4b81
AO
8623fi
8624
278a7a38
AO
8625
8626
8627if test -n "$OBJDUMP"; then
8628 ac_cv_prog_OBJDUMP=$OBJDUMP
8629elif test -n "$ac_cv_prog_OBJDUMP"; then
8630 OBJDUMP=$ac_cv_prog_OBJDUMP
8631fi
8632
8633if test -n "$ac_cv_prog_OBJDUMP"; then
8634 for ncn_progname in objdump; do
8635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8636set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8637echo "$as_me:$LINENO: checking for $ac_word" >&5
8638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8639if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641else
8642 if test -n "$OBJDUMP"; then
8643 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8644else
8645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646for as_dir in $PATH
8647do
8648 IFS=$as_save_IFS
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8652 ac_cv_prog_OBJDUMP="${ncn_progname}"
8653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8654 break 2
8655 fi
8656done
8657done
8658
8659fi
8660fi
8661OBJDUMP=$ac_cv_prog_OBJDUMP
8662if test -n "$OBJDUMP"; then
2aeb72e9
DD
8663 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8664echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 8665else
2aeb72e9
DD
8666 echo "$as_me:$LINENO: result: no" >&5
8667echo "${ECHO_T}no" >&6
278a7a38
AO
8668fi
8669
8670 done
8671fi
8672
8673for ncn_progname in objdump; do
2693c0b0
PB
8674 if test -n "$ncn_tool_prefix"; then
8675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8676set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8677echo "$as_me:$LINENO: checking for $ac_word" >&5
8678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8679if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8681else
8682 if test -n "$OBJDUMP"; then
8683 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8684else
1c710c3c
DJ
8685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686for as_dir in $PATH
8687do
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8692 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8695 fi
8696done
8697done
8698
ca9f4b81
AO
8699fi
8700fi
1c710c3c 8701OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8702if test -n "$OBJDUMP"; then
2aeb72e9
DD
8703 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8704echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8705else
2aeb72e9
DD
8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
ca9f4b81
AO
8708fi
8709
2693c0b0
PB
8710 fi
8711 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8713set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8714echo "$as_me:$LINENO: checking for $ac_word" >&5
8715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8716if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8718else
2693c0b0
PB
8719 if test -n "$OBJDUMP"; then
8720 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8721else
1c710c3c
DJ
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8729 ac_cv_prog_OBJDUMP="${ncn_progname}"
8730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8732 fi
8733done
8734done
8735
ca9f4b81
AO
8736fi
8737fi
1c710c3c 8738OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8739if test -n "$OBJDUMP"; then
2aeb72e9
DD
8740 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8741echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8742else
2aeb72e9
DD
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
ca9f4b81 8745fi
1c710c3c 8746
2693c0b0
PB
8747 fi
8748 test -n "$ac_cv_prog_OBJDUMP" && break
8749done
8750
8751if test -z "$ac_cv_prog_OBJDUMP" ; then
8752 set dummy objdump
8753 if test $build = $host ; then
8754 OBJDUMP="$2"
ca9f4b81 8755 else
2693c0b0 8756 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8757 fi
ca9f4b81
AO
8758fi
8759
671aa708
NN
8760
8761
8762
8763
8764
2abefe3d 8765# Target tools.
1c710c3c 8766
2aeb72e9 8767# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 8768if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
8769 withval="$with_build_time_tools"
8770 case x"$withval" in
e8b05380
PB
8771 x/*) ;;
8772 *)
8773 with_build_time_tools=
1c710c3c
DJ
8774 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8775echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8776 ;;
8777 esac
ca9f4b81 8778else
e8b05380 8779 with_build_time_tools=
2aeb72e9 8780fi;
ca9f4b81 8781
278a7a38
AO
8782
8783
8784if test -n "$CC_FOR_TARGET"; then
8785 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8786elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8787 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8788fi
8789
8790if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8791 for ncn_progname in cc gcc; do
8792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8794echo "$as_me:$LINENO: checking for $ac_word" >&5
8795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8796if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798else
8799 if test -n "$CC_FOR_TARGET"; then
8800 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8809 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814done
8815
8816fi
8817fi
8818CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8819if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8820 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8821echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8822else
2aeb72e9
DD
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
278a7a38
AO
8825fi
8826
8827 done
8828fi
8829
8830if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8831 for ncn_progname in cc gcc; do
2aeb72e9
DD
8832 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8833echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8834 if test -x $with_build_time_tools/${ncn_progname}; then
8835 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8836 echo "$as_me:$LINENO: result: yes" >&5
8837echo "${ECHO_T}yes" >&6
72a7ab82 8838 break
e8b05380 8839 else
2aeb72e9
DD
8840 echo "$as_me:$LINENO: result: no" >&5
8841echo "${ECHO_T}no" >&6
72a7ab82
AP
8842 fi
8843 done
4de997d1
PB
8844fi
8845
e8b05380
PB
8846if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8847 for ncn_progname in cc gcc; do
8848 if test -n "$ncn_target_tool_prefix"; then
8849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8850set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8851echo "$as_me:$LINENO: checking for $ac_word" >&5
8852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8853if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8855else
8856 if test -n "$CC_FOR_TARGET"; then
8857 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8858else
1c710c3c
DJ
8859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860for as_dir in $PATH
8861do
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8866 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8869 fi
8870done
8871done
8872
4de997d1
PB
8873fi
8874fi
1c710c3c 8875CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8876if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8877 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8878echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8879else
2aeb72e9
DD
8880 echo "$as_me:$LINENO: result: no" >&5
8881echo "${ECHO_T}no" >&6
4de997d1
PB
8882fi
8883
e8b05380
PB
8884 fi
8885 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8887set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8888echo "$as_me:$LINENO: checking for $ac_word" >&5
8889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8890if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8892else
2693c0b0
PB
8893 if test -n "$CC_FOR_TARGET"; then
8894 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8895else
1c710c3c
DJ
8896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897for as_dir in $PATH
8898do
8899 IFS=$as_save_IFS
8900 test -z "$as_dir" && as_dir=.
8901 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8903 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 break 2
8906 fi
8907done
8908done
8909
4de997d1
PB
8910fi
8911fi
1c710c3c 8912CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8913if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8914 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8915echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8916else
2aeb72e9
DD
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
4de997d1 8919fi
1c710c3c 8920
e8b05380
PB
8921 fi
8922 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8923 done
8924fi
1c710c3c 8925
2693c0b0
PB
8926if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8927 set dummy cc gcc
8928 if test $build = $target ; then
8929 CC_FOR_TARGET="$2"
4de997d1 8930 else
2693c0b0 8931 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8932 fi
1c00b503
PB
8933else
8934 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8935fi
8936
278a7a38
AO
8937
8938
8939if test -n "$CXX_FOR_TARGET"; then
8940 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8941elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8942 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8943fi
8944
8945if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8946 for ncn_progname in c++ g++ cxx gxx; do
8947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8948set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8949echo "$as_me:$LINENO: checking for $ac_word" >&5
8950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8951if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954 if test -n "$CXX_FOR_TARGET"; then
8955 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8956else
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
8962 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8964 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8966 break 2
8967 fi
8968done
8969done
8970
8971fi
8972fi
8973CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8974if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8975 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8976echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8977else
2aeb72e9
DD
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
278a7a38
AO
8980fi
8981
8982 done
8983fi
8984
8985if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8986 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8987 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8988echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8989 if test -x $with_build_time_tools/${ncn_progname}; then
8990 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8991 echo "$as_me:$LINENO: result: yes" >&5
8992echo "${ECHO_T}yes" >&6
e8b05380
PB
8993 break
8994 else
2aeb72e9
DD
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
e8b05380
PB
8997 fi
8998 done
8999fi
9000
9001if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9002 for ncn_progname in c++ g++ cxx gxx; do
9003 if test -n "$ncn_target_tool_prefix"; then
9004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9005set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9006echo "$as_me:$LINENO: checking for $ac_word" >&5
9007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9008if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
9010else
9011 if test -n "$CXX_FOR_TARGET"; then
9012 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9013else
1c710c3c
DJ
9014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015for as_dir in $PATH
9016do
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9021 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9024 fi
9025done
9026done
9027
4de997d1
PB
9028fi
9029fi
1c710c3c 9030CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9031if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
9032 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9033echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 9034else
2aeb72e9
DD
9035 echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
4de997d1
PB
9037fi
9038
e8b05380
PB
9039 fi
9040 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9042set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9043echo "$as_me:$LINENO: checking for $ac_word" >&5
9044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9045if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9047else
2693c0b0
PB
9048 if test -n "$CXX_FOR_TARGET"; then
9049 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9050else
1c710c3c
DJ
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9058 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9061 fi
9062done
9063done
9064
4de997d1
PB
9065fi
9066fi
1c710c3c 9067CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9068if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
9069 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
9070echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 9071else
2aeb72e9
DD
9072 echo "$as_me:$LINENO: result: no" >&5
9073echo "${ECHO_T}no" >&6
4de997d1 9074fi
1c710c3c 9075
e8b05380
PB
9076 fi
9077 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9078 done
9079fi
1c710c3c 9080
2693c0b0
PB
9081if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9082 set dummy c++ g++ cxx gxx
9083 if test $build = $target ; then
9084 CXX_FOR_TARGET="$2"
4de997d1 9085 else
2693c0b0 9086 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9087 fi
1c00b503
PB
9088else
9089 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9090fi
9091
278a7a38
AO
9092
9093
9094if test -n "$GCC_FOR_TARGET"; then
9095 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9096elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9097 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9098fi
9099
9100if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9101 for ncn_progname in gcc; do
9102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9103set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9104echo "$as_me:$LINENO: checking for $ac_word" >&5
9105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9106if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else
9109 if test -n "$GCC_FOR_TARGET"; then
9110 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9111else
9112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113for as_dir in $PATH
9114do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9119 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9122 fi
9123done
9124done
9125
9126fi
9127fi
9128GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9129if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9130 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9131echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 9132else
2aeb72e9
DD
9133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
278a7a38
AO
9135fi
9136
9137 done
9138fi
9139
9140if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9141 for ncn_progname in gcc; do
2aeb72e9
DD
9142 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9143echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9144 if test -x $with_build_time_tools/${ncn_progname}; then
9145 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9146 echo "$as_me:$LINENO: result: yes" >&5
9147echo "${ECHO_T}yes" >&6
e8b05380
PB
9148 break
9149 else
2aeb72e9
DD
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
e8b05380
PB
9152 fi
9153 done
9154fi
9155
9156if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9157 for ncn_progname in gcc; do
9158 if test -n "$ncn_target_tool_prefix"; then
9159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9160set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9161echo "$as_me:$LINENO: checking for $ac_word" >&5
9162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9163if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9165else
e8b05380
PB
9166 if test -n "$GCC_FOR_TARGET"; then
9167 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9168else
1c710c3c
DJ
9169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170for as_dir in $PATH
9171do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9176 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180done
9181done
9182
ca9f4b81
AO
9183fi
9184fi
1c710c3c 9185GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9186if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9187 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9188echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 9189else
2aeb72e9
DD
9190 echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6
ca9f4b81
AO
9192fi
9193
e8b05380
PB
9194 fi
9195 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9197set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9198echo "$as_me:$LINENO: checking for $ac_word" >&5
9199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9200if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9202else
e8b05380
PB
9203 if test -n "$GCC_FOR_TARGET"; then
9204 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 9205else
1c710c3c
DJ
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9213 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217done
9218done
9219
ca9f4b81
AO
9220fi
9221fi
1c710c3c 9222GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 9223if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
9224 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
9225echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 9226else
2aeb72e9
DD
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
ca9f4b81 9229fi
1c710c3c 9230
e8b05380
PB
9231 fi
9232 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9233 done
9234fi
1c710c3c 9235
e8b05380
PB
9236if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9237 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
9238else
9239 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
9240fi
9241
278a7a38
AO
9242
9243
9244if test -n "$GCJ_FOR_TARGET"; then
9245 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9246elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9247 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9248fi
9249
9250if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9251 for ncn_progname in gcj; do
9252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9253set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9254echo "$as_me:$LINENO: checking for $ac_word" >&5
9255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9256if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258else
9259 if test -n "$GCJ_FOR_TARGET"; then
9260 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9261else
9262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263for as_dir in $PATH
9264do
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9269 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9272 fi
9273done
9274done
9275
9276fi
9277fi
9278GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9279if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9280 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9281echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9282else
2aeb72e9
DD
9283 echo "$as_me:$LINENO: result: no" >&5
9284echo "${ECHO_T}no" >&6
278a7a38
AO
9285fi
9286
9287 done
9288fi
9289
9290if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9291 for ncn_progname in gcj; do
2aeb72e9
DD
9292 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9293echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9294 if test -x $with_build_time_tools/${ncn_progname}; then
9295 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9296 echo "$as_me:$LINENO: result: yes" >&5
9297echo "${ECHO_T}yes" >&6
e8b05380
PB
9298 break
9299 else
2aeb72e9
DD
9300 echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
e8b05380
PB
9302 fi
9303 done
9304fi
9305
9306if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9307 for ncn_progname in gcj; do
9308 if test -n "$ncn_target_tool_prefix"; then
9309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9311echo "$as_me:$LINENO: checking for $ac_word" >&5
9312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9313if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9315else
fb0103e5
RG
9316 if test -n "$GCJ_FOR_TARGET"; then
9317 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9318else
1c710c3c
DJ
9319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9326 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9329 fi
9330done
9331done
9332
e8b05380
PB
9333fi
9334fi
278a7a38
AO
9335GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9336if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9337 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9338echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9339else
2aeb72e9
DD
9340 echo "$as_me:$LINENO: result: no" >&5
9341echo "${ECHO_T}no" >&6
278a7a38
AO
9342fi
9343
9344 fi
9345 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9348echo "$as_me:$LINENO: checking for $ac_word" >&5
9349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9350if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353 if test -n "$GCJ_FOR_TARGET"; then
9354 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9363 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9366 fi
9367done
9368done
9369
9370fi
9371fi
9372GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9373if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
9374 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
9375echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 9376else
2aeb72e9
DD
9377 echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
278a7a38
AO
9379fi
9380
9381 fi
9382 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9383 done
9384fi
9385
9386if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9387 set dummy gcj
9388 if test $build = $target ; then
9389 GCJ_FOR_TARGET="$2"
9390 else
9391 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9392 fi
1c00b503
PB
9393else
9394 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
9395fi
9396
9397
9398
9399if test -n "$GFORTRAN_FOR_TARGET"; then
9400 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9401elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9402 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
9403fi
9404
278a7a38
AO
9405if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9406 for ncn_progname in gfortran; do
9407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 9408set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9409echo "$as_me:$LINENO: checking for $ac_word" >&5
9410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9411if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 9412 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9413else
278a7a38
AO
9414 if test -n "$GFORTRAN_FOR_TARGET"; then
9415 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 9416else
1c710c3c
DJ
9417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9418for as_dir in $PATH
9419do
9420 IFS=$as_save_IFS
9421 test -z "$as_dir" && as_dir=.
9422 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9424 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9426 break 2
9427 fi
9428done
9429done
9430
e8b05380
PB
9431fi
9432fi
278a7a38
AO
9433GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9434if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9435 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9436echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9437else
2aeb72e9
DD
9438 echo "$as_me:$LINENO: result: no" >&5
9439echo "${ECHO_T}no" >&6
e8b05380 9440fi
1c710c3c 9441
e8b05380
PB
9442 done
9443fi
1c710c3c 9444
278a7a38 9445if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9446 for ncn_progname in gfortran; do
2aeb72e9
DD
9447 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9448echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9449 if test -x $with_build_time_tools/${ncn_progname}; then
9450 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9451 echo "$as_me:$LINENO: result: yes" >&5
9452echo "${ECHO_T}yes" >&6
e8b05380
PB
9453 break
9454 else
2aeb72e9
DD
9455 echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
e8b05380
PB
9457 fi
9458 done
9459fi
9460
9461if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9462 for ncn_progname in gfortran; do
9463 if test -n "$ncn_target_tool_prefix"; then
9464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9465set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9466echo "$as_me:$LINENO: checking for $ac_word" >&5
9467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9468if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9470else
9471 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9472 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9473else
9474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475for as_dir in $PATH
9476do
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9481 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9484 fi
9485done
9486done
9487
e8b05380
PB
9488fi
9489fi
1c710c3c 9490GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9491if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9492 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9493echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9494else
2aeb72e9
DD
9495 echo "$as_me:$LINENO: result: no" >&5
9496echo "${ECHO_T}no" >&6
e8b05380
PB
9497fi
9498
9499 fi
9500 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9502set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9503echo "$as_me:$LINENO: checking for $ac_word" >&5
9504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9505if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9507else
9508 if test -n "$GFORTRAN_FOR_TARGET"; then
9509 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9510else
1c710c3c
DJ
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9518 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9521 fi
9522done
9523done
9524
e8b05380
PB
9525fi
9526fi
1c710c3c 9527GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9528if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9529 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9530echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9531else
2aeb72e9
DD
9532 echo "$as_me:$LINENO: result: no" >&5
9533echo "${ECHO_T}no" >&6
e8b05380 9534fi
1c710c3c 9535
e8b05380
PB
9536 fi
9537 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9538 done
9539fi
1c710c3c 9540
e8b05380
PB
9541if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9542 set dummy gfortran
2693c0b0 9543 if test $build = $target ; then
e8b05380 9544 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9545 else
e8b05380
PB
9546 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9547 fi
1c00b503
PB
9548else
9549 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9550fi
9551
9552
9553
e8b05380
PB
9554cat > conftest.c << \EOF
9555#ifdef __GNUC__
9556 gcc_yay;
9557#endif
9558EOF
9559if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9560 have_gcc_for_target=yes
9561else
9562 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9563 have_gcc_for_target=no
9564fi
9565rm conftest.c
9566
9567
9568
9569
9570if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9571 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9572 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9573echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9574 if test -x $with_build_time_tools/ar; then
9575 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9576 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
9577 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9578echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 9579 else
2aeb72e9
DD
9580 echo "$as_me:$LINENO: result: no" >&5
9581echo "${ECHO_T}no" >&6
d1f8db0c 9582 fi
e8b05380
PB
9583 elif test $build != $host && test $have_gcc_for_target = yes; then
9584 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9585 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9586 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9587 fi
9588fi
3e19841a 9589if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9590 # Extract the first word of "ar", so it can be a program name with args.
9591set dummy ar; ac_word=$2
2aeb72e9
DD
9592echo "$as_me:$LINENO: checking for $ac_word" >&5
9593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9594if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9596else
1c710c3c
DJ
9597 case $AR_FOR_TARGET in
9598 [\\/]* | ?:[\\/]*)
e8b05380
PB
9599 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9600 ;;
e8b05380 9601 *)
1c710c3c
DJ
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603for as_dir in $gcc_cv_tool_dirs
9604do
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9609 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9612 fi
9613done
9614done
9615
e8b05380
PB
9616 ;;
9617esac
9618fi
1c710c3c 9619AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 9620
e8b05380 9621if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9622 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9623echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9624else
2aeb72e9
DD
9625 echo "$as_me:$LINENO: result: no" >&5
9626echo "${ECHO_T}no" >&6
4de997d1
PB
9627fi
9628
e8b05380
PB
9629fi
9630if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9631
9632
9633if test -n "$AR_FOR_TARGET"; then
9634 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9635elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9636 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9637fi
9638
9639if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9640 for ncn_progname in ar; do
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9643echo "$as_me:$LINENO: checking for $ac_word" >&5
9644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9645if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648 if test -n "$AR_FOR_TARGET"; then
9649 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9650else
9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652for as_dir in $PATH
9653do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9658 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9661 fi
9662done
9663done
9664
9665fi
9666fi
9667AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9668if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9669 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9670echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 9671else
2aeb72e9
DD
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
278a7a38
AO
9674fi
9675
9676 done
9677fi
9678
9679if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9680 for ncn_progname in ar; do
2aeb72e9
DD
9681 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9682echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9683 if test -x $with_build_time_tools/${ncn_progname}; then
9684 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9685 echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6
e8b05380
PB
9687 break
9688 else
2aeb72e9
DD
9689 echo "$as_me:$LINENO: result: no" >&5
9690echo "${ECHO_T}no" >&6
e8b05380
PB
9691 fi
9692 done
9693fi
9694
9695if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9696 for ncn_progname in ar; do
9697 if test -n "$ncn_target_tool_prefix"; then
9698 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9699set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9700echo "$as_me:$LINENO: checking for $ac_word" >&5
9701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9702if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9704else
e8b05380
PB
9705 if test -n "$AR_FOR_TARGET"; then
9706 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9707else
1c710c3c
DJ
9708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709for as_dir in $PATH
9710do
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9715 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9718 fi
9719done
9720done
9721
4de997d1
PB
9722fi
9723fi
1c710c3c 9724AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9725if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9726 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9727echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 9728else
2aeb72e9
DD
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
4de997d1
PB
9731fi
9732
e8b05380
PB
9733 fi
9734 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9736set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9737echo "$as_me:$LINENO: checking for $ac_word" >&5
9738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9739if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9741else
9742 if test -n "$AR_FOR_TARGET"; then
9743 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9744else
1c710c3c
DJ
9745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9746for as_dir in $PATH
9747do
9748 IFS=$as_save_IFS
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9752 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9754 break 2
9755 fi
9756done
9757done
9758
e8b05380
PB
9759fi
9760fi
1c710c3c 9761AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9762if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9763 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9764echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9765else
2aeb72e9
DD
9766 echo "$as_me:$LINENO: result: no" >&5
9767echo "${ECHO_T}no" >&6
e8b05380 9768fi
1c710c3c 9769
e8b05380
PB
9770 fi
9771 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9772 done
9773fi
1c710c3c 9774
e8b05380
PB
9775if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9776 set dummy ar
9777 if test $build = $target ; then
9778 AR_FOR_TARGET="$2"
9779 else
9780 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9781 fi
1c00b503
PB
9782else
9783 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
9784fi
9785
d1f8db0c
PB
9786else
9787 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9788fi
9789
9790
9791
9792
9793if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9794 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9795 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9796echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9797 if test -x $with_build_time_tools/as; then
9798 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9799 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9800 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9801echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9802 else
2aeb72e9
DD
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
d1f8db0c 9805 fi
e8b05380
PB
9806 elif test $build != $host && test $have_gcc_for_target = yes; then
9807 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9808 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9809 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9810 fi
9811fi
3e19841a 9812if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9813 # Extract the first word of "as", so it can be a program name with args.
9814set dummy as; ac_word=$2
2aeb72e9
DD
9815echo "$as_me:$LINENO: checking for $ac_word" >&5
9816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9817if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9819else
1c710c3c
DJ
9820 case $AS_FOR_TARGET in
9821 [\\/]* | ?:[\\/]*)
e8b05380
PB
9822 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9823 ;;
e8b05380 9824 *)
1c710c3c
DJ
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $gcc_cv_tool_dirs
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9832 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9835 fi
9836done
9837done
9838
e8b05380
PB
9839 ;;
9840esac
9841fi
1c710c3c 9842AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9843
e8b05380 9844if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9845 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9846echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9847else
2aeb72e9
DD
9848 echo "$as_me:$LINENO: result: no" >&5
9849echo "${ECHO_T}no" >&6
e8b05380
PB
9850fi
9851
9852fi
9853if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9854
9855
9856if test -n "$AS_FOR_TARGET"; then
9857 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9858elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9859 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9860fi
9861
9862if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9863 for ncn_progname in as; do
9864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9865set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9866echo "$as_me:$LINENO: checking for $ac_word" >&5
9867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9868if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870else
9871 if test -n "$AS_FOR_TARGET"; then
9872 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9873else
9874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875for as_dir in $PATH
9876do
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9881 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9884 fi
9885done
9886done
9887
9888fi
9889fi
9890AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9891if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9892 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9893echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9894else
2aeb72e9
DD
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
278a7a38
AO
9897fi
9898
9899 done
9900fi
9901
9902if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9903 for ncn_progname in as; do
2aeb72e9
DD
9904 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9905echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9906 if test -x $with_build_time_tools/${ncn_progname}; then
9907 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9908 echo "$as_me:$LINENO: result: yes" >&5
9909echo "${ECHO_T}yes" >&6
e8b05380
PB
9910 break
9911 else
2aeb72e9
DD
9912 echo "$as_me:$LINENO: result: no" >&5
9913echo "${ECHO_T}no" >&6
e8b05380
PB
9914 fi
9915 done
9916fi
9917
9918if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9919 for ncn_progname in as; do
9920 if test -n "$ncn_target_tool_prefix"; then
9921 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9922set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9923echo "$as_me:$LINENO: checking for $ac_word" >&5
9924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9925if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9927else
9928 if test -n "$AS_FOR_TARGET"; then
9929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9930else
1c710c3c
DJ
9931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932for as_dir in $PATH
9933do
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9938 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9941 fi
9942done
9943done
9944
e8b05380
PB
9945fi
9946fi
1c710c3c 9947AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9948if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9949 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9950echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9951else
2aeb72e9
DD
9952 echo "$as_me:$LINENO: result: no" >&5
9953echo "${ECHO_T}no" >&6
e8b05380
PB
9954fi
9955
9956 fi
9957 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9959set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9960echo "$as_me:$LINENO: checking for $ac_word" >&5
9961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9962if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9964else
e8b05380
PB
9965 if test -n "$AS_FOR_TARGET"; then
9966 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9967else
1c710c3c
DJ
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9975 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 break 2
9978 fi
9979done
9980done
9981
4de997d1
PB
9982fi
9983fi
1c710c3c 9984AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9985if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9986 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9987echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9988else
2aeb72e9
DD
9989 echo "$as_me:$LINENO: result: no" >&5
9990echo "${ECHO_T}no" >&6
4de997d1 9991fi
1c710c3c 9992
e8b05380
PB
9993 fi
9994 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9995 done
9996fi
1c710c3c 9997
e8b05380
PB
9998if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9999 set dummy as
10000 if test $build = $target ; then
10001 AS_FOR_TARGET="$2"
10002 else
10003 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10004 fi
1c00b503
PB
10005else
10006 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 10007fi
2693c0b0 10008
d1f8db0c
PB
10009else
10010 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
10011fi
10012
e8b05380
PB
10013
10014
10015
10016if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10017 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10018 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
10019echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10020 if test -x $with_build_time_tools/dlltool; then
10021 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10022 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
10023 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10024echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 10025 else
2aeb72e9
DD
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
d1f8db0c 10028 fi
e8b05380
PB
10029 elif test $build != $host && test $have_gcc_for_target = yes; then
10030 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
10031 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10032 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
10033 fi
10034fi
3e19841a 10035if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10036 # Extract the first word of "dlltool", so it can be a program name with args.
10037set dummy dlltool; ac_word=$2
2aeb72e9
DD
10038echo "$as_me:$LINENO: checking for $ac_word" >&5
10039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10040if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10042else
1c710c3c
DJ
10043 case $DLLTOOL_FOR_TARGET in
10044 [\\/]* | ?:[\\/]*)
e8b05380
PB
10045 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10046 ;;
e8b05380 10047 *)
1c710c3c
DJ
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $gcc_cv_tool_dirs
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10055 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059done
10060done
10061
e8b05380
PB
10062 ;;
10063esac
4de997d1 10064fi
1c710c3c 10065DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 10066
e8b05380 10067if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10068 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10069echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10070else
2aeb72e9
DD
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
4de997d1
PB
10073fi
10074
e8b05380
PB
10075fi
10076if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
10077
10078
10079if test -n "$DLLTOOL_FOR_TARGET"; then
10080 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10081elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10082 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10083fi
10084
10085if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10086 for ncn_progname in dlltool; do
10087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10088set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10089echo "$as_me:$LINENO: checking for $ac_word" >&5
10090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10091if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094 if test -n "$DLLTOOL_FOR_TARGET"; then
10095 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10096else
10097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098for as_dir in $PATH
10099do
10100 IFS=$as_save_IFS
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10104 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 break 2
10107 fi
10108done
10109done
10110
10111fi
10112fi
10113DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10114if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10115 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10116echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 10117else
2aeb72e9
DD
10118 echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
278a7a38
AO
10120fi
10121
10122 done
10123fi
10124
10125if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10126 for ncn_progname in dlltool; do
2aeb72e9
DD
10127 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10128echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10129 if test -x $with_build_time_tools/${ncn_progname}; then
10130 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10131 echo "$as_me:$LINENO: result: yes" >&5
10132echo "${ECHO_T}yes" >&6
e8b05380
PB
10133 break
10134 else
2aeb72e9
DD
10135 echo "$as_me:$LINENO: result: no" >&5
10136echo "${ECHO_T}no" >&6
e8b05380
PB
10137 fi
10138 done
10139fi
10140
10141if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10142 for ncn_progname in dlltool; do
10143 if test -n "$ncn_target_tool_prefix"; then
10144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10145set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10146echo "$as_me:$LINENO: checking for $ac_word" >&5
10147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10148if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10150else
e8b05380
PB
10151 if test -n "$DLLTOOL_FOR_TARGET"; then
10152 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10153else
1c710c3c
DJ
10154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155for as_dir in $PATH
10156do
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10161 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10163 break 2
10164 fi
10165done
10166done
10167
4de997d1
PB
10168fi
10169fi
1c710c3c 10170DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10171if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10172 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10173echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10174else
2aeb72e9
DD
10175 echo "$as_me:$LINENO: result: no" >&5
10176echo "${ECHO_T}no" >&6
4de997d1 10177fi
4de997d1 10178
e8b05380
PB
10179 fi
10180 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10182set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10183echo "$as_me:$LINENO: checking for $ac_word" >&5
10184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10185if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10187else
e8b05380
PB
10188 if test -n "$DLLTOOL_FOR_TARGET"; then
10189 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 10190else
1c710c3c
DJ
10191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10192for as_dir in $PATH
10193do
10194 IFS=$as_save_IFS
10195 test -z "$as_dir" && as_dir=.
10196 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10198 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10200 break 2
10201 fi
10202done
10203done
10204
4de997d1
PB
10205fi
10206fi
1c710c3c 10207DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 10208if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
10209 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
10210echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 10211else
2aeb72e9
DD
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
4de997d1 10214fi
1c710c3c 10215
e8b05380
PB
10216 fi
10217 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10218 done
10219fi
1c710c3c 10220
e8b05380
PB
10221if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10222 set dummy dlltool
10223 if test $build = $target ; then
10224 DLLTOOL_FOR_TARGET="$2"
10225 else
10226 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10227 fi
1c00b503
PB
10228else
10229 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
10230fi
10231
d1f8db0c
PB
10232else
10233 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
10234fi
10235
4de997d1 10236
e8b05380
PB
10237
10238
10239if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10240 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10241 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
10242echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10243 if test -x $with_build_time_tools/ld; then
10244 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10245 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
10246 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
10247echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 10248 else
2aeb72e9
DD
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
d1f8db0c 10251 fi
e8b05380
PB
10252 elif test $build != $host && test $have_gcc_for_target = yes; then
10253 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
10254 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10255 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 10256 fi
e8b05380 10257fi
3e19841a 10258if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10259 # Extract the first word of "ld", so it can be a program name with args.
10260set dummy ld; ac_word=$2
2aeb72e9
DD
10261echo "$as_me:$LINENO: checking for $ac_word" >&5
10262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10263if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 10265else
1c710c3c
DJ
10266 case $LD_FOR_TARGET in
10267 [\\/]* | ?:[\\/]*)
e8b05380
PB
10268 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10269 ;;
e8b05380 10270 *)
1c710c3c
DJ
10271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272for as_dir in $gcc_cv_tool_dirs
10273do
10274 IFS=$as_save_IFS
10275 test -z "$as_dir" && as_dir=.
10276 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10278 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 break 2
10281 fi
10282done
10283done
10284
e8b05380
PB
10285 ;;
10286esac
4de997d1 10287fi
1c710c3c 10288LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 10289
e8b05380 10290if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10291 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10292echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 10293else
2aeb72e9
DD
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
4de997d1 10296fi
2693c0b0 10297
e8b05380
PB
10298fi
10299if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
10300
10301
10302if test -n "$LD_FOR_TARGET"; then
10303 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10304elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10305 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10306fi
10307
10308if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10309 for ncn_progname in ld; do
10310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10311set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10312echo "$as_me:$LINENO: checking for $ac_word" >&5
10313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10314if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317 if test -n "$LD_FOR_TARGET"; then
10318 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10319else
10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321for as_dir in $PATH
10322do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10327 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331done
10332done
10333
10334fi
10335fi
10336LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10337if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10338 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10339echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 10340else
2aeb72e9
DD
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
278a7a38
AO
10343fi
10344
10345 done
10346fi
10347
10348if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10349 for ncn_progname in ld; do
2aeb72e9
DD
10350 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10351echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10352 if test -x $with_build_time_tools/${ncn_progname}; then
10353 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10354 echo "$as_me:$LINENO: result: yes" >&5
10355echo "${ECHO_T}yes" >&6
e8b05380
PB
10356 break
10357 else
2aeb72e9
DD
10358 echo "$as_me:$LINENO: result: no" >&5
10359echo "${ECHO_T}no" >&6
e8b05380
PB
10360 fi
10361 done
ca9f4b81
AO
10362fi
10363
e8b05380
PB
10364if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10365 for ncn_progname in ld; do
10366 if test -n "$ncn_target_tool_prefix"; then
10367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10368set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10369echo "$as_me:$LINENO: checking for $ac_word" >&5
10370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10371if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10373else
4de997d1
PB
10374 if test -n "$LD_FOR_TARGET"; then
10375 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10376else
1c710c3c
DJ
10377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10378for as_dir in $PATH
10379do
10380 IFS=$as_save_IFS
10381 test -z "$as_dir" && as_dir=.
10382 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10384 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 break 2
10387 fi
10388done
10389done
10390
ca9f4b81
AO
10391fi
10392fi
1c710c3c 10393LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 10394if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10395 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10396echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10397else
2aeb72e9
DD
10398 echo "$as_me:$LINENO: result: no" >&5
10399echo "${ECHO_T}no" >&6
ca9f4b81
AO
10400fi
10401
e8b05380
PB
10402 fi
10403 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10405set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10406echo "$as_me:$LINENO: checking for $ac_word" >&5
10407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10408if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10410else
2693c0b0
PB
10411 if test -n "$LD_FOR_TARGET"; then
10412 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10413else
1c710c3c
DJ
10414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415for as_dir in $PATH
10416do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10421 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425done
10426done
10427
ca9f4b81
AO
10428fi
10429fi
1c710c3c 10430LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10431if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10432 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10433echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10434else
2aeb72e9
DD
10435 echo "$as_me:$LINENO: result: no" >&5
10436echo "${ECHO_T}no" >&6
ca9f4b81 10437fi
1c710c3c 10438
e8b05380
PB
10439 fi
10440 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10441 done
10442fi
1c710c3c 10443
2693c0b0
PB
10444if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10445 set dummy ld
10446 if test $build = $target ; then
10447 LD_FOR_TARGET="$2"
ca9f4b81 10448 else
2693c0b0 10449 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10450 fi
1c00b503
PB
10451else
10452 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10453fi
10454
d1f8db0c
PB
10455else
10456 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10457fi
10458
10459
10460
10461
10462if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10463 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10464 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10465echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10466 if test -x $with_build_time_tools/lipo; then
10467 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10468 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
10469 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10470echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 10471 else
2aeb72e9
DD
10472 echo "$as_me:$LINENO: result: no" >&5
10473echo "${ECHO_T}no" >&6
d1f8db0c 10474 fi
e8b05380
PB
10475 elif test $build != $host && test $have_gcc_for_target = yes; then
10476 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10477 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10478 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10479 fi
10480fi
278a7a38
AO
10481if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10482 # Extract the first word of "lipo", so it can be a program name with args.
10483set dummy lipo; ac_word=$2
2aeb72e9
DD
10484echo "$as_me:$LINENO: checking for $ac_word" >&5
10485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10486if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488else
10489 case $LIPO_FOR_TARGET in
10490 [\\/]* | ?:[\\/]*)
10491 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10492 ;;
10493 *)
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $gcc_cv_tool_dirs
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10501 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505done
10506done
10507
10508 ;;
10509esac
10510fi
10511LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 10512
278a7a38 10513if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10514 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10515echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 10516else
2aeb72e9
DD
10517 echo "$as_me:$LINENO: result: no" >&5
10518echo "${ECHO_T}no" >&6
278a7a38
AO
10519fi
10520
10521fi
10522if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10523
10524
10525if test -n "$LIPO_FOR_TARGET"; then
10526 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10527elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10528 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10529fi
10530
10531if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10532 for ncn_progname in lipo; do
10533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10534set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10535echo "$as_me:$LINENO: checking for $ac_word" >&5
10536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 10537if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10538 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10539else
278a7a38
AO
10540 if test -n "$LIPO_FOR_TARGET"; then
10541 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
1c710c3c
DJ
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10550 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555done
10556
e8b05380 10557fi
278a7a38
AO
10558fi
10559LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10560if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10561 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10562echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 10563else
2aeb72e9
DD
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
e8b05380
PB
10566fi
10567
278a7a38 10568 done
e8b05380 10569fi
278a7a38
AO
10570
10571if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10572 for ncn_progname in lipo; do
2aeb72e9
DD
10573 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10574echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10575 if test -x $with_build_time_tools/${ncn_progname}; then
10576 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10577 echo "$as_me:$LINENO: result: yes" >&5
10578echo "${ECHO_T}yes" >&6
e8b05380
PB
10579 break
10580 else
2aeb72e9
DD
10581 echo "$as_me:$LINENO: result: no" >&5
10582echo "${ECHO_T}no" >&6
e8b05380
PB
10583 fi
10584 done
10585fi
10586
10587if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10588 for ncn_progname in lipo; do
10589 if test -n "$ncn_target_tool_prefix"; then
10590 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10591set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10592echo "$as_me:$LINENO: checking for $ac_word" >&5
10593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10594if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10596else
10597 if test -n "$LIPO_FOR_TARGET"; then
10598 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10599else
1c710c3c
DJ
10600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601for as_dir in $PATH
10602do
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10607 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10610 fi
10611done
10612done
10613
040b1c5a
GK
10614fi
10615fi
1c710c3c 10616LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10617if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10618 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10619echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10620else
2aeb72e9
DD
10621 echo "$as_me:$LINENO: result: no" >&5
10622echo "${ECHO_T}no" >&6
040b1c5a
GK
10623fi
10624
e8b05380
PB
10625 fi
10626 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10628set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10629echo "$as_me:$LINENO: checking for $ac_word" >&5
10630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10631if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10633else
10634 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10635 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10636else
1c710c3c
DJ
10637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638for as_dir in $PATH
10639do
10640 IFS=$as_save_IFS
10641 test -z "$as_dir" && as_dir=.
10642 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10644 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 break 2
10647 fi
10648done
10649done
10650
040b1c5a
GK
10651fi
10652fi
1c710c3c 10653LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10654if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10655 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10656echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10657else
2aeb72e9
DD
10658 echo "$as_me:$LINENO: result: no" >&5
10659echo "${ECHO_T}no" >&6
040b1c5a 10660fi
1c710c3c 10661
e8b05380
PB
10662 fi
10663 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10664 done
10665fi
1c710c3c 10666
040b1c5a
GK
10667if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10668 set dummy lipo
10669 if test $build = $target ; then
10670 LIPO_FOR_TARGET="$2"
10671 else
10672 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10673 fi
1c00b503
PB
10674else
10675 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10676fi
10677
d1f8db0c
PB
10678else
10679 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10680fi
10681
10682
10683
10684
10685if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10687 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10688echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10689 if test -x $with_build_time_tools/nm; then
10690 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10691 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
10692 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10693echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 10694 else
2aeb72e9
DD
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
d1f8db0c 10697 fi
e8b05380
PB
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10700 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10701 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10702 fi
10703fi
3e19841a 10704if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10705 # Extract the first word of "nm", so it can be a program name with args.
10706set dummy nm; ac_word=$2
2aeb72e9
DD
10707echo "$as_me:$LINENO: checking for $ac_word" >&5
10708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10709if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10711else
1c710c3c
DJ
10712 case $NM_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
e8b05380
PB
10714 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10715 ;;
e8b05380 10716 *)
1c710c3c
DJ
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $gcc_cv_tool_dirs
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10724 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10727 fi
10728done
10729done
10730
e8b05380
PB
10731 ;;
10732esac
10733fi
1c710c3c 10734NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 10735
e8b05380 10736if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10737 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10738echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 10739else
2aeb72e9
DD
10740 echo "$as_me:$LINENO: result: no" >&5
10741echo "${ECHO_T}no" >&6
e8b05380
PB
10742fi
10743
10744fi
10745if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10746
10747
10748if test -n "$NM_FOR_TARGET"; then
10749 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10750elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10751 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10752fi
10753
10754if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10755 for ncn_progname in nm; do
10756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10757set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10758echo "$as_me:$LINENO: checking for $ac_word" >&5
10759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10760if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762else
10763 if test -n "$NM_FOR_TARGET"; then
10764 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10765else
10766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767for as_dir in $PATH
10768do
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10773 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10776 fi
10777done
10778done
10779
10780fi
10781fi
10782NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10783if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10784 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10785echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 10786else
2aeb72e9
DD
10787 echo "$as_me:$LINENO: result: no" >&5
10788echo "${ECHO_T}no" >&6
278a7a38
AO
10789fi
10790
10791 done
10792fi
10793
10794if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10795 for ncn_progname in nm; do
2aeb72e9
DD
10796 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10797echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10798 if test -x $with_build_time_tools/${ncn_progname}; then
10799 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10800 echo "$as_me:$LINENO: result: yes" >&5
10801echo "${ECHO_T}yes" >&6
e8b05380
PB
10802 break
10803 else
2aeb72e9
DD
10804 echo "$as_me:$LINENO: result: no" >&5
10805echo "${ECHO_T}no" >&6
e8b05380
PB
10806 fi
10807 done
10808fi
10809
10810if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10811 for ncn_progname in nm; do
10812 if test -n "$ncn_target_tool_prefix"; then
10813 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10814set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10815echo "$as_me:$LINENO: checking for $ac_word" >&5
10816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10817if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10819else
4de997d1
PB
10820 if test -n "$NM_FOR_TARGET"; then
10821 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10822else
1c710c3c
DJ
10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10830 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10832 break 2
10833 fi
10834done
10835done
10836
ca9f4b81
AO
10837fi
10838fi
1c710c3c 10839NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10840if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10841 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10842echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10843else
2aeb72e9
DD
10844 echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6
ca9f4b81
AO
10846fi
10847
e8b05380
PB
10848 fi
10849 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10851set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10852echo "$as_me:$LINENO: checking for $ac_word" >&5
10853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10854if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10856else
2693c0b0
PB
10857 if test -n "$NM_FOR_TARGET"; then
10858 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10859else
1c710c3c
DJ
10860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861for as_dir in $PATH
10862do
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10867 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10870 fi
10871done
10872done
10873
ca9f4b81
AO
10874fi
10875fi
1c710c3c 10876NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10877if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10878 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10879echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10880else
2aeb72e9
DD
10881 echo "$as_me:$LINENO: result: no" >&5
10882echo "${ECHO_T}no" >&6
ca9f4b81 10883fi
1c710c3c 10884
e8b05380
PB
10885 fi
10886 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10887 done
10888fi
1c710c3c 10889
2693c0b0
PB
10890if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10891 set dummy nm
10892 if test $build = $target ; then
10893 NM_FOR_TARGET="$2"
ca9f4b81 10894 else
2693c0b0 10895 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10896 fi
1c00b503
PB
10897else
10898 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10899fi
10900
d1f8db0c
PB
10901else
10902 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10903fi
10904
10905
10906
10907
10908if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10909 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10910 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10911echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10912 if test -x $with_build_time_tools/objdump; then
10913 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10914 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10915 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10916echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10917 else
2aeb72e9
DD
10918 echo "$as_me:$LINENO: result: no" >&5
10919echo "${ECHO_T}no" >&6
d1f8db0c 10920 fi
e8b05380
PB
10921 elif test $build != $host && test $have_gcc_for_target = yes; then
10922 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10923 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10924 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10925 fi
10926fi
3e19841a 10927if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10928 # Extract the first word of "objdump", so it can be a program name with args.
10929set dummy objdump; ac_word=$2
2aeb72e9
DD
10930echo "$as_me:$LINENO: checking for $ac_word" >&5
10931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10932if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10934else
1c710c3c
DJ
10935 case $OBJDUMP_FOR_TARGET in
10936 [\\/]* | ?:[\\/]*)
e8b05380
PB
10937 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10938 ;;
e8b05380 10939 *)
1c710c3c
DJ
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $gcc_cv_tool_dirs
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10947 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951done
10952done
10953
e8b05380
PB
10954 ;;
10955esac
10956fi
1c710c3c 10957OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10958
e8b05380 10959if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10960 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10961echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10962else
2aeb72e9
DD
10963 echo "$as_me:$LINENO: result: no" >&5
10964echo "${ECHO_T}no" >&6
e8b05380
PB
10965fi
10966
10967fi
10968if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10969
10970
10971if test -n "$OBJDUMP_FOR_TARGET"; then
10972 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10973elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10974 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10975fi
10976
10977if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10978 for ncn_progname in objdump; do
10979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10980set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10981echo "$as_me:$LINENO: checking for $ac_word" >&5
10982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10983if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10985else
10986 if test -n "$OBJDUMP_FOR_TARGET"; then
10987 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10988else
10989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990for as_dir in $PATH
10991do
10992 IFS=$as_save_IFS
10993 test -z "$as_dir" && as_dir=.
10994 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10996 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 break 2
10999 fi
11000done
11001done
11002
11003fi
11004fi
11005OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11006if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
11007 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11008echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 11009else
2aeb72e9
DD
11010 echo "$as_me:$LINENO: result: no" >&5
11011echo "${ECHO_T}no" >&6
278a7a38
AO
11012fi
11013
11014 done
11015fi
11016
11017if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11018 for ncn_progname in objdump; do
2aeb72e9
DD
11019 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11020echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11021 if test -x $with_build_time_tools/${ncn_progname}; then
11022 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11023 echo "$as_me:$LINENO: result: yes" >&5
11024echo "${ECHO_T}yes" >&6
e8b05380
PB
11025 break
11026 else
2aeb72e9
DD
11027 echo "$as_me:$LINENO: result: no" >&5
11028echo "${ECHO_T}no" >&6
e8b05380
PB
11029 fi
11030 done
11031fi
11032
11033if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11034 for ncn_progname in objdump; do
11035 if test -n "$ncn_target_tool_prefix"; then
11036 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11037set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11038echo "$as_me:$LINENO: checking for $ac_word" >&5
11039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11040if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
11042else
11043 if test -n "$OBJDUMP_FOR_TARGET"; then
11044 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11045else
1c710c3c
DJ
11046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11053 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11056 fi
11057done
11058done
11059
d739199a
DJ
11060fi
11061fi
1c710c3c 11062OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11063if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
11064 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11065echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 11066else
2aeb72e9
DD
11067 echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6
d739199a
DJ
11069fi
11070
e8b05380
PB
11071 fi
11072 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 11074set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11075echo "$as_me:$LINENO: checking for $ac_word" >&5
11076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11077if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
11079else
11080 if test -n "$OBJDUMP_FOR_TARGET"; then
11081 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11082else
1c710c3c
DJ
11083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $PATH
11085do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11090 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11093 fi
11094done
11095done
11096
d739199a
DJ
11097fi
11098fi
1c710c3c 11099OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 11100if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
11101 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
11102echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 11103else
2aeb72e9
DD
11104 echo "$as_me:$LINENO: result: no" >&5
11105echo "${ECHO_T}no" >&6
d739199a 11106fi
1c710c3c 11107
e8b05380
PB
11108 fi
11109 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11110 done
11111fi
1c710c3c 11112
d739199a
DJ
11113if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11114 set dummy objdump
11115 if test $build = $target ; then
11116 OBJDUMP_FOR_TARGET="$2"
11117 else
11118 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11119 fi
1c00b503
PB
11120else
11121 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
11122fi
11123
d1f8db0c
PB
11124else
11125 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
11126fi
11127
11128
11129
11130
11131if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11132 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11133 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
11134echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11135 if test -x $with_build_time_tools/ranlib; then
11136 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11137 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
11138 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11139echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 11140 else
2aeb72e9
DD
11141 echo "$as_me:$LINENO: result: no" >&5
11142echo "${ECHO_T}no" >&6
d1f8db0c 11143 fi
e8b05380
PB
11144 elif test $build != $host && test $have_gcc_for_target = yes; then
11145 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
11146 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11147 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
11148 fi
11149fi
3e19841a 11150if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11151 # Extract the first word of "ranlib", so it can be a program name with args.
11152set dummy ranlib; ac_word=$2
2aeb72e9
DD
11153echo "$as_me:$LINENO: checking for $ac_word" >&5
11154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11155if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11157else
1c710c3c
DJ
11158 case $RANLIB_FOR_TARGET in
11159 [\\/]* | ?:[\\/]*)
e8b05380
PB
11160 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11161 ;;
e8b05380 11162 *)
1c710c3c
DJ
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164for as_dir in $gcc_cv_tool_dirs
11165do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11170 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174done
11175done
11176
e8b05380
PB
11177 ;;
11178esac
11179fi
1c710c3c 11180RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 11181
e8b05380 11182if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11183 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11184echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 11185else
2aeb72e9
DD
11186 echo "$as_me:$LINENO: result: no" >&5
11187echo "${ECHO_T}no" >&6
e8b05380
PB
11188fi
11189
11190fi
11191if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
11192
11193
11194if test -n "$RANLIB_FOR_TARGET"; then
11195 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11196elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11197 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11198fi
11199
11200if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11201 for ncn_progname in ranlib; do
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11203set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11204echo "$as_me:$LINENO: checking for $ac_word" >&5
11205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11206if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 if test -n "$RANLIB_FOR_TARGET"; then
11210 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11211else
11212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213for as_dir in $PATH
11214do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11219 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11222 fi
11223done
11224done
11225
11226fi
11227fi
11228RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11229if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11230 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11231echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 11232else
2aeb72e9
DD
11233 echo "$as_me:$LINENO: result: no" >&5
11234echo "${ECHO_T}no" >&6
278a7a38
AO
11235fi
11236
11237 done
11238fi
11239
11240if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11241 for ncn_progname in ranlib; do
2aeb72e9
DD
11242 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11243echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11244 if test -x $with_build_time_tools/${ncn_progname}; then
11245 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11246 echo "$as_me:$LINENO: result: yes" >&5
11247echo "${ECHO_T}yes" >&6
e8b05380
PB
11248 break
11249 else
2aeb72e9
DD
11250 echo "$as_me:$LINENO: result: no" >&5
11251echo "${ECHO_T}no" >&6
e8b05380
PB
11252 fi
11253 done
11254fi
11255
11256if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11257 for ncn_progname in ranlib; do
11258 if test -n "$ncn_target_tool_prefix"; then
11259 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 11260set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11261echo "$as_me:$LINENO: checking for $ac_word" >&5
11262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11263if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11265else
4de997d1
PB
11266 if test -n "$RANLIB_FOR_TARGET"; then
11267 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11268else
1c710c3c
DJ
11269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11276 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11278 break 2
11279 fi
11280done
11281done
11282
ca9f4b81
AO
11283fi
11284fi
1c710c3c 11285RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 11286if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11287 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11288echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 11289else
2aeb72e9
DD
11290 echo "$as_me:$LINENO: result: no" >&5
11291echo "${ECHO_T}no" >&6
ca9f4b81
AO
11292fi
11293
e8b05380
PB
11294 fi
11295 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11297set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11298echo "$as_me:$LINENO: checking for $ac_word" >&5
11299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11300if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11302else
2693c0b0
PB
11303 if test -n "$RANLIB_FOR_TARGET"; then
11304 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 11305else
1c710c3c
DJ
11306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $PATH
11308do
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11313 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11316 fi
11317done
11318done
11319
ca9f4b81
AO
11320fi
11321fi
1c710c3c 11322RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 11323if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
11324 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
11325echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 11326else
2aeb72e9
DD
11327 echo "$as_me:$LINENO: result: no" >&5
11328echo "${ECHO_T}no" >&6
ca9f4b81 11329fi
1c710c3c 11330
e8b05380
PB
11331 fi
11332 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11333 done
11334fi
1c710c3c 11335
e8b05380
PB
11336if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11337 set dummy ranlib
11338 if test $build = $target ; then
11339 RANLIB_FOR_TARGET="$2"
11340 else
11341 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11342 fi
1c00b503
PB
11343else
11344 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 11345fi
2693c0b0 11346
d1f8db0c
PB
11347else
11348 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
11349fi
11350
e8b05380
PB
11351
11352
11353
11354if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11355 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11356 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
11357echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11358 if test -x $with_build_time_tools/strip; then
11359 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11360 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
11361 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11362echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 11363 else
2aeb72e9
DD
11364 echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
d1f8db0c 11366 fi
e8b05380
PB
11367 elif test $build != $host && test $have_gcc_for_target = yes; then
11368 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
11369 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11370 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
11371 fi
11372fi
3e19841a 11373if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11374 # Extract the first word of "strip", so it can be a program name with args.
11375set dummy strip; ac_word=$2
2aeb72e9
DD
11376echo "$as_me:$LINENO: checking for $ac_word" >&5
11377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11378if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11380else
1c710c3c
DJ
11381 case $STRIP_FOR_TARGET in
11382 [\\/]* | ?:[\\/]*)
e8b05380
PB
11383 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11384 ;;
e8b05380 11385 *)
1c710c3c
DJ
11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387for as_dir in $gcc_cv_tool_dirs
11388do
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11393 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11396 fi
11397done
11398done
11399
e8b05380
PB
11400 ;;
11401esac
11402fi
1c710c3c 11403STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 11404
e8b05380 11405if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11406 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11407echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 11408else
2aeb72e9
DD
11409 echo "$as_me:$LINENO: result: no" >&5
11410echo "${ECHO_T}no" >&6
e8b05380
PB
11411fi
11412
11413fi
11414if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
11415
11416
11417if test -n "$STRIP_FOR_TARGET"; then
11418 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11419elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11420 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11421fi
11422
11423if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11424 for ncn_progname in strip; do
11425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11426set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11427echo "$as_me:$LINENO: checking for $ac_word" >&5
11428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11429if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431else
11432 if test -n "$STRIP_FOR_TARGET"; then
11433 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11442 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446done
11447done
11448
11449fi
11450fi
11451STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11452if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11453 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11454echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 11455else
2aeb72e9
DD
11456 echo "$as_me:$LINENO: result: no" >&5
11457echo "${ECHO_T}no" >&6
278a7a38
AO
11458fi
11459
11460 done
11461fi
11462
11463if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11464 for ncn_progname in strip; do
2aeb72e9
DD
11465 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11466echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11467 if test -x $with_build_time_tools/${ncn_progname}; then
11468 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11469 echo "$as_me:$LINENO: result: yes" >&5
11470echo "${ECHO_T}yes" >&6
e8b05380
PB
11471 break
11472 else
2aeb72e9
DD
11473 echo "$as_me:$LINENO: result: no" >&5
11474echo "${ECHO_T}no" >&6
e8b05380
PB
11475 fi
11476 done
11477fi
11478
11479if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11480 for ncn_progname in strip; do
11481 if test -n "$ncn_target_tool_prefix"; then
11482 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11483set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11484echo "$as_me:$LINENO: checking for $ac_word" >&5
11485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11486if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11488else
11489 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11490 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11499 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 break 2
11502 fi
11503done
11504done
11505
040b1c5a
GK
11506fi
11507fi
1c710c3c 11508STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11509if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11510 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11511echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11512else
2aeb72e9
DD
11513 echo "$as_me:$LINENO: result: no" >&5
11514echo "${ECHO_T}no" >&6
040b1c5a
GK
11515fi
11516
e8b05380
PB
11517 fi
11518 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11520set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11521echo "$as_me:$LINENO: checking for $ac_word" >&5
11522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11523if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11525else
11526 if test -n "$STRIP_FOR_TARGET"; then
11527 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11528else
1c710c3c
DJ
11529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530for as_dir in $PATH
11531do
11532 IFS=$as_save_IFS
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11536 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11538 break 2
11539 fi
11540done
11541done
11542
040b1c5a
GK
11543fi
11544fi
1c710c3c 11545STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11546if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11547 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11548echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11549else
2aeb72e9
DD
11550 echo "$as_me:$LINENO: result: no" >&5
11551echo "${ECHO_T}no" >&6
040b1c5a 11552fi
1c710c3c 11553
e8b05380
PB
11554 fi
11555 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11556 done
11557fi
1c710c3c 11558
040b1c5a
GK
11559if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11560 set dummy strip
11561 if test $build = $target ; then
11562 STRIP_FOR_TARGET="$2"
11563 else
11564 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11565 fi
1c00b503
PB
11566else
11567 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11568fi
11569
d1f8db0c
PB
11570else
11571 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11572fi
11573
11574
11575
11576
11577if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11578 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11579 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11580echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11581 if test -x $with_build_time_tools/windres; then
11582 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11583 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
11584 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11585echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 11586 else
2aeb72e9
DD
11587 echo "$as_me:$LINENO: result: no" >&5
11588echo "${ECHO_T}no" >&6
d1f8db0c 11589 fi
e8b05380
PB
11590 elif test $build != $host && test $have_gcc_for_target = yes; then
11591 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11592 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11593 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11594 fi
11595fi
3e19841a 11596if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11597 # Extract the first word of "windres", so it can be a program name with args.
11598set dummy windres; ac_word=$2
2aeb72e9
DD
11599echo "$as_me:$LINENO: checking for $ac_word" >&5
11600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11601if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11603else
1c710c3c
DJ
11604 case $WINDRES_FOR_TARGET in
11605 [\\/]* | ?:[\\/]*)
e8b05380
PB
11606 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11607 ;;
e8b05380 11608 *)
1c710c3c
DJ
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $gcc_cv_tool_dirs
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11616 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 break 2
11619 fi
11620done
11621done
11622
e8b05380
PB
11623 ;;
11624esac
11625fi
1c710c3c 11626WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 11627
e8b05380 11628if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11629 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11630echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 11631else
2aeb72e9
DD
11632 echo "$as_me:$LINENO: result: no" >&5
11633echo "${ECHO_T}no" >&6
e8b05380
PB
11634fi
11635
11636fi
11637if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11638
11639
11640if test -n "$WINDRES_FOR_TARGET"; then
11641 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11642elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11643 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11644fi
11645
11646if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11647 for ncn_progname in windres; do
11648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11649set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11650echo "$as_me:$LINENO: checking for $ac_word" >&5
11651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11652if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 if test -n "$WINDRES_FOR_TARGET"; then
11656 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11657else
11658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659for as_dir in $PATH
11660do
11661 IFS=$as_save_IFS
11662 test -z "$as_dir" && as_dir=.
11663 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11665 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11667 break 2
11668 fi
11669done
11670done
11671
11672fi
11673fi
11674WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11675if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11676 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11677echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 11678else
2aeb72e9
DD
11679 echo "$as_me:$LINENO: result: no" >&5
11680echo "${ECHO_T}no" >&6
278a7a38
AO
11681fi
11682
11683 done
11684fi
11685
11686if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11687 for ncn_progname in windres; do
2aeb72e9
DD
11688 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11689echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11690 if test -x $with_build_time_tools/${ncn_progname}; then
11691 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11692 echo "$as_me:$LINENO: result: yes" >&5
11693echo "${ECHO_T}yes" >&6
e8b05380
PB
11694 break
11695 else
2aeb72e9
DD
11696 echo "$as_me:$LINENO: result: no" >&5
11697echo "${ECHO_T}no" >&6
e8b05380
PB
11698 fi
11699 done
11700fi
11701
11702if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11703 for ncn_progname in windres; do
11704 if test -n "$ncn_target_tool_prefix"; then
11705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11706set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11707echo "$as_me:$LINENO: checking for $ac_word" >&5
11708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11709if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11711else
4de997d1
PB
11712 if test -n "$WINDRES_FOR_TARGET"; then
11713 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11714else
1c710c3c
DJ
11715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716for as_dir in $PATH
11717do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11722 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726done
11727done
11728
ca9f4b81
AO
11729fi
11730fi
1c710c3c 11731WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11732if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11733 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11734echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11735else
2aeb72e9
DD
11736 echo "$as_me:$LINENO: result: no" >&5
11737echo "${ECHO_T}no" >&6
ca9f4b81
AO
11738fi
11739
e8b05380
PB
11740 fi
11741 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11743set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11744echo "$as_me:$LINENO: checking for $ac_word" >&5
11745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11746if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11748else
2693c0b0
PB
11749 if test -n "$WINDRES_FOR_TARGET"; then
11750 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11751else
1c710c3c
DJ
11752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753for as_dir in $PATH
11754do
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11759 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11762 fi
11763done
11764done
11765
ca9f4b81
AO
11766fi
11767fi
1c710c3c 11768WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11769if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11770 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11771echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11772else
2aeb72e9
DD
11773 echo "$as_me:$LINENO: result: no" >&5
11774echo "${ECHO_T}no" >&6
ca9f4b81 11775fi
1c710c3c 11776
e8b05380
PB
11777 fi
11778 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11779 done
11780fi
1c710c3c 11781
2693c0b0
PB
11782if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11783 set dummy windres
11784 if test $build = $target ; then
11785 WINDRES_FOR_TARGET="$2"
ca9f4b81 11786 else
2693c0b0 11787 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11788 fi
1c00b503
PB
11789else
11790 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
11791fi
11792
d1f8db0c
PB
11793else
11794 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11795fi
11796
4977bab6 11797
901119ae
KT
11798
11799
11800if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11801 if test -n "$with_build_time_tools"; then
11802 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11803echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11804 if test -x $with_build_time_tools/windmc; then
11805 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11806 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11807 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11808echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11809 else
11810 echo "$as_me:$LINENO: result: no" >&5
11811echo "${ECHO_T}no" >&6
11812 fi
11813 elif test $build != $host && test $have_gcc_for_target = yes; then
11814 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11815 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11816 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11817 fi
11818fi
11819if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11820 # Extract the first word of "windmc", so it can be a program name with args.
11821set dummy windmc; ac_word=$2
11822echo "$as_me:$LINENO: checking for $ac_word" >&5
11823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11824if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826else
11827 case $WINDMC_FOR_TARGET in
11828 [\\/]* | ?:[\\/]*)
11829 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11830 ;;
11831 *)
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $gcc_cv_tool_dirs
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11839 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
11844done
11845
11846 ;;
11847esac
11848fi
11849WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11850
11851if test -n "$WINDMC_FOR_TARGET"; then
11852 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11853echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11854else
11855 echo "$as_me:$LINENO: result: no" >&5
11856echo "${ECHO_T}no" >&6
11857fi
11858
11859fi
11860if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11861
11862
11863if test -n "$WINDMC_FOR_TARGET"; then
11864 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11865elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11866 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11867fi
11868
11869if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11870 for ncn_progname in windmc; do
11871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11872set dummy ${ncn_progname}; ac_word=$2
11873echo "$as_me:$LINENO: checking for $ac_word" >&5
11874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11875if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878 if test -n "$WINDMC_FOR_TARGET"; then
11879 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11880else
11881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882for as_dir in $PATH
11883do
11884 IFS=$as_save_IFS
11885 test -z "$as_dir" && as_dir=.
11886 for ac_exec_ext in '' $ac_executable_extensions; do
11887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11888 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11890 break 2
11891 fi
11892done
11893done
11894
11895fi
11896fi
11897WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11898if test -n "$WINDMC_FOR_TARGET"; then
11899 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11900echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11901else
11902 echo "$as_me:$LINENO: result: no" >&5
11903echo "${ECHO_T}no" >&6
11904fi
11905
11906 done
11907fi
11908
11909if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11910 for ncn_progname in windmc; do
11911 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11912echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11913 if test -x $with_build_time_tools/${ncn_progname}; then
11914 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11915 echo "$as_me:$LINENO: result: yes" >&5
11916echo "${ECHO_T}yes" >&6
11917 break
11918 else
11919 echo "$as_me:$LINENO: result: no" >&5
11920echo "${ECHO_T}no" >&6
11921 fi
11922 done
11923fi
11924
11925if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11926 for ncn_progname in windmc; do
11927 if test -n "$ncn_target_tool_prefix"; then
11928 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11929set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11930echo "$as_me:$LINENO: checking for $ac_word" >&5
11931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11932if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 if test -n "$WINDMC_FOR_TARGET"; then
11936 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11937else
11938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939for as_dir in $PATH
11940do
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11945 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11948 fi
11949done
11950done
11951
11952fi
11953fi
11954WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11955if test -n "$WINDMC_FOR_TARGET"; then
11956 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11957echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11958else
11959 echo "$as_me:$LINENO: result: no" >&5
11960echo "${ECHO_T}no" >&6
11961fi
11962
11963 fi
11964 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11966set dummy ${ncn_progname}; ac_word=$2
11967echo "$as_me:$LINENO: checking for $ac_word" >&5
11968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11969if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
11972 if test -n "$WINDMC_FOR_TARGET"; then
11973 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11974else
11975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $PATH
11977do
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11985 fi
11986done
11987done
11988
11989fi
11990fi
11991WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11992if test -n "$WINDMC_FOR_TARGET"; then
11993 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11994echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11995else
11996 echo "$as_me:$LINENO: result: no" >&5
11997echo "${ECHO_T}no" >&6
11998fi
11999
12000 fi
12001 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12002 done
12003fi
12004
12005if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12006 set dummy windmc
12007 if test $build = $target ; then
12008 WINDMC_FOR_TARGET="$2"
12009 else
12010 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12011 fi
1c00b503
PB
12012else
12013 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
12014fi
12015
12016else
12017 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12018fi
12019
12020
2abefe3d
PB
12021RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12022
2aeb72e9
DD
12023echo "$as_me:$LINENO: checking where to find the target ar" >&5
12024echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 12025if test "x${build}" != "x${host}" ; then
e8b05380
PB
12026 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12027 # We already found the complete path
172e41aa 12028 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
12029 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12030echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12031 else
12032 # Canadian cross, just use what we found
2aeb72e9
DD
12033 echo "$as_me:$LINENO: result: pre-installed" >&5
12034echo "${ECHO_T}pre-installed" >&6
e8b05380 12035 fi
2abefe3d
PB
12036else
12037 ok=yes
12038 case " ${configdirs} " in
12039 *" binutils "*) ;;
12040 *) ok=no ;;
12041 esac
1c710c3c 12042
2abefe3d
PB
12043 if test $ok = yes; then
12044 # An in-tree tool is available and we can use it
12045 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
12046 echo "$as_me:$LINENO: result: just compiled" >&5
12047echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12048 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12049 # We already found the complete path
172e41aa 12050 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
12051 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12052echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12053 elif test "x$target" = "x$host"; then
12054 # We can use an host tool
12055 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
12056 echo "$as_me:$LINENO: result: host tool" >&5
12057echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12058 else
12059 # We need a cross tool
2aeb72e9
DD
12060 echo "$as_me:$LINENO: result: pre-installed" >&5
12061echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12062 fi
12063fi
0b0dc272 12064
2aeb72e9
DD
12065echo "$as_me:$LINENO: checking where to find the target as" >&5
12066echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 12067if test "x${build}" != "x${host}" ; then
e8b05380
PB
12068 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12069 # We already found the complete path
172e41aa 12070 ac_dir=`dirname $AS_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
e8b05380
PB
12073 else
12074 # Canadian cross, just use what we found
2aeb72e9
DD
12075 echo "$as_me:$LINENO: result: pre-installed" >&5
12076echo "${ECHO_T}pre-installed" >&6
e8b05380 12077 fi
2abefe3d
PB
12078else
12079 ok=yes
12080 case " ${configdirs} " in
12081 *" gas "*) ;;
12082 *) ok=no ;;
12083 esac
1c710c3c 12084
2abefe3d
PB
12085 if test $ok = yes; then
12086 # An in-tree tool is available and we can use it
12087 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
12088 echo "$as_me:$LINENO: result: just compiled" >&5
12089echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12090 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12091 # We already found the complete path
172e41aa 12092 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
12093 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12094echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12095 elif test "x$target" = "x$host"; then
12096 # We can use an host tool
12097 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
12098 echo "$as_me:$LINENO: result: host tool" >&5
12099echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12100 else
12101 # We need a cross tool
2aeb72e9
DD
12102 echo "$as_me:$LINENO: result: pre-installed" >&5
12103echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12104 fi
12105fi
0b0dc272 12106
2aeb72e9
DD
12107echo "$as_me:$LINENO: checking where to find the target cc" >&5
12108echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 12109if test "x${build}" != "x${host}" ; then
e8b05380
PB
12110 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12111 # We already found the complete path
172e41aa 12112 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
12113 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12114echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12115 else
12116 # Canadian cross, just use what we found
2aeb72e9
DD
12117 echo "$as_me:$LINENO: result: pre-installed" >&5
12118echo "${ECHO_T}pre-installed" >&6
e8b05380 12119 fi
2abefe3d
PB
12120else
12121 ok=yes
12122 case " ${configdirs} " in
12123 *" gcc "*) ;;
12124 *) ok=no ;;
12125 esac
1c710c3c 12126
2abefe3d
PB
12127 if test $ok = yes; then
12128 # An in-tree tool is available and we can use it
12129 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12130 echo "$as_me:$LINENO: result: just compiled" >&5
12131echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12132 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12133 # We already found the complete path
172e41aa 12134 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
12135 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12136echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12137 elif test "x$target" = "x$host"; then
12138 # We can use an host tool
12139 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
12140 echo "$as_me:$LINENO: result: host tool" >&5
12141echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12142 else
12143 # We need a cross tool
2aeb72e9
DD
12144 echo "$as_me:$LINENO: result: pre-installed" >&5
12145echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12146 fi
12147fi
0b0dc272 12148
2aeb72e9
DD
12149echo "$as_me:$LINENO: checking where to find the target c++" >&5
12150echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 12151if test "x${build}" != "x${host}" ; then
e8b05380
PB
12152 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12153 # We already found the complete path
172e41aa 12154 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
12155 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12156echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12157 else
12158 # Canadian cross, just use what we found
2aeb72e9
DD
12159 echo "$as_me:$LINENO: result: pre-installed" >&5
12160echo "${ECHO_T}pre-installed" >&6
e8b05380 12161 fi
2abefe3d
PB
12162else
12163 ok=yes
12164 case " ${configdirs} " in
12165 *" gcc "*) ;;
12166 *) ok=no ;;
12167 esac
12168 case ,${enable_languages}, in
12169 *,c++,*) ;;
12170 *) ok=no ;;
12171 esac
12172 if test $ok = yes; then
12173 # An in-tree tool is available and we can use it
12174 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
12175 echo "$as_me:$LINENO: result: just compiled" >&5
12176echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12177 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12178 # We already found the complete path
172e41aa 12179 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
12180 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12181echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12182 elif test "x$target" = "x$host"; then
12183 # We can use an host tool
12184 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
12185 echo "$as_me:$LINENO: result: host tool" >&5
12186echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12187 else
12188 # We need a cross tool
2aeb72e9
DD
12189 echo "$as_me:$LINENO: result: pre-installed" >&5
12190echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12191 fi
12192fi
0b0dc272 12193
2aeb72e9
DD
12194echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
12195echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 12196if test "x${build}" != "x${host}" ; then
e8b05380
PB
12197 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12198 # We already found the complete path
172e41aa 12199 ac_dir=`dirname $RAW_CXX_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
e8b05380
PB
12202 else
12203 # Canadian cross, just use what we found
2aeb72e9
DD
12204 echo "$as_me:$LINENO: result: pre-installed" >&5
12205echo "${ECHO_T}pre-installed" >&6
e8b05380 12206 fi
2abefe3d
PB
12207else
12208 ok=yes
12209 case " ${configdirs} " in
12210 *" gcc "*) ;;
12211 *) ok=no ;;
12212 esac
12213 case ,${enable_languages}, in
12214 *,c++,*) ;;
12215 *) ok=no ;;
12216 esac
12217 if test $ok = yes; then
12218 # An in-tree tool is available and we can use it
12219 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
12220 echo "$as_me:$LINENO: result: just compiled" >&5
12221echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12222 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12223 # We already found the complete path
172e41aa 12224 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
12225 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12226echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12227 elif test "x$target" = "x$host"; then
12228 # We can use an host tool
12229 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
12230 echo "$as_me:$LINENO: result: host tool" >&5
12231echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12232 else
12233 # We need a cross tool
2aeb72e9
DD
12234 echo "$as_me:$LINENO: result: pre-installed" >&5
12235echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12236 fi
12237fi
0b0dc272 12238
2aeb72e9
DD
12239echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
12240echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 12241if test "x${build}" != "x${host}" ; then
e8b05380
PB
12242 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12243 # We already found the complete path
172e41aa 12244 ac_dir=`dirname $DLLTOOL_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
e8b05380
PB
12247 else
12248 # Canadian cross, just use what we found
2aeb72e9
DD
12249 echo "$as_me:$LINENO: result: pre-installed" >&5
12250echo "${ECHO_T}pre-installed" >&6
e8b05380 12251 fi
2abefe3d
PB
12252else
12253 ok=yes
12254 case " ${configdirs} " in
12255 *" binutils "*) ;;
12256 *) ok=no ;;
12257 esac
1c710c3c 12258
2abefe3d
PB
12259 if test $ok = yes; then
12260 # An in-tree tool is available and we can use it
12261 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
12262 echo "$as_me:$LINENO: result: just compiled" >&5
12263echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12264 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12265 # We already found the complete path
172e41aa 12266 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
12267 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12268echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12269 elif test "x$target" = "x$host"; then
12270 # We can use an host tool
12271 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
12272 echo "$as_me:$LINENO: result: host tool" >&5
12273echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12274 else
12275 # We need a cross tool
2aeb72e9
DD
12276 echo "$as_me:$LINENO: result: pre-installed" >&5
12277echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12278 fi
12279fi
0b0dc272 12280
2aeb72e9
DD
12281echo "$as_me:$LINENO: checking where to find the target gcc" >&5
12282echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 12283if test "x${build}" != "x${host}" ; then
e8b05380
PB
12284 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12285 # We already found the complete path
172e41aa 12286 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
12287 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12288echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12289 else
12290 # Canadian cross, just use what we found
2aeb72e9
DD
12291 echo "$as_me:$LINENO: result: pre-installed" >&5
12292echo "${ECHO_T}pre-installed" >&6
e8b05380 12293 fi
2abefe3d
PB
12294else
12295 ok=yes
12296 case " ${configdirs} " in
12297 *" gcc "*) ;;
12298 *) ok=no ;;
12299 esac
1c710c3c 12300
2abefe3d
PB
12301 if test $ok = yes; then
12302 # An in-tree tool is available and we can use it
12303 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12304 echo "$as_me:$LINENO: result: just compiled" >&5
12305echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12306 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12307 # We already found the complete path
172e41aa 12308 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
12309 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12310echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12311 elif test "x$target" = "x$host"; then
12312 # We can use an host tool
12313 GCC_FOR_TARGET='$()'
2aeb72e9
DD
12314 echo "$as_me:$LINENO: result: host tool" >&5
12315echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12316 else
12317 # We need a cross tool
2aeb72e9
DD
12318 echo "$as_me:$LINENO: result: pre-installed" >&5
12319echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12320 fi
12321fi
0b0dc272 12322
2aeb72e9
DD
12323echo "$as_me:$LINENO: checking where to find the target gcj" >&5
12324echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 12325if test "x${build}" != "x${host}" ; then
e8b05380
PB
12326 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12327 # We already found the complete path
172e41aa 12328 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
12329 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12330echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12331 else
12332 # Canadian cross, just use what we found
2aeb72e9
DD
12333 echo "$as_me:$LINENO: result: pre-installed" >&5
12334echo "${ECHO_T}pre-installed" >&6
e8b05380 12335 fi
2abefe3d
PB
12336else
12337 ok=yes
12338 case " ${configdirs} " in
12339 *" gcc "*) ;;
12340 *) ok=no ;;
12341 esac
12342 case ,${enable_languages}, in
12343 *,java,*) ;;
12344 *) ok=no ;;
12345 esac
12346 if test $ok = yes; then
12347 # An in-tree tool is available and we can use it
12348 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12349 echo "$as_me:$LINENO: result: just compiled" >&5
12350echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12351 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12352 # We already found the complete path
172e41aa 12353 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
12354 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12355echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12356 elif test "x$target" = "x$host"; then
12357 # We can use an host tool
12358 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
12359 echo "$as_me:$LINENO: result: host tool" >&5
12360echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12361 else
12362 # We need a cross tool
2aeb72e9
DD
12363 echo "$as_me:$LINENO: result: pre-installed" >&5
12364echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12365 fi
12366fi
0b0dc272 12367
2aeb72e9
DD
12368echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
12369echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 12370if test "x${build}" != "x${host}" ; then
e8b05380
PB
12371 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12372 # We already found the complete path
172e41aa 12373 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12374 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12375echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12376 else
12377 # Canadian cross, just use what we found
2aeb72e9
DD
12378 echo "$as_me:$LINENO: result: pre-installed" >&5
12379echo "${ECHO_T}pre-installed" >&6
e8b05380 12380 fi
2abefe3d
PB
12381else
12382 ok=yes
12383 case " ${configdirs} " in
12384 *" gcc "*) ;;
12385 *) ok=no ;;
12386 esac
12387 case ,${enable_languages}, in
12388 *,fortran,*) ;;
12389 *) ok=no ;;
12390 esac
12391 if test $ok = yes; then
12392 # An in-tree tool is available and we can use it
12393 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12394 echo "$as_me:$LINENO: result: just compiled" >&5
12395echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12396 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12397 # We already found the complete path
172e41aa 12398 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12399 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12400echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12401 elif test "x$target" = "x$host"; then
12402 # We can use an host tool
12403 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
12404 echo "$as_me:$LINENO: result: host tool" >&5
12405echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12406 else
12407 # We need a cross tool
2aeb72e9
DD
12408 echo "$as_me:$LINENO: result: pre-installed" >&5
12409echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12410 fi
12411fi
0b0dc272 12412
2aeb72e9
DD
12413echo "$as_me:$LINENO: checking where to find the target ld" >&5
12414echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 12415if test "x${build}" != "x${host}" ; then
e8b05380
PB
12416 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12417 # We already found the complete path
172e41aa 12418 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12419 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12420echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12421 else
12422 # Canadian cross, just use what we found
2aeb72e9
DD
12423 echo "$as_me:$LINENO: result: pre-installed" >&5
12424echo "${ECHO_T}pre-installed" >&6
e8b05380 12425 fi
2abefe3d
PB
12426else
12427 ok=yes
12428 case " ${configdirs} " in
12429 *" ld "*) ;;
12430 *) ok=no ;;
12431 esac
1c710c3c 12432
2abefe3d
PB
12433 if test $ok = yes; then
12434 # An in-tree tool is available and we can use it
12435 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
12436 echo "$as_me:$LINENO: result: just compiled" >&5
12437echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12438 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12439 # We already found the complete path
172e41aa 12440 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12441 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12442echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12443 elif test "x$target" = "x$host"; then
12444 # We can use an host tool
12445 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
12446 echo "$as_me:$LINENO: result: host tool" >&5
12447echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12448 else
12449 # We need a cross tool
2aeb72e9
DD
12450 echo "$as_me:$LINENO: result: pre-installed" >&5
12451echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12452 fi
12453fi
0b0dc272 12454
2aeb72e9
DD
12455echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12456echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 12457if test "x${build}" != "x${host}" ; then
e8b05380
PB
12458 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12459 # We already found the complete path
172e41aa 12460 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12461 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12462echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12463 else
12464 # Canadian cross, just use what we found
2aeb72e9
DD
12465 echo "$as_me:$LINENO: result: pre-installed" >&5
12466echo "${ECHO_T}pre-installed" >&6
e8b05380 12467 fi
2abefe3d 12468else
e8b05380
PB
12469 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12470 # We already found the complete path
172e41aa 12471 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12472 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12473echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 12474 elif test "x$target" = "x$host"; then
2abefe3d
PB
12475 # We can use an host tool
12476 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
12477 echo "$as_me:$LINENO: result: host tool" >&5
12478echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12479 else
12480 # We need a cross tool
2aeb72e9
DD
12481 echo "$as_me:$LINENO: result: pre-installed" >&5
12482echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12483 fi
12484fi
0b0dc272 12485
2aeb72e9
DD
12486echo "$as_me:$LINENO: checking where to find the target nm" >&5
12487echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 12488if test "x${build}" != "x${host}" ; then
e8b05380
PB
12489 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12490 # We already found the complete path
172e41aa 12491 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12492 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12493echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12494 else
12495 # Canadian cross, just use what we found
2aeb72e9
DD
12496 echo "$as_me:$LINENO: result: pre-installed" >&5
12497echo "${ECHO_T}pre-installed" >&6
e8b05380 12498 fi
2abefe3d
PB
12499else
12500 ok=yes
12501 case " ${configdirs} " in
12502 *" binutils "*) ;;
12503 *) ok=no ;;
12504 esac
1c710c3c 12505
2abefe3d
PB
12506 if test $ok = yes; then
12507 # An in-tree tool is available and we can use it
12508 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
12509 echo "$as_me:$LINENO: result: just compiled" >&5
12510echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12511 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12512 # We already found the complete path
172e41aa 12513 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12514 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12515echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12516 elif test "x$target" = "x$host"; then
12517 # We can use an host tool
12518 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
12519 echo "$as_me:$LINENO: result: host tool" >&5
12520echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12521 else
12522 # We need a cross tool
2aeb72e9
DD
12523 echo "$as_me:$LINENO: result: pre-installed" >&5
12524echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12525 fi
12526fi
0b0dc272 12527
2aeb72e9
DD
12528echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12529echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 12530if test "x${build}" != "x${host}" ; then
e8b05380
PB
12531 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12532 # We already found the complete path
172e41aa 12533 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12534 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12535echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12536 else
12537 # Canadian cross, just use what we found
2aeb72e9
DD
12538 echo "$as_me:$LINENO: result: pre-installed" >&5
12539echo "${ECHO_T}pre-installed" >&6
e8b05380 12540 fi
2abefe3d
PB
12541else
12542 ok=yes
12543 case " ${configdirs} " in
12544 *" binutils "*) ;;
12545 *) ok=no ;;
12546 esac
1c710c3c 12547
2abefe3d
PB
12548 if test $ok = yes; then
12549 # An in-tree tool is available and we can use it
12550 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
12551 echo "$as_me:$LINENO: result: just compiled" >&5
12552echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12553 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12554 # We already found the complete path
172e41aa 12555 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12556 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12557echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12558 elif test "x$target" = "x$host"; then
12559 # We can use an host tool
12560 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
12561 echo "$as_me:$LINENO: result: host tool" >&5
12562echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12563 else
12564 # We need a cross tool
2aeb72e9
DD
12565 echo "$as_me:$LINENO: result: pre-installed" >&5
12566echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12567 fi
12568fi
0b0dc272 12569
2aeb72e9
DD
12570echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12571echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 12572if test "x${build}" != "x${host}" ; then
e8b05380
PB
12573 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12574 # We already found the complete path
172e41aa 12575 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12576 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12577echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12578 else
12579 # Canadian cross, just use what we found
2aeb72e9
DD
12580 echo "$as_me:$LINENO: result: pre-installed" >&5
12581echo "${ECHO_T}pre-installed" >&6
e8b05380 12582 fi
2abefe3d
PB
12583else
12584 ok=yes
12585 case " ${configdirs} " in
12586 *" binutils "*) ;;
12587 *) ok=no ;;
12588 esac
1c710c3c 12589
2abefe3d
PB
12590 if test $ok = yes; then
12591 # An in-tree tool is available and we can use it
12592 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
12593 echo "$as_me:$LINENO: result: just compiled" >&5
12594echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12595 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12596 # We already found the complete path
172e41aa 12597 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12598 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12599echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12600 elif test "x$target" = "x$host"; then
12601 # We can use an host tool
12602 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
12603 echo "$as_me:$LINENO: result: host tool" >&5
12604echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12605 else
12606 # We need a cross tool
2aeb72e9
DD
12607 echo "$as_me:$LINENO: result: pre-installed" >&5
12608echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12609 fi
12610fi
0b0dc272 12611
2aeb72e9
DD
12612echo "$as_me:$LINENO: checking where to find the target strip" >&5
12613echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 12614if test "x${build}" != "x${host}" ; then
e8b05380
PB
12615 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12616 # We already found the complete path
172e41aa 12617 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12618 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12619echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12620 else
12621 # Canadian cross, just use what we found
2aeb72e9
DD
12622 echo "$as_me:$LINENO: result: pre-installed" >&5
12623echo "${ECHO_T}pre-installed" >&6
e8b05380 12624 fi
2abefe3d
PB
12625else
12626 ok=yes
12627 case " ${configdirs} " in
12628 *" binutils "*) ;;
12629 *) ok=no ;;
12630 esac
1c710c3c 12631
2abefe3d
PB
12632 if test $ok = yes; then
12633 # An in-tree tool is available and we can use it
12634 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
12635 echo "$as_me:$LINENO: result: just compiled" >&5
12636echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12637 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12638 # We already found the complete path
172e41aa 12639 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12640 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12641echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12642 elif test "x$target" = "x$host"; then
12643 # We can use an host tool
12644 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
12645 echo "$as_me:$LINENO: result: host tool" >&5
12646echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12647 else
12648 # We need a cross tool
2aeb72e9
DD
12649 echo "$as_me:$LINENO: result: pre-installed" >&5
12650echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12651 fi
12652fi
0b0dc272 12653
2aeb72e9
DD
12654echo "$as_me:$LINENO: checking where to find the target windres" >&5
12655echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 12656if test "x${build}" != "x${host}" ; then
e8b05380
PB
12657 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12658 # We already found the complete path
172e41aa 12659 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12660 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12661echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12662 else
12663 # Canadian cross, just use what we found
2aeb72e9
DD
12664 echo "$as_me:$LINENO: result: pre-installed" >&5
12665echo "${ECHO_T}pre-installed" >&6
e8b05380 12666 fi
2abefe3d
PB
12667else
12668 ok=yes
12669 case " ${configdirs} " in
12670 *" binutils "*) ;;
12671 *) ok=no ;;
12672 esac
1c710c3c 12673
2abefe3d
PB
12674 if test $ok = yes; then
12675 # An in-tree tool is available and we can use it
12676 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
12677 echo "$as_me:$LINENO: result: just compiled" >&5
12678echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12679 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12680 # We already found the complete path
172e41aa 12681 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12682 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12683echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12684 elif test "x$target" = "x$host"; then
12685 # We can use an host tool
12686 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
12687 echo "$as_me:$LINENO: result: host tool" >&5
12688echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12689 else
12690 # We need a cross tool
2aeb72e9
DD
12691 echo "$as_me:$LINENO: result: pre-installed" >&5
12692echo "${ECHO_T}pre-installed" >&6
2abefe3d 12693 fi
671aa708 12694fi
be912515 12695
901119ae
KT
12696echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12697echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12698if test "x${build}" != "x${host}" ; then
12699 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12700 # We already found the complete path
12701 ac_dir=`dirname $WINDMC_FOR_TARGET`
12702 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12703echo "${ECHO_T}pre-installed in $ac_dir" >&6
12704 else
12705 # Canadian cross, just use what we found
12706 echo "$as_me:$LINENO: result: pre-installed" >&5
12707echo "${ECHO_T}pre-installed" >&6
12708 fi
12709else
12710 ok=yes
12711 case " ${configdirs} " in
12712 *" binutils "*) ;;
12713 *) ok=no ;;
12714 esac
12715
12716 if test $ok = yes; then
12717 # An in-tree tool is available and we can use it
12718 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12719 echo "$as_me:$LINENO: result: just compiled" >&5
12720echo "${ECHO_T}just compiled" >&6
12721 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12722 # We already found the complete path
12723 ac_dir=`dirname $WINDMC_FOR_TARGET`
12724 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12725echo "${ECHO_T}pre-installed in $ac_dir" >&6
12726 elif test "x$target" = "x$host"; then
12727 # We can use an host tool
12728 WINDMC_FOR_TARGET='$(WINDMC)'
12729 echo "$as_me:$LINENO: result: host tool" >&5
12730echo "${ECHO_T}host tool" >&6
12731 else
12732 # We need a cross tool
12733 echo "$as_me:$LINENO: result: pre-installed" >&5
12734echo "${ECHO_T}pre-installed" >&6
12735 fi
12736fi
12737
be912515
NN
12738
12739
2abefe3d 12740
0b0dc272 12741
671aa708
NN
12742# Certain tools may need extra flags.
12743AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12744RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12745NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12746
2abefe3d
PB
12747# When building target libraries, except in a Canadian cross, we use
12748# the same toolchain as the compiler we just built.
12749COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12750COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12751COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12752if test $host = $build; then
12753 case " $configdirs " in
12754 *" gcc "*)
12755 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12756 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12757 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12758 ;;
12759 esac
12760fi
12761
12762
12763
12764
12765
2aeb72e9
DD
12766echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12767echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12768# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 12769if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
12770 enableval="$enable_maintainer_mode"
12771 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12772else
12773 USE_MAINTAINER_MODE=no
2aeb72e9
DD
12774fi;
12775echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12776echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
12777
12778
12779if test "$USE_MAINTAINER_MODE" = yes; then
12780 MAINTAINER_MODE_TRUE=
12781 MAINTAINER_MODE_FALSE='#'
12782else
12783 MAINTAINER_MODE_TRUE='#'
12784 MAINTAINER_MODE_FALSE=
1c710c3c 12785fi
ee03dc5e
AO
12786MAINT=$MAINTAINER_MODE_TRUE
12787
2805b53a
NN
12788# ---------------------
12789# GCC bootstrap support
12790# ---------------------
12791
12792# Stage specific cflags for build.
12793stage1_cflags="-g"
12794case $build in
12795 vax-*-*)
12796 case ${GCC} in
12797 yes) stage1_cflags="-g -Wa,-J" ;;
12798 *) stage1_cflags="-g -J" ;;
12799 esac ;;
2805b53a
NN
12800esac
12801
0b50988a 12802# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 12803if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
12804 saved_CFLAGS="$CFLAGS"
12805
12806 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12807 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12808 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12809echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12810 cat >conftest.$ac_ext <<_ACEOF
12811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
12815/* end confdefs.h. */
12816
9cc1244e
JJ
12817#if (__GNUC__ < 3) \
12818 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12819 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12820#error http://gcc.gnu.org/PR29382
12821#endif
12822
1c710c3c
DJ
12823int
12824main ()
12825{
12826
12827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext
2aeb72e9
DD
12832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag"
12841 || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 echo "$as_me:$LINENO: result: yes" >&5
12854echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12855else
12856 echo "$as_me: failed program was:" >&5
12857sed 's/^/| /' conftest.$ac_ext >&5
12858
2aeb72e9
DD
12859echo "$as_me:$LINENO: result: no" >&5
12860echo "${ECHO_T}no" >&6
1c710c3c 12861fi
2aeb72e9 12862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12863
12864 CFLAGS="$saved_CFLAGS"
12865fi
12866
12867
2805b53a 12868
8efea775 12869# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12870# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12871if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12872 enableval="$enable_stage1_checking"
12873 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12874else
e643dc23 12875 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12876 stage1_checking=--enable-checking=yes,types
8efea775 12877else
e643dc23 12878 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12879fi
2aeb72e9 12880fi;
8efea775
PB
12881
12882
2805b53a 12883# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12884# Check whether --enable-werror or --disable-werror was given.
2805b53a 12885if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12886 enableval="$enable_werror"
12887
2805b53a 12888else
416cfb5e 12889 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12890 enable_werror=yes
88fceb68
PB
12891else
12892 enable_werror=no
12893fi
2aeb72e9 12894fi;
09a9c095
NN
12895case ${enable_werror} in
12896 yes) stage2_werror_flag="--enable-werror-always" ;;
12897 *) stage2_werror_flag="" ;;
2805b53a
NN
12898esac
12899
12900
32845532 12901# Flags needed to enable html installing and building
1c710c3c 12902
2aeb72e9 12903# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12904if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12905 withval="$with_datarootdir"
12906 datarootdir="\${prefix}/${withval}"
32845532
CD
12907else
12908 datarootdir="\${prefix}/share"
2aeb72e9 12909fi;
32845532
CD
12910
12911
2aeb72e9 12912# Check whether --with-docdir or --without-docdir was given.
32845532 12913if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12914 withval="$with_docdir"
12915 docdir="\${prefix}/${withval}"
32845532
CD
12916else
12917 docdir="\${datarootdir}/doc"
2aeb72e9 12918fi;
32845532
CD
12919
12920
2aeb72e9 12921# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12922if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12923 withval="$with_pdfdir"
12924 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12925else
12926 pdfdir="\${docdir}"
2aeb72e9 12927fi;
9c4d2493
BM
12928
12929
2aeb72e9 12930# Check whether --with-htmldir or --without-htmldir was given.
32845532 12931if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12932 withval="$with_htmldir"
12933 htmldir="\${prefix}/${withval}"
32845532
CD
12934else
12935 htmldir="\${docdir}"
2aeb72e9 12936fi;
32845532
CD
12937
12938
12939
12940
172e41aa 12941
11a67599 12942
f2689b09
SE
12943# Specify what files to not compare during bootstrap.
12944
12945compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
12946case "$target" in
12947 hppa*64*-*-hpux*) ;;
12948 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
12949esac
12950
12951
2aeb72e9 12952 ac_config_files="$ac_config_files Makefile"
1c710c3c 12953cat >confcache <<\_ACEOF
671aa708
NN
12954# This file is a shell script that caches the results of configure
12955# tests run on this system so they can be shared between configure
1c710c3c
DJ
12956# scripts and configure runs, see configure's option --config-cache.
12957# It is not useful on other systems. If it contains results you don't
12958# want to keep, you may remove or edit it.
671aa708 12959#
1c710c3c
DJ
12960# config.status only pays attention to the cache file if you give it
12961# the --recheck option to rerun configure.
671aa708 12962#
1c710c3c
DJ
12963# `ac_cv_env_foo' variables (set or unset) will be overridden when
12964# loading this file, other *unset* `ac_cv_foo' will be assigned the
12965# following values.
12966
12967_ACEOF
12968
671aa708
NN
12969# The following way of writing the cache mishandles newlines in values,
12970# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12971# So, don't put newlines in cache variables' values.
671aa708
NN
12972# Ultrix sh set writes to stderr and can't be redirected directly,
12973# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12974{
1c710c3c 12975 (set) 2>&1 |
2aeb72e9
DD
12976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12977 *ac_space=\ *)
1c710c3c
DJ
12978 # `set' does not quote correctly, so add quotes (double-quote
12979 # substitution turns \\\\ into \\, and sed turns \\ into \).
12980 sed -n \
12981 "s/'/'\\\\''/g;
12982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12983 ;;
1c710c3c
DJ
12984 *)
12985 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12986 sed -n \
12987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12988 ;;
2aeb72e9
DD
12989 esac;
12990} |
1c710c3c
DJ
12991 sed '
12992 t clear
2aeb72e9 12993 : clear
1c710c3c
DJ
12994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12995 t end
2aeb72e9
DD
12996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12997 : end' >>confcache
12998if diff $cache_file confcache >/dev/null 2>&1; then :; else
12999 if test -w $cache_file; then
13000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 13001 cat confcache >$cache_file
671aa708 13002 else
2aeb72e9 13003 echo "not updating unwritable cache $cache_file"
671aa708 13004 fi
4977bab6 13005fi
671aa708 13006rm -f confcache
79c06341 13007
671aa708
NN
13008test "x$prefix" = xNONE && prefix=$ac_default_prefix
13009# Let make expand exec_prefix.
13010test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 13011
2aeb72e9
DD
13012# VPATH may cause trouble with some makes, so we remove $(srcdir),
13013# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13014# trailing colons and then remove the whole line if VPATH becomes empty
13015# (actually we leave an empty line to preserve line numbers).
13016if test "x$srcdir" = x.; then
13017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13018s/:*\$(srcdir):*/:/;
13019s/:*\${srcdir}:*/:/;
13020s/:*@srcdir@:*/:/;
13021s/^\([^=]*=[ ]*\):*/\1/;
13022s/:*$//;
13023s/^[^=]*=[ ]*$//;
13024}'
13025fi
13026
671aa708
NN
13027# Transform confdefs.h into DEFS.
13028# Protect against shell expansion while executing Makefile rules.
13029# Protect against Makefile macro expansion.
1c710c3c
DJ
13030#
13031# If the first sed substitution is executed (which looks for macros that
2aeb72e9 13032# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 13033# look for a macro that doesn't take arguments.
2aeb72e9 13034cat >confdef2opt.sed <<\_ACEOF
1c710c3c 13035t clear
2aeb72e9
DD
13036: clear
13037s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 13038t quote
2aeb72e9 13039s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 13040t quote
2aeb72e9
DD
13041d
13042: quote
13043s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
13044s,\[,\\&,g
13045s,\],\\&,g
13046s,\$,$$,g
13047p
13048_ACEOF
13049# We use echo to avoid assuming a particular line-breaking character.
13050# The extra dot is to prevent the shell from consuming trailing
13051# line-breaks from the sub-command output. A line-break within
13052# single-quotes doesn't work because, if this script is created in a
13053# platform that uses two characters for line-breaks (e.g., DOS), tr
13054# would break.
13055ac_LF_and_DOT=`echo; echo .`
13056DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
13057rm -f confdef2opt.sed
1c710c3c
DJ
13058
13059
13060ac_libobjs=
13061ac_ltlibobjs=
13062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13063 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
13064 ac_i=`echo "$ac_i" |
13065 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13066 # 2. Add them.
13067 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13068 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
13069done
13070LIBOBJS=$ac_libobjs
fb0103e5 13071
1c710c3c 13072LTLIBOBJS=$ac_ltlibobjs
0b0dc272 13073
af71363e 13074
1c710c3c
DJ
13075
13076: ${CONFIG_STATUS=./config.status}
13077ac_clean_files_save=$ac_clean_files
13078ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13079{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13080echo "$as_me: creating $CONFIG_STATUS" >&6;}
13081cat >$CONFIG_STATUS <<_ACEOF
13082#! $SHELL
13083# Generated by $as_me.
671aa708 13084# Run this file to recreate the current configuration.
671aa708 13085# Compiler output produced by configure, useful for debugging
1c710c3c 13086# configure, is in config.log if it exists.
0b0dc272 13087
1c710c3c
DJ
13088debug=false
13089ac_cs_recheck=false
13090ac_cs_silent=false
13091SHELL=\${CONFIG_SHELL-$SHELL}
13092_ACEOF
13093
13094cat >>$CONFIG_STATUS <<\_ACEOF
13095## --------------------- ##
13096## M4sh Initialization. ##
13097## --------------------- ##
13098
2aeb72e9 13099# Be Bourne compatible
1c710c3c
DJ
13100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13101 emulate sh
13102 NULLCMD=:
13103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13104 # is contrary to our usage. Disable this feature.
13105 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
13106elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13107 set -o posix
1c710c3c 13108fi
2aeb72e9 13109DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
13110
13111# Support unset when possible.
13112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13113 as_unset=unset
13114else
13115 as_unset=false
13116fi
13117
13118
13119# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 13120$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
13121PS1='$ '
13122PS2='> '
13123PS4='+ '
13124
13125# NLS nuisances.
13126for as_var in \
13127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13129 LC_TELEPHONE LC_TIME
13130do
13131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13132 eval $as_var=C; export $as_var
13133 else
2aeb72e9 13134 $as_unset $as_var
1c710c3c
DJ
13135 fi
13136done
13137
13138# Required to use basename.
2aeb72e9 13139if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
13140 as_expr=expr
13141else
13142 as_expr=false
13143fi
13144
2aeb72e9 13145if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
13146 as_basename=basename
13147else
13148 as_basename=false
13149fi
13150
13151
13152# Name of the executable.
2aeb72e9 13153as_me=`$as_basename "$0" ||
1c710c3c
DJ
13154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13155 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
13156 X"$0" : 'X\(/\)$' \| \
13157 . : '\(.\)' 2>/dev/null ||
1c710c3c 13158echo X/"$0" |
2aeb72e9
DD
13159 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13160 /^X\/\(\/\/\)$/{ s//\1/; q; }
13161 /^X\/\(\/\).*/{ s//\1/; q; }
13162 s/.*/./; q'`
1c710c3c 13163
2aeb72e9
DD
13164
13165# PATH needs CR, and LINENO needs CR and PATH.
13166# Avoid depending upon Character Ranges.
13167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13170as_cr_digits='0123456789'
13171as_cr_alnum=$as_cr_Letters$as_cr_digits
13172
13173# The user is always right.
13174if test "${PATH_SEPARATOR+set}" != set; then
13175 echo "#! /bin/sh" >conf$$.sh
13176 echo "exit 0" >>conf$$.sh
13177 chmod +x conf$$.sh
13178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13179 PATH_SEPARATOR=';'
13180 else
13181 PATH_SEPARATOR=:
13182 fi
13183 rm -f conf$$.sh
13184fi
1c710c3c
DJ
13185
13186
2aeb72e9
DD
13187 as_lineno_1=$LINENO
13188 as_lineno_2=$LINENO
13189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13190 test "x$as_lineno_1" != "x$as_lineno_2" &&
13191 test "x$as_lineno_3" = "x$as_lineno_2" || {
13192 # Find who we are. Look in the path if we contain no path at all
13193 # relative or not.
13194 case $0 in
13195 *[\\/]* ) as_myself=$0 ;;
13196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13202done
1c710c3c 13203
2aeb72e9
DD
13204 ;;
13205 esac
13206 # We did not find ourselves, most probably we were run as `sh COMMAND'
13207 # in which case we are not to be found in the path.
13208 if test "x$as_myself" = x; then
13209 as_myself=$0
13210 fi
13211 if test ! -f "$as_myself"; then
13212 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13213echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13214 { (exit 1); exit 1; }; }
13215 fi
13216 case $CONFIG_SHELL in
13217 '')
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13220do
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for as_base in sh bash ksh sh5; do
13224 case $as_dir in
13225 /*)
13226 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
13227 as_lineno_1=$LINENO
13228 as_lineno_2=$LINENO
2aeb72e9 13229 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 13230 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
13231 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13232 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13233 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13234 CONFIG_SHELL=$as_dir/$as_base
13235 export CONFIG_SHELL
13236 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13237 fi;;
13238 esac
13239 done
13240done
13241;;
13242 esac
1c710c3c
DJ
13243
13244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13245 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
13246 # line-number line before each line; the second 'sed' does the real
13247 # work. The second script uses 'N' to pair each line-number line
13248 # with the numbered line, and appends trailing '-' during
13249 # substitution so that $LINENO is not a special case at line end.
1c710c3c 13250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
13251 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13252 sed '=' <$as_myself |
1c710c3c
DJ
13253 sed '
13254 N
2aeb72e9
DD
13255 s,$,-,
13256 : loop
13257 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 13258 t loop
2aeb72e9
DD
13259 s,-$,,
13260 s,^['$as_cr_digits']*\n,,
1c710c3c 13261 ' >$as_me.lineno &&
2aeb72e9
DD
13262 chmod +x $as_me.lineno ||
13263 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13264echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
13265 { (exit 1); exit 1; }; }
13266
13267 # Don't try to exec as it changes $[0], causing all sort of problems
13268 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
13269 # original and so on. Autoconf is especially sensible to this).
13270 . ./$as_me.lineno
1c710c3c
DJ
13271 # Exit status is that of the last command.
13272 exit
13273}
13274
13275
2aeb72e9
DD
13276case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13277 *c*,-n*) ECHO_N= ECHO_C='
13278' ECHO_T=' ' ;;
13279 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13280 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
13281esac
13282
2aeb72e9 13283if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
13284 as_expr=expr
13285else
13286 as_expr=false
13287fi
13288
13289rm -f conf$$ conf$$.exe conf$$.file
13290echo >conf$$.file
13291if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
13292 # We could just check for DJGPP; but this test a) works b) is more generic
13293 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13294 if test -f conf$$.exe; then
13295 # Don't use ln at all; we don't have any links
1c710c3c 13296 as_ln_s='cp -p'
2aeb72e9
DD
13297 else
13298 as_ln_s='ln -s'
13299 fi
1c710c3c
DJ
13300elif ln conf$$.file conf$$ 2>/dev/null; then
13301 as_ln_s=ln
13302else
13303 as_ln_s='cp -p'
13304fi
2aeb72e9 13305rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
13306
13307if mkdir -p . 2>/dev/null; then
13308 as_mkdir_p=:
13309else
13310 test -d ./-p && rmdir ./-p
13311 as_mkdir_p=false
13312fi
13313
2aeb72e9 13314as_executable_p="test -f"
1c710c3c
DJ
13315
13316# Sed expression to map a string onto a valid CPP name.
13317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13318
13319# Sed expression to map a string onto a valid variable name.
13320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13321
13322
2aeb72e9
DD
13323# IFS
13324# We need space, tab and new line, in precisely that order.
13325as_nl='
13326'
13327IFS=" $as_nl"
13328
13329# CDPATH.
13330$as_unset CDPATH
13331
1c710c3c
DJ
13332exec 6>&1
13333
2aeb72e9 13334# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 13335# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
13336# values after options handling. Logging --version etc. is OK.
13337exec 5>>config.log
13338{
13339 echo
13340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13341## Running $as_me. ##
13342_ASBOX
13343} >&5
13344cat >&5 <<_CSEOF
13345
1c710c3c 13346This file was extended by $as_me, which was
2aeb72e9 13347generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
13348
13349 CONFIG_FILES = $CONFIG_FILES
13350 CONFIG_HEADERS = $CONFIG_HEADERS
13351 CONFIG_LINKS = $CONFIG_LINKS
13352 CONFIG_COMMANDS = $CONFIG_COMMANDS
13353 $ $0 $@
13354
2aeb72e9
DD
13355_CSEOF
13356echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13357echo >&5
1c710c3c
DJ
13358_ACEOF
13359
13360# Files that config.status was made for.
2aeb72e9
DD
13361if test -n "$ac_config_files"; then
13362 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13363fi
1c710c3c 13364
2aeb72e9
DD
13365if test -n "$ac_config_headers"; then
13366 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13367fi
13368
13369if test -n "$ac_config_links"; then
13370 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13371fi
13372
13373if test -n "$ac_config_commands"; then
13374 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13375fi
1c710c3c
DJ
13376
13377cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 13378
1c710c3c
DJ
13379ac_cs_usage="\
13380\`$as_me' instantiates files from templates according to the
13381current configuration.
13382
13383Usage: $0 [OPTIONS] [FILE]...
13384
13385 -h, --help print this help, then exit
2aeb72e9 13386 -V, --version print version number, then exit
1c710c3c
DJ
13387 -q, --quiet do not print progress messages
13388 -d, --debug don't remove temporary files
13389 --recheck update $as_me by reconfiguring in the same conditions
13390 --file=FILE[:TEMPLATE]
13391 instantiate the configuration file FILE
13392
13393Configuration files:
13394$config_files
13395
13396Report bugs to <bug-autoconf@gnu.org>."
11a67599 13397_ACEOF
2aeb72e9 13398
1c710c3c
DJ
13399cat >>$CONFIG_STATUS <<_ACEOF
13400ac_cs_version="\\
13401config.status
2aeb72e9
DD
13402configured by $0, generated by GNU Autoconf 2.59,
13403 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 13404
2aeb72e9 13405Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
13406This config.status script is free software; the Free Software Foundation
13407gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
13408srcdir=$srcdir
13409INSTALL="$INSTALL"
1c710c3c
DJ
13410_ACEOF
13411
13412cat >>$CONFIG_STATUS <<\_ACEOF
13413# If no file are specified by the user, then we need to provide default
13414# value. By we need to know if files were specified by the user.
13415ac_need_defaults=:
13416while test $# != 0
a4b9e93e 13417do
1c710c3c
DJ
13418 case $1 in
13419 --*=*)
2aeb72e9
DD
13420 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13421 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
13422 ac_shift=:
13423 ;;
2aeb72e9 13424 -*)
1c710c3c
DJ
13425 ac_option=$1
13426 ac_optarg=$2
13427 ac_shift=shift
13428 ;;
2aeb72e9
DD
13429 *) # This is not an option, so the user has probably given explicit
13430 # arguments.
13431 ac_option=$1
13432 ac_need_defaults=false;;
1c710c3c
DJ
13433 esac
13434
13435 case $ac_option in
13436 # Handling of the options.
2aeb72e9
DD
13437_ACEOF
13438cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 13439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13440 ac_cs_recheck=: ;;
2aeb72e9
DD
13441 --version | --vers* | -V )
13442 echo "$ac_cs_version"; exit 0 ;;
13443 --he | --h)
13444 # Conflict between --help and --header
13445 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13446Try \`$0 --help' for more information." >&5
13447echo "$as_me: error: ambiguous option: $1
13448Try \`$0 --help' for more information." >&2;}
13449 { (exit 1); exit 1; }; };;
13450 --help | --hel | -h )
13451 echo "$ac_cs_usage"; exit 0 ;;
13452 --debug | --d* | -d )
1c710c3c
DJ
13453 debug=: ;;
13454 --file | --fil | --fi | --f )
13455 $ac_shift
13456 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13457 ac_need_defaults=false;;
2aeb72e9
DD
13458 --header | --heade | --head | --hea )
13459 $ac_shift
13460 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13461 ac_need_defaults=false;;
1c710c3c
DJ
13462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13463 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13464 ac_cs_silent=: ;;
13465
13466 # This is an error.
2aeb72e9
DD
13467 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13468Try \`$0 --help' for more information." >&5
13469echo "$as_me: error: unrecognized option: $1
13470Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
13471 { (exit 1); exit 1; }; } ;;
13472
2aeb72e9 13473 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 13474
0b0dc272 13475 esac
1c710c3c 13476 shift
0b0dc272
AM
13477done
13478
1c710c3c 13479ac_configure_extra_args=
0b0dc272 13480
1c710c3c
DJ
13481if $ac_cs_silent; then
13482 exec 6>/dev/null
13483 ac_configure_extra_args="$ac_configure_extra_args --silent"
13484fi
0b0dc272 13485
1c710c3c
DJ
13486_ACEOF
13487cat >>$CONFIG_STATUS <<_ACEOF
13488if \$ac_cs_recheck; then
2aeb72e9
DD
13489 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13490 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
13491fi
13492
13493_ACEOF
13494
1c710c3c 13495
11a67599 13496
2aeb72e9
DD
13497
13498
13499cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
13500for ac_config_target in $ac_config_targets
13501do
2aeb72e9
DD
13502 case "$ac_config_target" in
13503 # Handling of arguments.
13504 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
13505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13506echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13507 { (exit 1); exit 1; }; };;
13508 esac
13509done
13510
13511# If the user did not use the arguments to specify the items to instantiate,
13512# then the envvar interface is used. Set only those that are not.
13513# We use the long form for the default assignment because of an extremely
13514# bizarre bug on SunOS 4.1.3.
13515if $ac_need_defaults; then
13516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13517fi
13518
13519# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 13520# simply because there is no reason to put it here, and in addition,
1c710c3c 13521# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 13522# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
13523$debug ||
13524{
2aeb72e9 13525 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
13526 trap '{ (exit 1); exit 1; }' 1 2 13 15
13527}
2aeb72e9 13528
1c710c3c
DJ
13529# Create a (secure) tmp directory for tmp files.
13530
13531{
2aeb72e9 13532 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13533 test -n "$tmp" && test -d "$tmp"
13534} ||
13535{
2aeb72e9
DD
13536 tmp=./confstat$$-$RANDOM
13537 (umask 077 && mkdir $tmp)
1c710c3c
DJ
13538} ||
13539{
13540 echo "$me: cannot create a temporary directory in ." >&2
13541 { (exit 1); exit 1; }
13542}
13543
2aeb72e9
DD
13544_ACEOF
13545
13546cat >>$CONFIG_STATUS <<_ACEOF
13547
1c710c3c 13548#
2aeb72e9 13549# CONFIG_FILES section.
1c710c3c
DJ
13550#
13551
13552# No need to generate the scripts if there are no CONFIG_FILES.
13553# This happens for instance when ./config.status config.h
2aeb72e9
DD
13554if test -n "\$CONFIG_FILES"; then
13555 # Protect against being on the right side of a sed subst in config.status.
13556 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13557 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13558s,@SHELL@,$SHELL,;t t
13559s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13560s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13561s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13562s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13563s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13564s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13565s,@exec_prefix@,$exec_prefix,;t t
13566s,@prefix@,$prefix,;t t
13567s,@program_transform_name@,$program_transform_name,;t t
13568s,@bindir@,$bindir,;t t
13569s,@sbindir@,$sbindir,;t t
13570s,@libexecdir@,$libexecdir,;t t
13571s,@datadir@,$datadir,;t t
13572s,@sysconfdir@,$sysconfdir,;t t
13573s,@sharedstatedir@,$sharedstatedir,;t t
13574s,@localstatedir@,$localstatedir,;t t
13575s,@libdir@,$libdir,;t t
13576s,@includedir@,$includedir,;t t
13577s,@oldincludedir@,$oldincludedir,;t t
13578s,@infodir@,$infodir,;t t
13579s,@mandir@,$mandir,;t t
13580s,@build_alias@,$build_alias,;t t
13581s,@host_alias@,$host_alias,;t t
13582s,@target_alias@,$target_alias,;t t
13583s,@DEFS@,$DEFS,;t t
13584s,@ECHO_C@,$ECHO_C,;t t
13585s,@ECHO_N@,$ECHO_N,;t t
13586s,@ECHO_T@,$ECHO_T,;t t
13587s,@LIBS@,$LIBS,;t t
ad33ff57 13588s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
2aeb72e9
DD
13589s,@build@,$build,;t t
13590s,@build_cpu@,$build_cpu,;t t
13591s,@build_vendor@,$build_vendor,;t t
13592s,@build_os@,$build_os,;t t
13593s,@build_noncanonical@,$build_noncanonical,;t t
13594s,@host_noncanonical@,$host_noncanonical,;t t
13595s,@target_noncanonical@,$target_noncanonical,;t t
13596s,@host@,$host,;t t
13597s,@host_cpu@,$host_cpu,;t t
13598s,@host_vendor@,$host_vendor,;t t
13599s,@host_os@,$host_os,;t t
13600s,@target@,$target,;t t
13601s,@target_cpu@,$target_cpu,;t t
13602s,@target_vendor@,$target_vendor,;t t
13603s,@target_os@,$target_os,;t t
13604s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13605s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13606s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13607s,@LN@,$LN,;t t
13608s,@LN_S@,$LN_S,;t t
2aeb72e9
DD
13609s,@build_libsubdir@,$build_libsubdir,;t t
13610s,@build_subdir@,$build_subdir,;t t
13611s,@host_subdir@,$host_subdir,;t t
13612s,@target_subdir@,$target_subdir,;t t
13613s,@CC@,$CC,;t t
13614s,@CFLAGS@,$CFLAGS,;t t
13615s,@LDFLAGS@,$LDFLAGS,;t t
13616s,@CPPFLAGS@,$CPPFLAGS,;t t
13617s,@ac_ct_CC@,$ac_ct_CC,;t t
13618s,@EXEEXT@,$EXEEXT,;t t
13619s,@OBJEXT@,$OBJEXT,;t t
13620s,@CXX@,$CXX,;t t
13621s,@CXXFLAGS@,$CXXFLAGS,;t t
13622s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13623s,@GNATBIND@,$GNATBIND,;t t
13624s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13625s,@GNATMAKE@,$GNATMAKE,;t t
13626s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13627s,@do_compare@,$do_compare,;t t
13628s,@gmplibs@,$gmplibs,;t t
13629s,@gmpinc@,$gmpinc,;t t
9e3eba15 13630s,@extra_mpfr_configure_flags@,$extra_mpfr_configure_flags,;t t
acd26225
KG
13631s,@extra_mpc_gmp_configure_flags@,$extra_mpc_gmp_configure_flags,;t t
13632s,@extra_mpc_mpfr_configure_flags@,$extra_mpc_mpfr_configure_flags,;t t
00020c16
ILT
13633s,@stage1_ldflags@,$stage1_ldflags,;t t
13634s,@stage1_libs@,$stage1_libs,;t t
13635s,@poststage1_ldflags@,$poststage1_ldflags,;t t
13636s,@poststage1_libs@,$poststage1_libs,;t t
f8bf9252
SP
13637s,@ppllibs@,$ppllibs,;t t
13638s,@pplinc@,$pplinc,;t t
13639s,@clooglibs@,$clooglibs,;t t
13640s,@clooginc@,$clooginc,;t t
2aeb72e9
DD
13641s,@stage1_languages@,$stage1_languages,;t t
13642s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 13643s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
1c8bd6a3
PB
13644s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13645s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
2aeb72e9 13646s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
d89f0ad6 13647s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
2aeb72e9
DD
13648s,@tooldir@,$tooldir,;t t
13649s,@build_tooldir@,$build_tooldir,;t t
13650s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13651s,@GDB_TK@,$GDB_TK,;t t
13652s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13653s,@build_configargs@,$build_configargs,;t t
13654s,@build_configdirs@,$build_configdirs,;t t
13655s,@host_configargs@,$host_configargs,;t t
13656s,@configdirs@,$configdirs,;t t
13657s,@target_configargs@,$target_configargs,;t t
0999159b
PB
13658s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13659s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 13660s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
13661s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13662s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13663s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13664s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13665s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13666s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13667s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13668s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13669s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13670s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13671s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13672s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
13673s,@config_shell@,$config_shell,;t t
13674s,@YACC@,$YACC,;t t
13675s,@BISON@,$BISON,;t t
13676s,@M4@,$M4,;t t
13677s,@LEX@,$LEX,;t t
13678s,@FLEX@,$FLEX,;t t
13679s,@MAKEINFO@,$MAKEINFO,;t t
13680s,@EXPECT@,$EXPECT,;t t
13681s,@RUNTEST@,$RUNTEST,;t t
13682s,@AR@,$AR,;t t
13683s,@AS@,$AS,;t t
13684s,@DLLTOOL@,$DLLTOOL,;t t
13685s,@LD@,$LD,;t t
13686s,@LIPO@,$LIPO,;t t
13687s,@NM@,$NM,;t t
13688s,@RANLIB@,$RANLIB,;t t
13689s,@STRIP@,$STRIP,;t t
13690s,@WINDRES@,$WINDRES,;t t
901119ae 13691s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
13692s,@OBJCOPY@,$OBJCOPY,;t t
13693s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
13694s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13695s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13696s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13697s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13698s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13699s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13700s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13701s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13702s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13703s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13704s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13705s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13706s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13707s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13708s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 13709s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
13710s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13711s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13712s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13713s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13714s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13715s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13716s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13717s,@MAINT@,$MAINT,;t t
13718s,@stage1_cflags@,$stage1_cflags,;t t
13719s,@stage1_checking@,$stage1_checking,;t t
13720s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13721s,@datarootdir@,$datarootdir,;t t
13722s,@docdir@,$docdir,;t t
13723s,@pdfdir@,$pdfdir,;t t
13724s,@htmldir@,$htmldir,;t t
f2689b09 13725s,@compare_exclusions@,$compare_exclusions,;t t
2aeb72e9
DD
13726s,@LIBOBJS@,$LIBOBJS,;t t
13727s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13728/@serialization_dependencies@/r $serialization_dependencies
13729s,@serialization_dependencies@,,;t t
13730/@host_makefile_frag@/r $host_makefile_frag
13731s,@host_makefile_frag@,,;t t
13732/@target_makefile_frag@/r $target_makefile_frag
13733s,@target_makefile_frag@,,;t t
13734/@alphaieee_frag@/r $alphaieee_frag
13735s,@alphaieee_frag@,,;t t
13736/@ospace_frag@/r $ospace_frag
13737s,@ospace_frag@,,;t t
13738CEOF
79c06341 13739
1c710c3c
DJ
13740_ACEOF
13741
2aeb72e9
DD
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 # Split the substitutions into bite-sized pieces for seds with
13744 # small command number limits, like on Digital OSF/1 and HP-UX.
13745 ac_max_sed_lines=48
13746 ac_sed_frag=1 # Number of current file.
13747 ac_beg=1 # First line for current file.
13748 ac_end=$ac_max_sed_lines # Line after last line for current file.
13749 ac_more_lines=:
13750 ac_sed_cmds=
13751 while $ac_more_lines; do
13752 if test $ac_beg -gt 1; then
13753 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13754 else
13755 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13756 fi
13757 if test ! -s $tmp/subs.frag; then
13758 ac_more_lines=false
13759 else
13760 # The purpose of the label and of the branching condition is to
13761 # speed up the sed processing (if there are no `@' at all, there
13762 # is no need to browse any of the substitutions).
13763 # These are the two extra sed commands mentioned above.
13764 (echo ':t
13765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13766 if test -z "$ac_sed_cmds"; then
13767 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13768 else
13769 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13770 fi
13771 ac_sed_frag=`expr $ac_sed_frag + 1`
13772 ac_beg=$ac_end
13773 ac_end=`expr $ac_end + $ac_max_sed_lines`
13774 fi
13775 done
13776 if test -z "$ac_sed_cmds"; then
13777 ac_sed_cmds=cat
11a67599 13778 fi
2aeb72e9 13779fi # test -n "$CONFIG_FILES"
11a67599 13780
11a67599 13781_ACEOF
1c710c3c 13782cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
13783for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13784 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13785 case $ac_file in
13786 - | *:- | *:-:* ) # input from stdin
13787 cat >$tmp/stdin
13788 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13790 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13791 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13792 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
13793 esac
13794
2aeb72e9
DD
13795 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13796 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
13797$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13798 X"$ac_file" : 'X\(//\)[^/]' \| \
13799 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
13800 X"$ac_file" : 'X\(/\)' \| \
13801 . : '\(.\)' 2>/dev/null ||
1c710c3c 13802echo X"$ac_file" |
2aeb72e9
DD
13803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13805 /^X\(\/\/\)$/{ s//\1/; q; }
13806 /^X\(\/\).*/{ s//\1/; q; }
13807 s/.*/./; q'`
13808 { if $as_mkdir_p; then
13809 mkdir -p "$ac_dir"
13810 else
13811 as_dir="$ac_dir"
1c710c3c 13812 as_dirs=
2aeb72e9
DD
13813 while test ! -d "$as_dir"; do
13814 as_dirs="$as_dir $as_dirs"
13815 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
13816$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13817 X"$as_dir" : 'X\(//\)[^/]' \| \
13818 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13819 X"$as_dir" : 'X\(/\)' \| \
13820 . : '\(.\)' 2>/dev/null ||
1c710c3c 13821echo X"$as_dir" |
2aeb72e9
DD
13822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13824 /^X\(\/\/\)$/{ s//\1/; q; }
13825 /^X\(\/\).*/{ s//\1/; q; }
13826 s/.*/./; q'`
1c710c3c 13827 done
2aeb72e9
DD
13828 test ! -n "$as_dirs" || mkdir $as_dirs
13829 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13830echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13831 { (exit 1); exit 1; }; }; }
2aeb72e9 13832
1c710c3c 13833 ac_builddir=.
0b0dc272 13834
2aeb72e9 13835if test "$ac_dir" != .; then
1c710c3c 13836 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13837 # A "../" for each directory in $ac_dir_suffix.
13838 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13839else
13840 ac_dir_suffix= ac_top_builddir=
13841fi
1c710c3c
DJ
13842
13843case $srcdir in
2aeb72e9 13844 .) # No --srcdir option. We are building in place.
1c710c3c 13845 ac_srcdir=.
2aeb72e9
DD
13846 if test -z "$ac_top_builddir"; then
13847 ac_top_srcdir=.
13848 else
13849 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13850 fi ;;
13851 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13852 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13853 ac_top_srcdir=$srcdir ;;
13854 *) # Relative path.
13855 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13856 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13857esac
a4b9e93e 13858
2aeb72e9
DD
13859# Do not use `cd foo && pwd` to compute absolute paths, because
13860# the directories may not exist.
13861case `pwd` in
13862.) ac_abs_builddir="$ac_dir";;
13863*)
13864 case "$ac_dir" in
13865 .) ac_abs_builddir=`pwd`;;
13866 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13867 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13868 esac;;
13869esac
13870case $ac_abs_builddir in
13871.) ac_abs_top_builddir=${ac_top_builddir}.;;
13872*)
13873 case ${ac_top_builddir}. in
13874 .) ac_abs_top_builddir=$ac_abs_builddir;;
13875 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13876 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13877 esac;;
13878esac
13879case $ac_abs_builddir in
13880.) ac_abs_srcdir=$ac_srcdir;;
13881*)
13882 case $ac_srcdir in
13883 .) ac_abs_srcdir=$ac_abs_builddir;;
13884 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13885 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13886 esac;;
13887esac
13888case $ac_abs_builddir in
13889.) ac_abs_top_srcdir=$ac_top_srcdir;;
13890*)
13891 case $ac_top_srcdir in
13892 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13893 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13894 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13895 esac;;
13896esac
0b0dc272 13897
1c710c3c
DJ
13898
13899 case $INSTALL in
13900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13901 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13902 esac
11a67599 13903
2aeb72e9
DD
13904 if test x"$ac_file" != x-; then
13905 { echo "$as_me:$LINENO: creating $ac_file" >&5
13906echo "$as_me: creating $ac_file" >&6;}
13907 rm -f "$ac_file"
13908 fi
13909 # Let's still pretend it is `configure' which instantiates (i.e., don't
13910 # use $as_me), people would be surprised to read:
13911 # /* config.h. Generated by config.status. */
13912 if test x"$ac_file" = x-; then
13913 configure_input=
13914 else
13915 configure_input="$ac_file. "
13916 fi
13917 configure_input=$configure_input"Generated from `echo $ac_file_in |
13918 sed 's,.*/,,'` by configure."
13919
13920 # First look for the input files in the build tree, otherwise in the
13921 # src tree.
13922 ac_file_inputs=`IFS=:
13923 for f in $ac_file_in; do
13924 case $f in
13925 -) echo $tmp/stdin ;;
13926 [\\/$]*)
13927 # Absolute (can't be DOS-style, as IFS=:)
13928 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13929echo "$as_me: error: cannot find input file: $f" >&2;}
13930 { (exit 1); exit 1; }; }
13931 echo "$f";;
13932 *) # Relative
13933 if test -f "$f"; then
13934 # Build tree
13935 echo "$f"
13936 elif test -f "$srcdir/$f"; then
13937 # Source tree
13938 echo "$srcdir/$f"
13939 else
13940 # /dev/null tree
13941 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13942echo "$as_me: error: cannot find input file: $f" >&2;}
13943 { (exit 1); exit 1; }; }
13944 fi;;
13945 esac
13946 done` || { (exit 1); exit 1; }
11a67599 13947_ACEOF
1c710c3c
DJ
13948cat >>$CONFIG_STATUS <<_ACEOF
13949 sed "$ac_vpsub
13950$extrasub
13951_ACEOF
13952cat >>$CONFIG_STATUS <<\_ACEOF
13953:t
13954/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13955s,@configure_input@,$configure_input,;t t
13956s,@srcdir@,$ac_srcdir,;t t
13957s,@abs_srcdir@,$ac_abs_srcdir,;t t
13958s,@top_srcdir@,$ac_top_srcdir,;t t
13959s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13960s,@builddir@,$ac_builddir,;t t
13961s,@abs_builddir@,$ac_abs_builddir,;t t
13962s,@top_builddir@,$ac_top_builddir,;t t
13963s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13964s,@INSTALL@,$ac_INSTALL,;t t
13965" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13966 rm -f $tmp/stdin
13967 if test x"$ac_file" != x-; then
13968 mv $tmp/out $ac_file
13969 else
13970 cat $tmp/out
13971 rm -f $tmp/out
13972 fi
11a67599 13973
2aeb72e9
DD
13974done
13975_ACEOF
11a67599 13976
2aeb72e9 13977cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13978
1c710c3c
DJ
13979{ (exit 0); exit 0; }
13980_ACEOF
671aa708 13981chmod +x $CONFIG_STATUS
1c710c3c
DJ
13982ac_clean_files=$ac_clean_files_save
13983
13984
13985# configure is writing to config.log, and then calls config.status.
13986# config.status does its own redirection, appending to config.log.
13987# Unfortunately, on DOS this fails, as config.log is still kept open
13988# by configure, so config.status won't be able to write to it; its
13989# output is simply discarded. So we exec the FD to /dev/null,
13990# effectively closing config.log, so it can be properly (re)opened and
13991# appended to by config.status. When coming back to configure, we
13992# need to make the FD available again.
13993if test "$no_create" != yes; then
13994 ac_cs_success=:
13995 ac_config_status_args=
13996 test "$silent" = yes &&
13997 ac_config_status_args="$ac_config_status_args --quiet"
13998 exec 5>/dev/null
13999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14000 exec 5>>config.log
14001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14002 # would make configure fail if this is the last instruction.
14003 $ac_cs_success || { (exit 1); exit 1; }
14004fi
79c06341 14005