]> gcc.gnu.org Git - gcc.git/blame - configure
backport: configure: Regenerate.
[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"
f8bf9252 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 ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
18c04407 277ac_pwd=`pwd`
671aa708
NN
278
279# Initialize some variables set by options.
1c710c3c
DJ
280ac_init_help=
281ac_init_version=false
671aa708
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
1c710c3c 284cache_file=/dev/null
671aa708 285exec_prefix=NONE
671aa708 286no_create=
671aa708
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
671aa708
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
1c710c3c
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
2aeb72e9 307datadir='${prefix}/share'
671aa708
NN
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
2aeb72e9 311libdir='${exec_prefix}/lib'
671aa708
NN
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
2aeb72e9
DD
314infodir='${prefix}/info'
315mandir='${prefix}/man'
79c06341 316
671aa708
NN
317ac_prev=
318for ac_option
319do
671aa708
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
2aeb72e9 322 eval "$ac_prev=\$ac_option"
671aa708
NN
323 ac_prev=
324 continue
325 fi
79c06341 326
2aeb72e9 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
2aeb72e9 331 case $ac_option in
671aa708
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 336 bindir=$ac_optarg ;;
671aa708
NN
337
338 -build | --build | --buil | --bui | --bu)
1c710c3c 339 ac_prev=build_alias ;;
671aa708 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 341 build_alias=$ac_optarg ;;
671aa708
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
671aa708 352
2aeb72e9 353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 354 ac_prev=datadir ;;
2aeb72e9
DD
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
1c710c3c 357 datadir=$ac_optarg ;;
671aa708
NN
358
359 -disable-* | --disable-*)
1c710c3c 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 361 # Reject names that are not valid shell variable names.
2aeb72e9 362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
2aeb72e9
DD
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
671aa708
NN
367
368 -enable-* | --enable-*)
1c710c3c 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 370 # Reject names that are not valid shell variable names.
2aeb72e9 371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
2aeb72e9
DD
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
1c710c3c 388 exec_prefix=$ac_optarg ;;
671aa708
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
1c710c3c
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
671aa708
NN
400
401 -host | --host | --hos | --ho)
1c710c3c 402 ac_prev=host_alias ;;
671aa708 403 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 404 host_alias=$ac_optarg ;;
671aa708
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 411 includedir=$ac_optarg ;;
671aa708
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 416 infodir=$ac_optarg ;;
671aa708
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 421 libdir=$ac_optarg ;;
671aa708
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
1c710c3c 428 libexecdir=$ac_optarg ;;
671aa708
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 437 localstatedir=$ac_optarg ;;
671aa708
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 442 mandir=$ac_optarg ;;
671aa708
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 449 | --no-cr | --no-c | -n)
671aa708
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 463 oldincludedir=$ac_optarg ;;
671aa708
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 468 prefix=$ac_optarg ;;
671aa708
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 475 program_prefix=$ac_optarg ;;
671aa708
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 482 program_suffix=$ac_optarg ;;
671aa708
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 499 program_transform_name=$ac_optarg ;;
671aa708
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
1c710c3c 509 sbindir=$ac_optarg ;;
671aa708
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
1c710c3c 520 sharedstatedir=$ac_optarg ;;
671aa708
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
1c710c3c 525 site=$ac_optarg ;;
671aa708
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 530 srcdir=$ac_optarg ;;
671aa708
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 537 sysconfdir=$ac_optarg ;;
671aa708
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 540 ac_prev=target_alias ;;
671aa708 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 542 target_alias=$ac_optarg ;;
671aa708
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
1c710c3c
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
671aa708
NN
549
550 -with-* | --with-*)
1c710c3c 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 552 # Reject names that are not valid shell variable names.
2aeb72e9 553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
2aeb72e9
DD
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
562
563 -without-* | --without-*)
1c710c3c 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 565 # Reject names that are not valid shell variable names.
2aeb72e9 566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
2aeb72e9
DD
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
671aa708
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 581 x_includes=$ac_optarg ;;
671aa708
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 588 x_libraries=$ac_optarg ;;
671aa708 589
1c710c3c
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
671aa708
NN
593 ;;
594
1c710c3c
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
2aeb72e9
DD
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
603 export $ac_envvar ;;
604
671aa708 605 *)
1c710c3c
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
1c710c3c
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
af71363e 620fi
af71363e 621
2aeb72e9
DD
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
671aa708 624do
2aeb72e9 625 eval ac_val=$`echo $ac_var`
1c710c3c 626 case $ac_val in
2aeb72e9
DD
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
671aa708
NN
642 esac
643done
644
1c710c3c
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
0b0dc272 651
1c710c3c
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
671aa708 667
671aa708
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
2aeb72e9
DD
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
1c710c3c 679echo X"$0" |
2aeb72e9
DD
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
671aa708 685 srcdir=$ac_confdir
2aeb72e9 686 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
2aeb72e9
DD
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 698 { (exit 1); exit 1; }; }
2aeb72e9 699 fi
1c710c3c 700fi
2aeb72e9
DD
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 703 { (exit 1); exit 1; }; }
2aeb72e9
DD
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
ac9e6043
RW
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
2aeb72e9
DD
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
2aeb72e9
DD
883_ACEOF
884
885 cat <<_ACEOF
1c710c3c
DJ
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 935 --enable-gold use gold instead of ld
30b74385
RW
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
938 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 939 stage1. Mostly useful for compiler development.
30b74385
RW
940 --enable-objc-gc enable use of Boehm's garbage collector with the
941 GNU Objective-C runtime
942 --enable-bootstrap enable bootstrapping [yes if native build]
943 --enable-serial-[{host,target,build}-]configure
944 force sequential configuration of
1c710c3c 945 sub-packages for the host, target or build
30b74385 946 machine, or all sub-packages
1c710c3c
DJ
947 --enable-maintainer-mode enable make rules and dependencies not useful
948 (and sometimes confusing) to the casual installer
30b74385
RW
949 --enable-stage1-checking[=all] choose additional checking for stage1
950 of the compiler
1c710c3c
DJ
951 --enable-werror enable -Werror in bootstrap stage2 and later
952
953Optional Packages:
954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
956 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
957 --with-mpfr-dir=PATH this option has been REMOVED
958 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
959 Equivalent to --with-mpfr-include=PATH/include
960 plus --with-mpfr-lib=PATH/lib
961 --with-mpfr-include=PATH
30b74385
RW
962 specify directory for installed MPFR include files
963 --with-mpfr-lib=PATH specify directory for the installed MPFR library
964 --with-gmp-dir=PATH this option has been REMOVED
965 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
966 Equivalent to --with-gmp-include=PATH/include
967 plus --with-gmp-lib=PATH/lib
30b74385
RW
968 --with-gmp-include=PATH specify directory for installed GMP include files
969 --with-gmp-lib=PATH specify directory for the installed GMP library
f8bf9252
SP
970 --with-ppl=PATH Specify prefix directory for the installed PPL package
971 Equivalent to --with-ppl-include=PATH/include
972 plus --with-ppl-lib=PATH/lib
973 --with-ppl-include=PATH Specify directory for installed PPL include files
974 --with-ppl-lib=PATH Specify the directory for the installed PPL library
975 --with-cloog=PATH Specify prefix directory for the installed CLOOG package
976 Equivalent to --with-cloog-include=PATH/include
977 plus --with-cloog-lib=PATH/lib
978 --with-cloog-include=PATH Specify directory for installed CLOOG include files
979 --with-cloog-lib=PATH Specify the directory for the installed CLOOG library
30b74385 980 --with-build-sysroot=SYSROOT
1c710c3c 981 use sysroot as the system root during the build
c8aea42c
PB
982 --with-debug-prefix-map='A=B C=D ...'
983 map A to B, C to D ... in debug information
30b74385 984 --with-build-time-tools=PATH
1c710c3c 985 use given path to find target tools during the build
30b74385
RW
986 --with-datarootdir use datarootdir as the data root directory.
987 --with-docdir install documentation in this directory.
988 --with-pdfdir install pdf in this directory.
989 --with-htmldir install html in this directory.
1c710c3c
DJ
990
991Some influential environment variables:
992 CC C compiler command
993 CFLAGS C compiler flags
994 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
995 nonstandard directory <lib dir>
2aeb72e9
DD
996 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
997 headers in a nonstandard directory <include dir>
c3a86da9
DJ
998 CXX C++ compiler command
999 CXXFLAGS C++ compiler flags
278a7a38
AO
1000 AR AR for the host
1001 AS AS for the host
1002 DLLTOOL DLLTOOL for the host
1003 LD LD for the host
1004 LIPO LIPO for the host
1005 NM NM for the host
1006 RANLIB RANLIB for the host
1007 STRIP STRIP for the host
1008 WINDRES WINDRES for the host
901119ae 1009 WINDMC WINDMC for the host
278a7a38
AO
1010 OBJCOPY OBJCOPY for the host
1011 OBJDUMP OBJDUMP for the host
1012 CC_FOR_TARGET
1013 CC for the target
1014 CXX_FOR_TARGET
1015 CXX for the target
1016 GCC_FOR_TARGET
1017 GCC for the target
1018 GCJ_FOR_TARGET
1019 GCJ for the target
1020 GFORTRAN_FOR_TARGET
1021 GFORTRAN for the target
1022 AR_FOR_TARGET
1023 AR for the target
1024 AS_FOR_TARGET
1025 AS for the target
1026 DLLTOOL_FOR_TARGET
1027 DLLTOOL for the target
1028 LD_FOR_TARGET
1029 LD for the target
1030 LIPO_FOR_TARGET
1031 LIPO for the target
1032 NM_FOR_TARGET
1033 NM for the target
1034 OBJDUMP_FOR_TARGET
1035 OBJDUMP for the target
1036 RANLIB_FOR_TARGET
1037 RANLIB for the target
1038 STRIP_FOR_TARGET
1039 STRIP for the target
1040 WINDRES_FOR_TARGET
1041 WINDRES for the target
901119ae
KT
1042 WINDMC_FOR_TARGET
1043 WINDMC for the target
1c710c3c
DJ
1044
1045Use these variables to override the choices made by `configure' or to help
1046it to find libraries and programs with nonstandard names/locations.
1047
1048_ACEOF
1049fi
1050
1051if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
2aeb72e9 1053 ac_popdir=`pwd`
1c710c3c 1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1055 test -d $ac_dir || continue
1c710c3c
DJ
1056 ac_builddir=.
1057
2aeb72e9 1058if test "$ac_dir" != .; then
1c710c3c 1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062else
1063 ac_dir_suffix= ac_top_builddir=
1064fi
1c710c3c
DJ
1065
1066case $srcdir in
2aeb72e9 1067 .) # No --srcdir option. We are building in place.
1c710c3c 1068 ac_srcdir=.
2aeb72e9
DD
1069 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=.
1071 else
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 fi ;;
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1075 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1076 ac_top_srcdir=$srcdir ;;
1077 *) # Relative path.
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1080esac
1081
1082# Do not use `cd foo && pwd` to compute absolute paths, because
1083# the directories may not exist.
1084case `pwd` in
1085.) ac_abs_builddir="$ac_dir";;
1086*)
1087 case "$ac_dir" in
1088 .) ac_abs_builddir=`pwd`;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1091 esac;;
1092esac
1093case $ac_abs_builddir in
1094.) ac_abs_top_builddir=${ac_top_builddir}.;;
1095*)
1096 case ${ac_top_builddir}. in
1097 .) ac_abs_top_builddir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1100 esac;;
1101esac
1102case $ac_abs_builddir in
1103.) ac_abs_srcdir=$ac_srcdir;;
1104*)
1105 case $ac_srcdir in
1106 .) ac_abs_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1109 esac;;
1110esac
1111case $ac_abs_builddir in
1112.) ac_abs_top_srcdir=$ac_top_srcdir;;
1113*)
1114 case $ac_top_srcdir in
1115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1118 esac;;
1c710c3c 1119esac
2aeb72e9
DD
1120
1121 cd $ac_dir
1122 # Check for guested configure; otherwise get Cygnus style configure.
1123 if test -f $ac_srcdir/configure.gnu; then
1124 echo
1125 $SHELL $ac_srcdir/configure.gnu --help=recursive
1126 elif test -f $ac_srcdir/configure; then
1127 echo
1128 $SHELL $ac_srcdir/configure --help=recursive
1129 elif test -f $ac_srcdir/configure.ac ||
1130 test -f $ac_srcdir/configure.in; then
1131 echo
1132 $ac_configure --help
1c710c3c
DJ
1133 else
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1135 fi
1136 cd $ac_popdir
1c710c3c
DJ
1137 done
1138fi
1139
2aeb72e9 1140test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1141if $ac_init_version; then
1142 cat <<\_ACEOF
1143
2aeb72e9 1144Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1145This configure script is free software; the Free Software Foundation
1146gives unlimited permission to copy, distribute and modify it.
1147_ACEOF
2aeb72e9 1148 exit 0
0b0dc272 1149fi
2aeb72e9
DD
1150exec 5>config.log
1151cat >&5 <<_ACEOF
1c710c3c
DJ
1152This file contains any messages produced by compilers while
1153running configure, to aid debugging if configure makes a mistake.
1154
1155It was created by $as_me, which was
2aeb72e9 1156generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1157
1158 $ $0 $@
1159
1160_ACEOF
1161{
1162cat <<_ASUNAME
1163## --------- ##
1164## Platform. ##
1165## --------- ##
1166
1167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
1173/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175
1176/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1179hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1180/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1183
1184_ASUNAME
1185
1186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1187for as_dir in $PATH
1188do
1189 IFS=$as_save_IFS
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1192done
1193
1194} >&5
1195
1196cat >&5 <<_ACEOF
1197
1198
1199## ----------- ##
1200## Core tests. ##
1201## ----------- ##
1202
1203_ACEOF
1204
1205
1206# Keep a trace of the command line.
1207# Strip out --no-create and --no-recursion so they do not pile up.
1208# Strip out --silent because we don't want to record it for future runs.
1209# Also quote any args containing shell meta-characters.
1210# Make two passes to allow for proper duplicate-argument suppression.
1211ac_configure_args=
1212ac_configure_args0=
1213ac_configure_args1=
2aeb72e9 1214ac_sep=
1c710c3c
DJ
1215ac_must_keep_next=false
1216for ac_pass in 1 2
1217do
1218 for ac_arg
1219 do
1220 case $ac_arg in
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 continue ;;
2aeb72e9 1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 esac
1228 case $ac_pass in
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 2)
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1234 else
1235 case $ac_arg in
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1242 esac
1243 ;;
1244 -* ) ac_must_keep_next=true ;;
1245 esac
1246 fi
2aeb72e9
DD
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1249 ac_sep=" "
1c710c3c
DJ
1250 ;;
1251 esac
1252 done
1253done
1254$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
1257# When interrupted or exit'd, cleanup temporary files, and complete
1258# config.log. We remove comments because anyway the quotes in there
1259# would cause problems or look ugly.
2aeb72e9
DD
1260# WARNING: Be sure not to use single quotes in there, as some shells,
1261# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1262trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1264 {
1265 echo
1266
1267 cat <<\_ASBOX
1268## ---------------- ##
1269## Cache variables. ##
1270## ---------------- ##
1271_ASBOX
1272 echo
1273 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1274{
1c710c3c 1275 (set) 2>&1 |
2aeb72e9
DD
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1277 *ac_space=\ *)
1c710c3c 1278 sed -n \
2aeb72e9
DD
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1281 ;;
1c710c3c 1282 *)
2aeb72e9
DD
1283 sed -n \
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1285 ;;
2aeb72e9
DD
1286 esac;
1287}
1c710c3c
DJ
1288 echo
1289
1290 cat <<\_ASBOX
1291## ----------------- ##
1292## Output variables. ##
1293## ----------------- ##
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_vars
1297 do
2aeb72e9
DD
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1300 done | sort
1301 echo
1302
1303 if test -n "$ac_subst_files"; then
1304 cat <<\_ASBOX
2aeb72e9
DD
1305## ------------- ##
1306## Output files. ##
1307## ------------- ##
1c710c3c
DJ
1308_ASBOX
1309 echo
1310 for ac_var in $ac_subst_files
1311 do
2aeb72e9
DD
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1314 done | sort
1315 echo
1316 fi
1317
1318 if test -s confdefs.h; then
1319 cat <<\_ASBOX
1320## ----------- ##
1321## confdefs.h. ##
1322## ----------- ##
1323_ASBOX
1324 echo
2aeb72e9 1325 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1326 echo
1327 fi
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1331 } >&5
2aeb72e9
DD
1332 rm -f core *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1334 exit $exit_status
2aeb72e9 1335 ' 0
1c710c3c
DJ
1336for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1338done
1339ac_signal=0
1340
1341# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1342rm -rf conftest* confdefs.h
1343# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1344echo >confdefs.h
1c710c3c
DJ
1345
1346# Predefined preprocessor variables.
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_NAME "$PACKAGE_NAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_VERSION "$PACKAGE_VERSION"
1360_ACEOF
0b0dc272 1361
1c710c3c
DJ
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_STRING "$PACKAGE_STRING"
1365_ACEOF
1366
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1370_ACEOF
1371
1372
1373# Let the site file select an alternate cache file if it wants to.
671aa708 1374# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1375if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 else
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1380 fi
671aa708 1381fi
2aeb72e9 1382for ac_site_file in $CONFIG_SITE; do
671aa708 1383 if test -r "$ac_site_file"; then
1c710c3c
DJ
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1387 . "$ac_site_file"
1388 fi
1389done
1390
1391if test -r "$cache_file"; then
1c710c3c
DJ
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396echo "$as_me: loading cache $cache_file" >&6;}
1397 case $cache_file in
2aeb72e9
DD
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1c710c3c
DJ
1400 esac
1401 fi
671aa708 1402else
1c710c3c
DJ
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404echo "$as_me: creating cache $cache_file" >&6;}
1405 >$cache_file
1406fi
1407
1408# Check that the precious variables saved in the cache have kept the same
1409# value.
1410ac_cache_corrupted=false
2aeb72e9
DD
1411for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1417 case $ac_old_set,$ac_new_set in
1418 set,)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,set)
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1426 ,);;
1427 *)
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
7142fb32
PB
1429 # differences in whitespace do not lead to failure.
1430 ac_old_val_w=`echo x $ac_old_val`
1431 ac_new_val_w=`echo x $ac_new_val`
1432 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1433 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1c710c3c 1434echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
7142fb32
PB
1435 ac_cache_corrupted=:
1436 else
1437 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1438echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1439 eval $ac_var=\$ac_old_val
1440 fi
1441 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1442echo "$as_me: former value: \`$ac_old_val'" >&2;}
1443 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1444echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
1445 fi;;
1446 esac
1447 # Pass precious variables to config.status.
1448 if test "$ac_new_set" = set; then
1449 case $ac_new_val in
2aeb72e9
DD
1450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1451 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1452 *) ac_arg=$ac_var=$ac_new_val ;;
1453 esac
1454 case " $ac_configure_args " in
1455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1456 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1457 esac
1458 fi
1459done
1460if $ac_cache_corrupted; then
18c04407
RW
1461 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1462echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
671aa708
NN
1468fi
1469
2aeb72e9
DD
1470ac_ext=c
1471ac_cpp='$CPP $CPPFLAGS'
1472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475
1c710c3c
DJ
1476
1477
1478
1479
671aa708
NN
1480
1481
d02c69be 1482
1c710c3c
DJ
1483
1484
1485
1486
1487
1488
1489
1490
1491
18c04407
RW
1492
1493
1494
1c710c3c
DJ
1495
1496
1497
ad33ff57
RW
1498
1499progname=$0
1500# if PWD already has a value, it is probably wrong.
1501if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1502
1503# Export original configure arguments for use by sub-configures.
1504# Quote arguments with shell meta charatcers.
1505TOPLEVEL_CONFIGURE_ARGUMENTS=
1506set -- "$progname" "$@"
1507for ac_arg
1508do
1509 case "$ac_arg" in
1510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1512 # if the argument is of the form -foo=baz, quote the baz part only
1513 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1514 *) ;;
1515 esac
1516 # Add the quoted argument to the list.
1517 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1518done
1519if test "$silent" = yes; then
1520 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1521fi
1522# Remove the initial space we just introduced and, as these will be
1523# expanded by make, quote '$'.
1524TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1525
1c710c3c
DJ
1526
1527# Find the build, host, and target systems.
671aa708 1528ac_aux_dir=
2aeb72e9
DD
1529for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530 if test -f $ac_dir/install-sh; then
671aa708
NN
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/install-sh -c"
1533 break
2aeb72e9 1534 elif test -f $ac_dir/install.sh; then
671aa708
NN
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install.sh -c"
1537 break
2aeb72e9 1538 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/shtool install -c"
1541 break
671aa708
NN
1542 fi
1543done
1544if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1545 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1547 { (exit 1); exit 1; }; }
671aa708 1548fi
2aeb72e9
DD
1549ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1552
1c710c3c 1553# Make sure we can run config.sub.
2aeb72e9
DD
1554$ac_config_sub sun4 >/dev/null 2>&1 ||
1555 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1557 { (exit 1); exit 1; }; }
1558
2aeb72e9
DD
1559echo "$as_me:$LINENO: checking build system type" >&5
1560echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1561if test "${ac_cv_build+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
2aeb72e9
DD
1564 ac_cv_build_alias=$build_alias
1565test -z "$ac_cv_build_alias" &&
1566 ac_cv_build_alias=`$ac_config_guess`
1567test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570 { (exit 1); exit 1; }; }
2aeb72e9
DD
1571ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1574 { (exit 1); exit 1; }; }
1575
1576fi
2aeb72e9
DD
1577echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1579build=$ac_cv_build
2aeb72e9
DD
1580build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1583
671aa708 1584
1c710c3c
DJ
1585 case ${build_alias} in
1586 "") build_noncanonical=${build} ;;
1587 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1588esac
1589
1590
af71363e 1591
1c710c3c
DJ
1592 case ${host_alias} in
1593 "") host_noncanonical=${build_noncanonical} ;;
1594 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1595esac
1596
af71363e 1597
1c710c3c
DJ
1598
1599 case ${target_alias} in
1600 "") target_noncanonical=${host_noncanonical} ;;
1601 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1602esac
1603
af71363e 1604
1c710c3c
DJ
1605
1606
1607test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1608 test "$program_prefix$program_suffix$program_transform_name" = \
1609 NONENONEs,x,x, &&
1c710c3c 1610 program_transform_name=s,y,y,
af71363e 1611
2aeb72e9
DD
1612echo "$as_me:$LINENO: checking host system type" >&5
1613echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1614if test "${ac_cv_host+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1616else
2aeb72e9
DD
1617 ac_cv_host_alias=$host_alias
1618test -z "$ac_cv_host_alias" &&
1619 ac_cv_host_alias=$ac_cv_build_alias
1620ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1623 { (exit 1); exit 1; }; }
1624
af71363e 1625fi
2aeb72e9
DD
1626echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1628host=$ac_cv_host
2aeb72e9
DD
1629host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634echo "$as_me:$LINENO: checking target system type" >&5
1635echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1636if test "${ac_cv_target+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
2aeb72e9
DD
1639 ac_cv_target_alias=$target_alias
1640test "x$ac_cv_target_alias" = "x" &&
1641 ac_cv_target_alias=$ac_cv_host_alias
1642ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1645 { (exit 1); exit 1; }; }
1646
1647fi
2aeb72e9
DD
1648echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1649echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1650target=$ac_cv_target
2aeb72e9
DD
1651target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1654
1655
1656# The aliases save the names the user supplied, while $host etc.
1657# will get canonicalized.
1658test -n "$target_alias" &&
1659 test "$program_prefix$program_suffix$program_transform_name" = \
1660 NONENONEs,x,x, &&
1661 program_prefix=${target_alias}-
671aa708 1662test "$program_prefix" != NONE &&
2aeb72e9 1663 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1664# Use a double $ so make ignores it.
1665test "$program_suffix" != NONE &&
2aeb72e9 1666 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1667# Double any \ or $. echo might interpret backslashes.
1668# By default was `s,x,x', remove it if useless.
1669cat <<\_ACEOF >conftest.sed
1670s/[\\$]/&&/g;s/;s,x,x,$//
1671_ACEOF
1672program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1673rm conftest.sed
af71363e 1674
671aa708
NN
1675
1676
775956d0
NN
1677# Get 'install' or 'install-sh' and its variants.
1678# Find a good install program. We prefer a C program (faster),
1679# so one script is as good as another. But avoid the broken or
1680# incompatible versions:
1681# SysV /etc/install, /usr/sbin/install
1682# SunOS /usr/etc/install
1683# IRIX /sbin/install
1684# AIX /bin/install
1c710c3c 1685# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1689# OS/2's system install, which has a completely different semantic
775956d0 1690# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1691# Reject install programs that cannot install multiple files.
2aeb72e9
DD
1692echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1693echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1694if test -z "$INSTALL"; then
1c710c3c
DJ
1695if test "${ac_cv_path_install+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 # Account for people who put trailing slashes in PATH elements.
1704case $as_dir/ in
1705 ./ | .// | /cC/* | \
1706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1708 /usr/ucb/* ) ;;
1709 *)
1710 # OSF1 and SCO ODT 3.0 have their own names for install.
1711 # Don't use installbsd from OSF since it installs stuff as root
1712 # by default.
1713 for ac_prog in ginstall scoinst install; do
1714 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1716 if test $ac_prog = install &&
1c710c3c 1717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1718 # AIX install. It has an incompatible calling convention.
1719 :
1c710c3c
DJ
1720 elif test $ac_prog = install &&
1721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1722 # program-specific install script used by HP pwplus--don't use.
1723 :
775956d0 1724 else
38d24731
RW
1725 rm -rf conftest.one conftest.two conftest.dir
1726 echo one > conftest.one
1727 echo two > conftest.two
1728 mkdir conftest.dir
1729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1730 test -s conftest.one && test -s conftest.two &&
1731 test -s conftest.dir/conftest.one &&
1732 test -s conftest.dir/conftest.two
1733 then
1734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1735 break 3
1736 fi
775956d0
NN
1737 fi
1738 fi
1739 done
1c710c3c
DJ
1740 done
1741 ;;
1742esac
1743done
1744
38d24731 1745rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
1746
1747fi
1748 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1749 INSTALL=$ac_cv_path_install
775956d0 1750 else
38d24731
RW
1751 # As a last resort, use the slow shell script. Don't cache a
1752 # value for INSTALL within a source directory, because that will
775956d0 1753 # break other packages using the cache if that directory is
38d24731 1754 # removed, or if the value is a relative name.
1c710c3c 1755 INSTALL=$ac_install_sh
775956d0
NN
1756 fi
1757fi
2aeb72e9
DD
1758echo "$as_me:$LINENO: result: $INSTALL" >&5
1759echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1760
1761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1762# It thinks the first close brace ends the variable substitution.
1763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1764
1c710c3c 1765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1766
1767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1768
2aeb72e9
DD
1769echo "$as_me:$LINENO: checking whether ln works" >&5
1770echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1771if test "${acx_cv_prog_LN+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1773else
1774 rm -f conftestdata_t
1775echo >conftestdata_f
1776if ln conftestdata_f conftestdata_t 2>/dev/null
1777then
1778 acx_cv_prog_LN=ln
1779else
1780 acx_cv_prog_LN=no
1781fi
1782rm -f conftestdata_f conftestdata_t
1783
1784fi
1785if test $acx_cv_prog_LN = no; then
1786 LN="cp"
2aeb72e9
DD
1787 echo "$as_me:$LINENO: result: no, using $LN" >&5
1788echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1789else
1790 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1791 echo "$as_me:$LINENO: result: yes" >&5
1792echo "${ECHO_T}yes" >&6
ad6717df
PB
1793fi
1794
2aeb72e9
DD
1795echo "$as_me:$LINENO: checking whether ln -s works" >&5
1796echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1797LN_S=$as_ln_s
1798if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1799 echo "$as_me:$LINENO: result: yes" >&5
1800echo "${ECHO_T}yes" >&6
fb0103e5 1801else
2aeb72e9
DD
1802 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1803echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1804fi
1805
775956d0 1806
79c06341 1807### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1808### If we are on Windows, search for the shell. This will permit people
1809### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1810### without also having to set CONFIG_SHELL. This code will work when
1811### using bash, which sets OSTYPE.
1812case "${OSTYPE}" in
1813*win32*)
671aa708
NN
1814 if test x${CONFIG_SHELL} = x ; then
1815 if test ! -f /bin/sh ; then
1816 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1817 CONFIG_SHELL=${SHELL}
1818 export CONFIG_SHELL
1819 else
1820 for prog in sh sh.exe bash bash.exe; do
1821 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1822 for dir in $PATH; do
1823 test -z "$dir" && dir=.
1824 if test -f $dir/$prog; then
1825 CONFIG_SHELL=$dir/$prog
1826 export CONFIG_SHELL
1827 break
1828 fi
1829 done
1830 IFS="$save_ifs"
1831 test -n "${CONFIG_SHELL}" && break
1832 done
1833 fi
1834 fi
1835 fi
1836 ;;
1837esac
1838
1839config_shell=${CONFIG_SHELL-/bin/sh}
1840
671aa708 1841moveifchange=${srcdir}/move-if-change
79c06341 1842
ee6a22df
L
1843srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1844
1845# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1846# a relative path.
1847if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1848 INSTALL="${srcpwd}/install-sh -c"
1849fi
1850
671aa708
NN
1851# Set srcdir to "." if that's what it is.
1852# This is important for multilib support.
1853pwd=`${PWDCMD-pwd}`
671aa708
NN
1854if test "${pwd}" = "${srcpwd}" ; then
1855 srcdir=.
79c06341
JL
1856fi
1857
671aa708 1858topsrcdir=$srcpwd
5d4a5ee6 1859
671aa708 1860extra_host_args=
afabd8e6 1861
671aa708
NN
1862### To add a new directory to the tree, first choose whether it is a target
1863### or a host dependent tool. Then put it into the appropriate list
1864### (library or tools, host or target), doing a dependency sort.
79c06341 1865
1c710c3c 1866# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1867# configdirs, or target_configdirs; see the serialization section below.
79c06341 1868
1c710c3c
DJ
1869# Dependency sorting is only needed when *configuration* must be done in
1870# a particular order. In all cases a dependency should be specified in
671aa708 1871# the Makefile, whether or not it's implicitly specified here.
79c06341 1872
671aa708
NN
1873# Double entries in build_configdirs, configdirs, or target_configdirs may
1874# cause circular dependencies and break everything horribly.
79c06341 1875
23f6b2f9
PB
1876# these library is used by various programs built for the build
1877# environment
1878#
1879build_libs="build-libiberty"
1880
1881# these tools are built for the build environment
71b5d516 1882build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1883
671aa708
NN
1884# these libraries are used by various programs built for the host environment
1885#
f8bf9252 1886host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog"
671aa708 1887
671aa708
NN
1888# these tools are built for the host environment
1889# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1890# know that we are building the simulator.
1891# binutils, gas and ld appear in that order because it makes sense to run
1892# "make check" in that particular order.
5afab7ad 1893# If --enable-gold is used, "gold" will replace "ld".
5395b47b 1894host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1895
1896# libgcj represents the runtime libraries only used by gcj.
1897libgcj="target-libffi \
671aa708
NN
1898 target-zlib \
1899 target-qthreads \
1900 target-libjava"
1901
1902# these libraries are built for the target environment, and are built after
1903# the host libraries and the host tools (which may be a cross compiler)
1904#
291f172e
DJ
1905target_libraries="target-libgcc \
1906 target-libiberty \
671aa708
NN
1907 target-libgloss \
1908 target-newlib \
6d3b5aea 1909 target-libgomp \
cb543528 1910 target-libstdc++-v3 \
6de9cd9a 1911 target-libmudflap \
77008252 1912 target-libssp \
6de9cd9a 1913 target-libgfortran \
7cd0cf9c 1914 target-boehm-gc \
77d187bc 1915 ${libgcj} \
d9cdb878 1916 target-libobjc \
6d3b5aea 1917 target-libada"
671aa708 1918
4dbda6f0
NN
1919# these tools are built using the target libraries, and are intended to
1920# run only in the target environment
671aa708 1921#
4dbda6f0 1922# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1923# list belongs in this list. those programs are also very likely
1924# candidates for the "native_only" list which follows
1925#
97286f7f 1926target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1927
671aa708 1928################################################################################
79c06341 1929
671aa708
NN
1930## All tools belong in one of the four categories, and are assigned above
1931## We assign ${configdirs} this way to remove all embedded newlines. This
1932## is important because configure will choke if they ever get through.
1933## ${configdirs} is directories we build using the host tools.
1934## ${target_configdirs} is directories we build using the target tools.
671aa708 1935configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1936target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1937build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1938
ac9e6043
RW
1939
1940
671aa708 1941################################################################################
79c06341 1942
671aa708 1943srcname="gnu development package"
79c06341 1944
671aa708
NN
1945# This gets set non-empty for some net releases of packages.
1946appdirs=""
79c06341 1947
671aa708
NN
1948# Define is_cross_compiler to save on calls to 'test'.
1949is_cross_compiler=
1950if test x"${host}" = x"${target}" ; then
1951 is_cross_compiler=no
79c06341 1952else
671aa708 1953 is_cross_compiler=yes
1c710c3c 1954fi
79c06341 1955
b4acb5ef 1956# Find the build and target subdir names.
8b87bb96 1957
2e9e6f68
DJ
1958# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1959# have matching libraries, they should use host libraries: Makefile.tpl
1960# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1961# However, they still use the build modules, because the corresponding
1962# host modules (e.g. bison) are only built for the host when bootstrap
1963# finishes. So:
1964# - build_subdir is where we find build modules, and never changes.
1965# - build_libsubdir is where we find build libraries, and can be overridden.
1966
1967# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1968build_subdir="build-${build_noncanonical}"
1c710c3c 1969
2aeb72e9 1970# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1971if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1972 withval="$with_build_libsubdir"
1973 build_libsubdir="$withval"
2e9e6f68
DJ
1974else
1975 build_libsubdir="$build_subdir"
2aeb72e9 1976fi;
215c351a
PB
1977# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1978if ( test $srcdir = . && test -d gcc ) \
1979 || test -d $srcdir/../host-${host_noncanonical}; then
1980 host_subdir="host-${host_noncanonical}"
1981else
1982 host_subdir=.
1983fi
8b87bb96
NN
1984# No prefix.
1985target_subdir=${target_noncanonical}
1c710c3c 1986
79c06341 1987
671aa708
NN
1988# Skipdirs are removed silently.
1989skipdirs=
1990# Noconfigdirs are removed loudly.
1991noconfigdirs=""
79c06341 1992
671aa708
NN
1993use_gnu_ld=
1994# Make sure we don't let GNU ld be added if we didn't want it.
1995if test x$with_gnu_ld = xno ; then
1996 use_gnu_ld=no
5afab7ad 1997 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
1998fi
1999
671aa708
NN
2000use_gnu_as=
2001# Make sure we don't let GNU as be added if we didn't want it.
2002if test x$with_gnu_as = xno ; then
2003 use_gnu_as=no
2004 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2005fi
2006
1c710c3c 2007# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2008# it's not even worth trying to configure, much less build, that tool.
79c06341 2009
671aa708
NN
2010case ${with_x} in
2011 yes | "") ;; # the default value for this tree is that X11 is available
2012 no)
b4f96efe 2013 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2014 # We won't be able to build gdbtk without X.
1c710c3c 2015 enable_gdbtk=no
671aa708
NN
2016 ;;
2017 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2018esac
79c06341 2019
671aa708 2020# Some tools are only suitable for building in a "native" situation.
1c710c3c 2021# Remove these if host!=target.
9e299237 2022native_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 2023
671aa708
NN
2024# Similarly, some are only suitable for cross toolchains.
2025# Remove these if host=target.
2026cross_only="target-libgloss target-newlib target-opcodes"
2027
2028case $is_cross_compiler in
2029 no) skipdirs="${skipdirs} ${cross_only}" ;;
2030 yes) skipdirs="${skipdirs} ${native_only}" ;;
2031esac
79c06341 2032
671aa708
NN
2033# If both --with-headers and --with-libs are specified, default to
2034# --without-newlib.
ee6a22df
L
2035if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2036 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2037 if test x"${with_newlib}" = x ; then
2038 with_newlib=no
2039 fi
79c06341
JL
2040fi
2041
671aa708
NN
2042# Recognize --with-newlib/--without-newlib.
2043case ${with_newlib} in
2044 no) skipdirs="${skipdirs} target-newlib" ;;
2045 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2046esac
79c06341 2047
5afab7ad
ILT
2048# Handle --enable-gold.
2049
2050# Check whether --enable-gold or --disable-gold was given.
2051if test "${enable_gold+set}" = set; then
2052 enableval="$enable_gold"
2053 ENABLE_GOLD=$enableval
2054else
2055 ENABLE_GOLD=no
2056fi;
2057if test "${ENABLE_GOLD}" = "yes"; then
2058 # Check for ELF target.
2059 is_elf=no
2060 case "${target}" in
2061 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2062 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2063 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2064 case "${target}" in
2065 *-*-linux*aout* | *-*-linux*oldld*)
2066 ;;
2067 *)
2068 is_elf=yes
2069 ;;
2070 esac
2071 esac
2072
2073 if test "$is_elf" = "yes"; then
2074 # Check for target supported by gold.
2075 case "${target}" in
01b79d11 2076 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
5afab7ad
ILT
2077 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2078 ;;
2079 esac
2080 fi
2081fi
2082
671aa708 2083# Configure extra directories which are host specific
79c06341 2084
671aa708
NN
2085case "${host}" in
2086 *-cygwin*)
2087 configdirs="$configdirs libtermcap" ;;
2088esac
79c06341 2089
4fab7234
HPN
2090# A target can indicate whether a language isn't supported for some reason.
2091# Only spaces may be used in this macro; not newlines or tabs.
2092unsupported_languages=
2093
1c710c3c 2094# Remove more programs from consideration, based on the host or
671aa708
NN
2095# target this usually means that a port of the program doesn't
2096# exist yet.
ec8d6ddc 2097
671aa708
NN
2098case "${host}" in
2099 hppa*64*-*-*)
2100 noconfigdirs="$noconfigdirs byacc"
2101 ;;
f2a0e225 2102 i[3456789]86-*-vsta)
b4f96efe 2103 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2104 ;;
f2a0e225 2105 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2106 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2107 ;;
95af8923
KT
2108 x86_64-*-mingw*)
2109 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2110 ;;
f2a0e225 2111 i[3456789]86-*-mingw32*)
b4f96efe 2112 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2113 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2114 ;;
f2a0e225 2115 i[3456789]86-*-beos*)
b4f96efe 2116 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2117 ;;
671aa708 2118 *-*-cygwin*)
a22c2d8d 2119 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2120 ;;
2121 *-*-netbsd*)
a22c2d8d 2122 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2123 ;;
2124 ppc*-*-pe)
b4f96efe 2125 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2126 ;;
2127 powerpc-*-beos*)
b4f96efe 2128 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2129 ;;
671aa708 2130esac
ec8d6ddc 2131
6de9cd9a 2132
2aeb72e9 2133# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2134if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2135 enableval="$enable_libada"
2136 ENABLE_LIBADA=$enableval
d9cdb878
AC
2137else
2138 ENABLE_LIBADA=yes
2aeb72e9 2139fi;
d9cdb878 2140if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2141 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2142fi
2143
2aeb72e9 2144# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2145if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2146 enableval="$enable_libssp"
2147 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2148else
2149 ENABLE_LIBSSP=yes
2aeb72e9 2150fi;
ef0087a7 2151
671aa708
NN
2152# Save it here so that, even in case of --enable-libgcj, if the Java
2153# front-end isn't enabled, we still get libgcj disabled.
2154libgcj_saved=$libgcj
2155case $enable_libgcj in
2156yes)
2157 # If we reset it here, it won't get added to noconfigdirs in the
2158 # target-specific build rules, so it will be forcibly enabled
2159 # (unless the Java language itself isn't enabled).
2160 libgcj=
2161 ;;
2162no)
2163 # Make sure we get it printed in the list of not supported target libs.
2164 noconfigdirs="$noconfigdirs ${libgcj}"
2165 ;;
2166esac
ec8d6ddc 2167
6de9cd9a 2168
27079765
AH
2169# Disable libmudflap on some systems.
2170if test x$enable_libmudflap = x ; then
dfcada9a 2171 case "${target}" in
1c00b503 2172 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2173 # Enable libmudflap by default in GNU and friends.
dfcada9a 2174 ;;
a3e8d8b4
LR
2175 *-*-freebsd*)
2176 # Enable libmudflap by default in FreeBSD.
2177 ;;
dfcada9a
MM
2178 *)
2179 # Disable it by default everywhere else.
2180 noconfigdirs="$noconfigdirs target-libmudflap"
2181 ;;
2182 esac
27079765 2183fi
6de9cd9a 2184
27079765
AH
2185# Disable libgomp on non POSIX hosted systems.
2186if test x$enable_libgomp = x ; then
953ff289
DN
2187 # Enable libgomp by default on hosted POSIX systems.
2188 case "${target}" in
670cbfcf 2189 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2190 ;;
2191 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2192 ;;
04879af3 2193 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2194 ;;
cac90078 2195 *-*-darwin* | *-*-aix*)
953ff289
DN
2196 ;;
2197 *)
2198 noconfigdirs="$noconfigdirs target-libgomp"
2199 ;;
2200 esac
27079765 2201fi
953ff289 2202
c03353e2
RIL
2203# Default libgloss CPU subdirectory.
2204libgloss_dir="$target_cpu"
6de9cd9a 2205
671aa708
NN
2206case "${target}" in
2207 *-*-chorusos)
cb253473 2208 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2209 ;;
0fe0f073 2210 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
e1514c3f 2211 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2212 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2213 ;;
42c1cd8a
AT
2214 *-*-darwin*)
2215 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2216 noconfigdirs="$noconfigdirs sim target-rda"
2217 noconfigdirs="$noconfigdirs ${libgcj}"
2218 ;;
671aa708 2219 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2220 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2221 ;;
c3f84f61 2222 *-*-freebsd*)
6de9cd9a
DN
2223 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2224 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2225 && test -f /usr/local/include/gmp.h; then
2226 with_gmp=/usr/local
2227 fi
2228
2229 # Skip some stuff that's unsupported on some FreeBSD configurations.
2230 case "${target}" in
2231 i*86-*-*) ;;
2232 alpha*-*-*) ;;
2233 *)
cb253473 2234 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2235 ;;
2236 esac
2237 ;;
ef4e7569
US
2238 *-*-kaos*)
2239 # Remove unsupported stuff on all kaOS configurations.
cb253473 2240 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2241 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2242 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2243 noconfigdirs="$noconfigdirs target-libgloss"
2244 ;;
671aa708
NN
2245 *-*-netbsd*)
2246 # Skip some stuff on all NetBSD configurations.
2247 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2248
2249 # Skip some stuff that's unsupported on some NetBSD configurations.
2250 case "${target}" in
2251 i*86-*-netbsdelf*) ;;
0590b963 2252 arm*-*-netbsdelf*) ;;
671aa708 2253 *)
cb253473 2254 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2255 ;;
2256 esac
2257 ;;
61fec9ff 2258 *-*-netware*)
cb253473 2259 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2260 ;;
2261 *-*-rtems*)
cb253473 2262 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2263 ;;
a8ba31f2
EC
2264 # The tpf target doesn't support gdb yet.
2265 *-*-tpf*)
cb253473 2266 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2267 ;;
5785c0ed 2268 *-*-uclinux*)
cb253473 2269 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2270 ;;
671aa708 2271 *-*-vxworks*)
cb253473 2272 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2273 ;;
2274 alpha*-dec-osf*)
2275 # ld works, but does not support shared libraries.
2276 # newlib is not 64 bit ready. I'm not sure about fileutils.
2277 # gas doesn't generate exception information.
2278 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2279 ;;
2280 alpha*-*-*vms*)
cb253473 2281 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2282 ;;
2283 alpha*-*-linux*)
2284 # newlib is not 64 bit ready
2285 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2286 ;;
671aa708
NN
2287 alpha*-*-*)
2288 # newlib is not 64 bit ready
cb253473 2289 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2290 ;;
33952f6f 2291 am33_2.0-*-linux*)
cb253473 2292 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2293 ;;
671aa708 2294 sh-*-linux*)
cb253473 2295 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2296 ;;
671aa708 2297 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2298 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2299 noconfigdirs="$noconfigdirs target-examples"
2300 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2301 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2302 noconfigdirs="$noconfigdirs expect dejagnu"
2303 # the C++ libraries don't build on top of CE's C libraries
cb543528 2304 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2305 noconfigdirs="$noconfigdirs target-newlib"
2306 case "${host}" in
2307 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2308 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2309 ;;
2310 esac
c03353e2 2311 libgloss_dir=wince
671aa708
NN
2312 ;;
2313 arc-*-*)
cb253473 2314 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2315 ;;
ee6a22df 2316 arm-semi-aof )
ee6a22df 2317 ;;
671aa708 2318 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2319 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2320 libgloss_dir=arm
671aa708 2321 ;;
b3f8d95d 2322 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2323 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2324 libgloss_dir=arm
671aa708 2325 ;;
077fc835 2326 arm*-*-linux-gnueabi)
c4e9bf2b 2327 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2328 case ${with_newlib} in
2329 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2330 esac
c03353e2 2331 libgloss_dir=arm
077fc835 2332 ;;
972974fc 2333 arm*-*-symbianelf*)
cb253473 2334 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2335 libgloss_dir=arm
972974fc 2336 ;;
671aa708 2337 arm-*-pe*)
cb253473 2338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2339 ;;
671aa708 2340 thumb-*-coff)
cb253473 2341 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2342 ;;
2343 thumb-*-elf)
cb253473 2344 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2345 ;;
671aa708 2346 thumb-*-pe)
cb253473 2347 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2348 ;;
2349 arm-*-riscix*)
cb253473 2350 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2351 ;;
2352 avr-*-*)
ac3949d9 2353 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 2354 ;;
6b65a26d 2355 bfin-*-*)
8b3c6c5a 2356 noconfigdirs="$noconfigdirs gdb"
61efc800 2357 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2358 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2359 fi
2360 ;;
671aa708 2361 c4x-*-* | tic4x-*-*)
cb253473 2362 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2363 ;;
2364 c54x*-*-* | tic54x-*-*)
cb253473 2365 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2366 ;;
c993ae60
SR
2367 cr16-*-*)
2368 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2369 ;;
40d64b5a 2370 cris-*-* | crisv32-*-*)
4fab7234 2371 unsupported_languages="$unsupported_languages java"
40d64b5a 2372 case "${target}" in
c2e0d3a9 2373 *-*-aout)
7f26dfa3 2374 unsupported_languages="$unsupported_languages fortran"
4fab7234 2375 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2376 *-*-elf)
789ec619 2377 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2378 *-*-linux*)
789ec619 2379 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2380 *)
7f26dfa3 2381 unsupported_languages="$unsupported_languages fortran"
cb253473 2382 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2383 esac
c03353e2 2384 libgloss_dir=cris
671aa708 2385 ;;
25b656e7 2386 crx-*-*)
cb253473 2387 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2388 ;;
671aa708 2389 d10v-*-*)
cb253473 2390 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2391 ;;
2392 d30v-*-*)
cb253473 2393 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2394 ;;
c03353e2
RIL
2395 ep9312-*-elf | ep9312-*-coff)
2396 libgloss_dir=arm
2397 ;;
671aa708 2398 fr30-*-elf*)
cb253473 2399 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2400 ;;
2401 frv-*-*)
cb253473 2402 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2403 ;;
2404 h8300*-*-*)
cb253473 2405 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2406 ;;
2407 h8500-*-*)
cb253473 2408 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2409 ;;
ee6a22df 2410 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2411 ;;
671aa708
NN
2412 hppa*64*-*-linux* | parisc*64*-*-linux*)
2413 # In this case, it's because the hppa64-linux target is for
2414 # the kernel only at this point and has no libc, and thus no
2415 # headers, crt*.o, etc., all of which are needed by these.
2416 noconfigdirs="$noconfigdirs target-zlib"
2417 ;;
3e732ba0
JDA
2418 parisc*-*-linux* | hppa*-*-linux*)
2419 ;;
671aa708 2420 hppa*-*-*elf* | \
671aa708
NN
2421 hppa*-*-lites* | \
2422 hppa*-*-openbsd* | \
2423 hppa*64*-*-*)
cb253473 2424 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2425 ;;
2a332582
JDA
2426 hppa*-hp-hpux11*)
2427 noconfigdirs="$noconfigdirs ld shellutils"
2428 ;;
c03353e2
RIL
2429 hppa*-*-pro*)
2430 libgloss_dir=pa
2431 ;;
671aa708
NN
2432 hppa*-*-*)
2433 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2434 # build on HP-UX 10.20.
cb253473 2435 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2436 ;;
fb87ad5d 2437 i960-*-*)
cb253473 2438 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2439 ;;
671aa708
NN
2440 ia64*-*-elf*)
2441 # No gdb support yet.
b4f96efe 2442 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2443 ;;
2444 ia64*-**-hpux*)
2445 # No gdb or ld support yet.
cb253473 2446 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2447 ;;
ee6a22df 2448 i370-*-opened*)
ee6a22df 2449 ;;
f2a0e225 2450 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2451 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2452 libgloss_dir=i386
671aa708 2453 ;;
f2a0e225 2454 i[3456789]86-*-linux*)
671aa708
NN
2455 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2456 # not build java stuff by default.
2457 case "${target}" in
2458 *-*-*libc1*)
cb253473 2459 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2460 esac
2461
2462 # This section makes it possible to build newlib natively on linux.
2463 # If we are using a cross compiler then don't configure newlib.
2464 if test x${is_cross_compiler} != xno ; then
3aa83176 2465 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2466 fi
2467 noconfigdirs="$noconfigdirs target-libgloss"
2468 # If we are not using a cross compiler, do configure newlib.
2469 # Note however, that newlib will only be configured in this situation
2470 # if the --with-newlib option has been given, because otherwise
2471 # 'target-newlib' will appear in skipdirs.
2472 ;;
f2a0e225 2473 i[3456789]86-*-mingw32*)
b91f0a41
CV
2474 target_configdirs="$target_configdirs target-winsup"
2475 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2476 ;;
95af8923
KT
2477 x86_64-*-mingw*)
2478 target_configdirs="$target_configdirs target-winsup"
2479 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2480 ;;
671aa708
NN
2481 *-*-cygwin*)
2482 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2483 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2484 # always build newlib if winsup directory is present.
b91f0a41 2485 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2486 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2487 elif test -d "$srcdir/newlib"; then
b91f0a41 2488 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2489 fi
1c710c3c 2490 ;;
ee6a22df
L
2491 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2492 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2493 ;;
f2a0e225 2494 i[3456789]86-*-pe)
cb253473 2495 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2496 ;;
f2a0e225 2497 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2498 # The linker does not yet know about weak symbols in COFF,
2499 # and is not configured to handle mixed ELF and COFF.
cb253473 2500 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2501 ;;
f2a0e225 2502 i[3456789]86-*-sco*)
cb253473 2503 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2504 ;;
f2a0e225 2505 i[3456789]86-*-solaris2*)
671aa708
NN
2506 noconfigdirs="$noconfigdirs target-libgloss"
2507 ;;
f2a0e225 2508 i[3456789]86-*-sysv4*)
cb253473 2509 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2510 ;;
f2a0e225 2511 i[3456789]86-*-beos*)
cb253473 2512 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2513 ;;
d1f8db0c
PB
2514 i[3456789]86-*-rdos*)
2515 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2516 ;;
fb87ad5d 2517 m32r-*-*)
cb253473 2518 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2519 ;;
671aa708 2520 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2521 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2522 libgloss_dir=m68hc11
671aa708
NN
2523 ;;
2524 m68k-*-elf*)
cb253473 2525 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2526 ;;
2527 m68k-*-coff*)
cb253473 2528 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2529 ;;
c03353e2
RIL
2530 m68*-*-* | fido-*-*)
2531 libgloss_dir=m68k
2532 ;;
671aa708
NN
2533 mcore-*-pe*)
2534 # The EPOC C++ environment does not support exceptions or rtti,
2535 # and so building libstdc++-v3 tends not to always work.
2536 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2537 ;;
2538 mmix-*-*)
4fab7234 2539 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2540 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2541 ;;
2542 mn10200-*-*)
cb253473 2543 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2544 ;;
2545 mn10300-*-*)
cb253473 2546 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2547 ;;
ab34901f 2548 mt-*-*)
79dd769c
AH
2549 noconfigdirs="$noconfigdirs sim"
2550 ;;
671aa708
NN
2551 powerpc-*-aix*)
2552 # copied from rs6000-*-* entry
cb253473 2553 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2554 ;;
2555 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2556 target_configdirs="$target_configdirs target-winsup"
cb253473 2557 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2558 # always build newlib.
2559 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2560 ;;
2561 # This is temporary until we can link against shared libraries
2562 powerpcle-*-solaris*)
cb253473 2563 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2564 libgloss_dir=rs6000
671aa708
NN
2565 ;;
2566 powerpc-*-beos*)
cb253473 2567 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2568 ;;
671aa708 2569 powerpc-*-eabi)
cb253473 2570 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2571 libgloss_dir=rs6000
ee6a22df
L
2572 ;;
2573 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2574 libgloss_dir=rs6000
671aa708 2575 ;;
671aa708 2576 rs6000-*-lynxos*)
cb253473 2577 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2578 ;;
2579 rs6000-*-aix*)
cb253473 2580 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2581 ;;
2582 rs6000-*-*)
cb253473 2583 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2584 ;;
2585 m68k-apollo-*)
cb253473 2586 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2587 ;;
d9dced13
RS
2588 mips*-sde-elf*)
2589 skipdirs="$skipdirs target-libiberty"
2590 noconfigdirs="$noconfigdirs ${libgcj}"
2591 if test x$with_newlib = xyes; then
2592 noconfigdirs="$noconfigdirs gprof"
2593 fi
2594 libgloss_dir=mips
2595 ;;
671aa708 2596 mips*-*-irix5*)
cb253473 2597 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2598 ;;
2599 mips*-*-irix6*)
671aa708
NN
2600 # Linking libjava exceeds command-line length limits on at least
2601 # IRIX 6.2, but not on IRIX 6.5.
2602 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2603 # <oldham@codesourcery.com>
cb253473 2604 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2605 ;;
671aa708 2606 mips*-*-bsd*)
cb253473 2607 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2608 ;;
671aa708
NN
2609 mips*-*-linux*)
2610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2611 ;;
2612 mips*-*-*)
cb253473 2613 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2614 libgloss_dir=mips
671aa708
NN
2615 ;;
2616 romp-*-*)
cb253473 2617 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2618 ;;
669f01d8 2619 sh-*-* | sh64-*-*)
671aa708 2620 case "${host}" in
f2a0e225
KC
2621 i[3456789]86-*-vsta) ;; # don't add gprof back in
2622 i[3456789]86-*-go32*) ;; # don't add gprof back in
2623 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2624 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2625 esac
cb253473 2626 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2627 ;;
c03353e2
RIL
2628 sparclet-*-aout* | sparc86x-*-*)
2629 libgloss_dir=sparc
2630 ;;
671aa708 2631 sparc-*-elf*)
cb253473 2632 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2633 ;;
2634 sparc64-*-elf*)
cb253473 2635 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2636 libgloss_dir=sparc
671aa708
NN
2637 ;;
2638 sparclite-*-*)
cb253473 2639 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2640 libgloss_dir=sparc
671aa708
NN
2641 ;;
2642 sparc-*-sunos4*)
cb253473 2643 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2644 if test x${is_cross_compiler} != xno ; then
2645 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2646 else
2647 use_gnu_ld=no
2648 fi
2649 ;;
bba5e0ca 2650 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2651 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2652 ;;
671aa708
NN
2653 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2654 ;;
85d9c13c 2655 spu-*-*)
ea6f5c57 2656 skipdirs="target-libssp"
85d9c13c 2657 ;;
671aa708 2658 v810-*-*)
cb253473 2659 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2660 ;;
2661 v850-*-*)
cb253473 2662 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2663 ;;
2664 v850e-*-*)
cb253473 2665 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2666 ;;
2667 v850ea-*-*)
cb253473 2668 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2669 ;;
2670 vax-*-vms)
cb253473 2671 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2672 ;;
2673 vax-*-*)
cb253473 2674 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2675 ;;
aa12a573 2676 xtensa*-*-*)
cb253473 2677 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2678 ;;
671aa708 2679 ip2k-*-*)
cb253473 2680 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2681 ;;
c3f84f61 2682 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2684 ;;
2685 *-*-lynxos*)
cb253473 2686 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2687 ;;
671aa708 2688 *-*-*)
cb253473 2689 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2690 ;;
2691esac
79c06341 2692
671aa708
NN
2693# If we aren't building newlib, then don't build libgloss, since libgloss
2694# depends upon some newlib header files.
2695case "${noconfigdirs}" in
2696 *target-libgloss*) ;;
2697 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2698esac
2699
671aa708
NN
2700# Work in distributions that contain no compiler tools, like Autoconf.
2701tentative_cc=""
2702host_makefile_frag=/dev/null
2703if test -d ${srcdir}/config ; then
2704case "${host}" in
2705 m68k-hp-hpux*)
2706 # Avoid "too much defining" errors from HPUX compiler.
2707 tentative_cc="cc -Wp,-H256000"
2708 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2709 # If it's HP/UX ar, this should be harmless.
2710 RANLIB="ar ts"
2711 ;;
2712 m68k-apollo-sysv*)
2713 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2714 ;;
2715 m68k-apollo-bsd*)
2716 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2717 # chokes on bfd, the compiler won't let you assign integers to enums, and
2718 # other problems. Defining CC to gcc is a questionable way to say "don't use
2719 # the apollo compiler" (the preferred version of GCC could be called cc,
2720 # or whatever), but I'm not sure leaving CC as cc is any better...
2721 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2722 # Used to have BISON=yacc.
2723 tentative_cc=gcc
2724 ;;
2725 m88k-dg-dgux*)
2726 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2727 ;;
2728 m88k-harris-cxux*)
2729 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2730 tentative_cc="cc -Xa"
2731 host_makefile_frag="config/mh-cxux"
2732 ;;
2733 m88k-motorola-sysv*)
2734 ;;
2735 mips*-dec-ultrix*)
2736 tentative_cc="cc -Wf,-XNg1000"
2737 host_makefile_frag="config/mh-decstation"
2738 ;;
2739 mips*-nec-sysv4*)
2740 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2741 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2742 host_makefile_frag="config/mh-necv4"
2743 ;;
2744 mips*-sgi-irix4*)
2745 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2746 # environment. Also bump switch table size so that cp-parse will
2747 # compile. Bump string length limit so linker builds.
2748 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2749 ;;
2750 mips*-*-sysv4*)
2751 host_makefile_frag="config/mh-sysv4"
2752 ;;
2753 mips*-*-sysv*)
2754 # This is for a MIPS running RISC/os 4.52C.
2755
2756 # This is needed for GDB, but needs to be in the top-level make because
2757 # if a library is compiled with the bsd headers and gets linked with the
2758 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2759 # a different size).
2760 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2761 # known except to select the sysv environment. Could we use /proc instead?
2762 # These "sysv environments" and "bsd environments" often end up being a pain.
2763 #
2764 # This is not part of CFLAGS because perhaps not all C compilers have this
2765 # option.
2766 tentative_cc="cc -systype sysv"
2767 ;;
2768 i370-ibm-opened*)
2769 tentative_cc="c89"
2770 ;;
f2a0e225 2771 i[3456789]86-*-sysv5*)
671aa708
NN
2772 host_makefile_frag="config/mh-sysv5"
2773 ;;
f2a0e225 2774 i[3456789]86-*-dgux*)
671aa708
NN
2775 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2776 host_makefile_frag="config/mh-dgux386"
2777 ;;
f2a0e225 2778 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2779 # The MetaWare compiler will generate a copyright message unless you
2780 # turn it off by adding the -Hnocopyr flag.
2781 tentative_cc="cc -Hnocopyr"
2782 ;;
f2a0e225 2783 i[3456789]86-ncr-sysv4*)
671aa708
NN
2784 # for an NCR 3000 (i486/SVR4) system.
2785 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2786 # This compiler not only emits obnoxious copyright messages every time
2787 # you run it, but it chokes and dies on a whole bunch of GNU source
2788 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2789 tentative_cc="/usr/ccs/ATT/cc"
2790 host_makefile_frag="config/mh-ncr3000"
2791 ;;
f2a0e225 2792 i[3456789]86-*-sco3.2v5*)
671aa708 2793 ;;
f2a0e225 2794 i[3456789]86-*-sco*)
671aa708
NN
2795 # The native C compiler botches some simple uses of const. Unfortunately,
2796 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2797 tentative_cc="cc -Dconst="
2798 host_makefile_frag="config/mh-sco"
2799 ;;
f2a0e225 2800 i[3456789]86-*-udk*)
671aa708
NN
2801 host_makefile_frag="config/mh-sysv5"
2802 ;;
f2a0e225 2803 i[3456789]86-*-solaris2*)
671aa708
NN
2804 host_makefile_frag="config/mh-sysv4"
2805 ;;
f2a0e225 2806 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2807 host_makefile_frag="config/mh-djgpp"
2808 ;;
2809 *-cygwin*)
2a79c47f
NC
2810
2811echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2812echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2813echo a >cygwin-cat-check
2814if test `cat cygwin-cat-check` == a ; then
2815 rm cygwin-cat-check
2816 echo "$as_me:$LINENO: result: yes" >&5
2817echo "${ECHO_T}yes" >&6
2818else
2819 rm cygwin-cat-check
2820 echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6
2822 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2823 Please either mount the build directory in binary mode or run the following
2824 commands before running any configure script:
2825set -o igncr
2826export SHELLOPTS
2827 " >&5
2828echo "$as_me: error: The cat command does not ignore carriage return characters.
2829 Please either mount the build directory in binary mode or run the following
2830 commands before running any configure script:
2831set -o igncr
2832export SHELLOPTS
2833 " >&2;}
2834 { (exit 1); exit 1; }; }
2835fi
2836
671aa708
NN
2837 host_makefile_frag="config/mh-cygwin"
2838 ;;
c53a18d3 2839 *-mingw*)
1f5a6b84 2840 host_makefile_frag="config/mh-mingw"
95af8923 2841 ;;
671aa708
NN
2842 *-interix*)
2843 host_makefile_frag="config/mh-interix"
2844 ;;
2845 vax-*-ultrix2*)
2846 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2847 tentative_cc=gcc
2848 ;;
2849 *-*-solaris2*)
2850 host_makefile_frag="config/mh-solaris"
2851 ;;
2852 m68k-sun-sunos*)
2853 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2854 # without overflowing the jump tables (-J says to use a 32 bit table)
2855 tentative_cc="cc -J"
2856 ;;
efd41714 2857 hppa*-hp-hpux10*)
671aa708 2858 tentative_cc="cc -Wp,-H256000"
efd41714 2859 host_makefile_frag="config/mh-pa-hpux10"
671aa708 2860 ;;
efd41714
PB
2861 hppa*-hp-hpux* | hppa*-*-hiux*)
2862 tentative_cc="cc -Wp,-H256000"
2863 host_makefile_frag="config/mh-pa"
2864 ;;
2865 hppa*-*)
2866 host_makefile_frag="config/mh-pa"
2867 ;;
2868 *-hp-hpux* | *-*-hiux*)
671aa708
NN
2869 tentative_cc="cc -Wp,-H256000"
2870 ;;
2871 rs6000-*-lynxos*)
2872 # /bin/cc is less than useful for our purposes. Always use GCC
2873 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2874 host_makefile_frag="config/mh-lynxrs6k"
2875 ;;
45f366ab 2876 powerpc-*-darwin*)
be8fff81
RB
2877 host_makefile_frag="config/mh-ppc-darwin"
2878 ;;
d19bca38
PB
2879 powerpc-*-aix*)
2880 host_makefile_frag="config/mh-ppc-aix"
2881 ;;
2882 rs6000-*-aix*)
2883 host_makefile_frag="config/mh-ppc-aix"
2884 ;;
671aa708
NN
2885 *-*-lynxos*)
2886 # /bin/cc is less than useful for our purposes. Always use GCC
2887 tentative_cc="/bin/gcc"
2888 ;;
2889 *-*-sysv4*)
2890 host_makefile_frag="config/mh-sysv4"
2891 ;;
95c53c62
RS
2892 # This is placed last to prevent interfering with the cases above.
2893 i[3456789]86-*-*)
2894 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2895 host_makefile_frag="config/mh-x86omitfp"
2896 ;;
671aa708
NN
2897esac
2898fi
2899
55ffb5ed
NN
2900# If we aren't going to be using gcc, see if we can extract a definition
2901# of CC from the fragment.
2902# Actually, use the 'pre-extracted' version above.
2903if test -z "${CC}" && test "${build}" = "${host}" ; then
2904 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2905 found=
2906 for dir in $PATH; do
2907 test -z "$dir" && dir=.
2908 if test -f $dir/gcc; then
2909 found=yes
2910 break
2911 fi
2912 done
2913 IFS="$save_ifs"
2914 if test -z "${found}" && test -n "${tentative_cc}" ; then
2915 CC=$tentative_cc
2916 fi
2917fi
2918
2919if test "${build}" != "${host}" ; then
0999159b
PB
2920 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2921 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2922 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2923 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2924 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2925 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2926 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2927 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2928 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2929 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2930 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2931 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2932else
2933 AR_FOR_BUILD="\$(AR)"
2934 AS_FOR_BUILD="\$(AS)"
fb0103e5 2935 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2936 CXX_FOR_BUILD="\$(CXX)"
2937 GCJ_FOR_BUILD="\$(GCJ)"
2938 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2939 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2940 LD_FOR_BUILD="\$(LD)"
2941 NM_FOR_BUILD="\$(NM)"
2942 RANLIB_FOR_BUILD="\$(RANLIB)"
2943 WINDRES_FOR_BUILD="\$(WINDRES)"
2944 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2945fi
2946
2947ac_ext=c
1c710c3c
DJ
2948ac_cpp='$CPP $CPPFLAGS'
2949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2955echo "$as_me:$LINENO: checking for $ac_word" >&5
2956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2957if test "${ac_cv_prog_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
2963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964for as_dir in $PATH
2965do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974done
2975done
2976
2977fi
2978fi
2979CC=$ac_cv_prog_CC
2980if test -n "$CC"; then
2aeb72e9
DD
2981 echo "$as_me:$LINENO: result: $CC" >&5
2982echo "${ECHO_T}$CC" >&6
1c710c3c 2983else
2aeb72e9
DD
2984 echo "$as_me:$LINENO: result: no" >&5
2985echo "${ECHO_T}no" >&6
1c710c3c
DJ
2986fi
2987
2988fi
2989if test -z "$ac_cv_prog_CC"; then
2990 ac_ct_CC=$CC
fb0103e5
RG
2991 # Extract the first word of "gcc", so it can be a program name with args.
2992set dummy gcc; ac_word=$2
2aeb72e9
DD
2993echo "$as_me:$LINENO: checking for $ac_word" >&5
2994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 if test -n "$ac_ct_CC"; then
2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3008 ac_cv_prog_ac_ct_CC="gcc"
3009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012done
3013done
3014
3015fi
3016fi
3017ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3019 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3020echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 3021else
2aeb72e9
DD
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
1c710c3c
DJ
3024fi
3025
2aeb72e9 3026 CC=$ac_ct_CC
1c710c3c
DJ
3027else
3028 CC="$ac_cv_prog_CC"
3029fi
3030
3031if test -z "$CC"; then
2aeb72e9
DD
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3034set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
3035echo "$as_me:$LINENO: checking for $ac_word" >&5
3036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3037if test "${ac_cv_prog_CC+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3039else
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3042else
1c710c3c
DJ
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3050 ac_cv_prog_CC="${ac_tool_prefix}cc"
3051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054done
3055done
3056
0b0dc272 3057fi
0b0dc272 3058fi
1c710c3c 3059CC=$ac_cv_prog_CC
af71363e 3060if test -n "$CC"; then
2aeb72e9
DD
3061 echo "$as_me:$LINENO: result: $CC" >&5
3062echo "${ECHO_T}$CC" >&6
0b0dc272 3063else
2aeb72e9
DD
3064 echo "$as_me:$LINENO: result: no" >&5
3065echo "${ECHO_T}no" >&6
0b0dc272
AM
3066fi
3067
2aeb72e9
DD
3068fi
3069if test -z "$ac_cv_prog_CC"; then
3070 ac_ct_CC=$CC
3071 # Extract the first word of "cc", so it can be a program name with args.
3072set dummy cc; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CC="cc"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
11a67599 3091 fi
2aeb72e9
DD
3092done
3093done
3094
3095fi
3096fi
3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098if test -n "$ac_ct_CC"; then
3099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100echo "${ECHO_T}$ac_ct_CC" >&6
3101else
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104fi
3105
3106 CC=$ac_ct_CC
3107else
3108 CC="$ac_cv_prog_CC"
3109fi
3110
1c710c3c 3111fi
55ffb5ed
NN
3112if test -z "$CC"; then
3113 # Extract the first word of "cc", so it can be a program name with args.
3114set dummy cc; ac_word=$2
2aeb72e9
DD
3115echo "$as_me:$LINENO: checking for $ac_word" >&5
3116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3117if test "${ac_cv_prog_CC+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3119else
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3122else
0b0dc272 3123 ac_prog_rejected=no
1c710c3c
DJ
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3132 ac_prog_rejected=yes
3133 continue
3134 fi
3135 ac_cv_prog_CC="cc"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139done
3140done
3141
55ffb5ed
NN
3142if test $ac_prog_rejected = yes; then
3143 # We found a bogon in the path, so make sure we never use it.
3144 set dummy $ac_cv_prog_CC
3145 shift
1c710c3c 3146 if test $# != 0; then
55ffb5ed
NN
3147 # We chose a different compiler from the bogus one.
3148 # However, it has the same basename, so the bogon will be chosen
3149 # first if we set CC to just the basename; use the full file name.
3150 shift
1c710c3c 3151 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3152 fi
3153fi
3154fi
3155fi
1c710c3c 3156CC=$ac_cv_prog_CC
55ffb5ed 3157if test -n "$CC"; then
2aeb72e9
DD
3158 echo "$as_me:$LINENO: result: $CC" >&5
3159echo "${ECHO_T}$CC" >&6
55ffb5ed 3160else
2aeb72e9
DD
3161 echo "$as_me:$LINENO: result: no" >&5
3162echo "${ECHO_T}no" >&6
55ffb5ed
NN
3163fi
3164
1c710c3c
DJ
3165fi
3166if test -z "$CC"; then
3167 if test -n "$ac_tool_prefix"; then
2aeb72e9 3168 for ac_prog in cl
1c710c3c
DJ
3169 do
3170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3172echo "$as_me:$LINENO: checking for $ac_word" >&5
3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3174if test "${ac_cv_prog_CC+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3176else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179else
1c710c3c
DJ
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191done
3192done
3193
55ffb5ed
NN
3194fi
3195fi
1c710c3c 3196CC=$ac_cv_prog_CC
55ffb5ed 3197if test -n "$CC"; then
2aeb72e9
DD
3198 echo "$as_me:$LINENO: result: $CC" >&5
3199echo "${ECHO_T}$CC" >&6
a4b9e93e 3200else
2aeb72e9
DD
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
fb0103e5 3203fi
af71363e 3204
1c710c3c
DJ
3205 test -n "$CC" && break
3206 done
af71363e 3207fi
1c710c3c
DJ
3208if test -z "$CC"; then
3209 ac_ct_CC=$CC
2aeb72e9 3210 for ac_prog in cl
1c710c3c
DJ
3211do
3212 # Extract the first word of "$ac_prog", so it can be a program name with args.
3213set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3214echo "$as_me:$LINENO: checking for $ac_word" >&5
3215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3218else
1c710c3c
DJ
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3221else
1c710c3c
DJ
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3229 ac_cv_prog_ac_ct_CC="$ac_prog"
3230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233done
3234done
3235
af71363e
AS
3236fi
3237fi
1c710c3c
DJ
3238ac_ct_CC=$ac_cv_prog_ac_ct_CC
3239if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3240 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3241echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3242else
2aeb72e9
DD
3243 echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6
af71363e 3245fi
0b0dc272 3246
1c710c3c
DJ
3247 test -n "$ac_ct_CC" && break
3248done
3249
2aeb72e9 3250 CC=$ac_ct_CC
1c710c3c
DJ
3251fi
3252
3253fi
3254
3255
18c04407
RW
3256test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3257echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1c710c3c
DJ
3259See \`config.log' for more details." >&5
3260echo "$as_me: error: no acceptable C compiler found in \$PATH
3261See \`config.log' for more details." >&2;}
18c04407 3262 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3263
3264# Provide some information about the compiler.
2aeb72e9
DD
3265echo "$as_me:$LINENO:" \
3266 "checking for C compiler version" >&5
1c710c3c 3267ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3268{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3269 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
2aeb72e9
DD
3273{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3274 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }
2aeb72e9
DD
3278{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3279 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }
3283
3284cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299ac_clean_files_save=$ac_clean_files
3300ac_clean_files="$ac_clean_files a.out a.exe b.out"
3301# Try to create an executable without -o first, disregard a.out.
3302# It will help us diagnose broken compilers, and finding out an intuition
3303# of exeext.
2aeb72e9
DD
3304echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3305echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3306ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3307if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3308 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3309 ac_status=$?
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); }; then
2aeb72e9
DD
3312 # Find the output, starting from the most likely. This scheme is
3313# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3314# resort.
3315
3316# Be careful to initialize this variable, since it used to be cached.
3317# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3318ac_cv_exeext=
3319# b.out is created by i960 compilers.
3320for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3321do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
2aeb72e9
DD
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3325 ;;
3326 conftest.$ac_ext )
3327 # This is the source file.
1c710c3c
DJ
3328 ;;
3329 [ab].out )
3330 # We found the default executable, but exeext='' is most
3331 # certainly right.
3332 break;;
3333 *.* )
2aeb72e9
DD
3334 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 # FIXME: I believe we export ac_cv_exeext for Libtool,
3336 # but it would be cool to find out if it's true. Does anybody
3337 # maintain Libtool? --akim.
3338 export ac_cv_exeext
1c710c3c
DJ
3339 break;;
3340 * )
3341 break;;
3342 esac
3343done
3344else
3345 echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
18c04407
RW
3348{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3349echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3350{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3351See \`config.log' for more details." >&5
3352echo "$as_me: error: C compiler cannot create executables
3353See \`config.log' for more details." >&2;}
18c04407 3354 { (exit 77); exit 77; }; }; }
1c710c3c
DJ
3355fi
3356
3357ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3358echo "$as_me:$LINENO: result: $ac_file" >&5
3359echo "${ECHO_T}$ac_file" >&6
1c710c3c 3360
2aeb72e9 3361# Check the compiler produces executables we can run. If not, either
1c710c3c 3362# the compiler is broken, or we cross compile.
2aeb72e9
DD
3363echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3364echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3365# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3366# If not cross compiling, check that we can run a simple program.
3367if test "$cross_compiling" != yes; then
3368 if { ac_try='./$ac_file'
2aeb72e9
DD
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
1c710c3c
DJ
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 cross_compiling=no
3375 else
3376 if test "$cross_compiling" = maybe; then
3377 cross_compiling=yes
3378 else
18c04407
RW
3379 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3380echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1c710c3c
DJ
3382If you meant to cross compile, use \`--host'.
3383See \`config.log' for more details." >&5
3384echo "$as_me: error: cannot run C compiled programs.
3385If you meant to cross compile, use \`--host'.
3386See \`config.log' for more details." >&2;}
18c04407 3387 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3388 fi
3389 fi
3390fi
2aeb72e9
DD
3391echo "$as_me:$LINENO: result: yes" >&5
3392echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3393
3394rm -f a.out a.exe conftest$ac_cv_exeext b.out
3395ac_clean_files=$ac_clean_files_save
2aeb72e9 3396# Check the compiler produces executables we can run. If not, either
1c710c3c 3397# the compiler is broken, or we cross compile.
2aeb72e9
DD
3398echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3399echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3400echo "$as_me:$LINENO: result: $cross_compiling" >&5
3401echo "${ECHO_T}$cross_compiling" >&6
3402
3403echo "$as_me:$LINENO: checking for suffix of executables" >&5
3404echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3406 (eval $ac_link) 2>&5
1c710c3c
DJ
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3411# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3412# work properly (i.e., refer to `conftest.exe'), while it won't with
3413# `rm'.
3414for ac_file in conftest.exe conftest conftest.*; do
3415 test -f "$ac_file" || continue
3416 case $ac_file in
2aeb72e9 3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3419 export ac_cv_exeext
1c710c3c
DJ
3420 break;;
3421 * ) break;;
3422 esac
3423done
af71363e 3424else
18c04407
RW
3425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3426echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1c710c3c
DJ
3428See \`config.log' for more details." >&5
3429echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3430See \`config.log' for more details." >&2;}
18c04407 3431 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3432fi
3433
3434rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3435echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3436echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3437
3438rm -f conftest.$ac_ext
3439EXEEXT=$ac_cv_exeext
3440ac_exeext=$EXEEXT
2aeb72e9
DD
3441echo "$as_me:$LINENO: checking for suffix of object files" >&5
3442echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3443if test "${ac_cv_objext+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
3452
3453int
3454main ()
3455{
3456
3457 ;
3458 return 0;
3459}
3460_ACEOF
3461rm -f conftest.o conftest.obj
2aeb72e9
DD
3462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
1c710c3c
DJ
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
2aeb72e9 3467 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3468 case $ac_file in
2aeb72e9 3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3471 break;;
3472 esac
3473done
3474else
3475 echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
18c04407
RW
3478{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3479echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3480{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3481See \`config.log' for more details." >&5
3482echo "$as_me: error: cannot compute suffix of object files: cannot compile
3483See \`config.log' for more details." >&2;}
18c04407 3484 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3485fi
3486
3487rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488fi
2aeb72e9
DD
3489echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3490echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3491OBJEXT=$ac_cv_objext
3492ac_objext=$OBJEXT
2aeb72e9
DD
3493echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3494echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3495if test "${ac_cv_c_compiler_gnu+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504
3505int
3506main ()
3507{
3508#ifndef __GNUC__
3509 choke me
3510#endif
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
3516rm -f conftest.$ac_objext
2aeb72e9
DD
3517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_c_werror_flag"
3526 || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
1c710c3c
DJ
3538 ac_compiler_gnu=yes
3539else
3540 echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
2aeb72e9 3543ac_compiler_gnu=no
1c710c3c 3544fi
2aeb72e9 3545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3546ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547
3548fi
2aeb72e9
DD
3549echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3550echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3551GCC=`test $ac_compiler_gnu = yes && echo yes`
3552ac_test_CFLAGS=${CFLAGS+set}
3553ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3554CFLAGS="-g"
3555echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3556echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3557if test "${ac_cv_prog_cc_g+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
2aeb72e9 3560 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3561/* confdefs.h. */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h. */
3566
3567int
3568main ()
3569{
3570
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
2aeb72e9
DD
3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
1c710c3c
DJ
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
1c710c3c
DJ
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3596 (exit $ac_status); }; }; then
55ffb5ed
NN
3597 ac_cv_prog_cc_g=yes
3598else
1c710c3c
DJ
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3601
2aeb72e9 3602ac_cv_prog_cc_g=no
0b0dc272 3603fi
2aeb72e9 3604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3605fi
2aeb72e9
DD
3606echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3607echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3608if test "$ac_test_CFLAGS" = set; then
1c710c3c 3609 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3610elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3612 CFLAGS="-g -O2"
3613 else
3614 CFLAGS="-g"
3615 fi
3616else
3617 if test "$GCC" = yes; then
3618 CFLAGS="-O2"
3619 else
3620 CFLAGS=
3621 fi
3622fi
2aeb72e9
DD
3623echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3624echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3625if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627else
2aeb72e9 3628 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3629ac_save_CC=$CC
3630cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636#include <stdarg.h>
3637#include <stdio.h>
3638#include <sys/types.h>
3639#include <sys/stat.h>
3640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3641struct buf { int x; };
3642FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643static char *e (p, i)
3644 char **p;
3645 int i;
3646{
3647 return p[i];
3648}
3649static char *f (char * (*g) (char **, int), char **p, ...)
3650{
3651 char *s;
3652 va_list v;
3653 va_start (v,p);
3654 s = g (p, va_arg (v,int));
3655 va_end (v);
3656 return s;
3657}
3658
3659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3660 function prototypes and stuff, but not '\xHH' hex character constants.
3661 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3662 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3664 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3665 that's true only with -std1. */
1c710c3c
DJ
3666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
3668int test (int i, double x);
3669struct s1 {int (*f) (int a);};
3670struct s2 {int (*f) (double a);};
3671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672int argc;
3673char **argv;
3674int
3675main ()
3676{
3677return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678 ;
3679 return 0;
3680}
3681_ACEOF
2aeb72e9
DD
3682# Don't try gcc -ansi; that turns off useful extensions and
3683# breaks some systems' header files.
3684# AIX -qlanglvl=ansi
3685# Ultrix and OSF/1 -std1
3686# HP-UX 10.20 and later -Ae
3687# HP-UX older versions -Aa -D_HPUX_SOURCE
3688# SVR4 -Xc -D__EXTENSIONS__
3689for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3690do
3691 CC="$ac_save_CC $ac_arg"
3692 rm -f conftest.$ac_objext
2aeb72e9
DD
3693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3700 (exit $ac_status); } &&
3701 { ac_try='test -z "$ac_c_werror_flag"
3702 || test ! -s conftest.err'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; } &&
3708 { ac_try='test -s conftest.$ac_objext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_prog_cc_stdc=$ac_arg
3715break
1c710c3c
DJ
3716else
3717 echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720fi
2aeb72e9 3721rm -f conftest.err conftest.$ac_objext
1c710c3c 3722done
2aeb72e9 3723rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3724CC=$ac_save_CC
3725
3726fi
2aeb72e9
DD
3727
3728case "x$ac_cv_prog_cc_stdc" in
3729 x|xno)
3730 echo "$as_me:$LINENO: result: none needed" >&5
3731echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3732 *)
2aeb72e9
DD
3733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3734echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3735 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3736esac
3737
2aeb72e9
DD
3738# Some people use a C++ compiler to compile C. Since we use `exit',
3739# in C++ we need to declare it. In case someone uses the same compiler
3740# for both compiling C and C++ we need to have the C++ compiler decide
3741# the declaration of exit, since it's the most demanding environment.
3742cat >conftest.$ac_ext <<_ACEOF
3743#ifndef __cplusplus
3744 choke me
3745#endif
3746_ACEOF
3747rm -f conftest.$ac_objext
3748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 (eval $ac_try) 2>&5
3766 ac_status=$?
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 for ac_declaration in \
3770 '' \
3771 'extern "C" void std::exit (int) throw (); using std::exit;' \
3772 'extern "C" void std::exit (int); using std::exit;' \
3773 'extern "C" void exit (int) throw ();' \
3774 'extern "C" void exit (int);' \
3775 'void exit (int);'
3776do
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783$ac_declaration
3784#include <stdlib.h>
3785int
3786main ()
3787{
3788exit (42);
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793rm -f conftest.$ac_objext
3794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } &&
3802 { ac_try='test -z "$ac_c_werror_flag"
3803 || test ! -s conftest.err'
3804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 (eval $ac_try) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 :
3816else
3817 echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820continue
3821fi
3822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3823 cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h. */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h. */
3829$ac_declaration
3830int
3831main ()
3832{
3833exit (42);
3834 ;
3835 return 0;
3836}
3837_ACEOF
3838rm -f conftest.$ac_objext
3839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 break
3861else
3862 echo "$as_me: failed program was:" >&5
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
3865fi
3866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3867done
3868rm -f conftest*
3869if test -n "$ac_declaration"; then
3870 echo '#ifdef __cplusplus' >>confdefs.h
3871 echo $ac_declaration >>confdefs.h
3872 echo '#endif' >>confdefs.h
3873fi
3874
3875else
3876 echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879fi
3880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3881ac_ext=c
3882ac_cpp='$CPP $CPPFLAGS'
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
3887ac_ext=cc
3888ac_cpp='$CXXCPP $CPPFLAGS'
3889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3892if test -n "$ac_tool_prefix"; then
3893 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3894 do
3895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897echo "$as_me:$LINENO: checking for $ac_word" >&5
3898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899if test "${ac_cv_prog_CXX+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902 if test -n "$CXX"; then
3903 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917done
55ffb5ed 3918
c3a86da9
DJ
3919fi
3920fi
3921CXX=$ac_cv_prog_CXX
3922if test -n "$CXX"; then
2aeb72e9
DD
3923 echo "$as_me:$LINENO: result: $CXX" >&5
3924echo "${ECHO_T}$CXX" >&6
c3a86da9 3925else
2aeb72e9
DD
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
c3a86da9
DJ
3928fi
3929
3930 test -n "$CXX" && break
3931 done
3932fi
3933if test -z "$CXX"; then
3934 ac_ct_CXX=$CXX
2aeb72e9 3935 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3936do
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3939echo "$as_me:$LINENO: checking for $ac_word" >&5
3940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3941if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943else
3944 if test -n "$ac_ct_CXX"; then
3945 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3946else
3947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948for as_dir in $PATH
3949do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3954 ac_cv_prog_ac_ct_CXX="$ac_prog"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3957 fi
3958done
3959done
3960
3961fi
3962fi
3963ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3964if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3965 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3966echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3967else
2aeb72e9
DD
3968 echo "$as_me:$LINENO: result: no" >&5
3969echo "${ECHO_T}no" >&6
c3a86da9
DJ
3970fi
3971
3972 test -n "$ac_ct_CXX" && break
3973done
2aeb72e9 3974test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3975
2aeb72e9 3976 CXX=$ac_ct_CXX
c3a86da9
DJ
3977fi
3978
2aeb72e9 3979
c3a86da9 3980# Provide some information about the compiler.
2aeb72e9
DD
3981echo "$as_me:$LINENO:" \
3982 "checking for C++ compiler version" >&5
c3a86da9 3983ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3984{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3985 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
2aeb72e9
DD
3989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3990 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }
2aeb72e9
DD
3994{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3995 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }
3999
2aeb72e9
DD
4000echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4001echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
4002if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
4005 cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h. */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h. */
4011
4012int
4013main ()
4014{
4015#ifndef __GNUC__
4016 choke me
4017#endif
4018
4019 ;
4020 return 0;
4021}
4022_ACEOF
4023rm -f conftest.$ac_objext
2aeb72e9
DD
4024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_cxx_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
c3a86da9
DJ
4045 ac_compiler_gnu=yes
4046else
4047 echo "$as_me: failed program was:" >&5
4048sed 's/^/| /' conftest.$ac_ext >&5
4049
2aeb72e9 4050ac_compiler_gnu=no
c3a86da9 4051fi
2aeb72e9 4052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4053ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4054
4055fi
2aeb72e9
DD
4056echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4057echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
4058GXX=`test $ac_compiler_gnu = yes && echo yes`
4059ac_test_CXXFLAGS=${CXXFLAGS+set}
4060ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
4061CXXFLAGS="-g"
4062echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4063echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
4064if test "${ac_cv_prog_cxx_g+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
2aeb72e9 4067 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4068/* confdefs.h. */
4069_ACEOF
4070cat confdefs.h >>conftest.$ac_ext
4071cat >>conftest.$ac_ext <<_ACEOF
4072/* end confdefs.h. */
4073
4074int
4075main ()
4076{
4077
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082rm -f conftest.$ac_objext
2aeb72e9
DD
4083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_cxx_werror_flag"
4092 || test ! -s conftest.err'
4093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094 (eval $ac_try) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; } &&
4098 { ac_try='test -s conftest.$ac_objext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
c3a86da9
DJ
4104 ac_cv_prog_cxx_g=yes
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
2aeb72e9
DD
4109ac_cv_prog_cxx_g=no
4110fi
4111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4112fi
4113echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4114echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4115if test "$ac_test_CXXFLAGS" = set; then
4116 CXXFLAGS=$ac_save_CXXFLAGS
4117elif test $ac_cv_prog_cxx_g = yes; then
4118 if test "$GXX" = yes; then
4119 CXXFLAGS="-g -O2"
4120 else
4121 CXXFLAGS="-g"
4122 fi
4123else
4124 if test "$GXX" = yes; then
4125 CXXFLAGS="-O2"
4126 else
4127 CXXFLAGS=
4128 fi
4129fi
4130for ac_declaration in \
4131 '' \
4132 'extern "C" void std::exit (int) throw (); using std::exit;' \
4133 'extern "C" void std::exit (int); using std::exit;' \
4134 'extern "C" void exit (int) throw ();' \
4135 'extern "C" void exit (int);' \
4136 'void exit (int);'
4137do
4138 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
2aeb72e9
DD
4144$ac_declaration
4145#include <stdlib.h>
c3a86da9
DJ
4146int
4147main ()
4148{
2aeb72e9 4149exit (42);
c3a86da9
DJ
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154rm -f conftest.$ac_objext
2aeb72e9
DD
4155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4156 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4162 (exit $ac_status); } &&
4163 { ac_try='test -z "$ac_cxx_werror_flag"
4164 || test ! -s conftest.err'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest.$ac_objext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
c3a86da9
DJ
4176 :
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4180
2aeb72e9
DD
4181continue
4182fi
4183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4184 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
2aeb72e9 4190$ac_declaration
c3a86da9
DJ
4191int
4192main ()
4193{
2aeb72e9 4194exit (42);
c3a86da9
DJ
4195 ;
4196 return 0;
4197}
4198_ACEOF
4199rm -f conftest.$ac_objext
2aeb72e9
DD
4200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_cxx_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 break
c3a86da9
DJ
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
11a67599 4226fi
2aeb72e9
DD
4227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228done
4229rm -f conftest*
4230if test -n "$ac_declaration"; then
4231 echo '#ifdef __cplusplus' >>confdefs.h
4232 echo $ac_declaration >>confdefs.h
4233 echo '#endif' >>confdefs.h
c3a86da9
DJ
4234fi
4235
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242
4243# We must set the default linker to the linker used by gcc for the correct
4244# operation of libtool. If LD is not defined and we are using gcc, try to
4245# set the LD default to the ld used by gcc.
4246if test -z "$LD"; then
4247 if test "$GCC" = yes; then
4248 case $build in
4249 *-*-mingw*)
4250 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4251 *)
4252 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4253 esac
4254 case $gcc_prog_ld in
4255 # Accept absolute paths.
4256 [\\/]* | [A-Za-z]:[\\/]*)
4257 LD="$gcc_prog_ld" ;;
4258 esac
4259 fi
23f6b2f9
PB
4260fi
4261
23f6b2f9
PB
4262
4263
55ffb5ed 4264
1c710c3c
DJ
4265if test -n "$ac_tool_prefix"; then
4266 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4267set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4268echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4270if test "${ac_cv_prog_GNATBIND+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4272else
4273 if test -n "$GNATBIND"; then
4274 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4275else
1c710c3c
DJ
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4283 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288done
4289
55ffb5ed
NN
4290fi
4291fi
1c710c3c 4292GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4293if test -n "$GNATBIND"; then
2aeb72e9
DD
4294 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4295echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4296else
2aeb72e9
DD
4297 echo "$as_me:$LINENO: result: no" >&5
4298echo "${ECHO_T}no" >&6
55ffb5ed
NN
4299fi
4300
1c710c3c 4301fi
55ffb5ed 4302if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4303 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4304 # Extract the first word of "gnatbind", so it can be a program name with args.
4305set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4306echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4308if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4310else
1c710c3c
DJ
4311 if test -n "$ac_ct_GNATBIND"; then
4312 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4313else
1c710c3c
DJ
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4321 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326done
4327
2aeb72e9 4328 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4329fi
4330fi
1c710c3c
DJ
4331ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4332if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4333 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4334echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4335else
2aeb72e9
DD
4336 echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
55ffb5ed
NN
4338fi
4339
2aeb72e9 4340 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4341else
1c710c3c 4342 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4343fi
4344
1c710c3c
DJ
4345if test -n "$ac_tool_prefix"; then
4346 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4347set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4348echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4350if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4352else
4353 if test -n "$GNATMAKE"; then
4354 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4355else
1c710c3c
DJ
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4363 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4366 fi
4367done
4368done
4369
5305be7e
RG
4370fi
4371fi
1c710c3c 4372GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4373if test -n "$GNATMAKE"; then
2aeb72e9
DD
4374 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4375echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4376else
2aeb72e9
DD
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
5305be7e
RG
4379fi
4380
1c710c3c 4381fi
5305be7e 4382if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4383 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4384 # Extract the first word of "gnatmake", so it can be a program name with args.
4385set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4386echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4388if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4390else
1c710c3c
DJ
4391 if test -n "$ac_ct_GNATMAKE"; then
4392 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4393else
1c710c3c
DJ
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4401 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 break 2
4404 fi
4405done
4406done
4407
2aeb72e9 4408 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4409fi
4410fi
1c710c3c
DJ
4411ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4412if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4413 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4414echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4415else
2aeb72e9
DD
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
5305be7e
RG
4418fi
4419
2aeb72e9 4420 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4421else
1c710c3c 4422 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4423fi
4424
2aeb72e9
DD
4425echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4426echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4427if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4429else
4430 cat >conftest.adb <<EOF
4431procedure conftest is begin null; end conftest;
4432EOF
4433acx_cv_cc_gcc_supports_ada=no
4434# There is a bug in old released versions of GCC which causes the
4435# driver to exit successfully when the appropriate language module
4436# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4437# Therefore we must check for the error message as well as an
4438# unsuccessful exit.
1db673ca
RO
4439# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4440# given a .adb file, but produce no object file. So we must check
4441# if an object file was really produced to guard against this.
55ffb5ed 4442errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4443if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4444 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4445fi
4446rm -f conftest.*
4447fi
2aeb72e9
DD
4448echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4449echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4450
5305be7e 4451if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4452 have_gnat=yes
4453else
4454 have_gnat=no
4455fi
4456
2aeb72e9
DD
4457echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4458echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4459if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4461else
4462 echo abfoo >t1
4463 echo cdfoo >t2
4464 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4465 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4466 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4467 :
4468 else
4469 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4470 fi
4471 fi
a76494aa
PB
4472 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4473 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4474 :
a76494aa
PB
4475 else
4476 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4477 fi
4478 fi
4479 rm t1 t2
4480
4481fi
2aeb72e9
DD
4482echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4483echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4484do_compare="$gcc_cv_prog_cmp_skip"
4485
4486
55ffb5ed 4487
bebf829d 4488# Check for GMP and MPFR
e69bf64b 4489gmplibs="-lmpfr -lgmp"
6de9cd9a 4490gmpinc=
e69bf64b
PB
4491have_gmp=no
4492
bebf829d
PB
4493# Specify a location for mpfr
4494# check for this first so it ends up on the link line before gmp.
1c710c3c 4495
2aeb72e9 4496# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4497if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4498 withval="$with_mpfr_dir"
4499 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4500Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4501echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4502Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4503 { (exit 1); exit 1; }; }
2aeb72e9 4504fi;
bebf829d
PB
4505
4506
2aeb72e9 4507# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4508if test "${with_mpfr+set}" = set; then
2aeb72e9 4509 withval="$with_mpfr"
1c710c3c 4510
2aeb72e9 4511fi;
bebf829d 4512
2aeb72e9 4513# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4514if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4515 withval="$with_mpfr_include"
1c710c3c 4516
2aeb72e9 4517fi;
8a877c9c 4518
2aeb72e9 4519# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4520if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4521 withval="$with_mpfr_lib"
8a877c9c 4522
2aeb72e9 4523fi;
bebf829d
PB
4524
4525if test "x$with_mpfr" != x; then
4526 gmplibs="-L$with_mpfr/lib $gmplibs"
4527 gmpinc="-I$with_mpfr/include"
4528fi
8a877c9c
KG
4529if test "x$with_mpfr_include" != x; then
4530 gmpinc="-I$with_mpfr_include"
4531fi
4532if test "x$with_mpfr_lib" != x; then
4533 gmplibs="-L$with_mpfr_lib $gmplibs"
4534fi
e69bf64b
PB
4535if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4536 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4537 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4538 # Do not test the mpfr version. Assume that it is sufficient, since
4539 # it is in the source tree, and the library has not been built yet
4540 # but it would be included on the link line in the version check below
4541 # hence making the test fail.
4542 have_gmp=yes
4543fi
bebf829d 4544
6de9cd9a 4545# Specify a location for gmp
1c710c3c 4546
2aeb72e9 4547# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4548if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4549 withval="$with_gmp_dir"
4550 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4551Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4552echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4553Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4554 { (exit 1); exit 1; }; }
2aeb72e9 4555fi;
6de9cd9a 4556
6de9cd9a 4557
2aeb72e9 4558# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4559if test "${with_gmp+set}" = set; then
2aeb72e9 4560 withval="$with_gmp"
1c710c3c 4561
2aeb72e9 4562fi;
6de9cd9a 4563
2aeb72e9 4564# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4565if test "${with_gmp_include+set}" = set; then
2aeb72e9 4566 withval="$with_gmp_include"
1c710c3c 4567
2aeb72e9 4568fi;
8a877c9c 4569
2aeb72e9 4570# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4571if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4572 withval="$with_gmp_lib"
8a877c9c 4573
2aeb72e9 4574fi;
8a877c9c 4575
6de9cd9a 4576
bebf829d
PB
4577if test "x$with_gmp" != x; then
4578 gmplibs="-L$with_gmp/lib $gmplibs"
4579 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4580fi
8a877c9c
KG
4581if test "x$with_gmp_include" != x; then
4582 gmpinc="-I$with_gmp_include $gmpinc"
4583fi
4584if test "x$with_gmp_lib" != x; then
4585 gmplibs="-L$with_gmp_lib $gmplibs"
4586fi
e69bf64b
PB
4587if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4588 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4589 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4590 # Do not test the gmp version. Assume that it is sufficient, since
4591 # it is in the source tree, and the library has not been built yet
4592 # but it would be included on the link line in the version check below
4593 # hence making the test fail.
4594 have_gmp=yes
4595fi
6de9cd9a 4596
d943d7c4 4597if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4598 have_gmp=yes
4599 saved_CFLAGS="$CFLAGS"
4600 CFLAGS="$CFLAGS $gmpinc"
4601 # Check GMP actually works
2aeb72e9
DD
4602 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4603echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4604
4605cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h. */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h. */
6de9cd9a 4611#include "gmp.h"
1c710c3c
DJ
4612int
4613main ()
4614{
6de9cd9a 4615
e69bf64b
PB
4616 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4617 choke me
4618 #endif
1c710c3c
DJ
4619
4620 ;
4621 return 0;
4622}
4623_ACEOF
4624rm -f conftest.$ac_objext
2aeb72e9
DD
4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4648else
4649 echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
2aeb72e9
DD
4652echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4654fi
2aeb72e9 4655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4656
e69bf64b
PB
4657 if test x"$have_gmp" = xyes; then
4658 saved_LIBS="$LIBS"
4659 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4660 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4661echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4662 cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
70ec446f 4668#include <gmp.h>
e69bf64b 4669 #include <mpfr.h>
1c710c3c
DJ
4670int
4671main ()
4672{
e48d66a9 4673
94e1934d 4674 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
e69bf64b
PB
4675 choke me
4676 #endif
54e433bc
MK
4677 mpfr_t n;
4678 mpfr_t x;
e69bf64b 4679 int t;
54e433bc
MK
4680 mpfr_init (n);
4681 mpfr_init (x);
e69bf64b
PB
4682 mpfr_atan2 (n, n, x, GMP_RNDN);
4683 mpfr_erfc (n, x, GMP_RNDN);
4684 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4685
4686 ;
4687 return 0;
4688}
4689_ACEOF
4690rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
1c710c3c
DJ
4712 cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
a3993f33 4718#include <gmp.h>
e69bf64b 4719 #include <mpfr.h>
1c710c3c
DJ
4720int
4721main ()
4722{
a3993f33 4723
94e1934d 4724 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
e69bf64b
PB
4725 choke me
4726 #endif
4727 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 echo "$as_me:$LINENO: result: yes" >&5
4756echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4757else
4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
2aeb72e9
DD
4761echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4762echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4763fi
2aeb72e9 4764rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4765 conftest$ac_exeext conftest.$ac_ext
4766else
4767 echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
2aeb72e9
DD
4770echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4772fi
2aeb72e9 4773rm -f conftest.err conftest.$ac_objext \
1c710c3c 4774 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4775 LIBS="$saved_LIBS"
4776 fi
4777 CFLAGS="$saved_CFLAGS"
6de9cd9a 4778
e69bf64b 4779 if test x$have_gmp != xyes; then
94e1934d 4780 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
1c710c3c
DJ
4781Try the --with-gmp and/or --with-mpfr options to specify their locations.
4782Copies of these libraries' source code can be found at their respective
4783hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4784See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4785If you obtained GMP and/or MPFR from a vendor distribution package, make
4786sure that you have installed both the libraries and the header files.
4787They may be located in separate packages." >&5
94e1934d 4788echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
ca558912
KG
4789Try the --with-gmp and/or --with-mpfr options to specify their locations.
4790Copies of these libraries' source code can be found at their respective
4791hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4792See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4793If you obtained GMP and/or MPFR from a vendor distribution package, make
4794sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4795They may be located in separate packages." >&2;}
4796 { (exit 1); exit 1; }; }
e69bf64b 4797 fi
70ec446f
KG
4798fi
4799
bebf829d 4800# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4801
4802
4803
f8bf9252
SP
4804
4805# Check for PPL
4806ppl_major_version=0
4807ppl_minor_version=10
4808ppllibs=
4809pplinc=
4810
4811
4812# Check whether --with-ppl or --without-ppl was given.
4813if test "${with_ppl+set}" = set; then
4814 withval="$with_ppl"
4815
4816fi;
4817
4818# Check whether --with-ppl_include or --without-ppl_include was given.
4819if test "${with_ppl_include+set}" = set; then
4820 withval="$with_ppl_include"
4821
4822fi;
4823
4824# Check whether --with-ppl_lib or --without-ppl_lib was given.
4825if test "${with_ppl_lib+set}" = set; then
4826 withval="$with_ppl_lib"
4827
4828fi;
4829
4830if test "x$with_ppl" != x; then
4831 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
4832 pplinc="-I$with_ppl/include $pplinc"
4833 LIBS="$ppllibs $LIBS"
4834fi
4835if test "x$with_ppl_include" != x; then
4836 pplinc="-I$with_ppl_include $pplinc"
4837fi
4838if test "x$with_ppl_lib" != x; then
4839 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
4840 LIBS="$ppllibs $LIBS"
4841fi
4842if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4843 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
4844 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4845 LIBS="$ppllibs $LIBS"
4846fi
4847
4848# Flags needed for PPL
4849
4850
4851
4852
4853# Check for CLOOG
4854clooglibs=
4855clooginc=
4856
4857
4858# Check whether --with-cloog or --without-cloog was given.
4859if test "${with_cloog+set}" = set; then
4860 withval="$with_cloog"
4861
4862fi;
4863
4864# Check whether --with-cloog_include or --without-cloog_include was given.
4865if test "${with_cloog_include+set}" = set; then
4866 withval="$with_cloog_include"
4867
4868fi;
4869
4870# Check whether --with-cloog_lib or --without-cloog_lib was given.
4871if test "${with_cloog_lib+set}" = set; then
4872 withval="$with_cloog_lib"
4873
4874fi;
4875
4876if test "x$with_cloog" != x; then
4877 clooglibs="-L$with_cloog/lib -lcloog"
4878 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4879 LIBS="$clooglibs $LIBS"
4880fi
4881if test "x$with_cloog_include" != x; then
4882 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4883fi
4884if test "x$with_cloog_lib" != x; then
4885 clooglibs="-L$with_cloog_lib -lcloog"
4886 LIBS="$clooglibs $LIBS"
4887fi
4888if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4889 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
4890 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
4891 LIBS="$clooglibs $LIBS"
4892fi
4893
4894saved_CFLAGS="$CFLAGS"
4895CFLAGS="$CFLAGS $pplinc $gmpinc"
4896
4897echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
4898echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
4899cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h. */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h. */
4905#include "ppl_c.h"
4906int
4907main ()
4908{
4909
4910#if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4911choke me
4912#endif
4913
4914 ;
4915 return 0;
4916}
4917_ACEOF
4918rm -f conftest.$ac_objext
4919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 echo "$as_me:$LINENO: result: yes" >&5
4941echo "${ECHO_T}yes" >&6
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946echo "$as_me:$LINENO: result: no" >&5
4947echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
4948fi
4949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4950CFLAGS="$saved_CFLAGS"
4951
4952saved_CFLAGS="$CFLAGS"
4953CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
4954
4955echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
4956echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
4957cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h. */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h. */
4963#include "cloog/cloog.h"
4964int
4965main ()
4966{
4967
4968#if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
4969choke me
4970#endif
4971
4972 ;
4973 return 0;
4974}
4975_ACEOF
4976rm -f conftest.$ac_objext
4977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978 (eval $ac_compile) 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -z "$ac_c_werror_flag"
4986 || test ! -s conftest.err'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 echo "$as_me:$LINENO: result: yes" >&5
4999echo "${ECHO_T}yes" >&6
5000else
5001 echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5006fi
5007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5008CFLAGS="$saved_CFLAGS"
5009
5010# Flags needed for CLOOG
5011
5012
5013
5014
1e0f07d3 5015# By default, C is the only stage 1 language.
e1888513 5016stage1_languages=,c,
2805b53a 5017
55ffb5ed
NN
5018# Figure out what language subdirectories are present.
5019# Look if the user specified --enable-languages="..."; if not, use
5020# the environment variable $LANGUAGES if defined. $LANGUAGES might
5021# go away some day.
5022# NB: embedded tabs in this IF block -- do not untabify
5023if test -d ${srcdir}/gcc; then
5024 if test x"${enable_languages+set}" != xset; then
5025 if test x"${LANGUAGES+set}" = xset; then
5026 enable_languages="${LANGUAGES}"
5027 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5028 else
5029 enable_languages=all
5030 fi
5031 else
5032 if test x"${enable_languages}" = x ||
5033 test x"${enable_languages}" = xyes;
5034 then
5035 echo configure.in: --enable-languages needs at least one language argument 1>&2
5036 exit 1
5037 fi
5038 fi
5039 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5040
7f26dfa3
FXC
5041 # 'f95' is the old name for the 'fortran' language. We issue a warning
5042 # and make the substitution.
5043 case ,${enable_languages}, in
5044 *,f95,*)
5045 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5046 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5047 ;;
5048 esac
5049
55ffb5ed
NN
5050 # First scan to see if an enabled language requires some other language.
5051 # We assume that a given config-lang.in will list all the language
5052 # front ends it requires, even if some are required indirectly.
5053 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5054 case ${lang_frag} in
5055 ..) ;;
5056 # The odd quoting in the next line works around
5057 # an apparent bug in bash 1.12 on linux.
5058 ${srcdir}/gcc/[*]/config-lang.in) ;;
5059 *)
5060 # From the config-lang.in, get $language, $lang_requires
5061 language=
5062 lang_requires=
5063 . ${lang_frag}
5064 for other in ${lang_requires} ; do
5065 case ,${enable_languages}, in
5066 *,$other,*) ;;
5067 *,all,*) ;;
5068 *,$language,*)
5069 echo " \`$other' language required by \`$language'; enabling" 1>&2
5070 enable_languages="${enable_languages},${other}"
5071 ;;
5072 esac
5073 done
5074 ;;
5075 esac
5076 done
5077
e1888513 5078 new_enable_languages=,c,
55ffb5ed 5079 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5080 potential_languages=,c,
55ffb5ed
NN
5081
5082 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5083 case ${lang_frag} in
5084 ..) ;;
5085 # The odd quoting in the next line works around
5086 # an apparent bug in bash 1.12 on linux.
5087 ${srcdir}/gcc/[*]/config-lang.in) ;;
5088 *)
1c710c3c 5089 # From the config-lang.in, get $language, $target_libs,
2805b53a 5090 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5091 language=
5092 target_libs=
5093 lang_dirs=
1546bb64 5094 subdir_requires=
e1888513
PB
5095 boot_language=no
5096 build_by_default=yes
55ffb5ed 5097 . ${lang_frag}
e1888513
PB
5098 if test x${language} = x; then
5099 echo "${lang_frag} doesn't set \$language." 1>&2
5100 exit 1
5101 fi
5102
5103 case ,${enable_languages}, in
5104 *,${language},*)
55ffb5ed
NN
5105 # Language was explicitly selected; include it.
5106 add_this_lang=yes
5107 ;;
e1888513
PB
5108 *,all,*)
5109 # 'all' was selected, select it if it is a default language
5110 add_this_lang=${build_by_default}
55ffb5ed
NN
5111 ;;
5112 *)
5113 add_this_lang=no
5114 ;;
5115 esac
6de9cd9a 5116
1546bb64 5117 # Disable languages that need other directories if these aren't available.
95695ad3 5118 for i in $subdir_requires; do
b6348cb3 5119 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5120 case ,${enable_languages}, in
5121 *,${language},*)
5122 # Specifically requested language; tell them.
1c710c3c
DJ
5123 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5124echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5125 { (exit 1); exit 1; }; }
1546bb64
PB
5126 ;;
5127 *)
5128 # Silently disable.
e1888513 5129 add_this_lang=unsupported
1546bb64
PB
5130 ;;
5131 esac
5132 done
5133
e1888513
PB
5134 # Disable Ada if no preexisting GNAT is available.
5135 case ,${enable_languages},:${language}:${have_gnat} in
5136 *,${language},*:ada:no)
5137 # Specifically requested language; tell them.
1c710c3c
DJ
5138 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5139echo "$as_me: error: GNAT is required to build $language" >&2;}
5140 { (exit 1); exit 1; }; }
e1888513
PB
5141 ;;
5142 *:ada:no)
5143 # Silently disable.
5144 add_this_lang=unsupported
5145 ;;
5146 esac
5147
4fab7234
HPN
5148 # Disable a language that is unsupported by the target.
5149 case " $unsupported_languages " in
5150 *" $language "*)
e1888513 5151 add_this_lang=unsupported
4fab7234
HPN
5152 ;;
5153 esac
5154
6de9cd9a 5155 case $add_this_lang in
e1888513 5156 unsupported)
55ffb5ed 5157 # Remove language-dependent dirs.
2805b53a
NN
5158 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5159 ;;
e1888513
PB
5160 no)
5161 # Remove language-dependent dirs; still show language as supported.
5162 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5163 potential_languages="${potential_languages}${language},"
5164 ;;
5165 yes)
5166 new_enable_languages="${new_enable_languages}${language},"
5167 potential_languages="${potential_languages}${language},"
2805b53a
NN
5168 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5169 case ${boot_language} in
5170 yes)
340de83f 5171 # Add to (comma-separated) list of stage 1 languages.
e1888513 5172 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
5173 ;;
5174 esac
5175 ;;
55ffb5ed
NN
5176 esac
5177 ;;
5178 esac
5179 done
5180
2aeb72e9 5181 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 5182if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
5183 enableval="$enable_stage1_languages"
5184 case ,${enable_stage1_languages}, in
e1888513
PB
5185 ,no,|,,)
5186 # Set it to something that will have no effect in the loop below
5187 enable_stage1_languages=c ;;
5188 ,yes,)
5189 enable_stage1_languages=`echo $new_enable_languages | \
5190 sed -e "s/^,//" -e "s/,$//" ` ;;
5191 *,all,*)
5192 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5193 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5194 esac
5195
5196 # Add "good" languages from enable_stage1_languages to stage1_languages,
5197 # while "bad" languages go in missing_languages. Leave no duplicates.
5198 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5199 case $potential_languages in
5200 *,$i,*)
5201 case $stage1_languages in
5202 *,$i,*) ;;
5203 *) stage1_languages="$stage1_languages$i," ;;
5204 esac ;;
5205 *)
5206 case $missing_languages in
5207 *,$i,*) ;;
5208 *) missing_languages="$missing_languages$i," ;;
5209 esac ;;
5210 esac
5211 done
2aeb72e9 5212fi;
e1888513
PB
5213
5214 # Remove leading/trailing commas that were added for simplicity
5215 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5216 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5217 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5218 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5219
55ffb5ed 5220 if test "x$missing_languages" != x; then
1c710c3c 5221 { { echo "$as_me:$LINENO: error:
0cf085e4 5222The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5223Supported languages are: ${potential_languages}" >&5
5224echo "$as_me: error:
5225The following requested languages could not be built: ${missing_languages}
5226Supported languages are: ${potential_languages}" >&2;}
5227 { (exit 1); exit 1; }; }
55ffb5ed 5228 fi
55ffb5ed
NN
5229 if test "x$new_enable_languages" != "x$enable_languages"; then
5230 echo The following languages will be built: ${new_enable_languages}
e1888513 5231 enable_languages="$new_enable_languages"
55ffb5ed 5232 fi
e1888513 5233
1c710c3c 5234
b2eaac4a 5235 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5236fi
5237
27079765
AH
5238# Handle --disable-<component> generically.
5239for dir in $configdirs $build_configdirs $target_configdirs ; do
5240 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5241 varname=`echo $dirname | sed -e s/+/_/g`
5242 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5243 noconfigdirs="$noconfigdirs $dir"
5244 fi
5245done
5246
7cd0cf9c 5247# Check for Boehm's garbage collector
2aeb72e9 5248# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 5249if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
5250 enableval="$enable_objc_gc"
5251 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5252 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5253 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5254echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5255 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5256 ;;
5257esac
2aeb72e9 5258fi;
7cd0cf9c
DA
5259
5260# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5261case ,${enable_languages},:${enable_objc_gc} in
5262 *,objc,*:yes)
7cd0cf9c
DA
5263 # Keep target-boehm-gc if requested for Objective-C.
5264 ;;
7cd0cf9c 5265 *)
2a79fd67
DA
5266 # Otherwise remove target-boehm-gc depending on target-libjava.
5267 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5268 noconfigdirs="$noconfigdirs target-boehm-gc"
5269 fi
7cd0cf9c
DA
5270 ;;
5271esac
5272
ee6a22df
L
5273# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5274# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5275# If we have the source for $noconfigdirs entries, add them to $notsupp.
5276
5277notsupp=""
5278for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5279 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5280 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5281 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5282 if test -r $srcdir/$dirname/configure ; then
5283 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5284 true
5285 else
5286 notsupp="$notsupp $dir"
5287 fi
5288 fi
5289 fi
ee6a22df
L
5290 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5291 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5292 if test -r $srcdir/$dirname/configure ; then
5293 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5294 true
5295 else
5296 notsupp="$notsupp $dir"
5297 fi
5298 fi
5299 fi
55ffb5ed
NN
5300 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5301 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5302 if test -r $srcdir/$dirname/configure ; then
5303 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5304 true
5305 else
5306 notsupp="$notsupp $dir"
5307 fi
5308 fi
5309 fi
5310done
5311
5312# Sometimes the tools are distributed with libiberty but with no other
5313# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5314# Don't let libgcc imply libiberty either.
55ffb5ed 5315if test -n "${target_configdirs}" ; then
54fdc474 5316 libgcc=
55ffb5ed
NN
5317 others=
5318 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5319 if test "$i" = "libgcc"; then
5320 libgcc=target-libgcc
5321 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5322 if test -r $srcdir/$i/configure ; then
5323 others=yes;
5324 break;
5325 fi
5326 fi
5327 done
5328 if test -z "${others}" ; then
54fdc474 5329 target_configdirs=$libgcc
55ffb5ed
NN
5330 fi
5331fi
5332
5333# Quietly strip out all directories which aren't configurable in this tree.
5334# This relies on all configurable subdirectories being autoconfiscated, which
5335# is now the case.
23f6b2f9
PB
5336build_configdirs_all="$build_configdirs"
5337build_configdirs=
5338for i in ${build_configdirs_all} ; do
1c710c3c 5339 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5340 if test -f ${srcdir}/$j/configure ; then
5341 build_configdirs="${build_configdirs} $i"
5342 fi
5343done
5344
55ffb5ed
NN
5345configdirs_all="$configdirs"
5346configdirs=
5347for i in ${configdirs_all} ; do
5348 if test -f ${srcdir}/$i/configure ; then
5349 configdirs="${configdirs} $i"
5350 fi
5351done
23f6b2f9 5352
55ffb5ed
NN
5353target_configdirs_all="$target_configdirs"
5354target_configdirs=
5355for i in ${target_configdirs_all} ; do
1c710c3c 5356 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5357 if test -f ${srcdir}/$j/configure ; then
5358 target_configdirs="${target_configdirs} $i"
5359 fi
5360done
5361
5362# Produce a warning message for the subdirs we can't configure.
5363# This isn't especially interesting in the Cygnus tree, but in the individual
5364# FSF releases, it's important to let people know when their machine isn't
5365# supported by the one or two programs in a package.
5366
5367if test -n "${notsupp}" && test -z "${norecursion}" ; then
5368 # If $appdirs is non-empty, at least one of those directories must still
5369 # be configured, or we error out. (E.g., if the gas release supports a
5370 # specified target in some subdirs but not the gas subdir, we shouldn't
5371 # pretend that all is well.)
5372 if test -n "$appdirs" ; then
5373 for dir in $appdirs ; do
5374 if test -r $dir/Makefile.in ; then
5375 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5376 appdirs=""
5377 break
5378 fi
23f6b2f9 5379 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5380 appdirs=""
5381 break
5382 fi
5383 fi
5384 done
5385 if test -n "$appdirs" ; then
5386 echo "*** This configuration is not supported by this package." 1>&2
5387 exit 1
5388 fi
5389 fi
5390 # Okay, some application will build, or we don't care to check. Still
5391 # notify of subdirs not getting built.
5392 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5393 echo " ${notsupp}" 1>&2
5394 echo " (Any other directories should still work fine.)" 1>&2
5395fi
5396
5397case "$host" in
5398 *msdosdjgpp*)
5399 enable_gdbtk=no ;;
5400esac
5401
c3a86da9
DJ
5402# To find our prefix, in gcc_cv_tool_prefix.
5403
5404# The user is always right.
5405if test "${PATH_SEPARATOR+set}" != set; then
5406 echo "#! /bin/sh" >conf$$.sh
5407 echo "exit 0" >>conf$$.sh
5408 chmod +x conf$$.sh
5409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5410 PATH_SEPARATOR=';'
5411 else
5412 PATH_SEPARATOR=:
5413 fi
5414 rm -f conf$$.sh
5415fi
5416
5417
5418
5419if test "x$exec_prefix" = xNONE; then
5420 if test "x$prefix" = xNONE; then
5421 gcc_cv_tool_prefix=$ac_default_prefix
5422 else
5423 gcc_cv_tool_prefix=$prefix
5424 fi
5425else
5426 gcc_cv_tool_prefix=$exec_prefix
5427fi
5428
5429# If there is no compiler in the tree, use the PATH only. In any
5430# case, if there is no compiler in the tree nobody should use
5431# AS_FOR_TARGET and LD_FOR_TARGET.
5432if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5433 gcc_version=`cat $srcdir/gcc/BASE-VER`
5434 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5435 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5436 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5437 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5438 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5439 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5440else
5441 gcc_cv_tool_dirs=
5442fi
5443
5444if test x$build = x$target && test -n "$md_exec_prefix"; then
5445 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5446fi
5447
5448
5449
55ffb5ed
NN
5450copy_dirs=
5451
1c710c3c 5452
2aeb72e9 5453# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5454if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5455 withval="$with_build_sysroot"
5456 if test x"$withval" != x ; then
526635cb
MM
5457 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5458 fi
5459else
5460 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5461fi;
526635cb
MM
5462
5463
c8aea42c
PB
5464
5465# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5466if test "${with_debug_prefix_map+set}" = set; then
5467 withval="$with_debug_prefix_map"
5468 if test x"$withval" != x; then
5469 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5470 for debug_map in $withval; do
5471 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5472 done
5473 fi
5474else
5475 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5476fi;
5477
5478
1c8bd6a3
PB
5479# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5480# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5481# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5482# We want to ensure that TARGET libraries (which we know are built with
5483# gcc) are built with "-O2 -g", so include those options when setting
5484# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5485if test "x$CFLAGS_FOR_TARGET" = x; then
5486 CFLAGS_FOR_TARGET=$CFLAGS
5487 case " $CFLAGS " in
5488 *" -O2 "*) ;;
5489 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5490 esac
5491 case " $CFLAGS " in
5492 *" -g "* | *" -g3 "*) ;;
5493 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5494 esac
5495fi
5496
5497
5498if test "x$CXXFLAGS_FOR_TARGET" = x; then
5499 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5500 case " $CXXFLAGS " in
5501 *" -O2 "*) ;;
5502 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5503 esac
5504 case " $CXXFLAGS " in
5505 *" -g "* | *" -g3 "*) ;;
5506 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5507 esac
5508fi
5509
5510
55ffb5ed
NN
5511# Handle --with-headers=XXX. If the value is not "yes", the contents of
5512# the named directory are copied to $(tooldir)/sys-include.
5513if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5514 if test x${is_cross_compiler} = xno ; then
5515 echo 1>&2 '***' --with-headers is only supported when cross compiling
5516 exit 1
5517 fi
5518 if test x"${with_headers}" != xyes ; then
c3a86da9 5519 x=${gcc_cv_tool_prefix}
1c710c3c 5520 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5521 fi
5522fi
5523
5524# Handle --with-libs=XXX. If the value is not "yes", the contents of
5525# the name directories are copied to $(tooldir)/lib. Multiple directories
5526# are permitted.
5527if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5528 if test x${is_cross_compiler} = xno ; then
5529 echo 1>&2 '***' --with-libs is only supported when cross compiling
5530 exit 1
5531 fi
5532 if test x"${with_libs}" != xyes ; then
5533 # Copy the libraries in reverse order, so that files in the first named
5534 # library override files in subsequent libraries.
c3a86da9 5535 x=${gcc_cv_tool_prefix}
55ffb5ed 5536 for l in ${with_libs}; do
1c710c3c 5537 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5538 done
5539 fi
5540fi
5541
e8b05380
PB
5542# Set with_gnu_as and with_gnu_ld as appropriate.
5543#
5544# This is done by determining whether or not the appropriate directory
5545# is available, and by checking whether or not specific configurations
5546# have requested that this magic not happen.
1c710c3c
DJ
5547#
5548# The command line options always override the explicit settings in
e8b05380
PB
5549# configure.in, and the settings in configure.in override this magic.
5550#
1c710c3c 5551# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5552# want to do that, then you should use the --without-gnu-as and
5553# --without-gnu-ld options for the configure script.
5554
5555if test x${use_gnu_as} = x &&
5556 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5557 with_gnu_as=yes
5558 extra_host_args="$extra_host_args --with-gnu-as"
5559fi
5560
5561if test x${use_gnu_ld} = x &&
5afab7ad 5562 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
5563 with_gnu_ld=yes
5564 extra_host_args="$extra_host_args --with-gnu-ld"
5565fi
5566
5567# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5568# can detect this case.
5569
5570if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5571 with_newlib=yes
5572 extra_host_args="$extra_host_args --with-newlib"
5573fi
5574
55ffb5ed
NN
5575# Handle ${copy_dirs}
5576set fnord ${copy_dirs}
5577shift
5578while test $# != 0 ; do
5579 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5580 :
5581 else
5582 echo Copying $1 to $2
5583
5584 # Use the install script to create the directory and all required
5585 # parent directories.
5586 if test -d $2 ; then
5587 :
5588 else
5589 echo >config.temp
5590 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5591 fi
5592
5593 # Copy the directory, assuming we have tar.
5594 # FIXME: Should we use B in the second tar? Not all systems support it.
5595 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5596
5597 # It is the responsibility of the user to correctly adjust all
5598 # symlinks. If somebody can figure out how to handle them correctly
5599 # here, feel free to add the code.
5600
5601 echo $1 > $2/COPIED
5602 fi
5603 shift; shift
5604done
5605
e8b05380
PB
5606# Determine a target-dependent exec_prefix that the installed
5607# gcc will search in. Keep this list sorted by triplet, with
5608# the *-*-osname triplets last.
5609md_exec_prefix=
5610case "${target}" in
5611 alpha*-*-*vms*)
5612 md_exec_prefix=/gnu/lib/gcc-lib
5613 ;;
30b74385 5614 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5615 md_exec_prefix=/dev/env/DJDIR/bin
5616 ;;
30b74385 5617 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5618 if test $with_gnu_as = yes; then
5619 md_exec_prefix=/usr/gnu/bin
5620 else
5621 md_exec_prefix=/usr/ccs/bin/elf
5622 fi
5623 ;;
5624
5625 mn10300-*-* | \
5626 powerpc-*-chorusos* | \
5627 powerpc*-*-eabi* | \
5628 powerpc*-*-sysv* | \
5629 powerpc*-*-kaos* | \
5630 s390x-ibm-tpf*)
5631 md_exec_prefix=/usr/ccs/bin
5632 ;;
5633 sparc64-*-elf*)
5634 ;;
5635 v850*-*-*)
5636 md_exec_prefix=/usr/ccs/bin
5637 ;;
aa12a573 5638 xtensa*-*-elf*)
e8b05380
PB
5639 ;;
5640
5641 *-*-beos* | \
5642 *-*-elf* | \
5643 *-*-hpux* | \
5644 *-*-netware* | \
5645 *-*-nto-qnx* | \
5646 *-*-rtems* | \
5647 *-*-solaris2* | \
30b74385 5648 *-*-sysv[45]* | \
e8b05380
PB
5649 *-*-vxworks* | \
5650 *-wrs-windiss)
5651 md_exec_prefix=/usr/ccs/bin
5652 ;;
5653esac
5654
671aa708
NN
5655extra_arflags_for_target=
5656extra_nmflags_for_target=
5657extra_ranlibflags_for_target=
5658target_makefile_frag=/dev/null
5659case "${target}" in
3e19841a
PB
5660 mep*-*-*)
5661 target_makefile_frag="config/mt-mep"
5662 ;;
58e24147
AM
5663 spu-*-*)
5664 target_makefile_frag="config/mt-spu"
5665 ;;
4bf6c438
RS
5666 mips*-sde-elf*)
5667 target_makefile_frag="config/mt-sde"
5668 ;;
1ec3b87b
RS
5669 mipsisa*-*-elfoabi*)
5670 target_makefile_frag="config/mt-mips-elfoabi"
5671 ;;
08d0963a
RS
5672 mips*-*-*linux* | mips*-*-gnu*)
5673 target_makefile_frag="config/mt-mips-gnu"
5674 ;;
61fec9ff 5675 *-*-netware*)
671aa708
NN
5676 target_makefile_frag="config/mt-netware"
5677 ;;
98a5bb3b
RM
5678 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5679 target_makefile_frag="config/mt-gnu"
671aa708
NN
5680 ;;
5681 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5682 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5683 # commands to handle both 32-bit and 64-bit objects. These flags are
5684 # harmless if we're using GNU nm or ar.
5685 extra_arflags_for_target=" -X32_64"
5686 extra_nmflags_for_target=" -B -X32_64"
5687 ;;
5688 *-*-darwin*)
5689 # ranlib from Darwin requires the -c flag to look at common symbols.
5690 extra_ranlibflags_for_target=" -c"
5691 ;;
5692 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5693 target_makefile_frag="config/mt-wince"
5694 ;;
5695esac
5696
5697alphaieee_frag=/dev/null
5698case $target in
5699 alpha*-*-*)
5700 # This just makes sure to use the -mieee option to build target libs.
5701 # This should probably be set individually by each library.
5702 alphaieee_frag="config/mt-alphaieee"
5703 ;;
5704esac
5705
5706# If --enable-target-optspace always use -Os instead of -O2 to build
5707# the target libraries, similarly if it is not specified, use -Os
5708# on selected platforms.
5709ospace_frag=/dev/null
5710case "${enable_target_optspace}:${target}" in
5711 yes:*)
5712 ospace_frag="config/mt-ospace"
5713 ;;
5714 :d30v-*)
5715 ospace_frag="config/mt-d30v"
5716 ;;
5717 :m32r-* | :d10v-* | :fr30-*)
5718 ospace_frag="config/mt-ospace"
5719 ;;
5720 no:* | :*)
5721 ;;
5722 *)
5723 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5724 ;;
5725esac
5726
671aa708
NN
5727# Default to using --with-stabs for certain targets.
5728if test x${with_stabs} = x ; then
5729 case "${target}" in
89a95129 5730 mips*-*-irix[56]*)
671aa708
NN
5731 ;;
5732 mips*-*-* | alpha*-*-osf*)
5733 with_stabs=yes;
5734 extra_host_args="${extra_host_args} --with-stabs"
5735 ;;
5736 esac
5737fi
5738
5739# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5740# them automatically.
5741case "${host}" in
1c710c3c 5742 hppa*64*-*-hpux11*)
671aa708
NN
5743 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5744 ;;
5745esac
5746
671aa708
NN
5747# Some systems (e.g., one of the i386-aix systems the gas testers are
5748# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5749tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5750build_tooldir=${tooldir}
5751
671aa708
NN
5752# Create a .gdbinit file which runs the one in srcdir
5753# and tells GDB to look there for source files.
5754
5755if test -r ${srcdir}/.gdbinit ; then
5756 case ${srcdir} in
5757 .) ;;
5758 *) cat > ./.gdbinit <<EOF
5759# ${NO_EDIT}
5760dir ${srcdir}
5761dir .
5762source ${srcdir}/.gdbinit
5763EOF
5764 ;;
5765 esac
5766fi
5767
671aa708
NN
5768# Make sure that the compiler is able to generate an executable. If it
5769# can't, we are probably in trouble. We don't care whether we can run the
5770# executable--we might be using a cross compiler--we only care whether it
5771# can be created. At this point the main configure script has set CC.
5772we_are_ok=no
5773echo "int main () { return 0; }" > conftest.c
5774${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5775if test $? = 0 ; then
5776 if test -s conftest || test -s conftest.exe ; then
5777 we_are_ok=yes
5778 fi
1c710c3c 5779fi
671aa708
NN
5780case $we_are_ok in
5781 no)
5782 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5783 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5784 rm -f conftest*
5785 exit 1
5786 ;;
5787esac
5788rm -f conftest*
5789
5790# The Solaris /usr/ucb/cc compiler does not appear to work.
5791case "${host}" in
5792 sparc-sun-solaris2*)
5793 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5794 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5795 could_use=
5796 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5797 if test -d /opt/cygnus/bin ; then
5798 if test "$could_use" = "" ; then
5799 could_use="/opt/cygnus/bin"
5800 else
5801 could_use="$could_use or /opt/cygnus/bin"
5802 fi
5803 fi
5804 if test "$could_use" = "" ; then
5805 echo "Warning: compilation may fail because you're using"
5806 echo "/usr/ucb/cc. You should change your PATH or CC "
5807 echo "variable and rerun configure."
5808 else
5809 echo "Warning: compilation may fail because you're using"
5810 echo "/usr/ucb/cc, when you should use the C compiler from"
5811 echo "$could_use. You should change your"
5812 echo "PATH or CC variable and rerun configure."
5813 fi
5814 fi
5815 ;;
5816esac
5817
d89f0ad6 5818# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
5819case "${host}" in
5820 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5821 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 5822 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
5823 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5824esac
5825
d89f0ad6
AL
5826# On systems where the dynamic library environment variable is PATH,
5827# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5828# built executables to PATH.
5829if test "$RPATH_ENVVAR" = PATH; then
5830 GCC_SHLIB_SUBDIR=/shlib
5831else
5832 GCC_SHLIB_SUBDIR=
5833fi
5834
671aa708
NN
5835# Record target_configdirs and the configure arguments for target and
5836# build configuration in Makefile.
5837target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5838build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5839
671aa708
NN
5840# Determine whether gdb needs tk/tcl or not.
5841# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5842# and in that case we want gdb to be built without tk. Ugh!
5843# In fact I believe gdb is the *only* package directly dependent on tk,
5844# so we should be able to put the 'maybe's in unconditionally and
5845# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5846# 100% sure that that's safe though.
e914a571 5847
b4f96efe 5848gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5849case "$enable_gdbtk" in
5850 no)
5851 GDB_TK="" ;;
e914a571
AC
5852 yes)
5853 GDB_TK="${gdb_tk}" ;;
671aa708 5854 *)
e914a571
AC
5855 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5856 # distro. Eventually someone will fix this and move Insight, nee
5857 # gdbtk to a separate directory.
5858 if test -d ${srcdir}/gdb/gdbtk ; then
5859 GDB_TK="${gdb_tk}"
5860 else
5861 GDB_TK=""
5862 fi
5863 ;;
671aa708 5864esac
ef9db8d5
DJ
5865CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5866INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5867
60975492 5868# Strip out unwanted targets.
8b87bb96
NN
5869
5870# While at that, we remove Makefiles if we were started for recursive
5871# configuration, so that the top-level Makefile reconfigures them,
5872# like we used to do when configure itself was recursive.
8b87bb96 5873
60975492
PB
5874# Loop over modules. $extrasub must be used with care, limiting as
5875# much as possible the usage of range addresses. That's because autoconf
5876# splits the sed script to overcome limits in the number of commands,
5877# and relying on carefully-timed sed passes may turn out to be very hard
5878# to maintain later. In this particular case, you just have to be careful
5879# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5880
2aeb72e9 5881# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5882if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5883 enableval="$enable_bootstrap"
5884
f516a7da 5885else
ce521a9c 5886 enable_bootstrap=default
2aeb72e9 5887fi;
f516a7da 5888
ce521a9c
PB
5889# Issue errors and warnings for invalid/strange bootstrap combinations.
5890case "$configdirs" in
5891 *gcc*) have_compiler=yes ;;
5892 *) have_compiler=no ;;
5893esac
5894
5895case "$have_compiler:$host:$target:$enable_bootstrap" in
5896 *:*:*:no) ;;
5897
1ca26cd2 5898 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5899 # and we are in a native configuration.
5900 yes:$build:$build:default)
1ca26cd2 5901 enable_bootstrap=yes ;;
ce521a9c
PB
5902
5903 *:*:*:default)
5904 enable_bootstrap=no ;;
5905
5906 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5907 yes:$build:$build:yes)
ce521a9c
PB
5908 ;;
5909
5910 # Other configurations, but we have a compiler. Assume the user knows
5911 # what he's doing.
2d309510 5912 yes:*:*:yes)
1c710c3c
DJ
5913 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5914echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5915 ;;
5916
5917 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5918 no:*:*:yes)
1c710c3c
DJ
5919 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5920echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5921 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5922
5923 # Fail if wrong command line
5924 *)
1c710c3c
DJ
5925 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5926echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5927 { (exit 1); exit 1; }; }
ce521a9c
PB
5928 ;;
5929esac
5930
5931# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5932case "$enable_bootstrap" in
5933 yes)
5607edfd 5934 bootstrap_suffix=bootstrap ;;
f516a7da 5935 no)
5607edfd 5936 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5937esac
5938
23f6b2f9 5939for module in ${build_configdirs} ; do
5607edfd
PB
5940 if test -z "${no_recursion}" \
5941 && test -f ${build_subdir}/${module}/Makefile; then
5942 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5943 rm -f ${build_subdir}/${module}/Makefile
5944 fi
5945 extrasub="$extrasub
5946/^@if build-$module\$/d
5947/^@endif build-$module\$/d
5948/^@if build-$module-$bootstrap_suffix\$/d
5949/^@endif build-$module-$bootstrap_suffix\$/d"
5950done
5951for module in ${configdirs} ; do
a6fbc1e2 5952 if test -z "${no_recursion}"; then
f063a9ed 5953 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5954 if test -f ${file}; then
5955 echo 1>&2 "*** removing ${file} to force reconfigure"
5956 rm -f ${file}
5957 fi
5958 done
5607edfd
PB
5959 fi
5960 extrasub="$extrasub
5961/^@if $module\$/d
5962/^@endif $module\$/d
5963/^@if $module-$bootstrap_suffix\$/d
5964/^@endif $module-$bootstrap_suffix\$/d"
5965done
5966for module in ${target_configdirs} ; do
5967 if test -z "${no_recursion}" \
5968 && test -f ${target_subdir}/${module}/Makefile; then
5969 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5970 rm -f ${target_subdir}/${module}/Makefile
5971 fi
5972 extrasub="$extrasub
5973/^@if target-$module\$/d
5974/^@endif target-$module\$/d
5975/^@if target-$module-$bootstrap_suffix\$/d
5976/^@endif target-$module-$bootstrap_suffix\$/d"
5977done
5978
60975492
PB
5979extrasub="$extrasub
5980/^@if /,/^@endif /d"
671aa708
NN
5981
5982# Create the serialization dependencies. This uses a temporary file.
5983
2aeb72e9 5984# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5985if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5986 enableval="$enable_serial_configure"
ade82b16 5987
2aeb72e9 5988fi;
ade82b16 5989
bf1d3e81
NN
5990case ${enable_serial_configure} in
5991 yes)
5992 enable_serial_build_configure=yes
5993 enable_serial_host_configure=yes
5994 enable_serial_target_configure=yes
5995 ;;
5996esac
5997
671aa708
NN
5998# These force 'configure's to be done one at a time, to avoid problems
5999# with contention over a shared config.cache.
6000rm -f serdep.tmp
ade82b16 6001echo '# serdep.tmp' > serdep.tmp
671aa708 6002olditem=
bf1d3e81 6003test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6004for item in ${build_configdirs} ; do
6005 case ${olditem} in
6006 "") ;;
ade82b16 6007 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6008 esac
6009 olditem=${item}
6010done
6011olditem=
bf1d3e81 6012test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6013for item in ${configdirs} ; do
6014 case ${olditem} in
6015 "") ;;
ade82b16 6016 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6017 esac
6018 olditem=${item}
6019done
6020olditem=
bf1d3e81 6021test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6022for item in ${target_configdirs} ; do
6023 case ${olditem} in
6024 "") ;;
ade82b16 6025 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6026 esac
6027 olditem=${item}
6028done
6029serialization_dependencies=serdep.tmp
6030
6031
ade82b16 6032# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6033# target, nonopt, and variable assignments. These are the ones we
6034# might not want to pass down to subconfigures. Also strip
6035# program-prefix, program-suffix, and program-transform-name, so that
6036# we can pass down a consistent program-transform-name.
6037baseargs=
6038keep_next=no
6039skip_next=no
6040eval "set -- $ac_configure_args"
44bfc3ac
DJ
6041for ac_arg
6042do
1c710c3c
DJ
6043 if test X"$skip_next" = X"yes"; then
6044 skip_next=no
6045 continue
6046 fi
6047 if test X"$keep_next" = X"yes"; then
6048 case $ac_arg in
6049 *\'*)
6050 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6051 esac
6052 baseargs="$baseargs '$ac_arg'"
6053 keep_next=no
6054 continue
6055 fi
6056
6057 # Handle separated arguments. Based on the logic generated by
6058 # autoconf 2.59.
6059 case $ac_arg in
6060 *=* | --config-cache | -C | -disable-* | --disable-* \
6061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6063 | -with-* | --with-* | -without-* | --without-* | --x)
6064 separate_arg=no
6065 ;;
6066 -*)
6067 separate_arg=yes
6068 ;;
6069 *)
6070 separate_arg=no
6071 ;;
6072 esac
6073
6074 case "$ac_arg" in
6075 --no*)
6076 continue
6077 ;;
6078 --c* | \
6079 --sr* | \
6080 --ho* | \
6081 --bu* | \
6082 --t* | \
6083 --program-* | \
6084 -cache_file* | \
6085 -srcdir* | \
6086 -host* | \
6087 -build* | \
6088 -target* | \
6089 -program-prefix* | \
6090 -program-suffix* | \
6091 -program-transform-name* )
6092 skip_next=$separate_arg
6093 continue
6094 ;;
6095 -*)
6096 # An option. Add it.
6097 case $ac_arg in
6098 *\'*)
6099 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6100 esac
6101 baseargs="$baseargs '$ac_arg'"
6102 keep_next=$separate_arg
6103 ;;
6104 *)
6105 # Either a variable assignment, or a nonopt (triplet). Don't
6106 # pass it down; let the Makefile handle this.
6107 continue
6108 ;;
6109 esac
6110done
6111# Remove the initial space we just introduced and, as these will be
6112# expanded by make, quote '$'.
6113baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6114
43bb47c2
DJ
6115# Add in --program-transform-name, after --program-prefix and
6116# --program-suffix have been applied to it. Autoconf has already
6117# doubled dollar signs and backslashes in program_transform_name; we want
6118# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6119# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6120# Also, because we want to override the logic in subdir configure scripts to
6121# choose program_transform_name, replace any s,x,x, with s,y,y,.
6122sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6123${program_transform_name}
6124EOF_SED
6125gcc_transform_name=`cat conftestsed.out`
6126rm -f conftestsed.out
6127baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6128if test "$silent" = yes; then
6129 baseargs="$baseargs --silent"
6130fi
43bb47c2 6131
671aa708
NN
6132# For the build-side libraries, we just need to pretend we're native,
6133# and not use the same cache file. Multilibs are neither needed nor
6134# desired.
e69bf64b 6135build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6136
6137# For host modules, accept cache file option, or specification as blank.
6138case "${cache_file}" in
6139"") # empty
6140 cache_file_option="" ;;
6141/* | [A-Za-z]:[\\/]* ) # absolute path
6142 cache_file_option="--cache-file=${cache_file}" ;;
6143*) # relative path
6144 cache_file_option="--cache-file=../${cache_file}" ;;
6145esac
6146
09438bde
NN
6147# Host dirs don't like to share a cache file either, horribly enough.
6148# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6149host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6150
6151target_configargs=${baseargs}
6152
6153# Passing a --with-cross-host argument lets the target libraries know
6154# whether they are being built with a cross-compiler or being built
6155# native. However, it would be better to use other mechanisms to make the
6156# sorts of decisions they want to make on this basis. Please consider
6157# this option to be deprecated. FIXME.
6158if test x${is_cross_compiler} = xyes ; then
1c710c3c 6159 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6160fi
6161
6162# Default to --enable-multilib.
6163if test x${enable_multilib} = x ; then
6164 target_configargs="--enable-multilib ${target_configargs}"
6165fi
6166
6167# Pass --with-newlib if appropriate. Note that target_configdirs has
6168# changed from the earlier setting of with_newlib.
6169if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6170 target_configargs="--with-newlib ${target_configargs}"
6171fi
6172
6b9eb62c
NN
6173# Different target subdirs use different values of certain variables
6174# (notably CXX). Worse, multilibs use *lots* of different values.
6175# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6176# it doesn't automatically accept command-line overrides of them.
6177# This means it's not safe for target subdirs to share a cache file,
6178# which is disgusting, but there you have it. Hopefully this can be
6179# fixed in future. It's still worthwhile to use a cache file for each
6180# directory. I think.
6181
bebcd931
MS
6182# Pass the appropriate --build, --host, --target and --cache-file arguments.
6183# We need to pass --target, as newer autoconf's requires consistency
6184# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6185target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6186
671aa708
NN
6187FLAGS_FOR_TARGET=
6188case " $target_configdirs " in
6189 *" newlib "*)
6190 case " $target_configargs " in
6191 *" --with-newlib "*)
6192 case "$target" in
6193 *-cygwin*)
aa8f1f57 6194 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
6195 esac
6196
6197 # If we're not building GCC, don't discard standard headers.
6198 if test -d ${srcdir}/gcc; then
6199 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6200
6201 if test "${build}" != "${host}"; then
6202 # On Canadian crosses, CC_FOR_TARGET will have already been set
6203 # by `configure', so we won't have an opportunity to add -Bgcc/
6204 # to it. This is right: we don't want to search that directory
6205 # for binaries, but we want the header files in there, so add
6206 # them explicitly.
215c351a 6207 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6208
6209 # Someone might think of using the pre-installed headers on
6210 # Canadian crosses, in case the installed compiler is not fully
6211 # compatible with the compiler being built. In this case, it
6212 # would be better to flag an error than risking having
6213 # incompatible object files being constructed. We can't
6214 # guarantee that an error will be flagged, but let's hope the
6215 # compiler will do it, when presented with incompatible header
6216 # files.
6217 fi
6218 fi
6219
6220 case "${target}-${is_cross_compiler}" in
f2a0e225 6221 i[3456789]86-*-linux*-no)
671aa708
NN
6222 # Here host == target, so we don't need to build gcc,
6223 # so we don't want to discard standard headers.
6224 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6225 ;;
6226 *)
6227 # If we're building newlib, use its generic headers last, but search
6228 # for any libc-related directories first (so make it the last -B
6229 # switch).
6230 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
6231
6232 # If we're building libgloss, find the startup file, simulator library
6233 # and linker script.
6234 case " $target_configdirs " in
6235 *" libgloss "*)
6236 # Look for startup file, simulator library and maybe linker script.
6237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6238 # Look for libnosys.a in case the target needs it.
6239 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6240 # Most targets have the linker script in the source directory.
6241 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6242 ;;
6243 esac
671aa708
NN
6244 ;;
6245 esac
6246 ;;
6247 esac
6248 ;;
6249esac
b91f0a41
CV
6250case "$target" in
6251*-mingw*)
6252 # Can't be handled as Cygwin above since Mingw does not use newlib.
6253 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' ;;
6254esac
671aa708 6255
6691a79e
ME
6256# Allow the user to override the flags for
6257# our build compiler if desired.
f019adc1
MF
6258if test x"${build}" = x"${host}" ; then
6259 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6260 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6261 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6262fi
6691a79e 6263
671aa708
NN
6264# On Canadian crosses, we'll be searching the right directories for
6265# the previously-installed cross compiler, so don't bother to add
6266# flags for directories within the install tree of the compiler
6267# being built; programs in there won't even run.
6268if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6269 # Search for pre-installed headers if nothing else fits.
9124bc53 6270 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
6271fi
6272
6273if test "x${use_gnu_ld}" = x &&
6274 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6275 # Arrange for us to find uninstalled linker scripts.
215c351a 6276 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6277fi
6278
e88a2c09
DD
6279# Search for other target-specific linker scripts and such.
6280case "${target}" in
3e19841a
PB
6281 mep*)
6282 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6283 ;;
e88a2c09
DD
6284esac
6285
671aa708 6286# Makefile fragments.
7b61653a
PE
6287for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6288do
6289 eval fragval=\$$frag
6290 if test $fragval != /dev/null; then
6291 eval $frag=${srcdir}/$fragval
6292 fi
6293done
671aa708
NN
6294
6295
6296
6297
6298
6299# Miscellanea: directories, flags, etc.
6300
6301
6302
6303
6304
6305
6306
d89f0ad6 6307
23f6b2f9 6308# Build module lists & subconfigure args.
671aa708
NN
6309
6310
6311
2abefe3d
PB
6312# Host module lists & subconfigure args.
6313
6314
6315
6316# Target module lists & subconfigure args.
6317
6318
6319
6320# Build tools.
6321
6322
6323
0999159b
PB
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
2abefe3d
PB
6338# Generate default definitions for YACC, M4, LEX and other programs that run
6339# on the build machine. These are used if the Makefile can't locate these
6340# programs in objdir.
6341MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6342
6343for ac_prog in 'bison -y' byacc yacc
6344do
1c710c3c 6345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6346set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6347echo "$as_me:$LINENO: checking for $ac_word" >&5
6348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6349if test "${ac_cv_prog_YACC+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6351else
6352 if test -n "$YACC"; then
6353 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6354else
1c710c3c
DJ
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6362 ac_cv_prog_YACC="$ac_prog"
6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367done
6368
2abefe3d
PB
6369fi
6370fi
1c710c3c 6371YACC=$ac_cv_prog_YACC
2abefe3d 6372if test -n "$YACC"; then
2aeb72e9
DD
6373 echo "$as_me:$LINENO: result: $YACC" >&5
6374echo "${ECHO_T}$YACC" >&6
2abefe3d 6375else
2aeb72e9
DD
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
2abefe3d
PB
6378fi
6379
1c710c3c 6380 test -n "$YACC" && break
2abefe3d
PB
6381done
6382test -n "$YACC" || YACC="$MISSING bison -y"
6383
6384case " $build_configdirs " in
6385 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6386 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6387esac
6388
6389for ac_prog in bison
6390do
1c710c3c 6391 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6392set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6393echo "$as_me:$LINENO: checking for $ac_word" >&5
6394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6395if test "${ac_cv_prog_BISON+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6397else
6398 if test -n "$BISON"; then
6399 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6400else
1c710c3c
DJ
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6408 ac_cv_prog_BISON="$ac_prog"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6411 fi
6412done
6413done
6414
2abefe3d
PB
6415fi
6416fi
1c710c3c 6417BISON=$ac_cv_prog_BISON
2abefe3d 6418if test -n "$BISON"; then
2aeb72e9
DD
6419 echo "$as_me:$LINENO: result: $BISON" >&5
6420echo "${ECHO_T}$BISON" >&6
2abefe3d 6421else
2aeb72e9
DD
6422 echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
2abefe3d
PB
6424fi
6425
1c710c3c 6426 test -n "$BISON" && break
2abefe3d
PB
6427done
6428test -n "$BISON" || BISON="$MISSING bison"
6429
6430case " $build_configdirs " in
6431 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6432esac
6433
6434for ac_prog in gm4 gnum4 m4
6435do
1c710c3c 6436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6437set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6438echo "$as_me:$LINENO: checking for $ac_word" >&5
6439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6440if test "${ac_cv_prog_M4+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6442else
6443 if test -n "$M4"; then
6444 ac_cv_prog_M4="$M4" # Let the user override the test.
6445else
1c710c3c
DJ
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6453 ac_cv_prog_M4="$ac_prog"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457done
6458done
6459
2abefe3d
PB
6460fi
6461fi
1c710c3c 6462M4=$ac_cv_prog_M4
2abefe3d 6463if test -n "$M4"; then
2aeb72e9
DD
6464 echo "$as_me:$LINENO: result: $M4" >&5
6465echo "${ECHO_T}$M4" >&6
2abefe3d 6466else
2aeb72e9
DD
6467 echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6
2abefe3d
PB
6469fi
6470
1c710c3c 6471 test -n "$M4" && break
2abefe3d
PB
6472done
6473test -n "$M4" || M4="$MISSING m4"
6474
6475case " $build_configdirs " in
6476 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6477esac
6478
6479for ac_prog in flex lex
6480do
1c710c3c 6481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6482set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6483echo "$as_me:$LINENO: checking for $ac_word" >&5
6484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6485if test "${ac_cv_prog_LEX+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6487else
6488 if test -n "$LEX"; then
6489 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6490else
1c710c3c
DJ
6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492for as_dir in $PATH
6493do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6498 ac_cv_prog_LEX="$ac_prog"
6499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502done
6503done
6504
2abefe3d
PB
6505fi
6506fi
1c710c3c 6507LEX=$ac_cv_prog_LEX
2abefe3d 6508if test -n "$LEX"; then
2aeb72e9
DD
6509 echo "$as_me:$LINENO: result: $LEX" >&5
6510echo "${ECHO_T}$LEX" >&6
2abefe3d 6511else
2aeb72e9
DD
6512 echo "$as_me:$LINENO: result: no" >&5
6513echo "${ECHO_T}no" >&6
2abefe3d
PB
6514fi
6515
1c710c3c 6516 test -n "$LEX" && break
2abefe3d
PB
6517done
6518test -n "$LEX" || LEX="$MISSING flex"
6519
6520case " $build_configdirs " in
6521 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6522 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6523esac
6524
6525for ac_prog in flex
6526do
1c710c3c 6527 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6528set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6529echo "$as_me:$LINENO: checking for $ac_word" >&5
6530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6531if test "${ac_cv_prog_FLEX+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6533else
6534 if test -n "$FLEX"; then
6535 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6536else
1c710c3c
DJ
6537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538for as_dir in $PATH
6539do
6540 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6544 ac_cv_prog_FLEX="$ac_prog"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2
6547 fi
6548done
6549done
6550
2abefe3d
PB
6551fi
6552fi
1c710c3c 6553FLEX=$ac_cv_prog_FLEX
2abefe3d 6554if test -n "$FLEX"; then
2aeb72e9
DD
6555 echo "$as_me:$LINENO: result: $FLEX" >&5
6556echo "${ECHO_T}$FLEX" >&6
2abefe3d 6557else
2aeb72e9
DD
6558 echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6
2abefe3d
PB
6560fi
6561
1c710c3c 6562 test -n "$FLEX" && break
2abefe3d
PB
6563done
6564test -n "$FLEX" || FLEX="$MISSING flex"
6565
6566case " $build_configdirs " in
6567 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6568esac
6569
6570for ac_prog in makeinfo
6571do
1c710c3c 6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6573set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6576if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6578else
6579 if test -n "$MAKEINFO"; then
6580 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6581else
1c710c3c
DJ
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6589 ac_cv_prog_MAKEINFO="$ac_prog"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594done
6595
2abefe3d
PB
6596fi
6597fi
1c710c3c 6598MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6599if test -n "$MAKEINFO"; then
2aeb72e9
DD
6600 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6601echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6602else
2aeb72e9
DD
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
2abefe3d
PB
6605fi
6606
1c710c3c 6607 test -n "$MAKEINFO" && break
2abefe3d
PB
6608done
6609test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6610
6611case " $build_configdirs " in
6612 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6613 *)
6614
4fe7e755 6615 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6616 # higher, else we use the "missing" dummy.
6617 if ${MAKEINFO} --version \
4fe7e755 6618 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6619 :
6620 else
6621 MAKEINFO="$MISSING makeinfo"
6622 fi
6623 ;;
6624
6625esac
671aa708 6626
2abefe3d 6627# FIXME: expect and dejagnu may become build tools?
671aa708 6628
2abefe3d
PB
6629for ac_prog in expect
6630do
1c710c3c 6631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6632set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6633echo "$as_me:$LINENO: checking for $ac_word" >&5
6634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6635if test "${ac_cv_prog_EXPECT+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6637else
6638 if test -n "$EXPECT"; then
6639 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6640else
1c710c3c
DJ
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6648 ac_cv_prog_EXPECT="$ac_prog"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652done
6653done
6654
2abefe3d
PB
6655fi
6656fi
1c710c3c 6657EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6658if test -n "$EXPECT"; then
2aeb72e9
DD
6659 echo "$as_me:$LINENO: result: $EXPECT" >&5
6660echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6661else
2aeb72e9
DD
6662 echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6
2abefe3d 6664fi
671aa708 6665
1c710c3c 6666 test -n "$EXPECT" && break
2abefe3d
PB
6667done
6668test -n "$EXPECT" || EXPECT="expect"
671aa708 6669
2abefe3d
PB
6670case " $configdirs " in
6671 *" expect "*)
6672 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6673 ;;
6674esac
671aa708 6675
2abefe3d
PB
6676for ac_prog in runtest
6677do
1c710c3c 6678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6679set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6680echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6682if test "${ac_cv_prog_RUNTEST+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6684else
6685 if test -n "$RUNTEST"; then
6686 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6687else
1c710c3c
DJ
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6695 ac_cv_prog_RUNTEST="$ac_prog"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699done
6700done
6701
2abefe3d
PB
6702fi
6703fi
1c710c3c 6704RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6705if test -n "$RUNTEST"; then
2aeb72e9
DD
6706 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6707echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6708else
2aeb72e9
DD
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
2abefe3d 6711fi
671aa708 6712
1c710c3c 6713 test -n "$RUNTEST" && break
2abefe3d
PB
6714done
6715test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6716
2abefe3d
PB
6717case " $configdirs " in
6718 *" dejagnu "*)
c394e891 6719 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6720 ;;
6721esac
671aa708
NN
6722
6723
671aa708 6724# Host tools.
ca9f4b81
AO
6725ncn_tool_prefix=
6726test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6727ncn_target_tool_prefix=
6728test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6729
278a7a38
AO
6730
6731
6732if test -n "$AR"; then
6733 ac_cv_prog_AR=$AR
6734elif test -n "$ac_cv_prog_AR"; then
6735 AR=$ac_cv_prog_AR
6736fi
6737
6738if test -n "$ac_cv_prog_AR"; then
6739 for ncn_progname in ar; do
6740 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6741set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6742echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6744if test "${ac_cv_prog_AR+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 if test -n "$AR"; then
6748 ac_cv_prog_AR="$AR" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6757 ac_cv_prog_AR="${ncn_progname}"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
6762done
6763
6764fi
6765fi
6766AR=$ac_cv_prog_AR
6767if test -n "$AR"; then
2aeb72e9
DD
6768 echo "$as_me:$LINENO: result: $AR" >&5
6769echo "${ECHO_T}$AR" >&6
278a7a38 6770else
2aeb72e9
DD
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
278a7a38
AO
6773fi
6774
6775 done
6776fi
6777
6778for ncn_progname in ar; do
2693c0b0
PB
6779 if test -n "$ncn_tool_prefix"; then
6780 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6781set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6782echo "$as_me:$LINENO: checking for $ac_word" >&5
6783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6784if test "${ac_cv_prog_AR+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6786else
6787 if test -n "$AR"; then
6788 ac_cv_prog_AR="$AR" # Let the user override the test.
6789else
1c710c3c
DJ
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6797 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802done
6803
ca9f4b81
AO
6804fi
6805fi
1c710c3c 6806AR=$ac_cv_prog_AR
ca9f4b81 6807if test -n "$AR"; then
2aeb72e9
DD
6808 echo "$as_me:$LINENO: result: $AR" >&5
6809echo "${ECHO_T}$AR" >&6
ca9f4b81 6810else
2aeb72e9
DD
6811 echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6
ca9f4b81
AO
6813fi
6814
2693c0b0
PB
6815 fi
6816 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6818set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6819echo "$as_me:$LINENO: checking for $ac_word" >&5
6820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6821if test "${ac_cv_prog_AR+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6823else
2693c0b0 6824 if test -n "$AR"; then
af71363e
AS
6825 ac_cv_prog_AR="$AR" # Let the user override the test.
6826else
1c710c3c
DJ
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6834 ac_cv_prog_AR="${ncn_progname}"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839done
6840
ca9f4b81
AO
6841fi
6842fi
1c710c3c 6843AR=$ac_cv_prog_AR
2693c0b0 6844if test -n "$AR"; then
2aeb72e9
DD
6845 echo "$as_me:$LINENO: result: $AR" >&5
6846echo "${ECHO_T}$AR" >&6
ca9f4b81 6847else
2aeb72e9
DD
6848 echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6
ca9f4b81 6850fi
1c710c3c 6851
2693c0b0
PB
6852 fi
6853 test -n "$ac_cv_prog_AR" && break
6854done
6855
6856if test -z "$ac_cv_prog_AR" ; then
6857 set dummy ar
6858 if test $build = $host ; then
6859 AR="$2"
ca9f4b81 6860 else
2693c0b0 6861 AR="${ncn_tool_prefix}$2"
ca9f4b81 6862 fi
ca9f4b81
AO
6863fi
6864
278a7a38
AO
6865
6866
6867if test -n "$AS"; then
6868 ac_cv_prog_AS=$AS
6869elif test -n "$ac_cv_prog_AS"; then
6870 AS=$ac_cv_prog_AS
6871fi
6872
6873if test -n "$ac_cv_prog_AS"; then
6874 for ncn_progname in as; do
6875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6876set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6877echo "$as_me:$LINENO: checking for $ac_word" >&5
6878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6879if test "${ac_cv_prog_AS+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881else
6882 if test -n "$AS"; then
6883 ac_cv_prog_AS="$AS" # Let the user override the test.
6884else
6885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6892 ac_cv_prog_AS="${ncn_progname}"
6893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896done
6897done
6898
6899fi
6900fi
6901AS=$ac_cv_prog_AS
6902if test -n "$AS"; then
2aeb72e9
DD
6903 echo "$as_me:$LINENO: result: $AS" >&5
6904echo "${ECHO_T}$AS" >&6
278a7a38 6905else
2aeb72e9
DD
6906 echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6
278a7a38
AO
6908fi
6909
6910 done
6911fi
6912
6913for ncn_progname in as; do
2693c0b0
PB
6914 if test -n "$ncn_tool_prefix"; then
6915 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6916set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6917echo "$as_me:$LINENO: checking for $ac_word" >&5
6918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6919if test "${ac_cv_prog_AS+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6921else
6922 if test -n "$AS"; then
6923 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6924else
1c710c3c
DJ
6925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926for as_dir in $PATH
6927do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6932 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936done
6937done
6938
ca9f4b81
AO
6939fi
6940fi
1c710c3c 6941AS=$ac_cv_prog_AS
ca9f4b81 6942if test -n "$AS"; then
2aeb72e9
DD
6943 echo "$as_me:$LINENO: result: $AS" >&5
6944echo "${ECHO_T}$AS" >&6
ca9f4b81 6945else
2aeb72e9
DD
6946 echo "$as_me:$LINENO: result: no" >&5
6947echo "${ECHO_T}no" >&6
ca9f4b81
AO
6948fi
6949
2693c0b0
PB
6950 fi
6951 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6953set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6954echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6956if test "${ac_cv_prog_AS+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6958else
2693c0b0
PB
6959 if test -n "$AS"; then
6960 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6961else
1c710c3c
DJ
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6969 ac_cv_prog_AS="${ncn_progname}"
6970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974done
6975
ca9f4b81
AO
6976fi
6977fi
1c710c3c 6978AS=$ac_cv_prog_AS
2693c0b0 6979if test -n "$AS"; then
2aeb72e9
DD
6980 echo "$as_me:$LINENO: result: $AS" >&5
6981echo "${ECHO_T}$AS" >&6
ca9f4b81 6982else
2aeb72e9
DD
6983 echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6
ca9f4b81 6985fi
1c710c3c 6986
2693c0b0
PB
6987 fi
6988 test -n "$ac_cv_prog_AS" && break
6989done
6990
6991if test -z "$ac_cv_prog_AS" ; then
6992 set dummy as
6993 if test $build = $host ; then
6994 AS="$2"
ca9f4b81 6995 else
2693c0b0 6996 AS="${ncn_tool_prefix}$2"
ca9f4b81 6997 fi
ca9f4b81
AO
6998fi
6999
278a7a38
AO
7000
7001
7002if test -n "$DLLTOOL"; then
7003 ac_cv_prog_DLLTOOL=$DLLTOOL
7004elif test -n "$ac_cv_prog_DLLTOOL"; then
7005 DLLTOOL=$ac_cv_prog_DLLTOOL
7006fi
7007
7008if test -n "$ac_cv_prog_DLLTOOL"; then
7009 for ncn_progname in dlltool; do
7010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7011set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7012echo "$as_me:$LINENO: checking for $ac_word" >&5
7013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7014if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017 if test -n "$DLLTOOL"; then
7018 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7027 ac_cv_prog_DLLTOOL="${ncn_progname}"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031done
7032done
7033
7034fi
7035fi
7036DLLTOOL=$ac_cv_prog_DLLTOOL
7037if test -n "$DLLTOOL"; then
2aeb72e9
DD
7038 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7039echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 7040else
2aeb72e9
DD
7041 echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6
278a7a38
AO
7043fi
7044
7045 done
7046fi
7047
7048for ncn_progname in dlltool; do
2693c0b0
PB
7049 if test -n "$ncn_tool_prefix"; then
7050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7051set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7052echo "$as_me:$LINENO: checking for $ac_word" >&5
7053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7054if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7056else
7057 if test -n "$DLLTOOL"; then
7058 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7059else
1c710c3c
DJ
7060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061for as_dir in $PATH
7062do
7063 IFS=$as_save_IFS
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7067 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 break 2
7070 fi
7071done
7072done
7073
ca9f4b81
AO
7074fi
7075fi
1c710c3c 7076DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7077if test -n "$DLLTOOL"; then
2aeb72e9
DD
7078 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7079echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7080else
2aeb72e9
DD
7081 echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
ca9f4b81
AO
7083fi
7084
2693c0b0
PB
7085 fi
7086 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7088set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7089echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7091if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7093else
2693c0b0
PB
7094 if test -n "$DLLTOOL"; then
7095 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7096else
1c710c3c
DJ
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7104 ac_cv_prog_DLLTOOL="${ncn_progname}"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109done
7110
ca9f4b81
AO
7111fi
7112fi
1c710c3c 7113DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7114if test -n "$DLLTOOL"; then
2aeb72e9
DD
7115 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7116echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7117else
2aeb72e9
DD
7118 echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6
ca9f4b81 7120fi
1c710c3c 7121
2693c0b0
PB
7122 fi
7123 test -n "$ac_cv_prog_DLLTOOL" && break
7124done
7125
7126if test -z "$ac_cv_prog_DLLTOOL" ; then
7127 set dummy dlltool
7128 if test $build = $host ; then
7129 DLLTOOL="$2"
ca9f4b81 7130 else
2693c0b0 7131 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7132 fi
ca9f4b81
AO
7133fi
7134
278a7a38
AO
7135
7136
7137if test -n "$LD"; then
7138 ac_cv_prog_LD=$LD
7139elif test -n "$ac_cv_prog_LD"; then
7140 LD=$ac_cv_prog_LD
7141fi
7142
7143if test -n "$ac_cv_prog_LD"; then
7144 for ncn_progname in ld; do
7145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7146set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7147echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7149if test "${ac_cv_prog_LD+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 if test -n "$LD"; then
7153 ac_cv_prog_LD="$LD" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7162 ac_cv_prog_LD="${ncn_progname}"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168
7169fi
7170fi
7171LD=$ac_cv_prog_LD
7172if test -n "$LD"; then
2aeb72e9
DD
7173 echo "$as_me:$LINENO: result: $LD" >&5
7174echo "${ECHO_T}$LD" >&6
278a7a38 7175else
2aeb72e9
DD
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
278a7a38
AO
7178fi
7179
7180 done
7181fi
7182
7183for ncn_progname in ld; do
2693c0b0
PB
7184 if test -n "$ncn_tool_prefix"; then
7185 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7186set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7187echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7189if test "${ac_cv_prog_LD+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7191else
7192 if test -n "$LD"; then
7193 ac_cv_prog_LD="$LD" # Let the user override the test.
7194else
1c710c3c
DJ
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7202 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208
ca9f4b81
AO
7209fi
7210fi
1c710c3c 7211LD=$ac_cv_prog_LD
ca9f4b81 7212if test -n "$LD"; then
2aeb72e9
DD
7213 echo "$as_me:$LINENO: result: $LD" >&5
7214echo "${ECHO_T}$LD" >&6
ca9f4b81 7215else
2aeb72e9
DD
7216 echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6
ca9f4b81
AO
7218fi
7219
2693c0b0
PB
7220 fi
7221 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7223set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7224echo "$as_me:$LINENO: checking for $ac_word" >&5
7225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7226if test "${ac_cv_prog_LD+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7228else
2693c0b0
PB
7229 if test -n "$LD"; then
7230 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7231else
1c710c3c
DJ
7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7239 ac_cv_prog_LD="${ncn_progname}"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245
ca9f4b81
AO
7246fi
7247fi
1c710c3c 7248LD=$ac_cv_prog_LD
2693c0b0 7249if test -n "$LD"; then
2aeb72e9
DD
7250 echo "$as_me:$LINENO: result: $LD" >&5
7251echo "${ECHO_T}$LD" >&6
ca9f4b81 7252else
2aeb72e9
DD
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
ca9f4b81 7255fi
1c710c3c 7256
2693c0b0
PB
7257 fi
7258 test -n "$ac_cv_prog_LD" && break
7259done
7260
7261if test -z "$ac_cv_prog_LD" ; then
7262 set dummy ld
7263 if test $build = $host ; then
7264 LD="$2"
ca9f4b81 7265 else
2693c0b0 7266 LD="${ncn_tool_prefix}$2"
ca9f4b81 7267 fi
ca9f4b81
AO
7268fi
7269
278a7a38
AO
7270
7271
7272if test -n "$LIPO"; then
7273 ac_cv_prog_LIPO=$LIPO
7274elif test -n "$ac_cv_prog_LIPO"; then
7275 LIPO=$ac_cv_prog_LIPO
7276fi
7277
7278if test -n "$ac_cv_prog_LIPO"; then
7279 for ncn_progname in lipo; do
7280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7281set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7282echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7284if test "${ac_cv_prog_LIPO+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287 if test -n "$LIPO"; then
7288 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7297 ac_cv_prog_LIPO="${ncn_progname}"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303
7304fi
7305fi
7306LIPO=$ac_cv_prog_LIPO
7307if test -n "$LIPO"; then
2aeb72e9
DD
7308 echo "$as_me:$LINENO: result: $LIPO" >&5
7309echo "${ECHO_T}$LIPO" >&6
278a7a38 7310else
2aeb72e9
DD
7311 echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
278a7a38
AO
7313fi
7314
7315 done
7316fi
7317
7318for ncn_progname in lipo; do
2abefe3d
PB
7319 if test -n "$ncn_tool_prefix"; then
7320 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7321set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7322echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7324if test "${ac_cv_prog_LIPO+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7326else
7327 if test -n "$LIPO"; then
7328 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7329else
1c710c3c
DJ
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7337 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343
2abefe3d
PB
7344fi
7345fi
1c710c3c 7346LIPO=$ac_cv_prog_LIPO
2abefe3d 7347if test -n "$LIPO"; then
2aeb72e9
DD
7348 echo "$as_me:$LINENO: result: $LIPO" >&5
7349echo "${ECHO_T}$LIPO" >&6
2abefe3d 7350else
2aeb72e9
DD
7351 echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6
2abefe3d
PB
7353fi
7354
7355 fi
7356 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7358set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7359echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7361if test "${ac_cv_prog_LIPO+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7363else
7364 if test -n "$LIPO"; then
7365 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7366else
1c710c3c
DJ
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7374 ac_cv_prog_LIPO="${ncn_progname}"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7377 fi
7378done
7379done
7380
2abefe3d
PB
7381fi
7382fi
1c710c3c 7383LIPO=$ac_cv_prog_LIPO
2abefe3d 7384if test -n "$LIPO"; then
2aeb72e9
DD
7385 echo "$as_me:$LINENO: result: $LIPO" >&5
7386echo "${ECHO_T}$LIPO" >&6
2abefe3d 7387else
2aeb72e9
DD
7388 echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6
2abefe3d 7390fi
1c710c3c 7391
2abefe3d
PB
7392 fi
7393 test -n "$ac_cv_prog_LIPO" && break
7394done
7395
7396if test -z "$ac_cv_prog_LIPO" ; then
7397 set dummy lipo
7398 if test $build = $host ; then
7399 LIPO="$2"
7400 else
7401 LIPO="${ncn_tool_prefix}$2"
7402 fi
7403fi
7404
278a7a38
AO
7405
7406
7407if test -n "$NM"; then
7408 ac_cv_prog_NM=$NM
7409elif test -n "$ac_cv_prog_NM"; then
7410 NM=$ac_cv_prog_NM
7411fi
7412
7413if test -n "$ac_cv_prog_NM"; then
7414 for ncn_progname in nm; do
7415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7416set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7417echo "$as_me:$LINENO: checking for $ac_word" >&5
7418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7419if test "${ac_cv_prog_NM+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7421else
7422 if test -n "$NM"; then
7423 ac_cv_prog_NM="$NM" # Let the user override the test.
7424else
1c710c3c
DJ
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7432 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436done
7437done
7438
ca9f4b81
AO
7439fi
7440fi
1c710c3c 7441NM=$ac_cv_prog_NM
ca9f4b81 7442if test -n "$NM"; then
2aeb72e9
DD
7443 echo "$as_me:$LINENO: result: $NM" >&5
7444echo "${ECHO_T}$NM" >&6
ca9f4b81 7445else
2aeb72e9
DD
7446 echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6
ca9f4b81
AO
7448fi
7449
278a7a38
AO
7450 done
7451fi
7452
7453for ncn_progname in nm; do
7454 if test -n "$ncn_tool_prefix"; then
7455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7456set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7457echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7459if test "${ac_cv_prog_NM+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7461else
2693c0b0
PB
7462 if test -n "$NM"; then
7463 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7464else
1c710c3c
DJ
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7472 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476done
7477done
7478
ca9f4b81
AO
7479fi
7480fi
1c710c3c 7481NM=$ac_cv_prog_NM
2693c0b0 7482if test -n "$NM"; then
2aeb72e9
DD
7483 echo "$as_me:$LINENO: result: $NM" >&5
7484echo "${ECHO_T}$NM" >&6
ca9f4b81 7485else
2aeb72e9
DD
7486 echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6
ca9f4b81 7488fi
1c710c3c 7489
2693c0b0 7490 fi
278a7a38
AO
7491 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7493set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7494echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7496if test "${ac_cv_prog_NM+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499 if test -n "$NM"; then
7500 ac_cv_prog_NM="$NM" # Let the user override the test.
7501else
7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7509 ac_cv_prog_NM="${ncn_progname}"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513done
7514done
7515
7516fi
7517fi
7518NM=$ac_cv_prog_NM
7519if test -n "$NM"; then
2aeb72e9
DD
7520 echo "$as_me:$LINENO: result: $NM" >&5
7521echo "${ECHO_T}$NM" >&6
278a7a38 7522else
2aeb72e9
DD
7523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
278a7a38
AO
7525fi
7526
7527 fi
7528 test -n "$ac_cv_prog_NM" && break
7529done
7530
7531if test -z "$ac_cv_prog_NM" ; then
7532 set dummy nm
7533 if test $build = $host ; then
7534 NM="$2"
7535 else
7536 NM="${ncn_tool_prefix}$2"
7537 fi
7538fi
7539
7540
7541
7542if test -n "$RANLIB"; then
7543 ac_cv_prog_RANLIB=$RANLIB
7544elif test -n "$ac_cv_prog_RANLIB"; then
7545 RANLIB=$ac_cv_prog_RANLIB
7546fi
7547
7548if test -n "$ac_cv_prog_RANLIB"; then
7549 for ncn_progname in ranlib; do
7550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7551set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7552echo "$as_me:$LINENO: checking for $ac_word" >&5
7553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7554if test "${ac_cv_prog_RANLIB+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557 if test -n "$RANLIB"; then
7558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7559else
7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7567 ac_cv_prog_RANLIB="${ncn_progname}"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571done
7572done
7573
7574fi
7575fi
7576RANLIB=$ac_cv_prog_RANLIB
7577if test -n "$RANLIB"; then
2aeb72e9
DD
7578 echo "$as_me:$LINENO: result: $RANLIB" >&5
7579echo "${ECHO_T}$RANLIB" >&6
278a7a38 7580else
2aeb72e9
DD
7581 echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
278a7a38
AO
7583fi
7584
7585 done
7586fi
ca9f4b81 7587
278a7a38 7588for ncn_progname in ranlib; do
2693c0b0
PB
7589 if test -n "$ncn_tool_prefix"; then
7590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7591set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7592echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7594if test "${ac_cv_prog_RANLIB+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7596else
7597 if test -n "$RANLIB"; then
7598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7599else
1c710c3c
DJ
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7607 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7610 fi
7611done
7612done
7613
ca9f4b81
AO
7614fi
7615fi
1c710c3c 7616RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7617if test -n "$RANLIB"; then
2aeb72e9
DD
7618 echo "$as_me:$LINENO: result: $RANLIB" >&5
7619echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7620else
2aeb72e9
DD
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
ca9f4b81
AO
7623fi
7624
2693c0b0
PB
7625 fi
7626 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7628set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7629echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7631if test "${ac_cv_prog_RANLIB+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7633else
2693c0b0
PB
7634 if test -n "$RANLIB"; then
7635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7636else
1c710c3c
DJ
7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7644 ac_cv_prog_RANLIB="${ncn_progname}"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648done
7649done
7650
ca9f4b81
AO
7651fi
7652fi
1c710c3c 7653RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7654if test -n "$RANLIB"; then
2aeb72e9
DD
7655 echo "$as_me:$LINENO: result: $RANLIB" >&5
7656echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7657else
2aeb72e9
DD
7658 echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6
ca9f4b81 7660fi
1c710c3c 7661
ca9f4b81 7662 fi
2693c0b0
PB
7663 test -n "$ac_cv_prog_RANLIB" && break
7664done
7665
7666if test -z "$ac_cv_prog_RANLIB" ; then
7667 RANLIB=":"
ca9f4b81
AO
7668fi
7669
278a7a38
AO
7670
7671
7672if test -n "$STRIP"; then
7673 ac_cv_prog_STRIP=$STRIP
7674elif test -n "$ac_cv_prog_STRIP"; then
7675 STRIP=$ac_cv_prog_STRIP
7676fi
7677
7678if test -n "$ac_cv_prog_STRIP"; then
7679 for ncn_progname in strip; do
7680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7681set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7682echo "$as_me:$LINENO: checking for $ac_word" >&5
7683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7684if test "${ac_cv_prog_STRIP+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687 if test -n "$STRIP"; then
7688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7697 ac_cv_prog_STRIP="${ncn_progname}"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701done
7702done
7703
7704fi
7705fi
7706STRIP=$ac_cv_prog_STRIP
7707if test -n "$STRIP"; then
2aeb72e9
DD
7708 echo "$as_me:$LINENO: result: $STRIP" >&5
7709echo "${ECHO_T}$STRIP" >&6
278a7a38 7710else
2aeb72e9
DD
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
278a7a38
AO
7713fi
7714
7715 done
7716fi
7717
7718for ncn_progname in strip; do
2abefe3d
PB
7719 if test -n "$ncn_tool_prefix"; then
7720 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7721set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7722echo "$as_me:$LINENO: checking for $ac_word" >&5
7723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7724if test "${ac_cv_prog_STRIP+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7726else
7727 if test -n "$STRIP"; then
7728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7729else
1c710c3c
DJ
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7737 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 break 2
7740 fi
7741done
7742done
7743
2abefe3d
PB
7744fi
7745fi
1c710c3c 7746STRIP=$ac_cv_prog_STRIP
2abefe3d 7747if test -n "$STRIP"; then
2aeb72e9
DD
7748 echo "$as_me:$LINENO: result: $STRIP" >&5
7749echo "${ECHO_T}$STRIP" >&6
2abefe3d 7750else
2aeb72e9
DD
7751 echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6
2abefe3d
PB
7753fi
7754
7755 fi
7756 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7758set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7759echo "$as_me:$LINENO: checking for $ac_word" >&5
7760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7761if test "${ac_cv_prog_STRIP+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7763else
7764 if test -n "$STRIP"; then
7765 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7766else
1c710c3c
DJ
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7774 ac_cv_prog_STRIP="${ncn_progname}"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778done
7779done
7780
2abefe3d
PB
7781fi
7782fi
1c710c3c 7783STRIP=$ac_cv_prog_STRIP
2abefe3d 7784if test -n "$STRIP"; then
2aeb72e9
DD
7785 echo "$as_me:$LINENO: result: $STRIP" >&5
7786echo "${ECHO_T}$STRIP" >&6
2abefe3d 7787else
2aeb72e9
DD
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
2abefe3d 7790fi
1c710c3c 7791
2abefe3d
PB
7792 fi
7793 test -n "$ac_cv_prog_STRIP" && break
7794done
7795
7796if test -z "$ac_cv_prog_STRIP" ; then
7797 STRIP=":"
7798fi
7799
278a7a38
AO
7800
7801
7802if test -n "$WINDRES"; then
7803 ac_cv_prog_WINDRES=$WINDRES
7804elif test -n "$ac_cv_prog_WINDRES"; then
7805 WINDRES=$ac_cv_prog_WINDRES
7806fi
7807
7808if test -n "$ac_cv_prog_WINDRES"; then
7809 for ncn_progname in windres; do
7810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7811set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7812echo "$as_me:$LINENO: checking for $ac_word" >&5
7813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7814if test "${ac_cv_prog_WINDRES+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816else
7817 if test -n "$WINDRES"; then
7818 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7827 ac_cv_prog_WINDRES="${ncn_progname}"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832done
7833
7834fi
7835fi
7836WINDRES=$ac_cv_prog_WINDRES
7837if test -n "$WINDRES"; then
2aeb72e9
DD
7838 echo "$as_me:$LINENO: result: $WINDRES" >&5
7839echo "${ECHO_T}$WINDRES" >&6
278a7a38 7840else
2aeb72e9
DD
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
278a7a38
AO
7843fi
7844
7845 done
7846fi
7847
7848for ncn_progname in windres; do
2693c0b0
PB
7849 if test -n "$ncn_tool_prefix"; then
7850 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7851set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7852echo "$as_me:$LINENO: checking for $ac_word" >&5
7853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7854if test "${ac_cv_prog_WINDRES+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7856else
7857 if test -n "$WINDRES"; then
7858 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7859else
1c710c3c
DJ
7860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7867 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871done
7872done
7873
ca9f4b81
AO
7874fi
7875fi
1c710c3c 7876WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7877if test -n "$WINDRES"; then
2aeb72e9
DD
7878 echo "$as_me:$LINENO: result: $WINDRES" >&5
7879echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7880else
2aeb72e9
DD
7881 echo "$as_me:$LINENO: result: no" >&5
7882echo "${ECHO_T}no" >&6
ca9f4b81
AO
7883fi
7884
2693c0b0
PB
7885 fi
7886 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7888set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7889echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7891if test "${ac_cv_prog_WINDRES+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7893else
2693c0b0
PB
7894 if test -n "$WINDRES"; then
7895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7896else
1c710c3c
DJ
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7904 ac_cv_prog_WINDRES="${ncn_progname}"
7905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909done
7910
ca9f4b81
AO
7911fi
7912fi
1c710c3c 7913WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7914if test -n "$WINDRES"; then
2aeb72e9
DD
7915 echo "$as_me:$LINENO: result: $WINDRES" >&5
7916echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7917else
2aeb72e9
DD
7918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
ca9f4b81 7920fi
1c710c3c 7921
2693c0b0
PB
7922 fi
7923 test -n "$ac_cv_prog_WINDRES" && break
7924done
7925
7926if test -z "$ac_cv_prog_WINDRES" ; then
7927 set dummy windres
7928 if test $build = $host ; then
7929 WINDRES="$2"
ca9f4b81 7930 else
2693c0b0 7931 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7932 fi
ca9f4b81
AO
7933fi
7934
278a7a38
AO
7935
7936
901119ae
KT
7937if test -n "$WINDMC"; then
7938 ac_cv_prog_WINDMC=$WINDMC
7939elif test -n "$ac_cv_prog_WINDMC"; then
7940 WINDMC=$ac_cv_prog_WINDMC
7941fi
7942
7943if test -n "$ac_cv_prog_WINDMC"; then
7944 for ncn_progname in windmc; do
7945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7946set dummy ${ncn_progname}; ac_word=$2
7947echo "$as_me:$LINENO: checking for $ac_word" >&5
7948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7949if test "${ac_cv_prog_WINDMC+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951else
7952 if test -n "$WINDMC"; then
7953 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7954else
7955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_WINDMC="${ncn_progname}"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966done
7967done
7968
7969fi
7970fi
7971WINDMC=$ac_cv_prog_WINDMC
7972if test -n "$WINDMC"; then
7973 echo "$as_me:$LINENO: result: $WINDMC" >&5
7974echo "${ECHO_T}$WINDMC" >&6
7975else
7976 echo "$as_me:$LINENO: result: no" >&5
7977echo "${ECHO_T}no" >&6
7978fi
7979
7980 done
7981fi
7982
7983for ncn_progname in windmc; do
7984 if test -n "$ncn_tool_prefix"; then
7985 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7986set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7987echo "$as_me:$LINENO: checking for $ac_word" >&5
7988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7989if test "${ac_cv_prog_WINDMC+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992 if test -n "$WINDMC"; then
7993 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7994else
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006done
8007done
8008
8009fi
8010fi
8011WINDMC=$ac_cv_prog_WINDMC
8012if test -n "$WINDMC"; then
8013 echo "$as_me:$LINENO: result: $WINDMC" >&5
8014echo "${ECHO_T}$WINDMC" >&6
8015else
8016 echo "$as_me:$LINENO: result: no" >&5
8017echo "${ECHO_T}no" >&6
8018fi
8019
8020 fi
8021 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8023set dummy ${ncn_progname}; ac_word=$2
8024echo "$as_me:$LINENO: checking for $ac_word" >&5
8025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8026if test "${ac_cv_prog_WINDMC+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029 if test -n "$WINDMC"; then
8030 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039 ac_cv_prog_WINDMC="${ncn_progname}"
8040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043done
8044done
8045
8046fi
8047fi
8048WINDMC=$ac_cv_prog_WINDMC
8049if test -n "$WINDMC"; then
8050 echo "$as_me:$LINENO: result: $WINDMC" >&5
8051echo "${ECHO_T}$WINDMC" >&6
8052else
8053 echo "$as_me:$LINENO: result: no" >&5
8054echo "${ECHO_T}no" >&6
8055fi
8056
8057 fi
8058 test -n "$ac_cv_prog_WINDMC" && break
8059done
8060
8061if test -z "$ac_cv_prog_WINDMC" ; then
8062 set dummy windmc
8063 if test $build = $host ; then
8064 WINDMC="$2"
8065 else
8066 WINDMC="${ncn_tool_prefix}$2"
8067 fi
8068fi
8069
8070
8071
278a7a38
AO
8072if test -n "$OBJCOPY"; then
8073 ac_cv_prog_OBJCOPY=$OBJCOPY
8074elif test -n "$ac_cv_prog_OBJCOPY"; then
8075 OBJCOPY=$ac_cv_prog_OBJCOPY
8076fi
8077
8078if test -n "$ac_cv_prog_OBJCOPY"; then
8079 for ncn_progname in objcopy; do
8080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8081set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8082echo "$as_me:$LINENO: checking for $ac_word" >&5
8083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8084if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086else
8087 if test -n "$OBJCOPY"; then
8088 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8089else
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8097 ac_cv_prog_OBJCOPY="${ncn_progname}"
8098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8100 fi
8101done
8102done
8103
8104fi
8105fi
8106OBJCOPY=$ac_cv_prog_OBJCOPY
8107if test -n "$OBJCOPY"; then
2aeb72e9
DD
8108 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8109echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 8110else
2aeb72e9
DD
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
278a7a38
AO
8113fi
8114
8115 done
8116fi
8117
8118for ncn_progname in objcopy; do
2693c0b0
PB
8119 if test -n "$ncn_tool_prefix"; then
8120 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8121set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8122echo "$as_me:$LINENO: checking for $ac_word" >&5
8123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8124if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8126else
8127 if test -n "$OBJCOPY"; then
8128 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8129else
1c710c3c
DJ
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8137 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8140 fi
8141done
8142done
8143
ca9f4b81
AO
8144fi
8145fi
1c710c3c 8146OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8147if test -n "$OBJCOPY"; then
2aeb72e9
DD
8148 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8149echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8150else
2aeb72e9
DD
8151 echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6
ca9f4b81
AO
8153fi
8154
2693c0b0
PB
8155 fi
8156 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8158set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8159echo "$as_me:$LINENO: checking for $ac_word" >&5
8160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8161if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8163else
2693c0b0
PB
8164 if test -n "$OBJCOPY"; then
8165 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8166else
1c710c3c
DJ
8167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8174 ac_cv_prog_OBJCOPY="${ncn_progname}"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180
ca9f4b81
AO
8181fi
8182fi
1c710c3c 8183OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8184if test -n "$OBJCOPY"; then
2aeb72e9
DD
8185 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8186echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8187else
2aeb72e9
DD
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
ca9f4b81 8190fi
1c710c3c 8191
2693c0b0
PB
8192 fi
8193 test -n "$ac_cv_prog_OBJCOPY" && break
8194done
8195
8196if test -z "$ac_cv_prog_OBJCOPY" ; then
8197 set dummy objcopy
8198 if test $build = $host ; then
8199 OBJCOPY="$2"
ca9f4b81 8200 else
2693c0b0 8201 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8202 fi
ca9f4b81
AO
8203fi
8204
278a7a38
AO
8205
8206
8207if test -n "$OBJDUMP"; then
8208 ac_cv_prog_OBJDUMP=$OBJDUMP
8209elif test -n "$ac_cv_prog_OBJDUMP"; then
8210 OBJDUMP=$ac_cv_prog_OBJDUMP
8211fi
8212
8213if test -n "$ac_cv_prog_OBJDUMP"; then
8214 for ncn_progname in objdump; do
8215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8217echo "$as_me:$LINENO: checking for $ac_word" >&5
8218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8219if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 if test -n "$OBJDUMP"; then
8223 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8232 ac_cv_prog_OBJDUMP="${ncn_progname}"
8233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236done
8237done
8238
8239fi
8240fi
8241OBJDUMP=$ac_cv_prog_OBJDUMP
8242if test -n "$OBJDUMP"; then
2aeb72e9
DD
8243 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8244echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 8245else
2aeb72e9
DD
8246 echo "$as_me:$LINENO: result: no" >&5
8247echo "${ECHO_T}no" >&6
278a7a38
AO
8248fi
8249
8250 done
8251fi
8252
8253for ncn_progname in objdump; do
2693c0b0
PB
8254 if test -n "$ncn_tool_prefix"; then
8255 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8256set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8257echo "$as_me:$LINENO: checking for $ac_word" >&5
8258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8259if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8261else
8262 if test -n "$OBJDUMP"; then
8263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8264else
1c710c3c
DJ
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8272 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8275 fi
8276done
8277done
8278
ca9f4b81
AO
8279fi
8280fi
1c710c3c 8281OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8282if test -n "$OBJDUMP"; then
2aeb72e9
DD
8283 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8284echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8285else
2aeb72e9
DD
8286 echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6
ca9f4b81
AO
8288fi
8289
2693c0b0
PB
8290 fi
8291 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8293set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8294echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8296if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8298else
2693c0b0
PB
8299 if test -n "$OBJDUMP"; then
8300 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8301else
1c710c3c
DJ
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8309 ac_cv_prog_OBJDUMP="${ncn_progname}"
8310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313done
8314done
8315
ca9f4b81
AO
8316fi
8317fi
1c710c3c 8318OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8319if test -n "$OBJDUMP"; then
2aeb72e9
DD
8320 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8321echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8322else
2aeb72e9
DD
8323 echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6
ca9f4b81 8325fi
1c710c3c 8326
2693c0b0
PB
8327 fi
8328 test -n "$ac_cv_prog_OBJDUMP" && break
8329done
8330
8331if test -z "$ac_cv_prog_OBJDUMP" ; then
8332 set dummy objdump
8333 if test $build = $host ; then
8334 OBJDUMP="$2"
ca9f4b81 8335 else
2693c0b0 8336 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8337 fi
ca9f4b81
AO
8338fi
8339
671aa708
NN
8340
8341
8342
8343
8344
2abefe3d 8345# Target tools.
1c710c3c 8346
2aeb72e9 8347# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 8348if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
8349 withval="$with_build_time_tools"
8350 case x"$withval" in
e8b05380
PB
8351 x/*) ;;
8352 *)
8353 with_build_time_tools=
1c710c3c
DJ
8354 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8355echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8356 ;;
8357 esac
ca9f4b81 8358else
e8b05380 8359 with_build_time_tools=
2aeb72e9 8360fi;
ca9f4b81 8361
278a7a38
AO
8362
8363
8364if test -n "$CC_FOR_TARGET"; then
8365 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8366elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8367 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8368fi
8369
8370if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8371 for ncn_progname in cc gcc; do
8372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8373set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8374echo "$as_me:$LINENO: checking for $ac_word" >&5
8375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8376if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 if test -n "$CC_FOR_TARGET"; then
8380 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8381else
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8389 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393done
8394done
8395
8396fi
8397fi
8398CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8399if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8400 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8401echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8402else
2aeb72e9
DD
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
278a7a38
AO
8405fi
8406
8407 done
8408fi
8409
8410if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8411 for ncn_progname in cc gcc; do
2aeb72e9
DD
8412 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8413echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8414 if test -x $with_build_time_tools/${ncn_progname}; then
8415 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8416 echo "$as_me:$LINENO: result: yes" >&5
8417echo "${ECHO_T}yes" >&6
72a7ab82 8418 break
e8b05380 8419 else
2aeb72e9
DD
8420 echo "$as_me:$LINENO: result: no" >&5
8421echo "${ECHO_T}no" >&6
72a7ab82
AP
8422 fi
8423 done
4de997d1
PB
8424fi
8425
e8b05380
PB
8426if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8427 for ncn_progname in cc gcc; do
8428 if test -n "$ncn_target_tool_prefix"; then
8429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8430set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8431echo "$as_me:$LINENO: checking for $ac_word" >&5
8432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8433if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8435else
8436 if test -n "$CC_FOR_TARGET"; then
8437 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8438else
1c710c3c
DJ
8439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8446 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450done
8451done
8452
4de997d1
PB
8453fi
8454fi
1c710c3c 8455CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8456if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8457 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8458echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8459else
2aeb72e9
DD
8460 echo "$as_me:$LINENO: result: no" >&5
8461echo "${ECHO_T}no" >&6
4de997d1
PB
8462fi
8463
e8b05380
PB
8464 fi
8465 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8467set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8468echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8470if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8472else
2693c0b0
PB
8473 if test -n "$CC_FOR_TARGET"; then
8474 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8475else
1c710c3c
DJ
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8483 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487done
8488done
8489
4de997d1
PB
8490fi
8491fi
1c710c3c 8492CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8493if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8494 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8495echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8496else
2aeb72e9
DD
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
4de997d1 8499fi
1c710c3c 8500
e8b05380
PB
8501 fi
8502 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8503 done
8504fi
1c710c3c 8505
2693c0b0
PB
8506if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8507 set dummy cc gcc
8508 if test $build = $target ; then
8509 CC_FOR_TARGET="$2"
4de997d1 8510 else
2693c0b0 8511 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8512 fi
1c00b503
PB
8513else
8514 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8515fi
8516
278a7a38
AO
8517
8518
8519if test -n "$CXX_FOR_TARGET"; then
8520 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8521elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8522 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8523fi
8524
8525if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8526 for ncn_progname in c++ g++ cxx gxx; do
8527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8528set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8529echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8531if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534 if test -n "$CXX_FOR_TARGET"; then
8535 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8536else
8537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538for as_dir in $PATH
8539do
8540 IFS=$as_save_IFS
8541 test -z "$as_dir" && as_dir=.
8542 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8544 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 break 2
8547 fi
8548done
8549done
8550
8551fi
8552fi
8553CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8554if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8555 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8556echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8557else
2aeb72e9
DD
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
278a7a38
AO
8560fi
8561
8562 done
8563fi
8564
8565if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8566 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8567 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8568echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8569 if test -x $with_build_time_tools/${ncn_progname}; then
8570 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8571 echo "$as_me:$LINENO: result: yes" >&5
8572echo "${ECHO_T}yes" >&6
e8b05380
PB
8573 break
8574 else
2aeb72e9
DD
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
e8b05380
PB
8577 fi
8578 done
8579fi
8580
8581if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8582 for ncn_progname in c++ g++ cxx gxx; do
8583 if test -n "$ncn_target_tool_prefix"; then
8584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8585set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8586echo "$as_me:$LINENO: checking for $ac_word" >&5
8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8588if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8590else
8591 if test -n "$CXX_FOR_TARGET"; then
8592 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8593else
1c710c3c
DJ
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8601 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606done
8607
4de997d1
PB
8608fi
8609fi
1c710c3c 8610CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8611if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8612 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8613echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8614else
2aeb72e9
DD
8615 echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6
4de997d1
PB
8617fi
8618
e8b05380
PB
8619 fi
8620 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8622set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8623echo "$as_me:$LINENO: checking for $ac_word" >&5
8624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8625if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8627else
2693c0b0
PB
8628 if test -n "$CXX_FOR_TARGET"; then
8629 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8630else
1c710c3c
DJ
8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632for as_dir in $PATH
8633do
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8638 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8641 fi
8642done
8643done
8644
4de997d1
PB
8645fi
8646fi
1c710c3c 8647CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8648if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8649 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8650echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8651else
2aeb72e9
DD
8652 echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6
4de997d1 8654fi
1c710c3c 8655
e8b05380
PB
8656 fi
8657 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8658 done
8659fi
1c710c3c 8660
2693c0b0
PB
8661if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8662 set dummy c++ g++ cxx gxx
8663 if test $build = $target ; then
8664 CXX_FOR_TARGET="$2"
4de997d1 8665 else
2693c0b0 8666 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8667 fi
1c00b503
PB
8668else
8669 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8670fi
8671
278a7a38
AO
8672
8673
8674if test -n "$GCC_FOR_TARGET"; then
8675 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8676elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8677 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8678fi
8679
8680if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8681 for ncn_progname in gcc; do
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8684echo "$as_me:$LINENO: checking for $ac_word" >&5
8685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8686if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 if test -n "$GCC_FOR_TARGET"; then
8690 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8699 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703done
8704done
8705
8706fi
8707fi
8708GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8709if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8710 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8711echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8712else
2aeb72e9
DD
8713 echo "$as_me:$LINENO: result: no" >&5
8714echo "${ECHO_T}no" >&6
278a7a38
AO
8715fi
8716
8717 done
8718fi
8719
8720if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8721 for ncn_progname in gcc; do
2aeb72e9
DD
8722 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8723echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8724 if test -x $with_build_time_tools/${ncn_progname}; then
8725 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
e8b05380
PB
8728 break
8729 else
2aeb72e9
DD
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
e8b05380
PB
8732 fi
8733 done
8734fi
8735
8736if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8737 for ncn_progname in gcc; do
8738 if test -n "$ncn_target_tool_prefix"; then
8739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8740set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8741echo "$as_me:$LINENO: checking for $ac_word" >&5
8742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8743if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8745else
e8b05380
PB
8746 if test -n "$GCC_FOR_TARGET"; then
8747 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8748else
1c710c3c
DJ
8749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750for as_dir in $PATH
8751do
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
8754 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8756 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 break 2
8759 fi
8760done
8761done
8762
ca9f4b81
AO
8763fi
8764fi
1c710c3c 8765GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8766if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8767 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8768echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8769else
2aeb72e9
DD
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
ca9f4b81
AO
8772fi
8773
e8b05380
PB
8774 fi
8775 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8777set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8778echo "$as_me:$LINENO: checking for $ac_word" >&5
8779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8780if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8782else
e8b05380
PB
8783 if test -n "$GCC_FOR_TARGET"; then
8784 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8785else
1c710c3c
DJ
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8793 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8796 fi
8797done
8798done
8799
ca9f4b81
AO
8800fi
8801fi
1c710c3c 8802GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8803if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8804 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8805echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8806else
2aeb72e9
DD
8807 echo "$as_me:$LINENO: result: no" >&5
8808echo "${ECHO_T}no" >&6
ca9f4b81 8809fi
1c710c3c 8810
e8b05380
PB
8811 fi
8812 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8813 done
8814fi
1c710c3c 8815
e8b05380
PB
8816if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8817 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8818else
8819 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8820fi
8821
278a7a38
AO
8822
8823
8824if test -n "$GCJ_FOR_TARGET"; then
8825 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8826elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8827 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8828fi
8829
8830if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8831 for ncn_progname in gcj; do
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8834echo "$as_me:$LINENO: checking for $ac_word" >&5
8835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8836if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8838else
8839 if test -n "$GCJ_FOR_TARGET"; then
8840 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8849 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8852 fi
8853done
8854done
8855
8856fi
8857fi
8858GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8859if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8860 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8861echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8862else
2aeb72e9
DD
8863 echo "$as_me:$LINENO: result: no" >&5
8864echo "${ECHO_T}no" >&6
278a7a38
AO
8865fi
8866
8867 done
8868fi
8869
8870if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8871 for ncn_progname in gcj; do
2aeb72e9
DD
8872 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8873echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8874 if test -x $with_build_time_tools/${ncn_progname}; then
8875 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8876 echo "$as_me:$LINENO: result: yes" >&5
8877echo "${ECHO_T}yes" >&6
e8b05380
PB
8878 break
8879 else
2aeb72e9
DD
8880 echo "$as_me:$LINENO: result: no" >&5
8881echo "${ECHO_T}no" >&6
e8b05380
PB
8882 fi
8883 done
8884fi
8885
8886if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8887 for ncn_progname in gcj; do
8888 if test -n "$ncn_target_tool_prefix"; then
8889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8890set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8891echo "$as_me:$LINENO: checking for $ac_word" >&5
8892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8893if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8895else
fb0103e5
RG
8896 if test -n "$GCJ_FOR_TARGET"; then
8897 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8898else
1c710c3c
DJ
8899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900for as_dir in $PATH
8901do
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8906 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8909 fi
8910done
8911done
8912
e8b05380
PB
8913fi
8914fi
278a7a38
AO
8915GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8916if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8917 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8918echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8919else
2aeb72e9
DD
8920 echo "$as_me:$LINENO: result: no" >&5
8921echo "${ECHO_T}no" >&6
278a7a38
AO
8922fi
8923
8924 fi
8925 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8928echo "$as_me:$LINENO: checking for $ac_word" >&5
8929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8930if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933 if test -n "$GCJ_FOR_TARGET"; then
8934 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8943 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947done
8948done
8949
8950fi
8951fi
8952GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8953if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8954 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8955echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8956else
2aeb72e9
DD
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
278a7a38
AO
8959fi
8960
8961 fi
8962 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8963 done
8964fi
8965
8966if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8967 set dummy gcj
8968 if test $build = $target ; then
8969 GCJ_FOR_TARGET="$2"
8970 else
8971 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8972 fi
1c00b503
PB
8973else
8974 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8975fi
8976
8977
8978
8979if test -n "$GFORTRAN_FOR_TARGET"; then
8980 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8981elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8982 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8983fi
8984
278a7a38
AO
8985if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8986 for ncn_progname in gfortran; do
8987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8988set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8989echo "$as_me:$LINENO: checking for $ac_word" >&5
8990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8991if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8992 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8993else
278a7a38
AO
8994 if test -n "$GFORTRAN_FOR_TARGET"; then
8995 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8996else
1c710c3c
DJ
8997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998for as_dir in $PATH
8999do
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9004 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008done
9009done
9010
e8b05380
PB
9011fi
9012fi
278a7a38
AO
9013GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9014if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9015 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9016echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9017else
2aeb72e9
DD
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
e8b05380 9020fi
1c710c3c 9021
e8b05380
PB
9022 done
9023fi
1c710c3c 9024
278a7a38 9025if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9026 for ncn_progname in gfortran; do
2aeb72e9
DD
9027 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9028echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9029 if test -x $with_build_time_tools/${ncn_progname}; then
9030 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9031 echo "$as_me:$LINENO: result: yes" >&5
9032echo "${ECHO_T}yes" >&6
e8b05380
PB
9033 break
9034 else
2aeb72e9
DD
9035 echo "$as_me:$LINENO: result: no" >&5
9036echo "${ECHO_T}no" >&6
e8b05380
PB
9037 fi
9038 done
9039fi
9040
9041if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9042 for ncn_progname in gfortran; do
9043 if test -n "$ncn_target_tool_prefix"; then
9044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9045set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9046echo "$as_me:$LINENO: checking for $ac_word" >&5
9047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9048if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9050else
9051 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9052 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9053else
9054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055for as_dir in $PATH
9056do
9057 IFS=$as_save_IFS
9058 test -z "$as_dir" && as_dir=.
9059 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9061 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9063 break 2
9064 fi
9065done
9066done
9067
e8b05380
PB
9068fi
9069fi
1c710c3c 9070GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9071if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9072 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9073echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9074else
2aeb72e9
DD
9075 echo "$as_me:$LINENO: result: no" >&5
9076echo "${ECHO_T}no" >&6
e8b05380
PB
9077fi
9078
9079 fi
9080 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9082set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9083echo "$as_me:$LINENO: checking for $ac_word" >&5
9084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9085if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9087else
9088 if test -n "$GFORTRAN_FOR_TARGET"; then
9089 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9090else
1c710c3c
DJ
9091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092for as_dir in $PATH
9093do
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9098 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 break 2
9101 fi
9102done
9103done
9104
e8b05380
PB
9105fi
9106fi
1c710c3c 9107GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9108if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9109 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9110echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9111else
2aeb72e9
DD
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
e8b05380 9114fi
1c710c3c 9115
e8b05380
PB
9116 fi
9117 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9118 done
9119fi
1c710c3c 9120
e8b05380
PB
9121if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9122 set dummy gfortran
2693c0b0 9123 if test $build = $target ; then
e8b05380 9124 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9125 else
e8b05380
PB
9126 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9127 fi
1c00b503
PB
9128else
9129 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9130fi
9131
9132
9133
e8b05380
PB
9134cat > conftest.c << \EOF
9135#ifdef __GNUC__
9136 gcc_yay;
9137#endif
9138EOF
9139if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9140 have_gcc_for_target=yes
9141else
9142 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9143 have_gcc_for_target=no
9144fi
9145rm conftest.c
9146
9147
9148
9149
9150if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9151 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9152 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9153echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9154 if test -x $with_build_time_tools/ar; then
9155 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9156 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
9157 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9158echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 9159 else
2aeb72e9
DD
9160 echo "$as_me:$LINENO: result: no" >&5
9161echo "${ECHO_T}no" >&6
d1f8db0c 9162 fi
e8b05380
PB
9163 elif test $build != $host && test $have_gcc_for_target = yes; then
9164 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9165 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9166 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9167 fi
9168fi
3e19841a 9169if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9170 # Extract the first word of "ar", so it can be a program name with args.
9171set dummy ar; ac_word=$2
2aeb72e9
DD
9172echo "$as_me:$LINENO: checking for $ac_word" >&5
9173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9174if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9176else
1c710c3c
DJ
9177 case $AR_FOR_TARGET in
9178 [\\/]* | ?:[\\/]*)
e8b05380
PB
9179 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9180 ;;
e8b05380 9181 *)
1c710c3c
DJ
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $gcc_cv_tool_dirs
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9189 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9192 fi
9193done
9194done
9195
e8b05380
PB
9196 ;;
9197esac
9198fi
1c710c3c 9199AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 9200
e8b05380 9201if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9202 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9203echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9204else
2aeb72e9
DD
9205 echo "$as_me:$LINENO: result: no" >&5
9206echo "${ECHO_T}no" >&6
4de997d1
PB
9207fi
9208
e8b05380
PB
9209fi
9210if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9211
9212
9213if test -n "$AR_FOR_TARGET"; then
9214 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9215elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9216 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9217fi
9218
9219if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9220 for ncn_progname in ar; do
9221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9222set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9223echo "$as_me:$LINENO: checking for $ac_word" >&5
9224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9225if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227else
9228 if test -n "$AR_FOR_TARGET"; then
9229 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9230else
9231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232for as_dir in $PATH
9233do
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9238 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9240 break 2
9241 fi
9242done
9243done
9244
9245fi
9246fi
9247AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9248if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9249 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9250echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 9251else
2aeb72e9
DD
9252 echo "$as_me:$LINENO: result: no" >&5
9253echo "${ECHO_T}no" >&6
278a7a38
AO
9254fi
9255
9256 done
9257fi
9258
9259if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9260 for ncn_progname in ar; do
2aeb72e9
DD
9261 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9262echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9263 if test -x $with_build_time_tools/${ncn_progname}; then
9264 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9265 echo "$as_me:$LINENO: result: yes" >&5
9266echo "${ECHO_T}yes" >&6
e8b05380
PB
9267 break
9268 else
2aeb72e9
DD
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
e8b05380
PB
9271 fi
9272 done
9273fi
9274
9275if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9276 for ncn_progname in ar; do
9277 if test -n "$ncn_target_tool_prefix"; then
9278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9279set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9280echo "$as_me:$LINENO: checking for $ac_word" >&5
9281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9282if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9284else
e8b05380
PB
9285 if test -n "$AR_FOR_TARGET"; then
9286 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9287else
1c710c3c
DJ
9288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289for as_dir in $PATH
9290do
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9295 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9298 fi
9299done
9300done
9301
4de997d1
PB
9302fi
9303fi
1c710c3c 9304AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9305if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9306 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9307echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 9308else
2aeb72e9
DD
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
4de997d1
PB
9311fi
9312
e8b05380
PB
9313 fi
9314 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9316set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9317echo "$as_me:$LINENO: checking for $ac_word" >&5
9318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9319if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9321else
9322 if test -n "$AR_FOR_TARGET"; then
9323 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9324else
1c710c3c
DJ
9325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326for as_dir in $PATH
9327do
9328 IFS=$as_save_IFS
9329 test -z "$as_dir" && as_dir=.
9330 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9332 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9334 break 2
9335 fi
9336done
9337done
9338
e8b05380
PB
9339fi
9340fi
1c710c3c 9341AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9342if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9343 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9344echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9345else
2aeb72e9
DD
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
e8b05380 9348fi
1c710c3c 9349
e8b05380
PB
9350 fi
9351 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9352 done
9353fi
1c710c3c 9354
e8b05380
PB
9355if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9356 set dummy ar
9357 if test $build = $target ; then
9358 AR_FOR_TARGET="$2"
9359 else
9360 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9361 fi
1c00b503
PB
9362else
9363 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
9364fi
9365
d1f8db0c
PB
9366else
9367 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9368fi
9369
9370
9371
9372
9373if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9374 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9375 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9376echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9377 if test -x $with_build_time_tools/as; then
9378 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9379 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9380 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9381echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9382 else
2aeb72e9
DD
9383 echo "$as_me:$LINENO: result: no" >&5
9384echo "${ECHO_T}no" >&6
d1f8db0c 9385 fi
e8b05380
PB
9386 elif test $build != $host && test $have_gcc_for_target = yes; then
9387 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9388 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9389 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9390 fi
9391fi
3e19841a 9392if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9393 # Extract the first word of "as", so it can be a program name with args.
9394set dummy as; ac_word=$2
2aeb72e9
DD
9395echo "$as_me:$LINENO: checking for $ac_word" >&5
9396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9397if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9399else
1c710c3c
DJ
9400 case $AS_FOR_TARGET in
9401 [\\/]* | ?:[\\/]*)
e8b05380
PB
9402 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9403 ;;
e8b05380 9404 *)
1c710c3c
DJ
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406for as_dir in $gcc_cv_tool_dirs
9407do
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9412 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9415 fi
9416done
9417done
9418
e8b05380
PB
9419 ;;
9420esac
9421fi
1c710c3c 9422AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9423
e8b05380 9424if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9425 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9426echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9427else
2aeb72e9
DD
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
e8b05380
PB
9430fi
9431
9432fi
9433if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9434
9435
9436if test -n "$AS_FOR_TARGET"; then
9437 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9438elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9439 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9440fi
9441
9442if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9443 for ncn_progname in as; do
9444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9445set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9446echo "$as_me:$LINENO: checking for $ac_word" >&5
9447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9448if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9450else
9451 if test -n "$AS_FOR_TARGET"; then
9452 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9453else
9454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455for as_dir in $PATH
9456do
9457 IFS=$as_save_IFS
9458 test -z "$as_dir" && as_dir=.
9459 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9461 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9463 break 2
9464 fi
9465done
9466done
9467
9468fi
9469fi
9470AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9471if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9472 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9473echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9474else
2aeb72e9
DD
9475 echo "$as_me:$LINENO: result: no" >&5
9476echo "${ECHO_T}no" >&6
278a7a38
AO
9477fi
9478
9479 done
9480fi
9481
9482if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9483 for ncn_progname in as; do
2aeb72e9
DD
9484 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9485echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9486 if test -x $with_build_time_tools/${ncn_progname}; then
9487 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9488 echo "$as_me:$LINENO: result: yes" >&5
9489echo "${ECHO_T}yes" >&6
e8b05380
PB
9490 break
9491 else
2aeb72e9
DD
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
e8b05380
PB
9494 fi
9495 done
9496fi
9497
9498if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9499 for ncn_progname in as; do
9500 if test -n "$ncn_target_tool_prefix"; then
9501 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9502set dummy ${ncn_target_tool_prefix}${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_AS_FOR_TARGET+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9507else
9508 if test -n "$AS_FOR_TARGET"; then
9509 ac_cv_prog_AS_FOR_TARGET="$AS_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_AS_FOR_TARGET="${ncn_target_tool_prefix}${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 9527AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9528if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9529 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9530echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9531else
2aeb72e9
DD
9532 echo "$as_me:$LINENO: result: no" >&5
9533echo "${ECHO_T}no" >&6
e8b05380
PB
9534fi
9535
9536 fi
9537 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9539set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9540echo "$as_me:$LINENO: checking for $ac_word" >&5
9541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9542if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9544else
e8b05380
PB
9545 if test -n "$AS_FOR_TARGET"; then
9546 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9547else
1c710c3c
DJ
9548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549for as_dir in $PATH
9550do
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9555 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9558 fi
9559done
9560done
9561
4de997d1
PB
9562fi
9563fi
1c710c3c 9564AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9565if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9566 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9567echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9568else
2aeb72e9
DD
9569 echo "$as_me:$LINENO: result: no" >&5
9570echo "${ECHO_T}no" >&6
4de997d1 9571fi
1c710c3c 9572
e8b05380
PB
9573 fi
9574 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9575 done
9576fi
1c710c3c 9577
e8b05380
PB
9578if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9579 set dummy as
9580 if test $build = $target ; then
9581 AS_FOR_TARGET="$2"
9582 else
9583 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9584 fi
1c00b503
PB
9585else
9586 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9587fi
2693c0b0 9588
d1f8db0c
PB
9589else
9590 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9591fi
9592
e8b05380
PB
9593
9594
9595
9596if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9597 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9598 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9599echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9600 if test -x $with_build_time_tools/dlltool; then
9601 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9602 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9603 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9604echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9605 else
2aeb72e9
DD
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
d1f8db0c 9608 fi
e8b05380
PB
9609 elif test $build != $host && test $have_gcc_for_target = yes; then
9610 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9611 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9612 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9613 fi
9614fi
3e19841a 9615if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9616 # Extract the first word of "dlltool", so it can be a program name with args.
9617set dummy dlltool; ac_word=$2
2aeb72e9
DD
9618echo "$as_me:$LINENO: checking for $ac_word" >&5
9619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9620if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9622else
1c710c3c
DJ
9623 case $DLLTOOL_FOR_TARGET in
9624 [\\/]* | ?:[\\/]*)
e8b05380
PB
9625 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9626 ;;
e8b05380 9627 *)
1c710c3c
DJ
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $gcc_cv_tool_dirs
9630do
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9635 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9638 fi
9639done
9640done
9641
e8b05380
PB
9642 ;;
9643esac
4de997d1 9644fi
1c710c3c 9645DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9646
e8b05380 9647if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9648 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9649echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9650else
2aeb72e9
DD
9651 echo "$as_me:$LINENO: result: no" >&5
9652echo "${ECHO_T}no" >&6
4de997d1
PB
9653fi
9654
e8b05380
PB
9655fi
9656if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9657
9658
9659if test -n "$DLLTOOL_FOR_TARGET"; then
9660 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9661elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9662 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9663fi
9664
9665if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9666 for ncn_progname in dlltool; do
9667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9668set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9669echo "$as_me:$LINENO: checking for $ac_word" >&5
9670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9671if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673else
9674 if test -n "$DLLTOOL_FOR_TARGET"; then
9675 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9676else
9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678for as_dir in $PATH
9679do
9680 IFS=$as_save_IFS
9681 test -z "$as_dir" && as_dir=.
9682 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9684 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9686 break 2
9687 fi
9688done
9689done
9690
9691fi
9692fi
9693DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9694if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9695 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9696echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9697else
2aeb72e9
DD
9698 echo "$as_me:$LINENO: result: no" >&5
9699echo "${ECHO_T}no" >&6
278a7a38
AO
9700fi
9701
9702 done
9703fi
9704
9705if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9706 for ncn_progname in dlltool; do
2aeb72e9
DD
9707 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9708echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9709 if test -x $with_build_time_tools/${ncn_progname}; then
9710 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
e8b05380
PB
9713 break
9714 else
2aeb72e9
DD
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
e8b05380
PB
9717 fi
9718 done
9719fi
9720
9721if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9722 for ncn_progname in dlltool; do
9723 if test -n "$ncn_target_tool_prefix"; then
9724 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9725set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9726echo "$as_me:$LINENO: checking for $ac_word" >&5
9727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9728if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9730else
e8b05380
PB
9731 if test -n "$DLLTOOL_FOR_TARGET"; then
9732 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9733else
1c710c3c
DJ
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9741 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9744 fi
9745done
9746done
9747
4de997d1
PB
9748fi
9749fi
1c710c3c 9750DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9751if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9752 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9753echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9754else
2aeb72e9
DD
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
4de997d1 9757fi
4de997d1 9758
e8b05380
PB
9759 fi
9760 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9762set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9763echo "$as_me:$LINENO: checking for $ac_word" >&5
9764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9765if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9767else
e8b05380
PB
9768 if test -n "$DLLTOOL_FOR_TARGET"; then
9769 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9770else
1c710c3c
DJ
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9778 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783done
9784
4de997d1
PB
9785fi
9786fi
1c710c3c 9787DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9788if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9789 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9790echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9791else
2aeb72e9
DD
9792 echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6
4de997d1 9794fi
1c710c3c 9795
e8b05380
PB
9796 fi
9797 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9798 done
9799fi
1c710c3c 9800
e8b05380
PB
9801if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9802 set dummy dlltool
9803 if test $build = $target ; then
9804 DLLTOOL_FOR_TARGET="$2"
9805 else
9806 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9807 fi
1c00b503
PB
9808else
9809 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9810fi
9811
d1f8db0c
PB
9812else
9813 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9814fi
9815
4de997d1 9816
e8b05380
PB
9817
9818
9819if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9820 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9821 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9822echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9823 if test -x $with_build_time_tools/ld; then
9824 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9825 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9826 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9827echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9828 else
2aeb72e9
DD
9829 echo "$as_me:$LINENO: result: no" >&5
9830echo "${ECHO_T}no" >&6
d1f8db0c 9831 fi
e8b05380
PB
9832 elif test $build != $host && test $have_gcc_for_target = yes; then
9833 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9834 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9835 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9836 fi
e8b05380 9837fi
3e19841a 9838if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9839 # Extract the first word of "ld", so it can be a program name with args.
9840set dummy ld; ac_word=$2
2aeb72e9
DD
9841echo "$as_me:$LINENO: checking for $ac_word" >&5
9842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9843if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9845else
1c710c3c
DJ
9846 case $LD_FOR_TARGET in
9847 [\\/]* | ?:[\\/]*)
e8b05380
PB
9848 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9849 ;;
e8b05380 9850 *)
1c710c3c
DJ
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852for as_dir in $gcc_cv_tool_dirs
9853do
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9858 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9861 fi
9862done
9863done
9864
e8b05380
PB
9865 ;;
9866esac
4de997d1 9867fi
1c710c3c 9868LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9869
e8b05380 9870if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9871 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9872echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9873else
2aeb72e9
DD
9874 echo "$as_me:$LINENO: result: no" >&5
9875echo "${ECHO_T}no" >&6
4de997d1 9876fi
2693c0b0 9877
e8b05380
PB
9878fi
9879if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9880
9881
9882if test -n "$LD_FOR_TARGET"; then
9883 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9884elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9885 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9886fi
9887
9888if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9889 for ncn_progname in ld; do
9890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9891set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9892echo "$as_me:$LINENO: checking for $ac_word" >&5
9893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9894if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9896else
9897 if test -n "$LD_FOR_TARGET"; then
9898 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9899else
9900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901for as_dir in $PATH
9902do
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9907 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9910 fi
9911done
9912done
9913
9914fi
9915fi
9916LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9917if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9918 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9919echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9920else
2aeb72e9
DD
9921 echo "$as_me:$LINENO: result: no" >&5
9922echo "${ECHO_T}no" >&6
278a7a38
AO
9923fi
9924
9925 done
9926fi
9927
9928if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9929 for ncn_progname in ld; do
2aeb72e9
DD
9930 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9931echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9932 if test -x $with_build_time_tools/${ncn_progname}; then
9933 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9934 echo "$as_me:$LINENO: result: yes" >&5
9935echo "${ECHO_T}yes" >&6
e8b05380
PB
9936 break
9937 else
2aeb72e9
DD
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
e8b05380
PB
9940 fi
9941 done
ca9f4b81
AO
9942fi
9943
e8b05380
PB
9944if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9945 for ncn_progname in ld; do
9946 if test -n "$ncn_target_tool_prefix"; then
9947 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9948set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9949echo "$as_me:$LINENO: checking for $ac_word" >&5
9950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9951if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9953else
4de997d1
PB
9954 if test -n "$LD_FOR_TARGET"; then
9955 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9956else
1c710c3c
DJ
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9964 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968done
9969done
9970
ca9f4b81
AO
9971fi
9972fi
1c710c3c 9973LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9974if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9975 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9976echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9977else
2aeb72e9
DD
9978 echo "$as_me:$LINENO: result: no" >&5
9979echo "${ECHO_T}no" >&6
ca9f4b81
AO
9980fi
9981
e8b05380
PB
9982 fi
9983 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9985set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9986echo "$as_me:$LINENO: checking for $ac_word" >&5
9987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9988if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9990else
2693c0b0
PB
9991 if test -n "$LD_FOR_TARGET"; then
9992 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9993else
1c710c3c
DJ
9994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995for as_dir in $PATH
9996do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10001 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005done
10006done
10007
ca9f4b81
AO
10008fi
10009fi
1c710c3c 10010LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10011if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10012 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10013echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10014else
2aeb72e9
DD
10015 echo "$as_me:$LINENO: result: no" >&5
10016echo "${ECHO_T}no" >&6
ca9f4b81 10017fi
1c710c3c 10018
e8b05380
PB
10019 fi
10020 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10021 done
10022fi
1c710c3c 10023
2693c0b0
PB
10024if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10025 set dummy ld
10026 if test $build = $target ; then
10027 LD_FOR_TARGET="$2"
ca9f4b81 10028 else
2693c0b0 10029 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10030 fi
1c00b503
PB
10031else
10032 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10033fi
10034
d1f8db0c
PB
10035else
10036 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10037fi
10038
10039
10040
10041
10042if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10043 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10044 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10045echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10046 if test -x $with_build_time_tools/lipo; then
10047 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10048 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
10049 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10050echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 10051 else
2aeb72e9
DD
10052 echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6
d1f8db0c 10054 fi
e8b05380
PB
10055 elif test $build != $host && test $have_gcc_for_target = yes; then
10056 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10057 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10058 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10059 fi
10060fi
278a7a38
AO
10061if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10062 # Extract the first word of "lipo", so it can be a program name with args.
10063set dummy lipo; ac_word=$2
2aeb72e9
DD
10064echo "$as_me:$LINENO: checking for $ac_word" >&5
10065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10066if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 case $LIPO_FOR_TARGET in
10070 [\\/]* | ?:[\\/]*)
10071 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10072 ;;
10073 *)
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075for as_dir in $gcc_cv_tool_dirs
10076do
10077 IFS=$as_save_IFS
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10081 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10083 break 2
10084 fi
10085done
10086done
10087
10088 ;;
10089esac
10090fi
10091LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 10092
278a7a38 10093if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10094 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10095echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 10096else
2aeb72e9
DD
10097 echo "$as_me:$LINENO: result: no" >&5
10098echo "${ECHO_T}no" >&6
278a7a38
AO
10099fi
10100
10101fi
10102if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10103
10104
10105if test -n "$LIPO_FOR_TARGET"; then
10106 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10107elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10108 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10109fi
10110
10111if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10112 for ncn_progname in lipo; do
10113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10114set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10115echo "$as_me:$LINENO: checking for $ac_word" >&5
10116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 10117if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10118 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10119else
278a7a38
AO
10120 if test -n "$LIPO_FOR_TARGET"; then
10121 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10122else
10123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124for as_dir in $PATH
1c710c3c
DJ
10125do
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10130 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10133 fi
10134done
10135done
10136
e8b05380 10137fi
278a7a38
AO
10138fi
10139LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10140if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10141 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10142echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 10143else
2aeb72e9
DD
10144 echo "$as_me:$LINENO: result: no" >&5
10145echo "${ECHO_T}no" >&6
e8b05380
PB
10146fi
10147
278a7a38 10148 done
e8b05380 10149fi
278a7a38
AO
10150
10151if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10152 for ncn_progname in lipo; do
2aeb72e9
DD
10153 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10154echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10155 if test -x $with_build_time_tools/${ncn_progname}; then
10156 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10157 echo "$as_me:$LINENO: result: yes" >&5
10158echo "${ECHO_T}yes" >&6
e8b05380
PB
10159 break
10160 else
2aeb72e9
DD
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
e8b05380
PB
10163 fi
10164 done
10165fi
10166
10167if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10168 for ncn_progname in lipo; do
10169 if test -n "$ncn_target_tool_prefix"; then
10170 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10171set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10172echo "$as_me:$LINENO: checking for $ac_word" >&5
10173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10174if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10176else
10177 if test -n "$LIPO_FOR_TARGET"; then
10178 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10179else
1c710c3c
DJ
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10187 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10190 fi
10191done
10192done
10193
040b1c5a
GK
10194fi
10195fi
1c710c3c 10196LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10197if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10198 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10199echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10200else
2aeb72e9
DD
10201 echo "$as_me:$LINENO: result: no" >&5
10202echo "${ECHO_T}no" >&6
040b1c5a
GK
10203fi
10204
e8b05380
PB
10205 fi
10206 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10208set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10209echo "$as_me:$LINENO: checking for $ac_word" >&5
10210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10211if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10213else
10214 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10215 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10216else
1c710c3c
DJ
10217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218for as_dir in $PATH
10219do
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10224 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10227 fi
10228done
10229done
10230
040b1c5a
GK
10231fi
10232fi
1c710c3c 10233LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10234if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10235 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10236echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10237else
2aeb72e9
DD
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
040b1c5a 10240fi
1c710c3c 10241
e8b05380
PB
10242 fi
10243 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10244 done
10245fi
1c710c3c 10246
040b1c5a
GK
10247if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10248 set dummy lipo
10249 if test $build = $target ; then
10250 LIPO_FOR_TARGET="$2"
10251 else
10252 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10253 fi
1c00b503
PB
10254else
10255 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10256fi
10257
d1f8db0c
PB
10258else
10259 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10260fi
10261
10262
10263
10264
10265if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10266 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10267 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10268echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10269 if test -x $with_build_time_tools/nm; then
10270 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10271 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
10272 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10273echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 10274 else
2aeb72e9
DD
10275 echo "$as_me:$LINENO: result: no" >&5
10276echo "${ECHO_T}no" >&6
d1f8db0c 10277 fi
e8b05380
PB
10278 elif test $build != $host && test $have_gcc_for_target = yes; then
10279 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10280 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10281 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10282 fi
10283fi
3e19841a 10284if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10285 # Extract the first word of "nm", so it can be a program name with args.
10286set dummy nm; ac_word=$2
2aeb72e9
DD
10287echo "$as_me:$LINENO: checking for $ac_word" >&5
10288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10289if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10291else
1c710c3c
DJ
10292 case $NM_FOR_TARGET in
10293 [\\/]* | ?:[\\/]*)
e8b05380
PB
10294 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10295 ;;
e8b05380 10296 *)
1c710c3c
DJ
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $gcc_cv_tool_dirs
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10304 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309done
10310
e8b05380
PB
10311 ;;
10312esac
10313fi
1c710c3c 10314NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 10315
e8b05380 10316if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10317 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10318echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 10319else
2aeb72e9
DD
10320 echo "$as_me:$LINENO: result: no" >&5
10321echo "${ECHO_T}no" >&6
e8b05380
PB
10322fi
10323
10324fi
10325if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10326
10327
10328if test -n "$NM_FOR_TARGET"; then
10329 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10330elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10331 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10332fi
10333
10334if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10335 for ncn_progname in nm; do
10336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10337set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10338echo "$as_me:$LINENO: checking for $ac_word" >&5
10339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10340if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342else
10343 if test -n "$NM_FOR_TARGET"; then
10344 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10345else
10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347for as_dir in $PATH
10348do
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10353 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 break 2
10356 fi
10357done
10358done
10359
10360fi
10361fi
10362NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10363if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10364 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10365echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 10366else
2aeb72e9
DD
10367 echo "$as_me:$LINENO: result: no" >&5
10368echo "${ECHO_T}no" >&6
278a7a38
AO
10369fi
10370
10371 done
10372fi
10373
10374if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10375 for ncn_progname in nm; do
2aeb72e9
DD
10376 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10377echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10378 if test -x $with_build_time_tools/${ncn_progname}; then
10379 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10380 echo "$as_me:$LINENO: result: yes" >&5
10381echo "${ECHO_T}yes" >&6
e8b05380
PB
10382 break
10383 else
2aeb72e9
DD
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
e8b05380
PB
10386 fi
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10391 for ncn_progname in nm; do
10392 if test -n "$ncn_target_tool_prefix"; then
10393 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10394set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10397if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10399else
4de997d1
PB
10400 if test -n "$NM_FOR_TARGET"; then
10401 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10402else
1c710c3c
DJ
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10410 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
ca9f4b81
AO
10417fi
10418fi
1c710c3c 10419NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10420if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10421 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10422echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10423else
2aeb72e9
DD
10424 echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
ca9f4b81
AO
10426fi
10427
e8b05380
PB
10428 fi
10429 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10431set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10432echo "$as_me:$LINENO: checking for $ac_word" >&5
10433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10434if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10436else
2693c0b0
PB
10437 if test -n "$NM_FOR_TARGET"; then
10438 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10439else
1c710c3c
DJ
10440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441for as_dir in $PATH
10442do
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
10445 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10447 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 break 2
10450 fi
10451done
10452done
10453
ca9f4b81
AO
10454fi
10455fi
1c710c3c 10456NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10457if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10458 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10459echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10460else
2aeb72e9
DD
10461 echo "$as_me:$LINENO: result: no" >&5
10462echo "${ECHO_T}no" >&6
ca9f4b81 10463fi
1c710c3c 10464
e8b05380
PB
10465 fi
10466 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10467 done
10468fi
1c710c3c 10469
2693c0b0
PB
10470if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10471 set dummy nm
10472 if test $build = $target ; then
10473 NM_FOR_TARGET="$2"
ca9f4b81 10474 else
2693c0b0 10475 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10476 fi
1c00b503
PB
10477else
10478 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10479fi
10480
d1f8db0c
PB
10481else
10482 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10483fi
10484
10485
10486
10487
10488if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10489 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10490 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10491echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10492 if test -x $with_build_time_tools/objdump; then
10493 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10494 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10495 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10496echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10497 else
2aeb72e9
DD
10498 echo "$as_me:$LINENO: result: no" >&5
10499echo "${ECHO_T}no" >&6
d1f8db0c 10500 fi
e8b05380
PB
10501 elif test $build != $host && test $have_gcc_for_target = yes; then
10502 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10503 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10504 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10505 fi
10506fi
3e19841a 10507if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10508 # Extract the first word of "objdump", so it can be a program name with args.
10509set dummy objdump; ac_word=$2
2aeb72e9
DD
10510echo "$as_me:$LINENO: checking for $ac_word" >&5
10511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10512if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10514else
1c710c3c
DJ
10515 case $OBJDUMP_FOR_TARGET in
10516 [\\/]* | ?:[\\/]*)
e8b05380
PB
10517 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10518 ;;
e8b05380 10519 *)
1c710c3c
DJ
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521for as_dir in $gcc_cv_tool_dirs
10522do
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10527 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10530 fi
10531done
10532done
10533
e8b05380
PB
10534 ;;
10535esac
10536fi
1c710c3c 10537OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10538
e8b05380 10539if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10540 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10541echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10542else
2aeb72e9
DD
10543 echo "$as_me:$LINENO: result: no" >&5
10544echo "${ECHO_T}no" >&6
e8b05380
PB
10545fi
10546
10547fi
10548if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10549
10550
10551if test -n "$OBJDUMP_FOR_TARGET"; then
10552 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10553elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10554 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10555fi
10556
10557if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10558 for ncn_progname in objdump; do
10559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10560set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10561echo "$as_me:$LINENO: checking for $ac_word" >&5
10562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10563if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566 if test -n "$OBJDUMP_FOR_TARGET"; then
10567 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10568else
10569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570for as_dir in $PATH
10571do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10576 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10579 fi
10580done
10581done
10582
10583fi
10584fi
10585OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10586if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10587 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10588echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10589else
2aeb72e9
DD
10590 echo "$as_me:$LINENO: result: no" >&5
10591echo "${ECHO_T}no" >&6
278a7a38
AO
10592fi
10593
10594 done
10595fi
10596
10597if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10598 for ncn_progname in objdump; do
2aeb72e9
DD
10599 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10600echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10601 if test -x $with_build_time_tools/${ncn_progname}; then
10602 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10603 echo "$as_me:$LINENO: result: yes" >&5
10604echo "${ECHO_T}yes" >&6
e8b05380
PB
10605 break
10606 else
2aeb72e9
DD
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
e8b05380
PB
10609 fi
10610 done
10611fi
10612
10613if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10614 for ncn_progname in objdump; do
10615 if test -n "$ncn_target_tool_prefix"; then
10616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10617set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10618echo "$as_me:$LINENO: checking for $ac_word" >&5
10619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10620if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10622else
10623 if test -n "$OBJDUMP_FOR_TARGET"; then
10624 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10625else
1c710c3c
DJ
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10633 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639
d739199a
DJ
10640fi
10641fi
1c710c3c 10642OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10643if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10644 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10645echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10646else
2aeb72e9
DD
10647 echo "$as_me:$LINENO: result: no" >&5
10648echo "${ECHO_T}no" >&6
d739199a
DJ
10649fi
10650
e8b05380
PB
10651 fi
10652 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10654set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10655echo "$as_me:$LINENO: checking for $ac_word" >&5
10656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10657if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10659else
10660 if test -n "$OBJDUMP_FOR_TARGET"; then
10661 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10662else
1c710c3c
DJ
10663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664for as_dir in $PATH
10665do
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10670 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10673 fi
10674done
10675done
10676
d739199a
DJ
10677fi
10678fi
1c710c3c 10679OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10680if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10681 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10682echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10683else
2aeb72e9
DD
10684 echo "$as_me:$LINENO: result: no" >&5
10685echo "${ECHO_T}no" >&6
d739199a 10686fi
1c710c3c 10687
e8b05380
PB
10688 fi
10689 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10690 done
10691fi
1c710c3c 10692
d739199a
DJ
10693if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10694 set dummy objdump
10695 if test $build = $target ; then
10696 OBJDUMP_FOR_TARGET="$2"
10697 else
10698 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10699 fi
1c00b503
PB
10700else
10701 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10702fi
10703
d1f8db0c
PB
10704else
10705 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10706fi
10707
10708
10709
10710
10711if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10712 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10713 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10714echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10715 if test -x $with_build_time_tools/ranlib; then
10716 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10717 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10718 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10719echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10720 else
2aeb72e9
DD
10721 echo "$as_me:$LINENO: result: no" >&5
10722echo "${ECHO_T}no" >&6
d1f8db0c 10723 fi
e8b05380
PB
10724 elif test $build != $host && test $have_gcc_for_target = yes; then
10725 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10726 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10727 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10728 fi
10729fi
3e19841a 10730if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10731 # Extract the first word of "ranlib", so it can be a program name with args.
10732set dummy ranlib; ac_word=$2
2aeb72e9
DD
10733echo "$as_me:$LINENO: checking for $ac_word" >&5
10734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10735if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10737else
1c710c3c
DJ
10738 case $RANLIB_FOR_TARGET in
10739 [\\/]* | ?:[\\/]*)
e8b05380
PB
10740 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10741 ;;
e8b05380 10742 *)
1c710c3c
DJ
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744for as_dir in $gcc_cv_tool_dirs
10745do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10750 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10753 fi
10754done
10755done
10756
e8b05380
PB
10757 ;;
10758esac
10759fi
1c710c3c 10760RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10761
e8b05380 10762if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10763 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10764echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10765else
2aeb72e9
DD
10766 echo "$as_me:$LINENO: result: no" >&5
10767echo "${ECHO_T}no" >&6
e8b05380
PB
10768fi
10769
10770fi
10771if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10772
10773
10774if test -n "$RANLIB_FOR_TARGET"; then
10775 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10776elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10777 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10778fi
10779
10780if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10781 for ncn_progname in ranlib; do
10782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10783set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10784echo "$as_me:$LINENO: checking for $ac_word" >&5
10785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10786if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788else
10789 if test -n "$RANLIB_FOR_TARGET"; then
10790 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10791else
10792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793for as_dir in $PATH
10794do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
10797 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10799 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 break 2
10802 fi
10803done
10804done
10805
10806fi
10807fi
10808RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10809if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10810 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10811echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10812else
2aeb72e9
DD
10813 echo "$as_me:$LINENO: result: no" >&5
10814echo "${ECHO_T}no" >&6
278a7a38
AO
10815fi
10816
10817 done
10818fi
10819
10820if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10821 for ncn_progname in ranlib; do
2aeb72e9
DD
10822 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10823echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10824 if test -x $with_build_time_tools/${ncn_progname}; then
10825 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10826 echo "$as_me:$LINENO: result: yes" >&5
10827echo "${ECHO_T}yes" >&6
e8b05380
PB
10828 break
10829 else
2aeb72e9
DD
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
e8b05380
PB
10832 fi
10833 done
10834fi
10835
10836if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10837 for ncn_progname in ranlib; do
10838 if test -n "$ncn_target_tool_prefix"; then
10839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10840set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10841echo "$as_me:$LINENO: checking for $ac_word" >&5
10842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10843if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10845else
4de997d1
PB
10846 if test -n "$RANLIB_FOR_TARGET"; then
10847 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10848else
1c710c3c
DJ
10849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850for as_dir in $PATH
10851do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10856 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10859 fi
10860done
10861done
10862
ca9f4b81
AO
10863fi
10864fi
1c710c3c 10865RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10866if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10867 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10868echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10869else
2aeb72e9
DD
10870 echo "$as_me:$LINENO: result: no" >&5
10871echo "${ECHO_T}no" >&6
ca9f4b81
AO
10872fi
10873
e8b05380
PB
10874 fi
10875 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10877set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10878echo "$as_me:$LINENO: checking for $ac_word" >&5
10879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10880if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10882else
2693c0b0
PB
10883 if test -n "$RANLIB_FOR_TARGET"; then
10884 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10885else
1c710c3c
DJ
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10893 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10895 break 2
10896 fi
10897done
10898done
10899
ca9f4b81
AO
10900fi
10901fi
1c710c3c 10902RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10903if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10904 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10905echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10906else
2aeb72e9
DD
10907 echo "$as_me:$LINENO: result: no" >&5
10908echo "${ECHO_T}no" >&6
ca9f4b81 10909fi
1c710c3c 10910
e8b05380
PB
10911 fi
10912 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10913 done
10914fi
1c710c3c 10915
e8b05380
PB
10916if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10917 set dummy ranlib
10918 if test $build = $target ; then
10919 RANLIB_FOR_TARGET="$2"
10920 else
10921 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10922 fi
1c00b503
PB
10923else
10924 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10925fi
2693c0b0 10926
d1f8db0c
PB
10927else
10928 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10929fi
10930
e8b05380
PB
10931
10932
10933
10934if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10935 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10936 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10937echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10938 if test -x $with_build_time_tools/strip; then
10939 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10940 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10941 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10942echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10943 else
2aeb72e9
DD
10944 echo "$as_me:$LINENO: result: no" >&5
10945echo "${ECHO_T}no" >&6
d1f8db0c 10946 fi
e8b05380
PB
10947 elif test $build != $host && test $have_gcc_for_target = yes; then
10948 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10949 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10950 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10951 fi
10952fi
3e19841a 10953if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10954 # Extract the first word of "strip", so it can be a program name with args.
10955set dummy strip; ac_word=$2
2aeb72e9
DD
10956echo "$as_me:$LINENO: checking for $ac_word" >&5
10957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10958if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10960else
1c710c3c
DJ
10961 case $STRIP_FOR_TARGET in
10962 [\\/]* | ?:[\\/]*)
e8b05380
PB
10963 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10964 ;;
e8b05380 10965 *)
1c710c3c
DJ
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $gcc_cv_tool_dirs
10968do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10973 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977done
10978done
10979
e8b05380
PB
10980 ;;
10981esac
10982fi
1c710c3c 10983STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10984
e8b05380 10985if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10986 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10987echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10988else
2aeb72e9
DD
10989 echo "$as_me:$LINENO: result: no" >&5
10990echo "${ECHO_T}no" >&6
e8b05380
PB
10991fi
10992
10993fi
10994if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10995
10996
10997if test -n "$STRIP_FOR_TARGET"; then
10998 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10999elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11000 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11001fi
11002
11003if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11004 for ncn_progname in strip; do
11005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11006set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11007echo "$as_me:$LINENO: checking for $ac_word" >&5
11008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11009if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011else
11012 if test -n "$STRIP_FOR_TARGET"; then
11013 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11014else
11015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016for as_dir in $PATH
11017do
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11022 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 break 2
11025 fi
11026done
11027done
11028
11029fi
11030fi
11031STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11032if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11033 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11034echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 11035else
2aeb72e9
DD
11036 echo "$as_me:$LINENO: result: no" >&5
11037echo "${ECHO_T}no" >&6
278a7a38
AO
11038fi
11039
11040 done
11041fi
11042
11043if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11044 for ncn_progname in strip; do
2aeb72e9
DD
11045 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11046echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11047 if test -x $with_build_time_tools/${ncn_progname}; then
11048 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11049 echo "$as_me:$LINENO: result: yes" >&5
11050echo "${ECHO_T}yes" >&6
e8b05380
PB
11051 break
11052 else
2aeb72e9
DD
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
e8b05380
PB
11055 fi
11056 done
11057fi
11058
11059if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11060 for ncn_progname in strip; do
11061 if test -n "$ncn_target_tool_prefix"; then
11062 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11063set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11064echo "$as_me:$LINENO: checking for $ac_word" >&5
11065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11066if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11068else
11069 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11070 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11071else
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11079 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11082 fi
11083done
11084done
11085
040b1c5a
GK
11086fi
11087fi
1c710c3c 11088STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11089if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11090 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11091echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11092else
2aeb72e9
DD
11093 echo "$as_me:$LINENO: result: no" >&5
11094echo "${ECHO_T}no" >&6
040b1c5a
GK
11095fi
11096
e8b05380
PB
11097 fi
11098 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11100set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11101echo "$as_me:$LINENO: checking for $ac_word" >&5
11102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11103if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11105else
11106 if test -n "$STRIP_FOR_TARGET"; then
11107 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11108else
1c710c3c
DJ
11109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110for as_dir in $PATH
11111do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11116 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11119 fi
11120done
11121done
11122
040b1c5a
GK
11123fi
11124fi
1c710c3c 11125STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11126if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11127 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11128echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11129else
2aeb72e9
DD
11130 echo "$as_me:$LINENO: result: no" >&5
11131echo "${ECHO_T}no" >&6
040b1c5a 11132fi
1c710c3c 11133
e8b05380
PB
11134 fi
11135 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11136 done
11137fi
1c710c3c 11138
040b1c5a
GK
11139if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11140 set dummy strip
11141 if test $build = $target ; then
11142 STRIP_FOR_TARGET="$2"
11143 else
11144 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11145 fi
1c00b503
PB
11146else
11147 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11148fi
11149
d1f8db0c
PB
11150else
11151 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11152fi
11153
11154
11155
11156
11157if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11158 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11159 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11160echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11161 if test -x $with_build_time_tools/windres; then
11162 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11163 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
11164 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11165echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 11166 else
2aeb72e9
DD
11167 echo "$as_me:$LINENO: result: no" >&5
11168echo "${ECHO_T}no" >&6
d1f8db0c 11169 fi
e8b05380
PB
11170 elif test $build != $host && test $have_gcc_for_target = yes; then
11171 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11172 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11173 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11174 fi
11175fi
3e19841a 11176if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11177 # Extract the first word of "windres", so it can be a program name with args.
11178set dummy windres; ac_word=$2
2aeb72e9
DD
11179echo "$as_me:$LINENO: checking for $ac_word" >&5
11180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11181if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11183else
1c710c3c
DJ
11184 case $WINDRES_FOR_TARGET in
11185 [\\/]* | ?:[\\/]*)
e8b05380
PB
11186 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11187 ;;
e8b05380 11188 *)
1c710c3c
DJ
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $gcc_cv_tool_dirs
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11196 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11199 fi
11200done
11201done
11202
e8b05380
PB
11203 ;;
11204esac
11205fi
1c710c3c 11206WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 11207
e8b05380 11208if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11209 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11210echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 11211else
2aeb72e9
DD
11212 echo "$as_me:$LINENO: result: no" >&5
11213echo "${ECHO_T}no" >&6
e8b05380
PB
11214fi
11215
11216fi
11217if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11218
11219
11220if test -n "$WINDRES_FOR_TARGET"; then
11221 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11222elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11223 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11224fi
11225
11226if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11227 for ncn_progname in windres; do
11228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11229set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11230echo "$as_me:$LINENO: checking for $ac_word" >&5
11231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11232if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235 if test -n "$WINDRES_FOR_TARGET"; then
11236 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11237else
11238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239for as_dir in $PATH
11240do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11245 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249done
11250done
11251
11252fi
11253fi
11254WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11255if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11256 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11257echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 11258else
2aeb72e9
DD
11259 echo "$as_me:$LINENO: result: no" >&5
11260echo "${ECHO_T}no" >&6
278a7a38
AO
11261fi
11262
11263 done
11264fi
11265
11266if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11267 for ncn_progname in windres; do
2aeb72e9
DD
11268 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11269echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11270 if test -x $with_build_time_tools/${ncn_progname}; then
11271 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11272 echo "$as_me:$LINENO: result: yes" >&5
11273echo "${ECHO_T}yes" >&6
e8b05380
PB
11274 break
11275 else
2aeb72e9
DD
11276 echo "$as_me:$LINENO: result: no" >&5
11277echo "${ECHO_T}no" >&6
e8b05380
PB
11278 fi
11279 done
11280fi
11281
11282if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11283 for ncn_progname in windres; do
11284 if test -n "$ncn_target_tool_prefix"; then
11285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11286set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11287echo "$as_me:$LINENO: checking for $ac_word" >&5
11288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11289if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11291else
4de997d1
PB
11292 if test -n "$WINDRES_FOR_TARGET"; then
11293 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11294else
1c710c3c
DJ
11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296for as_dir in $PATH
11297do
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11302 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11305 fi
11306done
11307done
11308
ca9f4b81
AO
11309fi
11310fi
1c710c3c 11311WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11312if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11313 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11314echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11315else
2aeb72e9
DD
11316 echo "$as_me:$LINENO: result: no" >&5
11317echo "${ECHO_T}no" >&6
ca9f4b81
AO
11318fi
11319
e8b05380
PB
11320 fi
11321 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11323set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11324echo "$as_me:$LINENO: checking for $ac_word" >&5
11325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11326if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11328else
2693c0b0
PB
11329 if test -n "$WINDRES_FOR_TARGET"; then
11330 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11331else
1c710c3c
DJ
11332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333for as_dir in $PATH
11334do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
11337 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11339 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 break 2
11342 fi
11343done
11344done
11345
ca9f4b81
AO
11346fi
11347fi
1c710c3c 11348WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11349if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11350 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11351echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11352else
2aeb72e9
DD
11353 echo "$as_me:$LINENO: result: no" >&5
11354echo "${ECHO_T}no" >&6
ca9f4b81 11355fi
1c710c3c 11356
e8b05380
PB
11357 fi
11358 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11359 done
11360fi
1c710c3c 11361
2693c0b0
PB
11362if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11363 set dummy windres
11364 if test $build = $target ; then
11365 WINDRES_FOR_TARGET="$2"
ca9f4b81 11366 else
2693c0b0 11367 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11368 fi
1c00b503
PB
11369else
11370 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
11371fi
11372
d1f8db0c
PB
11373else
11374 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11375fi
11376
4977bab6 11377
901119ae
KT
11378
11379
11380if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11381 if test -n "$with_build_time_tools"; then
11382 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11383echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11384 if test -x $with_build_time_tools/windmc; then
11385 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11386 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11387 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11388echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11389 else
11390 echo "$as_me:$LINENO: result: no" >&5
11391echo "${ECHO_T}no" >&6
11392 fi
11393 elif test $build != $host && test $have_gcc_for_target = yes; then
11394 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11395 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11396 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11397 fi
11398fi
11399if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11400 # Extract the first word of "windmc", so it can be a program name with args.
11401set dummy windmc; ac_word=$2
11402echo "$as_me:$LINENO: checking for $ac_word" >&5
11403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11404if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 case $WINDMC_FOR_TARGET in
11408 [\\/]* | ?:[\\/]*)
11409 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11410 ;;
11411 *)
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in $gcc_cv_tool_dirs
11414do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11419 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11422 fi
11423done
11424done
11425
11426 ;;
11427esac
11428fi
11429WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11430
11431if test -n "$WINDMC_FOR_TARGET"; then
11432 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11433echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11434else
11435 echo "$as_me:$LINENO: result: no" >&5
11436echo "${ECHO_T}no" >&6
11437fi
11438
11439fi
11440if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11441
11442
11443if test -n "$WINDMC_FOR_TARGET"; then
11444 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11445elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11446 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11447fi
11448
11449if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11450 for ncn_progname in windmc; do
11451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11452set dummy ${ncn_progname}; ac_word=$2
11453echo "$as_me:$LINENO: checking for $ac_word" >&5
11454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 if test -n "$WINDMC_FOR_TARGET"; then
11459 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472done
11473done
11474
11475fi
11476fi
11477WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11478if test -n "$WINDMC_FOR_TARGET"; then
11479 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11480echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11481else
11482 echo "$as_me:$LINENO: result: no" >&5
11483echo "${ECHO_T}no" >&6
11484fi
11485
11486 done
11487fi
11488
11489if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11490 for ncn_progname in windmc; do
11491 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11492echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11493 if test -x $with_build_time_tools/${ncn_progname}; then
11494 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11495 echo "$as_me:$LINENO: result: yes" >&5
11496echo "${ECHO_T}yes" >&6
11497 break
11498 else
11499 echo "$as_me:$LINENO: result: no" >&5
11500echo "${ECHO_T}no" >&6
11501 fi
11502 done
11503fi
11504
11505if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11506 for ncn_progname in windmc; do
11507 if test -n "$ncn_target_tool_prefix"; then
11508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11509set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11510echo "$as_me:$LINENO: checking for $ac_word" >&5
11511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11512if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514else
11515 if test -n "$WINDMC_FOR_TARGET"; then
11516 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11517else
11518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519for as_dir in $PATH
11520do
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11525 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11528 fi
11529done
11530done
11531
11532fi
11533fi
11534WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11535if test -n "$WINDMC_FOR_TARGET"; then
11536 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11537echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11538else
11539 echo "$as_me:$LINENO: result: no" >&5
11540echo "${ECHO_T}no" >&6
11541fi
11542
11543 fi
11544 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11546set dummy ${ncn_progname}; ac_word=$2
11547echo "$as_me:$LINENO: checking for $ac_word" >&5
11548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11549if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11551else
11552 if test -n "$WINDMC_FOR_TARGET"; then
11553 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11554else
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11562 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566done
11567done
11568
11569fi
11570fi
11571WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11572if test -n "$WINDMC_FOR_TARGET"; then
11573 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11574echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11575else
11576 echo "$as_me:$LINENO: result: no" >&5
11577echo "${ECHO_T}no" >&6
11578fi
11579
11580 fi
11581 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11582 done
11583fi
11584
11585if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11586 set dummy windmc
11587 if test $build = $target ; then
11588 WINDMC_FOR_TARGET="$2"
11589 else
11590 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11591 fi
1c00b503
PB
11592else
11593 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11594fi
11595
11596else
11597 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11598fi
11599
11600
2abefe3d
PB
11601RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11602
2aeb72e9
DD
11603echo "$as_me:$LINENO: checking where to find the target ar" >&5
11604echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11605if test "x${build}" != "x${host}" ; then
e8b05380
PB
11606 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11607 # We already found the complete path
172e41aa 11608 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11609 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11610echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11611 else
11612 # Canadian cross, just use what we found
2aeb72e9
DD
11613 echo "$as_me:$LINENO: result: pre-installed" >&5
11614echo "${ECHO_T}pre-installed" >&6
e8b05380 11615 fi
2abefe3d
PB
11616else
11617 ok=yes
11618 case " ${configdirs} " in
11619 *" binutils "*) ;;
11620 *) ok=no ;;
11621 esac
1c710c3c 11622
2abefe3d
PB
11623 if test $ok = yes; then
11624 # An in-tree tool is available and we can use it
11625 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11626 echo "$as_me:$LINENO: result: just compiled" >&5
11627echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11628 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11629 # We already found the complete path
172e41aa 11630 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11631 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11632echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11633 elif test "x$target" = "x$host"; then
11634 # We can use an host tool
11635 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11636 echo "$as_me:$LINENO: result: host tool" >&5
11637echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11638 else
11639 # We need a cross tool
2aeb72e9
DD
11640 echo "$as_me:$LINENO: result: pre-installed" >&5
11641echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11642 fi
11643fi
0b0dc272 11644
2aeb72e9
DD
11645echo "$as_me:$LINENO: checking where to find the target as" >&5
11646echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11647if test "x${build}" != "x${host}" ; then
e8b05380
PB
11648 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11649 # We already found the complete path
172e41aa 11650 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11651 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11652echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11653 else
11654 # Canadian cross, just use what we found
2aeb72e9
DD
11655 echo "$as_me:$LINENO: result: pre-installed" >&5
11656echo "${ECHO_T}pre-installed" >&6
e8b05380 11657 fi
2abefe3d
PB
11658else
11659 ok=yes
11660 case " ${configdirs} " in
11661 *" gas "*) ;;
11662 *) ok=no ;;
11663 esac
1c710c3c 11664
2abefe3d
PB
11665 if test $ok = yes; then
11666 # An in-tree tool is available and we can use it
11667 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11668 echo "$as_me:$LINENO: result: just compiled" >&5
11669echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11670 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11671 # We already found the complete path
172e41aa 11672 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11673 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11674echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11675 elif test "x$target" = "x$host"; then
11676 # We can use an host tool
11677 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11678 echo "$as_me:$LINENO: result: host tool" >&5
11679echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11680 else
11681 # We need a cross tool
2aeb72e9
DD
11682 echo "$as_me:$LINENO: result: pre-installed" >&5
11683echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11684 fi
11685fi
0b0dc272 11686
2aeb72e9
DD
11687echo "$as_me:$LINENO: checking where to find the target cc" >&5
11688echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11689if test "x${build}" != "x${host}" ; then
e8b05380
PB
11690 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11691 # We already found the complete path
172e41aa 11692 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11693 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11694echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11695 else
11696 # Canadian cross, just use what we found
2aeb72e9
DD
11697 echo "$as_me:$LINENO: result: pre-installed" >&5
11698echo "${ECHO_T}pre-installed" >&6
e8b05380 11699 fi
2abefe3d
PB
11700else
11701 ok=yes
11702 case " ${configdirs} " in
11703 *" gcc "*) ;;
11704 *) ok=no ;;
11705 esac
1c710c3c 11706
2abefe3d
PB
11707 if test $ok = yes; then
11708 # An in-tree tool is available and we can use it
11709 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11710 echo "$as_me:$LINENO: result: just compiled" >&5
11711echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11712 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11713 # We already found the complete path
172e41aa 11714 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11715 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11716echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11717 elif test "x$target" = "x$host"; then
11718 # We can use an host tool
11719 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11720 echo "$as_me:$LINENO: result: host tool" >&5
11721echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11722 else
11723 # We need a cross tool
2aeb72e9
DD
11724 echo "$as_me:$LINENO: result: pre-installed" >&5
11725echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11726 fi
11727fi
0b0dc272 11728
2aeb72e9
DD
11729echo "$as_me:$LINENO: checking where to find the target c++" >&5
11730echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11731if test "x${build}" != "x${host}" ; then
e8b05380
PB
11732 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11733 # We already found the complete path
172e41aa 11734 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11735 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11736echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11737 else
11738 # Canadian cross, just use what we found
2aeb72e9
DD
11739 echo "$as_me:$LINENO: result: pre-installed" >&5
11740echo "${ECHO_T}pre-installed" >&6
e8b05380 11741 fi
2abefe3d
PB
11742else
11743 ok=yes
11744 case " ${configdirs} " in
11745 *" gcc "*) ;;
11746 *) ok=no ;;
11747 esac
11748 case ,${enable_languages}, in
11749 *,c++,*) ;;
11750 *) ok=no ;;
11751 esac
11752 if test $ok = yes; then
11753 # An in-tree tool is available and we can use it
11754 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
11755 echo "$as_me:$LINENO: result: just compiled" >&5
11756echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11757 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11758 # We already found the complete path
172e41aa 11759 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11760 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11761echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11762 elif test "x$target" = "x$host"; then
11763 # We can use an host tool
11764 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11765 echo "$as_me:$LINENO: result: host tool" >&5
11766echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11767 else
11768 # We need a cross tool
2aeb72e9
DD
11769 echo "$as_me:$LINENO: result: pre-installed" >&5
11770echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11771 fi
11772fi
0b0dc272 11773
2aeb72e9
DD
11774echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11775echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11776if test "x${build}" != "x${host}" ; then
e8b05380
PB
11777 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11778 # We already found the complete path
172e41aa 11779 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11780 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11781echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11782 else
11783 # Canadian cross, just use what we found
2aeb72e9
DD
11784 echo "$as_me:$LINENO: result: pre-installed" >&5
11785echo "${ECHO_T}pre-installed" >&6
e8b05380 11786 fi
2abefe3d
PB
11787else
11788 ok=yes
11789 case " ${configdirs} " in
11790 *" gcc "*) ;;
11791 *) ok=no ;;
11792 esac
11793 case ,${enable_languages}, in
11794 *,c++,*) ;;
11795 *) ok=no ;;
11796 esac
11797 if test $ok = yes; then
11798 # An in-tree tool is available and we can use it
11799 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
11800 echo "$as_me:$LINENO: result: just compiled" >&5
11801echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11802 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11803 # We already found the complete path
172e41aa 11804 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11805 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11806echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11807 elif test "x$target" = "x$host"; then
11808 # We can use an host tool
11809 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11810 echo "$as_me:$LINENO: result: host tool" >&5
11811echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11812 else
11813 # We need a cross tool
2aeb72e9
DD
11814 echo "$as_me:$LINENO: result: pre-installed" >&5
11815echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11816 fi
11817fi
0b0dc272 11818
2aeb72e9
DD
11819echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11820echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11821if test "x${build}" != "x${host}" ; then
e8b05380
PB
11822 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11823 # We already found the complete path
172e41aa 11824 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11825 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11826echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11827 else
11828 # Canadian cross, just use what we found
2aeb72e9
DD
11829 echo "$as_me:$LINENO: result: pre-installed" >&5
11830echo "${ECHO_T}pre-installed" >&6
e8b05380 11831 fi
2abefe3d
PB
11832else
11833 ok=yes
11834 case " ${configdirs} " in
11835 *" binutils "*) ;;
11836 *) ok=no ;;
11837 esac
1c710c3c 11838
2abefe3d
PB
11839 if test $ok = yes; then
11840 # An in-tree tool is available and we can use it
11841 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11842 echo "$as_me:$LINENO: result: just compiled" >&5
11843echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11844 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11845 # We already found the complete path
172e41aa 11846 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11847 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11848echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11849 elif test "x$target" = "x$host"; then
11850 # We can use an host tool
11851 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11852 echo "$as_me:$LINENO: result: host tool" >&5
11853echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11854 else
11855 # We need a cross tool
2aeb72e9
DD
11856 echo "$as_me:$LINENO: result: pre-installed" >&5
11857echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11858 fi
11859fi
0b0dc272 11860
2aeb72e9
DD
11861echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11862echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11863if test "x${build}" != "x${host}" ; then
e8b05380
PB
11864 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11865 # We already found the complete path
172e41aa 11866 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11867 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11868echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11869 else
11870 # Canadian cross, just use what we found
2aeb72e9
DD
11871 echo "$as_me:$LINENO: result: pre-installed" >&5
11872echo "${ECHO_T}pre-installed" >&6
e8b05380 11873 fi
2abefe3d
PB
11874else
11875 ok=yes
11876 case " ${configdirs} " in
11877 *" gcc "*) ;;
11878 *) ok=no ;;
11879 esac
1c710c3c 11880
2abefe3d
PB
11881 if test $ok = yes; then
11882 # An in-tree tool is available and we can use it
11883 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11884 echo "$as_me:$LINENO: result: just compiled" >&5
11885echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11886 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11887 # We already found the complete path
172e41aa 11888 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11889 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11890echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11891 elif test "x$target" = "x$host"; then
11892 # We can use an host tool
11893 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11894 echo "$as_me:$LINENO: result: host tool" >&5
11895echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11896 else
11897 # We need a cross tool
2aeb72e9
DD
11898 echo "$as_me:$LINENO: result: pre-installed" >&5
11899echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11900 fi
11901fi
0b0dc272 11902
2aeb72e9
DD
11903echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11904echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11905if test "x${build}" != "x${host}" ; then
e8b05380
PB
11906 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11907 # We already found the complete path
172e41aa 11908 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11909 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11910echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11911 else
11912 # Canadian cross, just use what we found
2aeb72e9
DD
11913 echo "$as_me:$LINENO: result: pre-installed" >&5
11914echo "${ECHO_T}pre-installed" >&6
e8b05380 11915 fi
2abefe3d
PB
11916else
11917 ok=yes
11918 case " ${configdirs} " in
11919 *" gcc "*) ;;
11920 *) ok=no ;;
11921 esac
11922 case ,${enable_languages}, in
11923 *,java,*) ;;
11924 *) ok=no ;;
11925 esac
11926 if test $ok = yes; then
11927 # An in-tree tool is available and we can use it
11928 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11929 echo "$as_me:$LINENO: result: just compiled" >&5
11930echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11931 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11932 # We already found the complete path
172e41aa 11933 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11934 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11935echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11936 elif test "x$target" = "x$host"; then
11937 # We can use an host tool
11938 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11939 echo "$as_me:$LINENO: result: host tool" >&5
11940echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11941 else
11942 # We need a cross tool
2aeb72e9
DD
11943 echo "$as_me:$LINENO: result: pre-installed" >&5
11944echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11945 fi
11946fi
0b0dc272 11947
2aeb72e9
DD
11948echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11949echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11950if test "x${build}" != "x${host}" ; then
e8b05380
PB
11951 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11952 # We already found the complete path
172e41aa 11953 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11954 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11955echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11956 else
11957 # Canadian cross, just use what we found
2aeb72e9
DD
11958 echo "$as_me:$LINENO: result: pre-installed" >&5
11959echo "${ECHO_T}pre-installed" >&6
e8b05380 11960 fi
2abefe3d
PB
11961else
11962 ok=yes
11963 case " ${configdirs} " in
11964 *" gcc "*) ;;
11965 *) ok=no ;;
11966 esac
11967 case ,${enable_languages}, in
11968 *,fortran,*) ;;
11969 *) ok=no ;;
11970 esac
11971 if test $ok = yes; then
11972 # An in-tree tool is available and we can use it
11973 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11974 echo "$as_me:$LINENO: result: just compiled" >&5
11975echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11976 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11977 # We already found the complete path
172e41aa 11978 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11979 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11980echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11981 elif test "x$target" = "x$host"; then
11982 # We can use an host tool
11983 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11984 echo "$as_me:$LINENO: result: host tool" >&5
11985echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11986 else
11987 # We need a cross tool
2aeb72e9
DD
11988 echo "$as_me:$LINENO: result: pre-installed" >&5
11989echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11990 fi
11991fi
0b0dc272 11992
2aeb72e9
DD
11993echo "$as_me:$LINENO: checking where to find the target ld" >&5
11994echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11995if test "x${build}" != "x${host}" ; then
e8b05380
PB
11996 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11997 # We already found the complete path
172e41aa 11998 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11999 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12000echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12001 else
12002 # Canadian cross, just use what we found
2aeb72e9
DD
12003 echo "$as_me:$LINENO: result: pre-installed" >&5
12004echo "${ECHO_T}pre-installed" >&6
e8b05380 12005 fi
2abefe3d
PB
12006else
12007 ok=yes
12008 case " ${configdirs} " in
12009 *" ld "*) ;;
12010 *) ok=no ;;
12011 esac
1c710c3c 12012
2abefe3d
PB
12013 if test $ok = yes; then
12014 # An in-tree tool is available and we can use it
12015 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
12016 echo "$as_me:$LINENO: result: just compiled" >&5
12017echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12018 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12019 # We already found the complete path
172e41aa 12020 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12021 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12022echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12023 elif test "x$target" = "x$host"; then
12024 # We can use an host tool
12025 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
12026 echo "$as_me:$LINENO: result: host tool" >&5
12027echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12028 else
12029 # We need a cross tool
2aeb72e9
DD
12030 echo "$as_me:$LINENO: result: pre-installed" >&5
12031echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12032 fi
12033fi
0b0dc272 12034
2aeb72e9
DD
12035echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12036echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 12037if test "x${build}" != "x${host}" ; then
e8b05380
PB
12038 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12039 # We already found the complete path
172e41aa 12040 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12041 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12042echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12043 else
12044 # Canadian cross, just use what we found
2aeb72e9
DD
12045 echo "$as_me:$LINENO: result: pre-installed" >&5
12046echo "${ECHO_T}pre-installed" >&6
e8b05380 12047 fi
2abefe3d 12048else
e8b05380
PB
12049 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12050 # We already found the complete path
172e41aa 12051 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12052 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12053echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 12054 elif test "x$target" = "x$host"; then
2abefe3d
PB
12055 # We can use an host tool
12056 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
12057 echo "$as_me:$LINENO: result: host tool" >&5
12058echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12059 else
12060 # We need a cross tool
2aeb72e9
DD
12061 echo "$as_me:$LINENO: result: pre-installed" >&5
12062echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12063 fi
12064fi
0b0dc272 12065
2aeb72e9
DD
12066echo "$as_me:$LINENO: checking where to find the target nm" >&5
12067echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 12068if test "x${build}" != "x${host}" ; then
e8b05380
PB
12069 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12070 # We already found the complete path
172e41aa 12071 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12072 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12073echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12074 else
12075 # Canadian cross, just use what we found
2aeb72e9
DD
12076 echo "$as_me:$LINENO: result: pre-installed" >&5
12077echo "${ECHO_T}pre-installed" >&6
e8b05380 12078 fi
2abefe3d
PB
12079else
12080 ok=yes
12081 case " ${configdirs} " in
12082 *" binutils "*) ;;
12083 *) ok=no ;;
12084 esac
1c710c3c 12085
2abefe3d
PB
12086 if test $ok = yes; then
12087 # An in-tree tool is available and we can use it
12088 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
12089 echo "$as_me:$LINENO: result: just compiled" >&5
12090echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12091 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12092 # We already found the complete path
172e41aa 12093 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12094 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12095echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12096 elif test "x$target" = "x$host"; then
12097 # We can use an host tool
12098 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
12099 echo "$as_me:$LINENO: result: host tool" >&5
12100echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12101 else
12102 # We need a cross tool
2aeb72e9
DD
12103 echo "$as_me:$LINENO: result: pre-installed" >&5
12104echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12105 fi
12106fi
0b0dc272 12107
2aeb72e9
DD
12108echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12109echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 12110if test "x${build}" != "x${host}" ; then
e8b05380
PB
12111 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12112 # We already found the complete path
172e41aa 12113 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12114 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12115echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12116 else
12117 # Canadian cross, just use what we found
2aeb72e9
DD
12118 echo "$as_me:$LINENO: result: pre-installed" >&5
12119echo "${ECHO_T}pre-installed" >&6
e8b05380 12120 fi
2abefe3d
PB
12121else
12122 ok=yes
12123 case " ${configdirs} " in
12124 *" binutils "*) ;;
12125 *) ok=no ;;
12126 esac
1c710c3c 12127
2abefe3d
PB
12128 if test $ok = yes; then
12129 # An in-tree tool is available and we can use it
12130 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
12131 echo "$as_me:$LINENO: result: just compiled" >&5
12132echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12133 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12134 # We already found the complete path
172e41aa 12135 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12136 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12137echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12138 elif test "x$target" = "x$host"; then
12139 # We can use an host tool
12140 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
12141 echo "$as_me:$LINENO: result: host tool" >&5
12142echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12143 else
12144 # We need a cross tool
2aeb72e9
DD
12145 echo "$as_me:$LINENO: result: pre-installed" >&5
12146echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12147 fi
12148fi
0b0dc272 12149
2aeb72e9
DD
12150echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12151echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 12152if test "x${build}" != "x${host}" ; then
e8b05380
PB
12153 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12154 # We already found the complete path
172e41aa 12155 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12156 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12157echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12158 else
12159 # Canadian cross, just use what we found
2aeb72e9
DD
12160 echo "$as_me:$LINENO: result: pre-installed" >&5
12161echo "${ECHO_T}pre-installed" >&6
e8b05380 12162 fi
2abefe3d
PB
12163else
12164 ok=yes
12165 case " ${configdirs} " in
12166 *" binutils "*) ;;
12167 *) ok=no ;;
12168 esac
1c710c3c 12169
2abefe3d
PB
12170 if test $ok = yes; then
12171 # An in-tree tool is available and we can use it
12172 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
12173 echo "$as_me:$LINENO: result: just compiled" >&5
12174echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12175 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12176 # We already found the complete path
172e41aa 12177 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12178 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12179echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12180 elif test "x$target" = "x$host"; then
12181 # We can use an host tool
12182 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
12183 echo "$as_me:$LINENO: result: host tool" >&5
12184echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12185 else
12186 # We need a cross tool
2aeb72e9
DD
12187 echo "$as_me:$LINENO: result: pre-installed" >&5
12188echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12189 fi
12190fi
0b0dc272 12191
2aeb72e9
DD
12192echo "$as_me:$LINENO: checking where to find the target strip" >&5
12193echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 12194if test "x${build}" != "x${host}" ; then
e8b05380
PB
12195 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12196 # We already found the complete path
172e41aa 12197 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12198 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12199echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12200 else
12201 # Canadian cross, just use what we found
2aeb72e9
DD
12202 echo "$as_me:$LINENO: result: pre-installed" >&5
12203echo "${ECHO_T}pre-installed" >&6
e8b05380 12204 fi
2abefe3d
PB
12205else
12206 ok=yes
12207 case " ${configdirs} " in
12208 *" binutils "*) ;;
12209 *) ok=no ;;
12210 esac
1c710c3c 12211
2abefe3d
PB
12212 if test $ok = yes; then
12213 # An in-tree tool is available and we can use it
12214 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
12215 echo "$as_me:$LINENO: result: just compiled" >&5
12216echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12217 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12218 # We already found the complete path
172e41aa 12219 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12220 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12221echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12222 elif test "x$target" = "x$host"; then
12223 # We can use an host tool
12224 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
12225 echo "$as_me:$LINENO: result: host tool" >&5
12226echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12227 else
12228 # We need a cross tool
2aeb72e9
DD
12229 echo "$as_me:$LINENO: result: pre-installed" >&5
12230echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12231 fi
12232fi
0b0dc272 12233
2aeb72e9
DD
12234echo "$as_me:$LINENO: checking where to find the target windres" >&5
12235echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 12236if test "x${build}" != "x${host}" ; then
e8b05380
PB
12237 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12238 # We already found the complete path
172e41aa 12239 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12240 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12241echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12242 else
12243 # Canadian cross, just use what we found
2aeb72e9
DD
12244 echo "$as_me:$LINENO: result: pre-installed" >&5
12245echo "${ECHO_T}pre-installed" >&6
e8b05380 12246 fi
2abefe3d
PB
12247else
12248 ok=yes
12249 case " ${configdirs} " in
12250 *" binutils "*) ;;
12251 *) ok=no ;;
12252 esac
1c710c3c 12253
2abefe3d
PB
12254 if test $ok = yes; then
12255 # An in-tree tool is available and we can use it
12256 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
12257 echo "$as_me:$LINENO: result: just compiled" >&5
12258echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12259 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12260 # We already found the complete path
172e41aa 12261 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12262 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12263echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12264 elif test "x$target" = "x$host"; then
12265 # We can use an host tool
12266 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
12267 echo "$as_me:$LINENO: result: host tool" >&5
12268echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12269 else
12270 # We need a cross tool
2aeb72e9
DD
12271 echo "$as_me:$LINENO: result: pre-installed" >&5
12272echo "${ECHO_T}pre-installed" >&6
2abefe3d 12273 fi
671aa708 12274fi
be912515 12275
901119ae
KT
12276echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12277echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12278if test "x${build}" != "x${host}" ; then
12279 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12280 # We already found the complete path
12281 ac_dir=`dirname $WINDMC_FOR_TARGET`
12282 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12283echo "${ECHO_T}pre-installed in $ac_dir" >&6
12284 else
12285 # Canadian cross, just use what we found
12286 echo "$as_me:$LINENO: result: pre-installed" >&5
12287echo "${ECHO_T}pre-installed" >&6
12288 fi
12289else
12290 ok=yes
12291 case " ${configdirs} " in
12292 *" binutils "*) ;;
12293 *) ok=no ;;
12294 esac
12295
12296 if test $ok = yes; then
12297 # An in-tree tool is available and we can use it
12298 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12299 echo "$as_me:$LINENO: result: just compiled" >&5
12300echo "${ECHO_T}just compiled" >&6
12301 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12302 # We already found the complete path
12303 ac_dir=`dirname $WINDMC_FOR_TARGET`
12304 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12305echo "${ECHO_T}pre-installed in $ac_dir" >&6
12306 elif test "x$target" = "x$host"; then
12307 # We can use an host tool
12308 WINDMC_FOR_TARGET='$(WINDMC)'
12309 echo "$as_me:$LINENO: result: host tool" >&5
12310echo "${ECHO_T}host tool" >&6
12311 else
12312 # We need a cross tool
12313 echo "$as_me:$LINENO: result: pre-installed" >&5
12314echo "${ECHO_T}pre-installed" >&6
12315 fi
12316fi
12317
be912515
NN
12318
12319
2abefe3d 12320
0b0dc272 12321
671aa708
NN
12322# Certain tools may need extra flags.
12323AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12324RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12325NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12326
2abefe3d
PB
12327# When building target libraries, except in a Canadian cross, we use
12328# the same toolchain as the compiler we just built.
12329COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12330COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12331COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12332if test $host = $build; then
12333 case " $configdirs " in
12334 *" gcc "*)
12335 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12336 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12337 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12338 ;;
12339 esac
12340fi
12341
12342
12343
12344
12345
2aeb72e9
DD
12346echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12347echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12348# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 12349if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
12350 enableval="$enable_maintainer_mode"
12351 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12352else
12353 USE_MAINTAINER_MODE=no
2aeb72e9
DD
12354fi;
12355echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12356echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
12357
12358
12359if test "$USE_MAINTAINER_MODE" = yes; then
12360 MAINTAINER_MODE_TRUE=
12361 MAINTAINER_MODE_FALSE='#'
12362else
12363 MAINTAINER_MODE_TRUE='#'
12364 MAINTAINER_MODE_FALSE=
1c710c3c 12365fi
ee03dc5e
AO
12366MAINT=$MAINTAINER_MODE_TRUE
12367
2805b53a
NN
12368# ---------------------
12369# GCC bootstrap support
12370# ---------------------
12371
12372# Stage specific cflags for build.
12373stage1_cflags="-g"
12374case $build in
12375 vax-*-*)
12376 case ${GCC} in
12377 yes) stage1_cflags="-g -Wa,-J" ;;
12378 *) stage1_cflags="-g -J" ;;
12379 esac ;;
2805b53a
NN
12380esac
12381
0b50988a
EB
12382# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12383if test "$GCC" = yes; then
12384 saved_CFLAGS="$CFLAGS"
12385
12386 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12387 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12388 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12389echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12390 cat >conftest.$ac_ext <<_ACEOF
12391/* confdefs.h. */
12392_ACEOF
12393cat confdefs.h >>conftest.$ac_ext
12394cat >>conftest.$ac_ext <<_ACEOF
12395/* end confdefs.h. */
12396
9cc1244e
JJ
12397#if (__GNUC__ < 3) \
12398 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12399 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12400#error http://gcc.gnu.org/PR29382
12401#endif
12402
1c710c3c
DJ
12403int
12404main ()
12405{
12406
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411rm -f conftest.$ac_objext
2aeb72e9
DD
12412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 echo "$as_me:$LINENO: result: yes" >&5
12434echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12435else
12436 echo "$as_me: failed program was:" >&5
12437sed 's/^/| /' conftest.$ac_ext >&5
12438
2aeb72e9
DD
12439echo "$as_me:$LINENO: result: no" >&5
12440echo "${ECHO_T}no" >&6
1c710c3c 12441fi
2aeb72e9 12442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12443
12444 CFLAGS="$saved_CFLAGS"
12445fi
12446
12447
2805b53a 12448
8efea775 12449# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12450# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12451if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12452 enableval="$enable_stage1_checking"
12453 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12454else
e643dc23 12455 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12456 stage1_checking=--enable-checking=yes,types
8efea775 12457else
e643dc23 12458 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12459fi
2aeb72e9 12460fi;
8efea775
PB
12461
12462
2805b53a 12463# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12464# Check whether --enable-werror or --disable-werror was given.
2805b53a 12465if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12466 enableval="$enable_werror"
12467
2805b53a 12468else
416cfb5e 12469 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12470 enable_werror=yes
88fceb68
PB
12471else
12472 enable_werror=no
12473fi
2aeb72e9 12474fi;
09a9c095
NN
12475case ${enable_werror} in
12476 yes) stage2_werror_flag="--enable-werror-always" ;;
12477 *) stage2_werror_flag="" ;;
2805b53a
NN
12478esac
12479
12480
32845532 12481# Flags needed to enable html installing and building
1c710c3c 12482
2aeb72e9 12483# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12484if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12485 withval="$with_datarootdir"
12486 datarootdir="\${prefix}/${withval}"
32845532
CD
12487else
12488 datarootdir="\${prefix}/share"
2aeb72e9 12489fi;
32845532
CD
12490
12491
2aeb72e9 12492# Check whether --with-docdir or --without-docdir was given.
32845532 12493if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12494 withval="$with_docdir"
12495 docdir="\${prefix}/${withval}"
32845532
CD
12496else
12497 docdir="\${datarootdir}/doc"
2aeb72e9 12498fi;
32845532
CD
12499
12500
2aeb72e9 12501# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12502if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12503 withval="$with_pdfdir"
12504 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12505else
12506 pdfdir="\${docdir}"
2aeb72e9 12507fi;
9c4d2493
BM
12508
12509
2aeb72e9 12510# Check whether --with-htmldir or --without-htmldir was given.
32845532 12511if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12512 withval="$with_htmldir"
12513 htmldir="\${prefix}/${withval}"
32845532
CD
12514else
12515 htmldir="\${docdir}"
2aeb72e9 12516fi;
32845532
CD
12517
12518
12519
12520
172e41aa 12521
11a67599 12522
2aeb72e9 12523 ac_config_files="$ac_config_files Makefile"
1c710c3c 12524cat >confcache <<\_ACEOF
671aa708
NN
12525# This file is a shell script that caches the results of configure
12526# tests run on this system so they can be shared between configure
1c710c3c
DJ
12527# scripts and configure runs, see configure's option --config-cache.
12528# It is not useful on other systems. If it contains results you don't
12529# want to keep, you may remove or edit it.
671aa708 12530#
1c710c3c
DJ
12531# config.status only pays attention to the cache file if you give it
12532# the --recheck option to rerun configure.
671aa708 12533#
1c710c3c
DJ
12534# `ac_cv_env_foo' variables (set or unset) will be overridden when
12535# loading this file, other *unset* `ac_cv_foo' will be assigned the
12536# following values.
12537
12538_ACEOF
12539
671aa708
NN
12540# The following way of writing the cache mishandles newlines in values,
12541# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12542# So, don't put newlines in cache variables' values.
671aa708
NN
12543# Ultrix sh set writes to stderr and can't be redirected directly,
12544# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12545{
1c710c3c 12546 (set) 2>&1 |
2aeb72e9
DD
12547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12548 *ac_space=\ *)
1c710c3c
DJ
12549 # `set' does not quote correctly, so add quotes (double-quote
12550 # substitution turns \\\\ into \\, and sed turns \\ into \).
12551 sed -n \
12552 "s/'/'\\\\''/g;
12553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12554 ;;
1c710c3c
DJ
12555 *)
12556 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12557 sed -n \
12558 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12559 ;;
2aeb72e9
DD
12560 esac;
12561} |
1c710c3c
DJ
12562 sed '
12563 t clear
2aeb72e9 12564 : clear
1c710c3c
DJ
12565 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12566 t end
2aeb72e9
DD
12567 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12568 : end' >>confcache
12569if diff $cache_file confcache >/dev/null 2>&1; then :; else
12570 if test -w $cache_file; then
12571 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12572 cat confcache >$cache_file
671aa708 12573 else
2aeb72e9 12574 echo "not updating unwritable cache $cache_file"
671aa708 12575 fi
4977bab6 12576fi
671aa708 12577rm -f confcache
79c06341 12578
671aa708
NN
12579test "x$prefix" = xNONE && prefix=$ac_default_prefix
12580# Let make expand exec_prefix.
12581test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12582
2aeb72e9
DD
12583# VPATH may cause trouble with some makes, so we remove $(srcdir),
12584# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12585# trailing colons and then remove the whole line if VPATH becomes empty
12586# (actually we leave an empty line to preserve line numbers).
12587if test "x$srcdir" = x.; then
12588 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12589s/:*\$(srcdir):*/:/;
12590s/:*\${srcdir}:*/:/;
12591s/:*@srcdir@:*/:/;
12592s/^\([^=]*=[ ]*\):*/\1/;
12593s/:*$//;
12594s/^[^=]*=[ ]*$//;
12595}'
12596fi
12597
671aa708
NN
12598# Transform confdefs.h into DEFS.
12599# Protect against shell expansion while executing Makefile rules.
12600# Protect against Makefile macro expansion.
1c710c3c
DJ
12601#
12602# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12603# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12604# look for a macro that doesn't take arguments.
2aeb72e9 12605cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12606t clear
2aeb72e9
DD
12607: clear
12608s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12609t quote
2aeb72e9 12610s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12611t quote
2aeb72e9
DD
12612d
12613: quote
12614s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12615s,\[,\\&,g
12616s,\],\\&,g
12617s,\$,$$,g
12618p
12619_ACEOF
12620# We use echo to avoid assuming a particular line-breaking character.
12621# The extra dot is to prevent the shell from consuming trailing
12622# line-breaks from the sub-command output. A line-break within
12623# single-quotes doesn't work because, if this script is created in a
12624# platform that uses two characters for line-breaks (e.g., DOS), tr
12625# would break.
12626ac_LF_and_DOT=`echo; echo .`
12627DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12628rm -f confdef2opt.sed
1c710c3c
DJ
12629
12630
12631ac_libobjs=
12632ac_ltlibobjs=
12633for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12634 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12635 ac_i=`echo "$ac_i" |
12636 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12637 # 2. Add them.
12638 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12639 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12640done
12641LIBOBJS=$ac_libobjs
fb0103e5 12642
1c710c3c 12643LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12644
af71363e 12645
1c710c3c
DJ
12646
12647: ${CONFIG_STATUS=./config.status}
12648ac_clean_files_save=$ac_clean_files
12649ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12650{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12651echo "$as_me: creating $CONFIG_STATUS" >&6;}
12652cat >$CONFIG_STATUS <<_ACEOF
12653#! $SHELL
12654# Generated by $as_me.
671aa708 12655# Run this file to recreate the current configuration.
671aa708 12656# Compiler output produced by configure, useful for debugging
1c710c3c 12657# configure, is in config.log if it exists.
0b0dc272 12658
1c710c3c
DJ
12659debug=false
12660ac_cs_recheck=false
12661ac_cs_silent=false
12662SHELL=\${CONFIG_SHELL-$SHELL}
12663_ACEOF
12664
12665cat >>$CONFIG_STATUS <<\_ACEOF
12666## --------------------- ##
12667## M4sh Initialization. ##
12668## --------------------- ##
12669
2aeb72e9 12670# Be Bourne compatible
1c710c3c
DJ
12671if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12672 emulate sh
12673 NULLCMD=:
12674 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12675 # is contrary to our usage. Disable this feature.
12676 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12677elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12678 set -o posix
1c710c3c 12679fi
2aeb72e9 12680DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12681
12682# Support unset when possible.
12683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12684 as_unset=unset
12685else
12686 as_unset=false
12687fi
12688
12689
12690# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12691$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12692PS1='$ '
12693PS2='> '
12694PS4='+ '
12695
12696# NLS nuisances.
12697for as_var in \
12698 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12699 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12700 LC_TELEPHONE LC_TIME
12701do
12702 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12703 eval $as_var=C; export $as_var
12704 else
2aeb72e9 12705 $as_unset $as_var
1c710c3c
DJ
12706 fi
12707done
12708
12709# Required to use basename.
2aeb72e9 12710if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12711 as_expr=expr
12712else
12713 as_expr=false
12714fi
12715
2aeb72e9 12716if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12717 as_basename=basename
12718else
12719 as_basename=false
12720fi
12721
12722
12723# Name of the executable.
2aeb72e9 12724as_me=`$as_basename "$0" ||
1c710c3c
DJ
12725$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12726 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12727 X"$0" : 'X\(/\)$' \| \
12728 . : '\(.\)' 2>/dev/null ||
1c710c3c 12729echo X/"$0" |
2aeb72e9
DD
12730 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12731 /^X\/\(\/\/\)$/{ s//\1/; q; }
12732 /^X\/\(\/\).*/{ s//\1/; q; }
12733 s/.*/./; q'`
1c710c3c 12734
2aeb72e9
DD
12735
12736# PATH needs CR, and LINENO needs CR and PATH.
12737# Avoid depending upon Character Ranges.
12738as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12739as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12740as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12741as_cr_digits='0123456789'
12742as_cr_alnum=$as_cr_Letters$as_cr_digits
12743
12744# The user is always right.
12745if test "${PATH_SEPARATOR+set}" != set; then
12746 echo "#! /bin/sh" >conf$$.sh
12747 echo "exit 0" >>conf$$.sh
12748 chmod +x conf$$.sh
12749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12750 PATH_SEPARATOR=';'
12751 else
12752 PATH_SEPARATOR=:
12753 fi
12754 rm -f conf$$.sh
12755fi
1c710c3c
DJ
12756
12757
2aeb72e9
DD
12758 as_lineno_1=$LINENO
12759 as_lineno_2=$LINENO
12760 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12761 test "x$as_lineno_1" != "x$as_lineno_2" &&
12762 test "x$as_lineno_3" = "x$as_lineno_2" || {
12763 # Find who we are. Look in the path if we contain no path at all
12764 # relative or not.
12765 case $0 in
12766 *[\\/]* ) as_myself=$0 ;;
12767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768for as_dir in $PATH
12769do
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12773done
1c710c3c 12774
2aeb72e9
DD
12775 ;;
12776 esac
12777 # We did not find ourselves, most probably we were run as `sh COMMAND'
12778 # in which case we are not to be found in the path.
12779 if test "x$as_myself" = x; then
12780 as_myself=$0
12781 fi
12782 if test ! -f "$as_myself"; then
12783 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12784echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12785 { (exit 1); exit 1; }; }
12786 fi
12787 case $CONFIG_SHELL in
12788 '')
12789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12791do
12792 IFS=$as_save_IFS
12793 test -z "$as_dir" && as_dir=.
12794 for as_base in sh bash ksh sh5; do
12795 case $as_dir in
12796 /*)
12797 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12798 as_lineno_1=$LINENO
12799 as_lineno_2=$LINENO
2aeb72e9 12800 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12801 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12802 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12803 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12804 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12805 CONFIG_SHELL=$as_dir/$as_base
12806 export CONFIG_SHELL
12807 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12808 fi;;
12809 esac
12810 done
12811done
12812;;
12813 esac
1c710c3c
DJ
12814
12815 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12816 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12817 # line-number line before each line; the second 'sed' does the real
12818 # work. The second script uses 'N' to pair each line-number line
12819 # with the numbered line, and appends trailing '-' during
12820 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12821 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12822 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12823 sed '=' <$as_myself |
1c710c3c
DJ
12824 sed '
12825 N
2aeb72e9
DD
12826 s,$,-,
12827 : loop
12828 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12829 t loop
2aeb72e9
DD
12830 s,-$,,
12831 s,^['$as_cr_digits']*\n,,
1c710c3c 12832 ' >$as_me.lineno &&
2aeb72e9
DD
12833 chmod +x $as_me.lineno ||
12834 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12835echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12836 { (exit 1); exit 1; }; }
12837
12838 # Don't try to exec as it changes $[0], causing all sort of problems
12839 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12840 # original and so on. Autoconf is especially sensible to this).
12841 . ./$as_me.lineno
1c710c3c
DJ
12842 # Exit status is that of the last command.
12843 exit
12844}
12845
12846
2aeb72e9
DD
12847case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12848 *c*,-n*) ECHO_N= ECHO_C='
12849' ECHO_T=' ' ;;
12850 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12851 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12852esac
12853
2aeb72e9 12854if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12855 as_expr=expr
12856else
12857 as_expr=false
12858fi
12859
12860rm -f conf$$ conf$$.exe conf$$.file
12861echo >conf$$.file
12862if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12863 # We could just check for DJGPP; but this test a) works b) is more generic
12864 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12865 if test -f conf$$.exe; then
12866 # Don't use ln at all; we don't have any links
1c710c3c 12867 as_ln_s='cp -p'
2aeb72e9
DD
12868 else
12869 as_ln_s='ln -s'
12870 fi
1c710c3c
DJ
12871elif ln conf$$.file conf$$ 2>/dev/null; then
12872 as_ln_s=ln
12873else
12874 as_ln_s='cp -p'
12875fi
2aeb72e9 12876rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12877
12878if mkdir -p . 2>/dev/null; then
12879 as_mkdir_p=:
12880else
12881 test -d ./-p && rmdir ./-p
12882 as_mkdir_p=false
12883fi
12884
2aeb72e9 12885as_executable_p="test -f"
1c710c3c
DJ
12886
12887# Sed expression to map a string onto a valid CPP name.
12888as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12889
12890# Sed expression to map a string onto a valid variable name.
12891as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12892
12893
2aeb72e9
DD
12894# IFS
12895# We need space, tab and new line, in precisely that order.
12896as_nl='
12897'
12898IFS=" $as_nl"
12899
12900# CDPATH.
12901$as_unset CDPATH
12902
1c710c3c
DJ
12903exec 6>&1
12904
2aeb72e9 12905# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12906# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12907# values after options handling. Logging --version etc. is OK.
12908exec 5>>config.log
12909{
12910 echo
12911 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12912## Running $as_me. ##
12913_ASBOX
12914} >&5
12915cat >&5 <<_CSEOF
12916
1c710c3c 12917This file was extended by $as_me, which was
2aeb72e9 12918generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12919
12920 CONFIG_FILES = $CONFIG_FILES
12921 CONFIG_HEADERS = $CONFIG_HEADERS
12922 CONFIG_LINKS = $CONFIG_LINKS
12923 CONFIG_COMMANDS = $CONFIG_COMMANDS
12924 $ $0 $@
12925
2aeb72e9
DD
12926_CSEOF
12927echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12928echo >&5
1c710c3c
DJ
12929_ACEOF
12930
12931# Files that config.status was made for.
2aeb72e9
DD
12932if test -n "$ac_config_files"; then
12933 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12934fi
1c710c3c 12935
2aeb72e9
DD
12936if test -n "$ac_config_headers"; then
12937 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12938fi
12939
12940if test -n "$ac_config_links"; then
12941 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12942fi
12943
12944if test -n "$ac_config_commands"; then
12945 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12946fi
1c710c3c
DJ
12947
12948cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12949
1c710c3c
DJ
12950ac_cs_usage="\
12951\`$as_me' instantiates files from templates according to the
12952current configuration.
12953
12954Usage: $0 [OPTIONS] [FILE]...
12955
12956 -h, --help print this help, then exit
2aeb72e9 12957 -V, --version print version number, then exit
1c710c3c
DJ
12958 -q, --quiet do not print progress messages
12959 -d, --debug don't remove temporary files
12960 --recheck update $as_me by reconfiguring in the same conditions
12961 --file=FILE[:TEMPLATE]
12962 instantiate the configuration file FILE
12963
12964Configuration files:
12965$config_files
12966
12967Report bugs to <bug-autoconf@gnu.org>."
11a67599 12968_ACEOF
2aeb72e9 12969
1c710c3c
DJ
12970cat >>$CONFIG_STATUS <<_ACEOF
12971ac_cs_version="\\
12972config.status
2aeb72e9
DD
12973configured by $0, generated by GNU Autoconf 2.59,
12974 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12975
2aeb72e9 12976Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12977This config.status script is free software; the Free Software Foundation
12978gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12979srcdir=$srcdir
12980INSTALL="$INSTALL"
1c710c3c
DJ
12981_ACEOF
12982
12983cat >>$CONFIG_STATUS <<\_ACEOF
12984# If no file are specified by the user, then we need to provide default
12985# value. By we need to know if files were specified by the user.
12986ac_need_defaults=:
12987while test $# != 0
a4b9e93e 12988do
1c710c3c
DJ
12989 case $1 in
12990 --*=*)
2aeb72e9
DD
12991 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12992 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12993 ac_shift=:
12994 ;;
2aeb72e9 12995 -*)
1c710c3c
DJ
12996 ac_option=$1
12997 ac_optarg=$2
12998 ac_shift=shift
12999 ;;
2aeb72e9
DD
13000 *) # This is not an option, so the user has probably given explicit
13001 # arguments.
13002 ac_option=$1
13003 ac_need_defaults=false;;
1c710c3c
DJ
13004 esac
13005
13006 case $ac_option in
13007 # Handling of the options.
2aeb72e9
DD
13008_ACEOF
13009cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 13010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13011 ac_cs_recheck=: ;;
2aeb72e9
DD
13012 --version | --vers* | -V )
13013 echo "$ac_cs_version"; exit 0 ;;
13014 --he | --h)
13015 # Conflict between --help and --header
13016 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13017Try \`$0 --help' for more information." >&5
13018echo "$as_me: error: ambiguous option: $1
13019Try \`$0 --help' for more information." >&2;}
13020 { (exit 1); exit 1; }; };;
13021 --help | --hel | -h )
13022 echo "$ac_cs_usage"; exit 0 ;;
13023 --debug | --d* | -d )
1c710c3c
DJ
13024 debug=: ;;
13025 --file | --fil | --fi | --f )
13026 $ac_shift
13027 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13028 ac_need_defaults=false;;
2aeb72e9
DD
13029 --header | --heade | --head | --hea )
13030 $ac_shift
13031 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13032 ac_need_defaults=false;;
1c710c3c
DJ
13033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13034 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13035 ac_cs_silent=: ;;
13036
13037 # This is an error.
2aeb72e9
DD
13038 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13039Try \`$0 --help' for more information." >&5
13040echo "$as_me: error: unrecognized option: $1
13041Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
13042 { (exit 1); exit 1; }; } ;;
13043
2aeb72e9 13044 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 13045
0b0dc272 13046 esac
1c710c3c 13047 shift
0b0dc272
AM
13048done
13049
1c710c3c 13050ac_configure_extra_args=
0b0dc272 13051
1c710c3c
DJ
13052if $ac_cs_silent; then
13053 exec 6>/dev/null
13054 ac_configure_extra_args="$ac_configure_extra_args --silent"
13055fi
0b0dc272 13056
1c710c3c
DJ
13057_ACEOF
13058cat >>$CONFIG_STATUS <<_ACEOF
13059if \$ac_cs_recheck; then
2aeb72e9
DD
13060 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13061 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
13062fi
13063
13064_ACEOF
13065
1c710c3c 13066
11a67599 13067
2aeb72e9
DD
13068
13069
13070cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
13071for ac_config_target in $ac_config_targets
13072do
2aeb72e9
DD
13073 case "$ac_config_target" in
13074 # Handling of arguments.
13075 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
13076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13077echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13078 { (exit 1); exit 1; }; };;
13079 esac
13080done
13081
13082# If the user did not use the arguments to specify the items to instantiate,
13083# then the envvar interface is used. Set only those that are not.
13084# We use the long form for the default assignment because of an extremely
13085# bizarre bug on SunOS 4.1.3.
13086if $ac_need_defaults; then
13087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13088fi
13089
13090# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 13091# simply because there is no reason to put it here, and in addition,
1c710c3c 13092# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 13093# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
13094$debug ||
13095{
2aeb72e9 13096 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
13097 trap '{ (exit 1); exit 1; }' 1 2 13 15
13098}
2aeb72e9 13099
1c710c3c
DJ
13100# Create a (secure) tmp directory for tmp files.
13101
13102{
2aeb72e9 13103 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13104 test -n "$tmp" && test -d "$tmp"
13105} ||
13106{
2aeb72e9
DD
13107 tmp=./confstat$$-$RANDOM
13108 (umask 077 && mkdir $tmp)
1c710c3c
DJ
13109} ||
13110{
13111 echo "$me: cannot create a temporary directory in ." >&2
13112 { (exit 1); exit 1; }
13113}
13114
2aeb72e9
DD
13115_ACEOF
13116
13117cat >>$CONFIG_STATUS <<_ACEOF
13118
1c710c3c 13119#
2aeb72e9 13120# CONFIG_FILES section.
1c710c3c
DJ
13121#
13122
13123# No need to generate the scripts if there are no CONFIG_FILES.
13124# This happens for instance when ./config.status config.h
2aeb72e9
DD
13125if test -n "\$CONFIG_FILES"; then
13126 # Protect against being on the right side of a sed subst in config.status.
13127 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13128 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13129s,@SHELL@,$SHELL,;t t
13130s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13131s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13132s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13133s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13134s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13135s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13136s,@exec_prefix@,$exec_prefix,;t t
13137s,@prefix@,$prefix,;t t
13138s,@program_transform_name@,$program_transform_name,;t t
13139s,@bindir@,$bindir,;t t
13140s,@sbindir@,$sbindir,;t t
13141s,@libexecdir@,$libexecdir,;t t
13142s,@datadir@,$datadir,;t t
13143s,@sysconfdir@,$sysconfdir,;t t
13144s,@sharedstatedir@,$sharedstatedir,;t t
13145s,@localstatedir@,$localstatedir,;t t
13146s,@libdir@,$libdir,;t t
13147s,@includedir@,$includedir,;t t
13148s,@oldincludedir@,$oldincludedir,;t t
13149s,@infodir@,$infodir,;t t
13150s,@mandir@,$mandir,;t t
13151s,@build_alias@,$build_alias,;t t
13152s,@host_alias@,$host_alias,;t t
13153s,@target_alias@,$target_alias,;t t
13154s,@DEFS@,$DEFS,;t t
13155s,@ECHO_C@,$ECHO_C,;t t
13156s,@ECHO_N@,$ECHO_N,;t t
13157s,@ECHO_T@,$ECHO_T,;t t
13158s,@LIBS@,$LIBS,;t t
ad33ff57 13159s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
2aeb72e9
DD
13160s,@build@,$build,;t t
13161s,@build_cpu@,$build_cpu,;t t
13162s,@build_vendor@,$build_vendor,;t t
13163s,@build_os@,$build_os,;t t
13164s,@build_noncanonical@,$build_noncanonical,;t t
13165s,@host_noncanonical@,$host_noncanonical,;t t
13166s,@target_noncanonical@,$target_noncanonical,;t t
13167s,@host@,$host,;t t
13168s,@host_cpu@,$host_cpu,;t t
13169s,@host_vendor@,$host_vendor,;t t
13170s,@host_os@,$host_os,;t t
13171s,@target@,$target,;t t
13172s,@target_cpu@,$target_cpu,;t t
13173s,@target_vendor@,$target_vendor,;t t
13174s,@target_os@,$target_os,;t t
13175s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13176s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13177s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13178s,@LN@,$LN,;t t
13179s,@LN_S@,$LN_S,;t t
2aeb72e9
DD
13180s,@build_libsubdir@,$build_libsubdir,;t t
13181s,@build_subdir@,$build_subdir,;t t
13182s,@host_subdir@,$host_subdir,;t t
13183s,@target_subdir@,$target_subdir,;t t
13184s,@CC@,$CC,;t t
13185s,@CFLAGS@,$CFLAGS,;t t
13186s,@LDFLAGS@,$LDFLAGS,;t t
13187s,@CPPFLAGS@,$CPPFLAGS,;t t
13188s,@ac_ct_CC@,$ac_ct_CC,;t t
13189s,@EXEEXT@,$EXEEXT,;t t
13190s,@OBJEXT@,$OBJEXT,;t t
13191s,@CXX@,$CXX,;t t
13192s,@CXXFLAGS@,$CXXFLAGS,;t t
13193s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13194s,@GNATBIND@,$GNATBIND,;t t
13195s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13196s,@GNATMAKE@,$GNATMAKE,;t t
13197s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13198s,@do_compare@,$do_compare,;t t
13199s,@gmplibs@,$gmplibs,;t t
13200s,@gmpinc@,$gmpinc,;t t
f8bf9252
SP
13201s,@ppllibs@,$ppllibs,;t t
13202s,@pplinc@,$pplinc,;t t
13203s,@clooglibs@,$clooglibs,;t t
13204s,@clooginc@,$clooginc,;t t
2aeb72e9
DD
13205s,@stage1_languages@,$stage1_languages,;t t
13206s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 13207s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
1c8bd6a3
PB
13208s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13209s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
2aeb72e9 13210s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
d89f0ad6 13211s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
2aeb72e9
DD
13212s,@tooldir@,$tooldir,;t t
13213s,@build_tooldir@,$build_tooldir,;t t
13214s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13215s,@GDB_TK@,$GDB_TK,;t t
13216s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13217s,@build_configargs@,$build_configargs,;t t
13218s,@build_configdirs@,$build_configdirs,;t t
13219s,@host_configargs@,$host_configargs,;t t
13220s,@configdirs@,$configdirs,;t t
13221s,@target_configargs@,$target_configargs,;t t
0999159b
PB
13222s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13223s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 13224s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
13225s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13226s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13227s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13228s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13229s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13230s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13231s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13232s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13233s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13234s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13235s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13236s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
13237s,@config_shell@,$config_shell,;t t
13238s,@YACC@,$YACC,;t t
13239s,@BISON@,$BISON,;t t
13240s,@M4@,$M4,;t t
13241s,@LEX@,$LEX,;t t
13242s,@FLEX@,$FLEX,;t t
13243s,@MAKEINFO@,$MAKEINFO,;t t
13244s,@EXPECT@,$EXPECT,;t t
13245s,@RUNTEST@,$RUNTEST,;t t
13246s,@AR@,$AR,;t t
13247s,@AS@,$AS,;t t
13248s,@DLLTOOL@,$DLLTOOL,;t t
13249s,@LD@,$LD,;t t
13250s,@LIPO@,$LIPO,;t t
13251s,@NM@,$NM,;t t
13252s,@RANLIB@,$RANLIB,;t t
13253s,@STRIP@,$STRIP,;t t
13254s,@WINDRES@,$WINDRES,;t t
901119ae 13255s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
13256s,@OBJCOPY@,$OBJCOPY,;t t
13257s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
13258s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13259s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13260s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13261s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13262s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13263s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13264s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13265s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13266s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13267s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13268s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13269s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13270s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13271s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13272s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 13273s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
13274s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13275s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13276s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13277s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13278s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13279s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13280s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13281s,@MAINT@,$MAINT,;t t
13282s,@stage1_cflags@,$stage1_cflags,;t t
13283s,@stage1_checking@,$stage1_checking,;t t
13284s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13285s,@datarootdir@,$datarootdir,;t t
13286s,@docdir@,$docdir,;t t
13287s,@pdfdir@,$pdfdir,;t t
13288s,@htmldir@,$htmldir,;t t
13289s,@LIBOBJS@,$LIBOBJS,;t t
13290s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13291/@serialization_dependencies@/r $serialization_dependencies
13292s,@serialization_dependencies@,,;t t
13293/@host_makefile_frag@/r $host_makefile_frag
13294s,@host_makefile_frag@,,;t t
13295/@target_makefile_frag@/r $target_makefile_frag
13296s,@target_makefile_frag@,,;t t
13297/@alphaieee_frag@/r $alphaieee_frag
13298s,@alphaieee_frag@,,;t t
13299/@ospace_frag@/r $ospace_frag
13300s,@ospace_frag@,,;t t
13301CEOF
79c06341 13302
1c710c3c
DJ
13303_ACEOF
13304
2aeb72e9
DD
13305 cat >>$CONFIG_STATUS <<\_ACEOF
13306 # Split the substitutions into bite-sized pieces for seds with
13307 # small command number limits, like on Digital OSF/1 and HP-UX.
13308 ac_max_sed_lines=48
13309 ac_sed_frag=1 # Number of current file.
13310 ac_beg=1 # First line for current file.
13311 ac_end=$ac_max_sed_lines # Line after last line for current file.
13312 ac_more_lines=:
13313 ac_sed_cmds=
13314 while $ac_more_lines; do
13315 if test $ac_beg -gt 1; then
13316 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13317 else
13318 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13319 fi
13320 if test ! -s $tmp/subs.frag; then
13321 ac_more_lines=false
13322 else
13323 # The purpose of the label and of the branching condition is to
13324 # speed up the sed processing (if there are no `@' at all, there
13325 # is no need to browse any of the substitutions).
13326 # These are the two extra sed commands mentioned above.
13327 (echo ':t
13328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13329 if test -z "$ac_sed_cmds"; then
13330 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13331 else
13332 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13333 fi
13334 ac_sed_frag=`expr $ac_sed_frag + 1`
13335 ac_beg=$ac_end
13336 ac_end=`expr $ac_end + $ac_max_sed_lines`
13337 fi
13338 done
13339 if test -z "$ac_sed_cmds"; then
13340 ac_sed_cmds=cat
11a67599 13341 fi
2aeb72e9 13342fi # test -n "$CONFIG_FILES"
11a67599 13343
11a67599 13344_ACEOF
1c710c3c 13345cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
13346for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13347 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13348 case $ac_file in
13349 - | *:- | *:-:* ) # input from stdin
13350 cat >$tmp/stdin
13351 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13352 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13353 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13355 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
13356 esac
13357
2aeb72e9
DD
13358 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13359 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
13360$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13361 X"$ac_file" : 'X\(//\)[^/]' \| \
13362 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
13363 X"$ac_file" : 'X\(/\)' \| \
13364 . : '\(.\)' 2>/dev/null ||
1c710c3c 13365echo X"$ac_file" |
2aeb72e9
DD
13366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13368 /^X\(\/\/\)$/{ s//\1/; q; }
13369 /^X\(\/\).*/{ s//\1/; q; }
13370 s/.*/./; q'`
13371 { if $as_mkdir_p; then
13372 mkdir -p "$ac_dir"
13373 else
13374 as_dir="$ac_dir"
1c710c3c 13375 as_dirs=
2aeb72e9
DD
13376 while test ! -d "$as_dir"; do
13377 as_dirs="$as_dir $as_dirs"
13378 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
13379$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13380 X"$as_dir" : 'X\(//\)[^/]' \| \
13381 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13382 X"$as_dir" : 'X\(/\)' \| \
13383 . : '\(.\)' 2>/dev/null ||
1c710c3c 13384echo X"$as_dir" |
2aeb72e9
DD
13385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13387 /^X\(\/\/\)$/{ s//\1/; q; }
13388 /^X\(\/\).*/{ s//\1/; q; }
13389 s/.*/./; q'`
1c710c3c 13390 done
2aeb72e9
DD
13391 test ! -n "$as_dirs" || mkdir $as_dirs
13392 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13393echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13394 { (exit 1); exit 1; }; }; }
2aeb72e9 13395
1c710c3c 13396 ac_builddir=.
0b0dc272 13397
2aeb72e9 13398if test "$ac_dir" != .; then
1c710c3c 13399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13400 # A "../" for each directory in $ac_dir_suffix.
13401 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13402else
13403 ac_dir_suffix= ac_top_builddir=
13404fi
1c710c3c
DJ
13405
13406case $srcdir in
2aeb72e9 13407 .) # No --srcdir option. We are building in place.
1c710c3c 13408 ac_srcdir=.
2aeb72e9
DD
13409 if test -z "$ac_top_builddir"; then
13410 ac_top_srcdir=.
13411 else
13412 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13413 fi ;;
13414 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13415 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13416 ac_top_srcdir=$srcdir ;;
13417 *) # Relative path.
13418 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13419 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13420esac
a4b9e93e 13421
2aeb72e9
DD
13422# Do not use `cd foo && pwd` to compute absolute paths, because
13423# the directories may not exist.
13424case `pwd` in
13425.) ac_abs_builddir="$ac_dir";;
13426*)
13427 case "$ac_dir" in
13428 .) ac_abs_builddir=`pwd`;;
13429 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13430 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13431 esac;;
13432esac
13433case $ac_abs_builddir in
13434.) ac_abs_top_builddir=${ac_top_builddir}.;;
13435*)
13436 case ${ac_top_builddir}. in
13437 .) ac_abs_top_builddir=$ac_abs_builddir;;
13438 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13439 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13440 esac;;
13441esac
13442case $ac_abs_builddir in
13443.) ac_abs_srcdir=$ac_srcdir;;
13444*)
13445 case $ac_srcdir in
13446 .) ac_abs_srcdir=$ac_abs_builddir;;
13447 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13448 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13449 esac;;
13450esac
13451case $ac_abs_builddir in
13452.) ac_abs_top_srcdir=$ac_top_srcdir;;
13453*)
13454 case $ac_top_srcdir in
13455 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13456 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13457 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13458 esac;;
13459esac
0b0dc272 13460
1c710c3c
DJ
13461
13462 case $INSTALL in
13463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13464 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13465 esac
11a67599 13466
2aeb72e9
DD
13467 if test x"$ac_file" != x-; then
13468 { echo "$as_me:$LINENO: creating $ac_file" >&5
13469echo "$as_me: creating $ac_file" >&6;}
13470 rm -f "$ac_file"
13471 fi
13472 # Let's still pretend it is `configure' which instantiates (i.e., don't
13473 # use $as_me), people would be surprised to read:
13474 # /* config.h. Generated by config.status. */
13475 if test x"$ac_file" = x-; then
13476 configure_input=
13477 else
13478 configure_input="$ac_file. "
13479 fi
13480 configure_input=$configure_input"Generated from `echo $ac_file_in |
13481 sed 's,.*/,,'` by configure."
13482
13483 # First look for the input files in the build tree, otherwise in the
13484 # src tree.
13485 ac_file_inputs=`IFS=:
13486 for f in $ac_file_in; do
13487 case $f in
13488 -) echo $tmp/stdin ;;
13489 [\\/$]*)
13490 # Absolute (can't be DOS-style, as IFS=:)
13491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13492echo "$as_me: error: cannot find input file: $f" >&2;}
13493 { (exit 1); exit 1; }; }
13494 echo "$f";;
13495 *) # Relative
13496 if test -f "$f"; then
13497 # Build tree
13498 echo "$f"
13499 elif test -f "$srcdir/$f"; then
13500 # Source tree
13501 echo "$srcdir/$f"
13502 else
13503 # /dev/null tree
13504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13505echo "$as_me: error: cannot find input file: $f" >&2;}
13506 { (exit 1); exit 1; }; }
13507 fi;;
13508 esac
13509 done` || { (exit 1); exit 1; }
11a67599 13510_ACEOF
1c710c3c
DJ
13511cat >>$CONFIG_STATUS <<_ACEOF
13512 sed "$ac_vpsub
13513$extrasub
13514_ACEOF
13515cat >>$CONFIG_STATUS <<\_ACEOF
13516:t
13517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13518s,@configure_input@,$configure_input,;t t
13519s,@srcdir@,$ac_srcdir,;t t
13520s,@abs_srcdir@,$ac_abs_srcdir,;t t
13521s,@top_srcdir@,$ac_top_srcdir,;t t
13522s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13523s,@builddir@,$ac_builddir,;t t
13524s,@abs_builddir@,$ac_abs_builddir,;t t
13525s,@top_builddir@,$ac_top_builddir,;t t
13526s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13527s,@INSTALL@,$ac_INSTALL,;t t
13528" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13529 rm -f $tmp/stdin
13530 if test x"$ac_file" != x-; then
13531 mv $tmp/out $ac_file
13532 else
13533 cat $tmp/out
13534 rm -f $tmp/out
13535 fi
11a67599 13536
2aeb72e9
DD
13537done
13538_ACEOF
11a67599 13539
2aeb72e9 13540cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13541
1c710c3c
DJ
13542{ (exit 0); exit 0; }
13543_ACEOF
671aa708 13544chmod +x $CONFIG_STATUS
1c710c3c
DJ
13545ac_clean_files=$ac_clean_files_save
13546
13547
13548# configure is writing to config.log, and then calls config.status.
13549# config.status does its own redirection, appending to config.log.
13550# Unfortunately, on DOS this fails, as config.log is still kept open
13551# by configure, so config.status won't be able to write to it; its
13552# output is simply discarded. So we exec the FD to /dev/null,
13553# effectively closing config.log, so it can be properly (re)opened and
13554# appended to by config.status. When coming back to configure, we
13555# need to make the FD available again.
13556if test "$no_create" != yes; then
13557 ac_cs_success=:
13558 ac_config_status_args=
13559 test "$silent" = yes &&
13560 ac_config_status_args="$ac_config_status_args --quiet"
13561 exec 5>/dev/null
13562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13563 exec 5>>config.log
13564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13565 # would make configure fail if this is the last instruction.
13566 $ac_cs_success || { (exit 1); exit 1; }
13567fi
79c06341 13568
This page took 2.587651 seconds and 5 git commands to generate.