]> gcc.gnu.org Git - gcc.git/blame - configure
re PR bootstrap/33781 ("Arg list too long" building libgcc.a)
[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"
0999159b 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs 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'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
2aeb72e9 306datadir='${prefix}/share'
671aa708
NN
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
2aeb72e9 310libdir='${exec_prefix}/lib'
671aa708
NN
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
2aeb72e9
DD
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
2aeb72e9 321 eval "$ac_prev=\$ac_option"
671aa708
NN
322 ac_prev=
323 continue
324 fi
79c06341 325
2aeb72e9 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
2aeb72e9 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708 351
2aeb72e9 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 353 ac_prev=datadir ;;
2aeb72e9
DD
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
2aeb72e9 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
2aeb72e9
DD
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
2aeb72e9 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
2aeb72e9
DD
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
2aeb72e9 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
2aeb72e9
DD
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
2aeb72e9 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
2aeb72e9
DD
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
2aeb72e9
DD
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
602 export $ac_envvar ;;
603
671aa708 604 *)
1c710c3c
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
af71363e 619fi
af71363e 620
2aeb72e9
DD
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
671aa708 623do
2aeb72e9 624 eval ac_val=$`echo $ac_var`
1c710c3c 625 case $ac_val in
2aeb72e9
DD
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
0b0dc272 650
1c710c3c
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
2aeb72e9
DD
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
1c710c3c 678echo X"$0" |
2aeb72e9
DD
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708 684 srcdir=$ac_confdir
2aeb72e9 685 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
2aeb72e9
DD
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 697 { (exit 1); exit 1; }; }
2aeb72e9 698 fi
1c710c3c 699fi
2aeb72e9
DD
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 702 { (exit 1); exit 1; }; }
2aeb72e9
DD
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
ac9e6043
RW
716ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
717
2aeb72e9
DD
718ac_env_CC_set=${CC+set}
719ac_env_CC_value=$CC
720ac_cv_env_CC_set=${CC+set}
721ac_cv_env_CC_value=$CC
722ac_env_CFLAGS_set=${CFLAGS+set}
723ac_env_CFLAGS_value=$CFLAGS
724ac_cv_env_CFLAGS_set=${CFLAGS+set}
725ac_cv_env_CFLAGS_value=$CFLAGS
726ac_env_LDFLAGS_set=${LDFLAGS+set}
727ac_env_LDFLAGS_value=$LDFLAGS
728ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729ac_cv_env_LDFLAGS_value=$LDFLAGS
730ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_env_CPPFLAGS_value=$CPPFLAGS
732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733ac_cv_env_CPPFLAGS_value=$CPPFLAGS
734ac_env_CXX_set=${CXX+set}
735ac_env_CXX_value=$CXX
736ac_cv_env_CXX_set=${CXX+set}
737ac_cv_env_CXX_value=$CXX
738ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_env_CXXFLAGS_value=$CXXFLAGS
740ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741ac_cv_env_CXXFLAGS_value=$CXXFLAGS
742ac_env_AR_set=${AR+set}
743ac_env_AR_value=$AR
744ac_cv_env_AR_set=${AR+set}
745ac_cv_env_AR_value=$AR
746ac_env_AS_set=${AS+set}
747ac_env_AS_value=$AS
748ac_cv_env_AS_set=${AS+set}
749ac_cv_env_AS_value=$AS
750ac_env_DLLTOOL_set=${DLLTOOL+set}
751ac_env_DLLTOOL_value=$DLLTOOL
752ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753ac_cv_env_DLLTOOL_value=$DLLTOOL
754ac_env_LD_set=${LD+set}
755ac_env_LD_value=$LD
756ac_cv_env_LD_set=${LD+set}
757ac_cv_env_LD_value=$LD
758ac_env_LIPO_set=${LIPO+set}
759ac_env_LIPO_value=$LIPO
760ac_cv_env_LIPO_set=${LIPO+set}
761ac_cv_env_LIPO_value=$LIPO
762ac_env_NM_set=${NM+set}
763ac_env_NM_value=$NM
764ac_cv_env_NM_set=${NM+set}
765ac_cv_env_NM_value=$NM
766ac_env_RANLIB_set=${RANLIB+set}
767ac_env_RANLIB_value=$RANLIB
768ac_cv_env_RANLIB_set=${RANLIB+set}
769ac_cv_env_RANLIB_value=$RANLIB
770ac_env_STRIP_set=${STRIP+set}
771ac_env_STRIP_value=$STRIP
772ac_cv_env_STRIP_set=${STRIP+set}
773ac_cv_env_STRIP_value=$STRIP
774ac_env_WINDRES_set=${WINDRES+set}
775ac_env_WINDRES_value=$WINDRES
776ac_cv_env_WINDRES_set=${WINDRES+set}
777ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
778ac_env_WINDMC_set=${WINDMC+set}
779ac_env_WINDMC_value=$WINDMC
780ac_cv_env_WINDMC_set=${WINDMC+set}
781ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
782ac_env_OBJCOPY_set=${OBJCOPY+set}
783ac_env_OBJCOPY_value=$OBJCOPY
784ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785ac_cv_env_OBJCOPY_value=$OBJCOPY
786ac_env_OBJDUMP_set=${OBJDUMP+set}
787ac_env_OBJDUMP_value=$OBJDUMP
788ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789ac_cv_env_OBJDUMP_value=$OBJDUMP
790ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
850ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
854
855#
856# Report the --help message.
857#
858if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
861 cat <<_ACEOF
862\`configure' configures this package to adapt to many kinds of systems.
863
864Usage: $0 [OPTION]... [VAR=VALUE]...
865
866To assign environment variables (e.g., CC, CFLAGS...), specify them as
867VAR=VALUE. See below for descriptions of some of the useful variables.
868
869Defaults for the options are specified in brackets.
870
871Configuration:
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
881
2aeb72e9
DD
882_ACEOF
883
884 cat <<_ACEOF
1c710c3c
DJ
885Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
887 [$ac_default_prefix]
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 [PREFIX]
890
891By default, \`make install' will install all the files in
892\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894for instance \`--prefix=\$HOME'.
895
896For better control, use the options below.
897
898Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
911_ACEOF
912
913 cat <<\_ACEOF
914
915Program names:
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
919
920System types:
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
924_ACEOF
925fi
926
927if test -n "$ac_init_help"; then
928
929 cat <<\_ACEOF
930
931Optional Features:
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
30b74385
RW
934 --enable-libada build libada directory
935 --enable-libssp build libssp directory
936 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 937 stage1. Mostly useful for compiler development.
30b74385
RW
938 --enable-objc-gc enable use of Boehm's garbage collector with the
939 GNU Objective-C runtime
940 --enable-bootstrap enable bootstrapping [yes if native build]
941 --enable-serial-[{host,target,build}-]configure
942 force sequential configuration of
1c710c3c 943 sub-packages for the host, target or build
30b74385 944 machine, or all sub-packages
1c710c3c
DJ
945 --enable-maintainer-mode enable make rules and dependencies not useful
946 (and sometimes confusing) to the casual installer
30b74385
RW
947 --enable-stage1-checking[=all] choose additional checking for stage1
948 of the compiler
1c710c3c
DJ
949 --enable-werror enable -Werror in bootstrap stage2 and later
950
951Optional Packages:
952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
954 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
955 --with-mpfr-dir=PATH this option has been REMOVED
956 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
957 Equivalent to --with-mpfr-include=PATH/include
958 plus --with-mpfr-lib=PATH/lib
959 --with-mpfr-include=PATH
30b74385
RW
960 specify directory for installed MPFR include files
961 --with-mpfr-lib=PATH specify directory for the installed MPFR library
962 --with-gmp-dir=PATH this option has been REMOVED
963 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
964 Equivalent to --with-gmp-include=PATH/include
965 plus --with-gmp-lib=PATH/lib
30b74385
RW
966 --with-gmp-include=PATH specify directory for installed GMP include files
967 --with-gmp-lib=PATH specify directory for the installed GMP library
968 --with-build-sysroot=SYSROOT
1c710c3c 969 use sysroot as the system root during the build
c8aea42c
PB
970 --with-debug-prefix-map='A=B C=D ...'
971 map A to B, C to D ... in debug information
30b74385 972 --with-build-time-tools=PATH
1c710c3c 973 use given path to find target tools during the build
30b74385
RW
974 --with-datarootdir use datarootdir as the data root directory.
975 --with-docdir install documentation in this directory.
976 --with-pdfdir install pdf in this directory.
977 --with-htmldir install html in this directory.
1c710c3c
DJ
978
979Some influential environment variables:
980 CC C compiler command
981 CFLAGS C compiler flags
982 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
983 nonstandard directory <lib dir>
2aeb72e9
DD
984 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
985 headers in a nonstandard directory <include dir>
c3a86da9
DJ
986 CXX C++ compiler command
987 CXXFLAGS C++ compiler flags
278a7a38
AO
988 AR AR for the host
989 AS AS for the host
990 DLLTOOL DLLTOOL for the host
991 LD LD for the host
992 LIPO LIPO for the host
993 NM NM for the host
994 RANLIB RANLIB for the host
995 STRIP STRIP for the host
996 WINDRES WINDRES for the host
901119ae 997 WINDMC WINDMC for the host
278a7a38
AO
998 OBJCOPY OBJCOPY for the host
999 OBJDUMP OBJDUMP for the host
1000 CC_FOR_TARGET
1001 CC for the target
1002 CXX_FOR_TARGET
1003 CXX for the target
1004 GCC_FOR_TARGET
1005 GCC for the target
1006 GCJ_FOR_TARGET
1007 GCJ for the target
1008 GFORTRAN_FOR_TARGET
1009 GFORTRAN for the target
1010 AR_FOR_TARGET
1011 AR for the target
1012 AS_FOR_TARGET
1013 AS for the target
1014 DLLTOOL_FOR_TARGET
1015 DLLTOOL for the target
1016 LD_FOR_TARGET
1017 LD for the target
1018 LIPO_FOR_TARGET
1019 LIPO for the target
1020 NM_FOR_TARGET
1021 NM for the target
1022 OBJDUMP_FOR_TARGET
1023 OBJDUMP for the target
1024 RANLIB_FOR_TARGET
1025 RANLIB for the target
1026 STRIP_FOR_TARGET
1027 STRIP for the target
1028 WINDRES_FOR_TARGET
1029 WINDRES for the target
901119ae
KT
1030 WINDMC_FOR_TARGET
1031 WINDMC for the target
1c710c3c
DJ
1032
1033Use these variables to override the choices made by `configure' or to help
1034it to find libraries and programs with nonstandard names/locations.
1035
1036_ACEOF
1037fi
1038
1039if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
2aeb72e9 1041 ac_popdir=`pwd`
1c710c3c 1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1043 test -d $ac_dir || continue
1c710c3c
DJ
1044 ac_builddir=.
1045
2aeb72e9 1046if test "$ac_dir" != .; then
1c710c3c 1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050else
1051 ac_dir_suffix= ac_top_builddir=
1052fi
1c710c3c
DJ
1053
1054case $srcdir in
2aeb72e9 1055 .) # No --srcdir option. We are building in place.
1c710c3c 1056 ac_srcdir=.
2aeb72e9
DD
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1063 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068esac
1069
1070# Do not use `cd foo && pwd` to compute absolute paths, because
1071# the directories may not exist.
1072case `pwd` in
1073.) ac_abs_builddir="$ac_dir";;
1074*)
1075 case "$ac_dir" in
1076 .) ac_abs_builddir=`pwd`;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 esac;;
1080esac
1081case $ac_abs_builddir in
1082.) ac_abs_top_builddir=${ac_top_builddir}.;;
1083*)
1084 case ${ac_top_builddir}. in
1085 .) ac_abs_top_builddir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_srcdir=$ac_srcdir;;
1092*)
1093 case $ac_srcdir in
1094 .) ac_abs_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_top_srcdir=$ac_top_srcdir;;
1101*)
1102 case $ac_top_srcdir in
1103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106 esac;;
1c710c3c 1107esac
2aeb72e9
DD
1108
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
1c710c3c
DJ
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1123 fi
1124 cd $ac_popdir
1c710c3c
DJ
1125 done
1126fi
1127
2aeb72e9 1128test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1129if $ac_init_version; then
1130 cat <<\_ACEOF
1131
2aeb72e9 1132Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1133This configure script is free software; the Free Software Foundation
1134gives unlimited permission to copy, distribute and modify it.
1135_ACEOF
2aeb72e9 1136 exit 0
0b0dc272 1137fi
2aeb72e9
DD
1138exec 5>config.log
1139cat >&5 <<_ACEOF
1c710c3c
DJ
1140This file contains any messages produced by compilers while
1141running configure, to aid debugging if configure makes a mistake.
1142
1143It was created by $as_me, which was
2aeb72e9 1144generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1145
1146 $ $0 $@
1147
1148_ACEOF
1149{
1150cat <<_ASUNAME
1151## --------- ##
1152## Platform. ##
1153## --------- ##
1154
1155hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1163
1164/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1167hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1168/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1171
1172_ASUNAME
1173
1174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175for as_dir in $PATH
1176do
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180done
1181
1182} >&5
1183
1184cat >&5 <<_ACEOF
1185
1186
1187## ----------- ##
1188## Core tests. ##
1189## ----------- ##
1190
1191_ACEOF
1192
1193
1194# Keep a trace of the command line.
1195# Strip out --no-create and --no-recursion so they do not pile up.
1196# Strip out --silent because we don't want to record it for future runs.
1197# Also quote any args containing shell meta-characters.
1198# Make two passes to allow for proper duplicate-argument suppression.
1199ac_configure_args=
1200ac_configure_args0=
1201ac_configure_args1=
2aeb72e9 1202ac_sep=
1c710c3c
DJ
1203ac_must_keep_next=false
1204for ac_pass in 1 2
1205do
1206 for ac_arg
1207 do
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
2aeb72e9 1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218 2)
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1231 ;;
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1234 fi
2aeb72e9
DD
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
1c710c3c
DJ
1238 ;;
1239 esac
1240 done
1241done
1242$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245# When interrupted or exit'd, cleanup temporary files, and complete
1246# config.log. We remove comments because anyway the quotes in there
1247# would cause problems or look ugly.
2aeb72e9
DD
1248# WARNING: Be sure not to use single quotes in there, as some shells,
1249# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1250trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1252 {
1253 echo
1254
1255 cat <<\_ASBOX
1256## ---------------- ##
1257## Cache variables. ##
1258## ---------------- ##
1259_ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1262{
1c710c3c 1263 (set) 2>&1 |
2aeb72e9
DD
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
1c710c3c 1266 sed -n \
2aeb72e9
DD
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269 ;;
1c710c3c 1270 *)
2aeb72e9
DD
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1273 ;;
2aeb72e9
DD
1274 esac;
1275}
1c710c3c
DJ
1276 echo
1277
1278 cat <<\_ASBOX
1279## ----------------- ##
1280## Output variables. ##
1281## ----------------- ##
1282_ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1285 do
2aeb72e9
DD
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1288 done | sort
1289 echo
1290
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
2aeb72e9
DD
1293## ------------- ##
1294## Output files. ##
1295## ------------- ##
1c710c3c
DJ
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1299 do
2aeb72e9
DD
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1302 done | sort
1303 echo
1304 fi
1305
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308## ----------- ##
1309## confdefs.h. ##
1310## ----------- ##
1311_ASBOX
1312 echo
2aeb72e9 1313 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1314 echo
1315 fi
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
2aeb72e9
DD
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1322 exit $exit_status
2aeb72e9 1323 ' 0
1c710c3c
DJ
1324for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326done
1327ac_signal=0
1328
1329# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1330rm -rf conftest* confdefs.h
1331# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332echo >confdefs.h
1c710c3c
DJ
1333
1334# Predefined preprocessor variables.
1335
1336cat >>confdefs.h <<_ACEOF
1337#define PACKAGE_NAME "$PACKAGE_NAME"
1338_ACEOF
1339
1340
1341cat >>confdefs.h <<_ACEOF
1342#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343_ACEOF
1344
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_VERSION "$PACKAGE_VERSION"
1348_ACEOF
0b0dc272 1349
1c710c3c
DJ
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_STRING "$PACKAGE_STRING"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358_ACEOF
1359
1360
1361# Let the site file select an alternate cache file if it wants to.
671aa708 1362# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1363if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368 fi
671aa708 1369fi
2aeb72e9 1370for ac_site_file in $CONFIG_SITE; do
671aa708 1371 if test -r "$ac_site_file"; then
1c710c3c
DJ
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1375 . "$ac_site_file"
1376 fi
1377done
1378
1379if test -r "$cache_file"; then
1c710c3c
DJ
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
2aeb72e9
DD
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
1c710c3c
DJ
1388 esac
1389 fi
671aa708 1390else
1c710c3c
DJ
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1394fi
1395
1396# Check that the precious variables saved in the cache have kept the same
1397# value.
1398ac_cache_corrupted=false
2aeb72e9
DD
1399for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1415 *)
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
2aeb72e9
DD
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1437 fi
1438done
1439if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
671aa708
NN
1445fi
1446
2aeb72e9
DD
1447ac_ext=c
1448ac_cpp='$CPP $CPPFLAGS'
1449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
1c710c3c
DJ
1453
1454
1455
1456
671aa708
NN
1457
1458
d02c69be 1459
1c710c3c
DJ
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473# Find the build, host, and target systems.
671aa708 1474ac_aux_dir=
2aeb72e9
DD
1475for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1476 if test -f $ac_dir/install-sh; then
671aa708
NN
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install-sh -c"
1479 break
2aeb72e9 1480 elif test -f $ac_dir/install.sh; then
671aa708
NN
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install.sh -c"
1483 break
2aeb72e9 1484 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/shtool install -c"
1487 break
671aa708
NN
1488 fi
1489done
1490if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1491 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1492echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1493 { (exit 1); exit 1; }; }
671aa708 1494fi
2aeb72e9
DD
1495ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1498
1c710c3c 1499# Make sure we can run config.sub.
2aeb72e9
DD
1500$ac_config_sub sun4 >/dev/null 2>&1 ||
1501 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1502echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1503 { (exit 1); exit 1; }; }
1504
2aeb72e9
DD
1505echo "$as_me:$LINENO: checking build system type" >&5
1506echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1507if test "${ac_cv_build+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
2aeb72e9
DD
1510 ac_cv_build_alias=$build_alias
1511test -z "$ac_cv_build_alias" &&
1512 ac_cv_build_alias=`$ac_config_guess`
1513test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1515echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1516 { (exit 1); exit 1; }; }
2aeb72e9
DD
1517ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1519echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1520 { (exit 1); exit 1; }; }
1521
1522fi
2aeb72e9
DD
1523echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1524echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1525build=$ac_cv_build
2aeb72e9
DD
1526build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1529
671aa708 1530
1c710c3c
DJ
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1534esac
1535
1536
af71363e 1537
1c710c3c
DJ
1538 case ${host_alias} in
1539 "") host_noncanonical=${build_noncanonical} ;;
1540 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1541esac
1542
af71363e 1543
1c710c3c
DJ
1544
1545 case ${target_alias} in
1546 "") target_noncanonical=${host_noncanonical} ;;
1547 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1548esac
1549
af71363e 1550
1c710c3c
DJ
1551
1552
1553test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1554 test "$program_prefix$program_suffix$program_transform_name" = \
1555 NONENONEs,x,x, &&
1c710c3c 1556 program_transform_name=s,y,y,
af71363e 1557
2aeb72e9
DD
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1562else
2aeb72e9
DD
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1569 { (exit 1); exit 1; }; }
1570
af71363e 1571fi
2aeb72e9
DD
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1574host=$ac_cv_host
2aeb72e9
DD
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
2aeb72e9
DD
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1591 { (exit 1); exit 1; }; }
1592
1593fi
2aeb72e9
DD
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1596target=$ac_cv_target
2aeb72e9
DD
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
671aa708 1608test "$program_prefix" != NONE &&
2aeb72e9 1609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1610# Use a double $ so make ignores it.
1611test "$program_suffix" != NONE &&
2aeb72e9 1612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1613# Double any \ or $. echo might interpret backslashes.
1614# By default was `s,x,x', remove it if useless.
1615cat <<\_ACEOF >conftest.sed
1616s/[\\$]/&&/g;s/;s,x,x,$//
1617_ACEOF
1618program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1619rm conftest.sed
af71363e 1620
671aa708
NN
1621
1622
775956d0
NN
1623# Get 'install' or 'install-sh' and its variants.
1624# Find a good install program. We prefer a C program (faster),
1625# so one script is as good as another. But avoid the broken or
1626# incompatible versions:
1627# SysV /etc/install, /usr/sbin/install
1628# SunOS /usr/etc/install
1629# IRIX /sbin/install
1630# AIX /bin/install
1c710c3c 1631# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1633# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1635# OS/2's system install, which has a completely different semantic
775956d0 1636# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1637echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1638echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1639if test -z "$INSTALL"; then
1c710c3c
DJ
1640if test "${ac_cv_path_install+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 # Account for people who put trailing slashes in PATH elements.
1649case $as_dir/ in
1650 ./ | .// | /cC/* | \
1651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1652 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1653 /usr/ucb/* ) ;;
1654 *)
1655 # OSF1 and SCO ODT 3.0 have their own names for install.
1656 # Don't use installbsd from OSF since it installs stuff as root
1657 # by default.
1658 for ac_prog in ginstall scoinst install; do
1659 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1660 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1661 if test $ac_prog = install &&
1c710c3c 1662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1663 # AIX install. It has an incompatible calling convention.
1664 :
1c710c3c
DJ
1665 elif test $ac_prog = install &&
1666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1667 # program-specific install script used by HP pwplus--don't use.
1668 :
775956d0 1669 else
1c710c3c
DJ
1670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1671 break 3
775956d0
NN
1672 fi
1673 fi
1674 done
1c710c3c
DJ
1675 done
1676 ;;
1677esac
1678done
1679
775956d0
NN
1680
1681fi
1682 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1683 INSTALL=$ac_cv_path_install
775956d0 1684 else
2aeb72e9
DD
1685 # As a last resort, use the slow shell script. We don't cache a
1686 # path for INSTALL within a source directory, because that will
775956d0 1687 # break other packages using the cache if that directory is
2aeb72e9 1688 # removed, or if the path is relative.
1c710c3c 1689 INSTALL=$ac_install_sh
775956d0
NN
1690 fi
1691fi
2aeb72e9
DD
1692echo "$as_me:$LINENO: result: $INSTALL" >&5
1693echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1694
1695# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1696# It thinks the first close brace ends the variable substitution.
1697test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1698
1c710c3c 1699test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1700
1701test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1702
2aeb72e9
DD
1703echo "$as_me:$LINENO: checking whether ln works" >&5
1704echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1705if test "${acx_cv_prog_LN+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1707else
1708 rm -f conftestdata_t
1709echo >conftestdata_f
1710if ln conftestdata_f conftestdata_t 2>/dev/null
1711then
1712 acx_cv_prog_LN=ln
1713else
1714 acx_cv_prog_LN=no
1715fi
1716rm -f conftestdata_f conftestdata_t
1717
1718fi
1719if test $acx_cv_prog_LN = no; then
1720 LN="cp"
2aeb72e9
DD
1721 echo "$as_me:$LINENO: result: no, using $LN" >&5
1722echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1723else
1724 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1725 echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
ad6717df
PB
1727fi
1728
2aeb72e9
DD
1729echo "$as_me:$LINENO: checking whether ln -s works" >&5
1730echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1731LN_S=$as_ln_s
1732if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1733 echo "$as_me:$LINENO: result: yes" >&5
1734echo "${ECHO_T}yes" >&6
fb0103e5 1735else
2aeb72e9
DD
1736 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1737echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1738fi
1739
775956d0 1740
79c06341 1741### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1742### If we are on Windows, search for the shell. This will permit people
1743### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1744### without also having to set CONFIG_SHELL. This code will work when
1745### using bash, which sets OSTYPE.
1746case "${OSTYPE}" in
1747*win32*)
671aa708
NN
1748 if test x${CONFIG_SHELL} = x ; then
1749 if test ! -f /bin/sh ; then
1750 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1751 CONFIG_SHELL=${SHELL}
1752 export CONFIG_SHELL
1753 else
1754 for prog in sh sh.exe bash bash.exe; do
1755 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1756 for dir in $PATH; do
1757 test -z "$dir" && dir=.
1758 if test -f $dir/$prog; then
1759 CONFIG_SHELL=$dir/$prog
1760 export CONFIG_SHELL
1761 break
1762 fi
1763 done
1764 IFS="$save_ifs"
1765 test -n "${CONFIG_SHELL}" && break
1766 done
1767 fi
1768 fi
1769 fi
1770 ;;
1771esac
1772
1773config_shell=${CONFIG_SHELL-/bin/sh}
1774
79c06341
JL
1775progname=$0
1776# if PWD already has a value, it is probably wrong.
671aa708 1777if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1778
beeaf216
MM
1779# Export original configure arguments for use by sub-configures.
1780# Quote arguments with shell meta charatcers.
1781TOPLEVEL_CONFIGURE_ARGUMENTS=
1782set -- "$progname" "$@"
9f8c6739
JM
1783for ac_arg
1784do
beeaf216 1785 case "$ac_arg" in
8c79f3c4 1786 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1787 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1788 # if the argument is of the form -foo=baz, quote the baz part only
1789 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1790 *) ;;
1791 esac
1792 # Add the quoted argument to the list.
1793 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1794done
d9acb717
RW
1795if test "$silent" = yes; then
1796 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1797fi
beeaf216
MM
1798# Remove the initial space we just introduced and, as these will be
1799# expanded by make, quote '$'.
1800TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1801
cc1e60ea 1802
671aa708 1803moveifchange=${srcdir}/move-if-change
79c06341 1804
ee6a22df
L
1805srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1806
1807# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1808# a relative path.
1809if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1810 INSTALL="${srcpwd}/install-sh -c"
1811fi
1812
671aa708
NN
1813# Set srcdir to "." if that's what it is.
1814# This is important for multilib support.
1815pwd=`${PWDCMD-pwd}`
671aa708
NN
1816if test "${pwd}" = "${srcpwd}" ; then
1817 srcdir=.
79c06341
JL
1818fi
1819
671aa708 1820topsrcdir=$srcpwd
5d4a5ee6 1821
671aa708 1822extra_host_args=
afabd8e6 1823
671aa708
NN
1824### To add a new directory to the tree, first choose whether it is a target
1825### or a host dependent tool. Then put it into the appropriate list
1826### (library or tools, host or target), doing a dependency sort.
79c06341 1827
1c710c3c 1828# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1829# configdirs, or target_configdirs; see the serialization section below.
79c06341 1830
1c710c3c
DJ
1831# Dependency sorting is only needed when *configuration* must be done in
1832# a particular order. In all cases a dependency should be specified in
671aa708 1833# the Makefile, whether or not it's implicitly specified here.
79c06341 1834
671aa708
NN
1835# Double entries in build_configdirs, configdirs, or target_configdirs may
1836# cause circular dependencies and break everything horribly.
79c06341 1837
23f6b2f9
PB
1838# these library is used by various programs built for the build
1839# environment
1840#
1841build_libs="build-libiberty"
1842
1843# these tools are built for the build environment
71b5d516 1844build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1845
671aa708
NN
1846# these libraries are used by various programs built for the host environment
1847#
e69bf64b 1848host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1849
671aa708
NN
1850# these tools are built for the host environment
1851# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1852# know that we are building the simulator.
1853# binutils, gas and ld appear in that order because it makes sense to run
1854# "make check" in that particular order.
5395b47b 1855host_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
1856
1857# libgcj represents the runtime libraries only used by gcj.
1858libgcj="target-libffi \
671aa708
NN
1859 target-zlib \
1860 target-qthreads \
1861 target-libjava"
1862
1863# these libraries are built for the target environment, and are built after
1864# the host libraries and the host tools (which may be a cross compiler)
1865#
291f172e
DJ
1866target_libraries="target-libgcc \
1867 target-libiberty \
671aa708
NN
1868 target-libgloss \
1869 target-newlib \
6d3b5aea 1870 target-libgomp \
cb543528 1871 target-libstdc++-v3 \
6de9cd9a 1872 target-libmudflap \
77008252 1873 target-libssp \
6de9cd9a 1874 target-libgfortran \
7cd0cf9c 1875 target-boehm-gc \
77d187bc 1876 ${libgcj} \
d9cdb878 1877 target-libobjc \
6d3b5aea 1878 target-libada"
671aa708 1879
4dbda6f0
NN
1880# these tools are built using the target libraries, and are intended to
1881# run only in the target environment
671aa708 1882#
4dbda6f0 1883# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1884# list belongs in this list. those programs are also very likely
1885# candidates for the "native_only" list which follows
1886#
97286f7f 1887target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1888
671aa708 1889################################################################################
79c06341 1890
671aa708
NN
1891## All tools belong in one of the four categories, and are assigned above
1892## We assign ${configdirs} this way to remove all embedded newlines. This
1893## is important because configure will choke if they ever get through.
1894## ${configdirs} is directories we build using the host tools.
1895## ${target_configdirs} is directories we build using the target tools.
671aa708 1896configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1897target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1898build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1899
ac9e6043
RW
1900
1901
671aa708 1902################################################################################
79c06341 1903
671aa708 1904srcname="gnu development package"
79c06341 1905
671aa708
NN
1906# This gets set non-empty for some net releases of packages.
1907appdirs=""
79c06341 1908
671aa708
NN
1909# Define is_cross_compiler to save on calls to 'test'.
1910is_cross_compiler=
1911if test x"${host}" = x"${target}" ; then
1912 is_cross_compiler=no
79c06341 1913else
671aa708 1914 is_cross_compiler=yes
1c710c3c 1915fi
79c06341 1916
b4acb5ef 1917# Find the build and target subdir names.
8b87bb96 1918
2e9e6f68
DJ
1919# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1920# have matching libraries, they should use host libraries: Makefile.tpl
1921# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1922# However, they still use the build modules, because the corresponding
1923# host modules (e.g. bison) are only built for the host when bootstrap
1924# finishes. So:
1925# - build_subdir is where we find build modules, and never changes.
1926# - build_libsubdir is where we find build libraries, and can be overridden.
1927
1928# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1929build_subdir="build-${build_noncanonical}"
1c710c3c 1930
2aeb72e9 1931# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1932if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1933 withval="$with_build_libsubdir"
1934 build_libsubdir="$withval"
2e9e6f68
DJ
1935else
1936 build_libsubdir="$build_subdir"
2aeb72e9 1937fi;
215c351a
PB
1938# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1939if ( test $srcdir = . && test -d gcc ) \
1940 || test -d $srcdir/../host-${host_noncanonical}; then
1941 host_subdir="host-${host_noncanonical}"
1942else
1943 host_subdir=.
1944fi
8b87bb96
NN
1945# No prefix.
1946target_subdir=${target_noncanonical}
1c710c3c 1947
79c06341 1948
671aa708
NN
1949# Skipdirs are removed silently.
1950skipdirs=
1951# Noconfigdirs are removed loudly.
1952noconfigdirs=""
79c06341 1953
671aa708
NN
1954use_gnu_ld=
1955# Make sure we don't let GNU ld be added if we didn't want it.
1956if test x$with_gnu_ld = xno ; then
1957 use_gnu_ld=no
1958 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1959fi
1960
671aa708
NN
1961use_gnu_as=
1962# Make sure we don't let GNU as be added if we didn't want it.
1963if test x$with_gnu_as = xno ; then
1964 use_gnu_as=no
1965 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1966fi
1967
1c710c3c 1968# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1969# it's not even worth trying to configure, much less build, that tool.
79c06341 1970
671aa708
NN
1971case ${with_x} in
1972 yes | "") ;; # the default value for this tree is that X11 is available
1973 no)
b4f96efe 1974 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1975 # We won't be able to build gdbtk without X.
1c710c3c 1976 enable_gdbtk=no
671aa708
NN
1977 ;;
1978 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1979esac
79c06341 1980
671aa708 1981# Some tools are only suitable for building in a "native" situation.
1c710c3c 1982# Remove these if host!=target.
9e299237 1983native_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 1984
671aa708
NN
1985# Similarly, some are only suitable for cross toolchains.
1986# Remove these if host=target.
1987cross_only="target-libgloss target-newlib target-opcodes"
1988
1989case $is_cross_compiler in
1990 no) skipdirs="${skipdirs} ${cross_only}" ;;
1991 yes) skipdirs="${skipdirs} ${native_only}" ;;
1992esac
79c06341 1993
671aa708
NN
1994# If both --with-headers and --with-libs are specified, default to
1995# --without-newlib.
ee6a22df
L
1996if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1997 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1998 if test x"${with_newlib}" = x ; then
1999 with_newlib=no
2000 fi
79c06341
JL
2001fi
2002
671aa708
NN
2003# Recognize --with-newlib/--without-newlib.
2004case ${with_newlib} in
2005 no) skipdirs="${skipdirs} target-newlib" ;;
2006 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2007esac
79c06341 2008
671aa708 2009# Configure extra directories which are host specific
79c06341 2010
671aa708
NN
2011case "${host}" in
2012 *-cygwin*)
2013 configdirs="$configdirs libtermcap" ;;
2014esac
79c06341 2015
4fab7234
HPN
2016# A target can indicate whether a language isn't supported for some reason.
2017# Only spaces may be used in this macro; not newlines or tabs.
2018unsupported_languages=
2019
1c710c3c 2020# Remove more programs from consideration, based on the host or
671aa708
NN
2021# target this usually means that a port of the program doesn't
2022# exist yet.
ec8d6ddc 2023
671aa708
NN
2024case "${host}" in
2025 hppa*64*-*-*)
2026 noconfigdirs="$noconfigdirs byacc"
2027 ;;
f2a0e225 2028 i[3456789]86-*-vsta)
b4f96efe 2029 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2030 ;;
f2a0e225 2031 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2032 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2033 ;;
95af8923
KT
2034 x86_64-*-mingw*)
2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2036 ;;
f2a0e225 2037 i[3456789]86-*-mingw32*)
b4f96efe 2038 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2039 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2040 ;;
f2a0e225 2041 i[3456789]86-*-beos*)
b4f96efe 2042 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2043 ;;
671aa708 2044 *-*-cygwin*)
a22c2d8d 2045 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2046 ;;
2047 *-*-netbsd*)
a22c2d8d 2048 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2049 ;;
2050 ppc*-*-pe)
b4f96efe 2051 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2052 ;;
2053 powerpc-*-beos*)
b4f96efe 2054 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2055 ;;
671aa708 2056esac
ec8d6ddc 2057
6de9cd9a 2058
2aeb72e9 2059# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2060if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2061 enableval="$enable_libada"
2062 ENABLE_LIBADA=$enableval
d9cdb878
AC
2063else
2064 ENABLE_LIBADA=yes
2aeb72e9 2065fi;
d9cdb878 2066if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2067 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2068fi
2069
2aeb72e9 2070# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2071if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2072 enableval="$enable_libssp"
2073 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2074else
2075 ENABLE_LIBSSP=yes
2aeb72e9 2076fi;
ef0087a7 2077
671aa708
NN
2078# Save it here so that, even in case of --enable-libgcj, if the Java
2079# front-end isn't enabled, we still get libgcj disabled.
2080libgcj_saved=$libgcj
2081case $enable_libgcj in
2082yes)
2083 # If we reset it here, it won't get added to noconfigdirs in the
2084 # target-specific build rules, so it will be forcibly enabled
2085 # (unless the Java language itself isn't enabled).
2086 libgcj=
2087 ;;
2088no)
2089 # Make sure we get it printed in the list of not supported target libs.
2090 noconfigdirs="$noconfigdirs ${libgcj}"
2091 ;;
2092esac
ec8d6ddc 2093
6de9cd9a 2094
27079765
AH
2095# Disable libmudflap on some systems.
2096if test x$enable_libmudflap = x ; then
dfcada9a 2097 case "${target}" in
1c00b503 2098 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2099 # Enable libmudflap by default in GNU and friends.
dfcada9a 2100 ;;
a3e8d8b4
LR
2101 *-*-freebsd*)
2102 # Enable libmudflap by default in FreeBSD.
2103 ;;
dfcada9a
MM
2104 *)
2105 # Disable it by default everywhere else.
2106 noconfigdirs="$noconfigdirs target-libmudflap"
2107 ;;
2108 esac
27079765 2109fi
6de9cd9a 2110
27079765
AH
2111# Disable libgomp on non POSIX hosted systems.
2112if test x$enable_libgomp = x ; then
953ff289
DN
2113 # Enable libgomp by default on hosted POSIX systems.
2114 case "${target}" in
670cbfcf 2115 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2116 ;;
2117 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2118 ;;
04879af3 2119 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2120 ;;
cac90078 2121 *-*-darwin* | *-*-aix*)
953ff289
DN
2122 ;;
2123 *)
2124 noconfigdirs="$noconfigdirs target-libgomp"
2125 ;;
2126 esac
27079765 2127fi
953ff289 2128
c03353e2
RIL
2129# Default libgloss CPU subdirectory.
2130libgloss_dir="$target_cpu"
6de9cd9a 2131
671aa708
NN
2132case "${target}" in
2133 *-*-chorusos)
cb253473 2134 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2135 ;;
0fe0f073 2136 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
55eb837d 2137 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2138 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2139 ;;
42c1cd8a
AT
2140 *-*-darwin*)
2141 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2142 noconfigdirs="$noconfigdirs sim target-rda"
2143 noconfigdirs="$noconfigdirs ${libgcj}"
2144 ;;
671aa708 2145 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2146 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2147 ;;
c3f84f61 2148 *-*-freebsd*)
6de9cd9a
DN
2149 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2150 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2151 && test -f /usr/local/include/gmp.h; then
2152 with_gmp=/usr/local
2153 fi
2154
2155 # Skip some stuff that's unsupported on some FreeBSD configurations.
2156 case "${target}" in
2157 i*86-*-*) ;;
2158 alpha*-*-*) ;;
2159 *)
cb253473 2160 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2161 ;;
2162 esac
2163 ;;
ef4e7569
US
2164 *-*-kaos*)
2165 # Remove unsupported stuff on all kaOS configurations.
cb253473 2166 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2167 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2168 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2169 noconfigdirs="$noconfigdirs target-libgloss"
2170 ;;
671aa708
NN
2171 *-*-netbsd*)
2172 # Skip some stuff on all NetBSD configurations.
2173 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2174
2175 # Skip some stuff that's unsupported on some NetBSD configurations.
2176 case "${target}" in
2177 i*86-*-netbsdelf*) ;;
0590b963 2178 arm*-*-netbsdelf*) ;;
671aa708 2179 *)
cb253473 2180 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2181 ;;
2182 esac
2183 ;;
61fec9ff 2184 *-*-netware*)
cb253473 2185 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2186 ;;
2187 *-*-rtems*)
cb253473 2188 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2189 ;;
a8ba31f2
EC
2190 # The tpf target doesn't support gdb yet.
2191 *-*-tpf*)
cb253473 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2193 ;;
5785c0ed 2194 *-*-uclinux*)
cb253473 2195 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2196 ;;
671aa708 2197 *-*-vxworks*)
cb253473 2198 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2199 ;;
2200 alpha*-dec-osf*)
2201 # ld works, but does not support shared libraries.
2202 # newlib is not 64 bit ready. I'm not sure about fileutils.
2203 # gas doesn't generate exception information.
2204 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2205 ;;
2206 alpha*-*-*vms*)
cb253473 2207 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2208 ;;
2209 alpha*-*-linux*)
2210 # newlib is not 64 bit ready
2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2212 ;;
671aa708
NN
2213 alpha*-*-*)
2214 # newlib is not 64 bit ready
cb253473 2215 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2216 ;;
33952f6f 2217 am33_2.0-*-linux*)
cb253473 2218 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2219 ;;
671aa708 2220 sh-*-linux*)
cb253473 2221 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2222 ;;
671aa708 2223 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2224 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2225 noconfigdirs="$noconfigdirs target-examples"
2226 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2227 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2228 noconfigdirs="$noconfigdirs expect dejagnu"
2229 # the C++ libraries don't build on top of CE's C libraries
cb543528 2230 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2231 noconfigdirs="$noconfigdirs target-newlib"
2232 case "${host}" in
2233 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2234 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2235 ;;
2236 esac
c03353e2 2237 libgloss_dir=wince
671aa708
NN
2238 ;;
2239 arc-*-*)
cb253473 2240 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2241 ;;
ee6a22df 2242 arm-semi-aof )
ee6a22df 2243 ;;
671aa708 2244 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2245 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2246 libgloss_dir=arm
671aa708 2247 ;;
b3f8d95d 2248 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2249 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2250 libgloss_dir=arm
671aa708 2251 ;;
077fc835 2252 arm*-*-linux-gnueabi)
c4e9bf2b
AH
2253 noconfigdirs="$noconfigdirs target-qthreads"
2254 noconfigdirs="$noconfigdirs target-libobjc"
1c00b503
PB
2255 case ${with_newlib} in
2256 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2257 esac
c03353e2 2258 libgloss_dir=arm
077fc835 2259 ;;
972974fc 2260 arm*-*-symbianelf*)
cb253473 2261 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2262 libgloss_dir=arm
972974fc 2263 ;;
671aa708 2264 arm-*-pe*)
cb253473 2265 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2266 ;;
671aa708 2267 thumb-*-coff)
cb253473 2268 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2269 ;;
2270 thumb-*-elf)
cb253473 2271 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2272 ;;
671aa708 2273 thumb-*-pe)
cb253473 2274 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2275 ;;
2276 arm-*-riscix*)
cb253473 2277 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2278 ;;
2279 avr-*-*)
cb253473 2280 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2281 ;;
6b65a26d 2282 bfin-*-*)
8b3c6c5a 2283 noconfigdirs="$noconfigdirs gdb"
61efc800 2284 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2285 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2286 fi
2287 ;;
671aa708 2288 c4x-*-* | tic4x-*-*)
cb253473 2289 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2290 ;;
2291 c54x*-*-* | tic54x-*-*)
cb253473 2292 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2293 ;;
40d64b5a 2294 cris-*-* | crisv32-*-*)
4fab7234 2295 unsupported_languages="$unsupported_languages java"
40d64b5a 2296 case "${target}" in
c2e0d3a9 2297 *-*-aout)
7f26dfa3 2298 unsupported_languages="$unsupported_languages fortran"
4fab7234 2299 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2300 *-*-elf)
7f26dfa3 2301 unsupported_languages="$unsupported_languages fortran"
789ec619 2302 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2303 *-*-linux*)
789ec619 2304 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2305 *)
7f26dfa3 2306 unsupported_languages="$unsupported_languages fortran"
cb253473 2307 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2308 esac
c03353e2 2309 libgloss_dir=cris
671aa708 2310 ;;
25b656e7 2311 crx-*-*)
cb253473 2312 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2313 ;;
671aa708 2314 d10v-*-*)
cb253473 2315 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2316 ;;
2317 d30v-*-*)
cb253473 2318 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2319 ;;
c03353e2
RIL
2320 ep9312-*-elf | ep9312-*-coff)
2321 libgloss_dir=arm
2322 ;;
671aa708 2323 fr30-*-elf*)
cb253473 2324 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2325 ;;
2326 frv-*-*)
cb253473 2327 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2328 ;;
2329 h8300*-*-*)
cb253473 2330 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2331 ;;
2332 h8500-*-*)
cb253473 2333 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2334 ;;
ee6a22df 2335 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2336 ;;
671aa708
NN
2337 hppa*64*-*-linux* | parisc*64*-*-linux*)
2338 # In this case, it's because the hppa64-linux target is for
2339 # the kernel only at this point and has no libc, and thus no
2340 # headers, crt*.o, etc., all of which are needed by these.
2341 noconfigdirs="$noconfigdirs target-zlib"
2342 ;;
3e732ba0
JDA
2343 parisc*-*-linux* | hppa*-*-linux*)
2344 ;;
671aa708 2345 hppa*-*-*elf* | \
671aa708
NN
2346 hppa*-*-lites* | \
2347 hppa*-*-openbsd* | \
2348 hppa*64*-*-*)
cb253473 2349 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2350 ;;
2a332582
JDA
2351 hppa*-hp-hpux11*)
2352 noconfigdirs="$noconfigdirs ld shellutils"
2353 ;;
c03353e2
RIL
2354 hppa*-*-pro*)
2355 libgloss_dir=pa
2356 ;;
671aa708
NN
2357 hppa*-*-*)
2358 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2359 # build on HP-UX 10.20.
cb253473 2360 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2361 ;;
fb87ad5d 2362 i960-*-*)
cb253473 2363 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2364 ;;
671aa708
NN
2365 ia64*-*-elf*)
2366 # No gdb support yet.
b4f96efe 2367 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2368 ;;
2369 ia64*-**-hpux*)
2370 # No gdb or ld support yet.
cb253473 2371 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2372 ;;
ee6a22df 2373 i370-*-opened*)
ee6a22df 2374 ;;
f2a0e225 2375 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2376 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2377 libgloss_dir=i386
671aa708 2378 ;;
f2a0e225 2379 i[3456789]86-*-linux*)
671aa708
NN
2380 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2381 # not build java stuff by default.
2382 case "${target}" in
2383 *-*-*libc1*)
cb253473 2384 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2385 esac
2386
2387 # This section makes it possible to build newlib natively on linux.
2388 # If we are using a cross compiler then don't configure newlib.
2389 if test x${is_cross_compiler} != xno ; then
3aa83176 2390 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2391 fi
2392 noconfigdirs="$noconfigdirs target-libgloss"
2393 # If we are not using a cross compiler, do configure newlib.
2394 # Note however, that newlib will only be configured in this situation
2395 # if the --with-newlib option has been given, because otherwise
2396 # 'target-newlib' will appear in skipdirs.
2397 ;;
f2a0e225 2398 i[3456789]86-*-mingw32*)
b91f0a41
CV
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2401 ;;
95af8923
KT
2402 x86_64-*-mingw*)
2403 target_configdirs="$target_configdirs target-winsup"
2404 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2405 ;;
671aa708
NN
2406 *-*-cygwin*)
2407 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2408 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2409 # always build newlib if winsup directory is present.
b91f0a41 2410 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2411 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2412 elif test -d "$srcdir/newlib"; then
b91f0a41 2413 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2414 fi
1c710c3c 2415 ;;
ee6a22df
L
2416 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2417 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2418 ;;
f2a0e225 2419 i[3456789]86-*-pe)
cb253473 2420 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2421 ;;
f2a0e225 2422 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2423 # The linker does not yet know about weak symbols in COFF,
2424 # and is not configured to handle mixed ELF and COFF.
cb253473 2425 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2426 ;;
f2a0e225 2427 i[3456789]86-*-sco*)
cb253473 2428 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2429 ;;
f2a0e225 2430 i[3456789]86-*-solaris2*)
671aa708
NN
2431 noconfigdirs="$noconfigdirs target-libgloss"
2432 ;;
f2a0e225 2433 i[3456789]86-*-sysv4*)
cb253473 2434 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2435 ;;
f2a0e225 2436 i[3456789]86-*-beos*)
cb253473 2437 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2438 ;;
d1f8db0c
PB
2439 i[3456789]86-*-rdos*)
2440 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2441 ;;
fb87ad5d 2442 m32r-*-*)
cb253473 2443 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2444 ;;
671aa708 2445 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2446 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2447 libgloss_dir=m68hc11
671aa708
NN
2448 ;;
2449 m68k-*-elf*)
cb253473 2450 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2451 ;;
2452 m68k-*-coff*)
cb253473 2453 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2454 ;;
c03353e2
RIL
2455 m68*-*-* | fido-*-*)
2456 libgloss_dir=m68k
2457 ;;
671aa708
NN
2458 mcore-*-pe*)
2459 # The EPOC C++ environment does not support exceptions or rtti,
2460 # and so building libstdc++-v3 tends not to always work.
2461 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2462 ;;
2463 mmix-*-*)
4fab7234 2464 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2465 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2466 ;;
2467 mn10200-*-*)
cb253473 2468 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2469 ;;
2470 mn10300-*-*)
cb253473 2471 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2472 ;;
ab34901f 2473 mt-*-*)
79dd769c
AH
2474 noconfigdirs="$noconfigdirs sim"
2475 ;;
671aa708
NN
2476 powerpc-*-aix*)
2477 # copied from rs6000-*-* entry
cb253473 2478 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2479 ;;
2480 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2481 target_configdirs="$target_configdirs target-winsup"
cb253473 2482 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2483 # always build newlib.
2484 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2485 ;;
2486 # This is temporary until we can link against shared libraries
2487 powerpcle-*-solaris*)
cb253473 2488 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2489 libgloss_dir=rs6000
671aa708
NN
2490 ;;
2491 powerpc-*-beos*)
cb253473 2492 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2493 ;;
671aa708 2494 powerpc-*-eabi)
cb253473 2495 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2496 libgloss_dir=rs6000
ee6a22df
L
2497 ;;
2498 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2499 libgloss_dir=rs6000
671aa708 2500 ;;
671aa708 2501 rs6000-*-lynxos*)
cb253473 2502 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2503 ;;
2504 rs6000-*-aix*)
cb253473 2505 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2506 ;;
2507 rs6000-*-*)
cb253473 2508 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2509 ;;
2510 m68k-apollo-*)
cb253473 2511 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2512 ;;
d9dced13
RS
2513 mips*-sde-elf*)
2514 skipdirs="$skipdirs target-libiberty"
2515 noconfigdirs="$noconfigdirs ${libgcj}"
2516 if test x$with_newlib = xyes; then
2517 noconfigdirs="$noconfigdirs gprof"
2518 fi
2519 libgloss_dir=mips
2520 ;;
671aa708 2521 mips*-*-irix5*)
cb253473 2522 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2523 ;;
2524 mips*-*-irix6*)
671aa708
NN
2525 # Linking libjava exceeds command-line length limits on at least
2526 # IRIX 6.2, but not on IRIX 6.5.
2527 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2528 # <oldham@codesourcery.com>
cb253473 2529 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2530 ;;
671aa708 2531 mips*-*-bsd*)
cb253473 2532 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2533 ;;
671aa708
NN
2534 mips*-*-linux*)
2535 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2536 ;;
2537 mips*-*-*)
cb253473 2538 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2539 libgloss_dir=mips
671aa708
NN
2540 ;;
2541 romp-*-*)
cb253473 2542 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2543 ;;
669f01d8 2544 sh-*-* | sh64-*-*)
671aa708 2545 case "${host}" in
f2a0e225
KC
2546 i[3456789]86-*-vsta) ;; # don't add gprof back in
2547 i[3456789]86-*-go32*) ;; # don't add gprof back in
2548 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2549 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2550 esac
cb253473 2551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2552 ;;
c03353e2
RIL
2553 sparclet-*-aout* | sparc86x-*-*)
2554 libgloss_dir=sparc
2555 ;;
671aa708 2556 sparc-*-elf*)
cb253473 2557 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2558 ;;
2559 sparc64-*-elf*)
cb253473 2560 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2561 libgloss_dir=sparc
671aa708
NN
2562 ;;
2563 sparclite-*-*)
cb253473 2564 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2565 libgloss_dir=sparc
671aa708
NN
2566 ;;
2567 sparc-*-sunos4*)
cb253473 2568 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2569 if test x${is_cross_compiler} != xno ; then
2570 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2571 else
2572 use_gnu_ld=no
2573 fi
2574 ;;
bba5e0ca 2575 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2576 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2577 ;;
671aa708
NN
2578 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2579 ;;
85d9c13c 2580 spu-*-*)
ea6f5c57 2581 skipdirs="target-libssp"
85d9c13c 2582 ;;
671aa708 2583 v810-*-*)
cb253473 2584 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2585 ;;
2586 v850-*-*)
cb253473 2587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2588 ;;
2589 v850e-*-*)
cb253473 2590 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2591 ;;
2592 v850ea-*-*)
cb253473 2593 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2594 ;;
2595 vax-*-vms)
cb253473 2596 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2597 ;;
2598 vax-*-*)
cb253473 2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2600 ;;
0d4f1b4e 2601 xtensa-*-*)
cb253473 2602 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2603 ;;
671aa708 2604 ip2k-*-*)
cb253473 2605 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2606 ;;
c3f84f61 2607 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2608 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2609 ;;
2610 *-*-lynxos*)
cb253473 2611 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2612 ;;
671aa708 2613 *-*-*)
cb253473 2614 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2615 ;;
2616esac
79c06341 2617
671aa708
NN
2618# If we aren't building newlib, then don't build libgloss, since libgloss
2619# depends upon some newlib header files.
2620case "${noconfigdirs}" in
2621 *target-libgloss*) ;;
2622 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2623esac
2624
671aa708
NN
2625# Work in distributions that contain no compiler tools, like Autoconf.
2626tentative_cc=""
2627host_makefile_frag=/dev/null
2628if test -d ${srcdir}/config ; then
2629case "${host}" in
2630 m68k-hp-hpux*)
2631 # Avoid "too much defining" errors from HPUX compiler.
2632 tentative_cc="cc -Wp,-H256000"
2633 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2634 # If it's HP/UX ar, this should be harmless.
2635 RANLIB="ar ts"
2636 ;;
2637 m68k-apollo-sysv*)
2638 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2639 ;;
2640 m68k-apollo-bsd*)
2641 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2642 # chokes on bfd, the compiler won't let you assign integers to enums, and
2643 # other problems. Defining CC to gcc is a questionable way to say "don't use
2644 # the apollo compiler" (the preferred version of GCC could be called cc,
2645 # or whatever), but I'm not sure leaving CC as cc is any better...
2646 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2647 # Used to have BISON=yacc.
2648 tentative_cc=gcc
2649 ;;
2650 m88k-dg-dgux*)
2651 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2652 ;;
2653 m88k-harris-cxux*)
2654 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2655 tentative_cc="cc -Xa"
2656 host_makefile_frag="config/mh-cxux"
2657 ;;
2658 m88k-motorola-sysv*)
2659 ;;
2660 mips*-dec-ultrix*)
2661 tentative_cc="cc -Wf,-XNg1000"
2662 host_makefile_frag="config/mh-decstation"
2663 ;;
2664 mips*-nec-sysv4*)
2665 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2666 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2667 host_makefile_frag="config/mh-necv4"
2668 ;;
2669 mips*-sgi-irix4*)
2670 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2671 # environment. Also bump switch table size so that cp-parse will
2672 # compile. Bump string length limit so linker builds.
2673 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2674 ;;
2675 mips*-*-sysv4*)
2676 host_makefile_frag="config/mh-sysv4"
2677 ;;
2678 mips*-*-sysv*)
2679 # This is for a MIPS running RISC/os 4.52C.
2680
2681 # This is needed for GDB, but needs to be in the top-level make because
2682 # if a library is compiled with the bsd headers and gets linked with the
2683 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2684 # a different size).
2685 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2686 # known except to select the sysv environment. Could we use /proc instead?
2687 # These "sysv environments" and "bsd environments" often end up being a pain.
2688 #
2689 # This is not part of CFLAGS because perhaps not all C compilers have this
2690 # option.
2691 tentative_cc="cc -systype sysv"
2692 ;;
2693 i370-ibm-opened*)
2694 tentative_cc="c89"
2695 ;;
f2a0e225 2696 i[3456789]86-*-sysv5*)
671aa708
NN
2697 host_makefile_frag="config/mh-sysv5"
2698 ;;
f2a0e225 2699 i[3456789]86-*-dgux*)
671aa708
NN
2700 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2701 host_makefile_frag="config/mh-dgux386"
2702 ;;
f2a0e225 2703 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2704 # The MetaWare compiler will generate a copyright message unless you
2705 # turn it off by adding the -Hnocopyr flag.
2706 tentative_cc="cc -Hnocopyr"
2707 ;;
f2a0e225 2708 i[3456789]86-ncr-sysv4*)
671aa708
NN
2709 # for an NCR 3000 (i486/SVR4) system.
2710 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2711 # This compiler not only emits obnoxious copyright messages every time
2712 # you run it, but it chokes and dies on a whole bunch of GNU source
2713 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2714 tentative_cc="/usr/ccs/ATT/cc"
2715 host_makefile_frag="config/mh-ncr3000"
2716 ;;
f2a0e225 2717 i[3456789]86-*-sco3.2v5*)
671aa708 2718 ;;
f2a0e225 2719 i[3456789]86-*-sco*)
671aa708
NN
2720 # The native C compiler botches some simple uses of const. Unfortunately,
2721 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2722 tentative_cc="cc -Dconst="
2723 host_makefile_frag="config/mh-sco"
2724 ;;
f2a0e225 2725 i[3456789]86-*-udk*)
671aa708
NN
2726 host_makefile_frag="config/mh-sysv5"
2727 ;;
f2a0e225 2728 i[3456789]86-*-solaris2*)
671aa708
NN
2729 host_makefile_frag="config/mh-sysv4"
2730 ;;
f2a0e225 2731 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2732 host_makefile_frag="config/mh-djgpp"
2733 ;;
2734 *-cygwin*)
2735 host_makefile_frag="config/mh-cygwin"
2736 ;;
2737 *-mingw32*)
1f5a6b84 2738 host_makefile_frag="config/mh-mingw"
671aa708 2739 ;;
95af8923 2740 *-mingw64*)
1f5a6b84 2741 host_makefile_frag="config/mh-mingw"
95af8923 2742 ;;
671aa708
NN
2743 *-interix*)
2744 host_makefile_frag="config/mh-interix"
2745 ;;
2746 vax-*-ultrix2*)
2747 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2748 tentative_cc=gcc
2749 ;;
2750 *-*-solaris2*)
2751 host_makefile_frag="config/mh-solaris"
2752 ;;
2753 m68k-sun-sunos*)
2754 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2755 # without overflowing the jump tables (-J says to use a 32 bit table)
2756 tentative_cc="cc -J"
2757 ;;
2758 *-hp-hpux*)
2759 tentative_cc="cc -Wp,-H256000"
2760 ;;
2761 *-*-hiux*)
2762 tentative_cc="cc -Wp,-H256000"
2763 ;;
2764 rs6000-*-lynxos*)
2765 # /bin/cc is less than useful for our purposes. Always use GCC
2766 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2767 host_makefile_frag="config/mh-lynxrs6k"
2768 ;;
45f366ab 2769 powerpc-*-darwin*)
be8fff81
RB
2770 host_makefile_frag="config/mh-ppc-darwin"
2771 ;;
d19bca38
PB
2772 powerpc-*-aix*)
2773 host_makefile_frag="config/mh-ppc-aix"
2774 ;;
2775 rs6000-*-aix*)
2776 host_makefile_frag="config/mh-ppc-aix"
2777 ;;
671aa708
NN
2778 *-*-lynxos*)
2779 # /bin/cc is less than useful for our purposes. Always use GCC
2780 tentative_cc="/bin/gcc"
2781 ;;
2782 *-*-sysv4*)
2783 host_makefile_frag="config/mh-sysv4"
2784 ;;
95c53c62
RS
2785 # This is placed last to prevent interfering with the cases above.
2786 i[3456789]86-*-*)
2787 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2788 host_makefile_frag="config/mh-x86omitfp"
2789 ;;
671aa708
NN
2790esac
2791fi
2792
55ffb5ed
NN
2793# If we aren't going to be using gcc, see if we can extract a definition
2794# of CC from the fragment.
2795# Actually, use the 'pre-extracted' version above.
2796if test -z "${CC}" && test "${build}" = "${host}" ; then
2797 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2798 found=
2799 for dir in $PATH; do
2800 test -z "$dir" && dir=.
2801 if test -f $dir/gcc; then
2802 found=yes
2803 break
2804 fi
2805 done
2806 IFS="$save_ifs"
2807 if test -z "${found}" && test -n "${tentative_cc}" ; then
2808 CC=$tentative_cc
2809 fi
2810fi
2811
2812if test "${build}" != "${host}" ; then
0999159b
PB
2813 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2814 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2815 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2816 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2817 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2818 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2819 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2820 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2821 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2822 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2823 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2824 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2825else
2826 AR_FOR_BUILD="\$(AR)"
2827 AS_FOR_BUILD="\$(AS)"
fb0103e5 2828 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2829 CXX_FOR_BUILD="\$(CXX)"
2830 GCJ_FOR_BUILD="\$(GCJ)"
2831 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2832 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2833 LD_FOR_BUILD="\$(LD)"
2834 NM_FOR_BUILD="\$(NM)"
2835 RANLIB_FOR_BUILD="\$(RANLIB)"
2836 WINDRES_FOR_BUILD="\$(WINDRES)"
2837 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2838fi
2839
2840ac_ext=c
1c710c3c
DJ
2841ac_cpp='$CPP $CPPFLAGS'
2842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2847set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2848echo "$as_me:$LINENO: checking for $ac_word" >&5
2849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2850if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2863 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867done
2868done
2869
2870fi
2871fi
2872CC=$ac_cv_prog_CC
2873if test -n "$CC"; then
2aeb72e9
DD
2874 echo "$as_me:$LINENO: result: $CC" >&5
2875echo "${ECHO_T}$CC" >&6
1c710c3c 2876else
2aeb72e9
DD
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
1c710c3c
DJ
2879fi
2880
2881fi
2882if test -z "$ac_cv_prog_CC"; then
2883 ac_ct_CC=$CC
fb0103e5
RG
2884 # Extract the first word of "gcc", so it can be a program name with args.
2885set dummy gcc; ac_word=$2
2aeb72e9
DD
2886echo "$as_me:$LINENO: checking for $ac_word" >&5
2887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2901 ac_cv_prog_ac_ct_CC="gcc"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905done
2906done
2907
2908fi
2909fi
2910ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2912 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2914else
2aeb72e9
DD
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
1c710c3c
DJ
2917fi
2918
2aeb72e9 2919 CC=$ac_ct_CC
1c710c3c
DJ
2920else
2921 CC="$ac_cv_prog_CC"
2922fi
2923
2924if test -z "$CC"; then
2aeb72e9
DD
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2927set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2928echo "$as_me:$LINENO: checking for $ac_word" >&5
2929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2930if test "${ac_cv_prog_CC+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2932else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935else
1c710c3c
DJ
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2943 ac_cv_prog_CC="${ac_tool_prefix}cc"
2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948done
2949
0b0dc272 2950fi
0b0dc272 2951fi
1c710c3c 2952CC=$ac_cv_prog_CC
af71363e 2953if test -n "$CC"; then
2aeb72e9
DD
2954 echo "$as_me:$LINENO: result: $CC" >&5
2955echo "${ECHO_T}$CC" >&6
0b0dc272 2956else
2aeb72e9
DD
2957 echo "$as_me:$LINENO: result: no" >&5
2958echo "${ECHO_T}no" >&6
0b0dc272
AM
2959fi
2960
2aeb72e9
DD
2961fi
2962if test -z "$ac_cv_prog_CC"; then
2963 ac_ct_CC=$CC
2964 # Extract the first word of "cc", so it can be a program name with args.
2965set dummy cc; ac_word=$2
2966echo "$as_me:$LINENO: checking for $ac_word" >&5
2967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973else
2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_ac_ct_CC="cc"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
11a67599 2984 fi
2aeb72e9
DD
2985done
2986done
2987
2988fi
2989fi
2990ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991if test -n "$ac_ct_CC"; then
2992 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2993echo "${ECHO_T}$ac_ct_CC" >&6
2994else
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997fi
2998
2999 CC=$ac_ct_CC
3000else
3001 CC="$ac_cv_prog_CC"
3002fi
3003
1c710c3c 3004fi
55ffb5ed
NN
3005if test -z "$CC"; then
3006 # Extract the first word of "cc", so it can be a program name with args.
3007set dummy cc; ac_word=$2
2aeb72e9
DD
3008echo "$as_me:$LINENO: checking for $ac_word" >&5
3009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3010if test "${ac_cv_prog_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3012else
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3015else
0b0dc272 3016 ac_prog_rejected=no
1c710c3c
DJ
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3024 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025 ac_prog_rejected=yes
3026 continue
3027 fi
3028 ac_cv_prog_CC="cc"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
3033done
3034
55ffb5ed
NN
3035if test $ac_prog_rejected = yes; then
3036 # We found a bogon in the path, so make sure we never use it.
3037 set dummy $ac_cv_prog_CC
3038 shift
1c710c3c 3039 if test $# != 0; then
55ffb5ed
NN
3040 # We chose a different compiler from the bogus one.
3041 # However, it has the same basename, so the bogon will be chosen
3042 # first if we set CC to just the basename; use the full file name.
3043 shift
1c710c3c 3044 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3045 fi
3046fi
3047fi
3048fi
1c710c3c 3049CC=$ac_cv_prog_CC
55ffb5ed 3050if test -n "$CC"; then
2aeb72e9
DD
3051 echo "$as_me:$LINENO: result: $CC" >&5
3052echo "${ECHO_T}$CC" >&6
55ffb5ed 3053else
2aeb72e9
DD
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
55ffb5ed
NN
3056fi
3057
1c710c3c
DJ
3058fi
3059if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
2aeb72e9 3061 for ac_prog in cl
1c710c3c
DJ
3062 do
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3065echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3067if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3069else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
1c710c3c
DJ
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085done
3086
55ffb5ed
NN
3087fi
3088fi
1c710c3c 3089CC=$ac_cv_prog_CC
55ffb5ed 3090if test -n "$CC"; then
2aeb72e9
DD
3091 echo "$as_me:$LINENO: result: $CC" >&5
3092echo "${ECHO_T}$CC" >&6
a4b9e93e 3093else
2aeb72e9
DD
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
fb0103e5 3096fi
af71363e 3097
1c710c3c
DJ
3098 test -n "$CC" && break
3099 done
af71363e 3100fi
1c710c3c
DJ
3101if test -z "$CC"; then
3102 ac_ct_CC=$CC
2aeb72e9 3103 for ac_prog in cl
1c710c3c
DJ
3104do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3107echo "$as_me:$LINENO: checking for $ac_word" >&5
3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3109if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3111else
1c710c3c
DJ
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3114else
1c710c3c
DJ
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126done
3127done
3128
af71363e
AS
3129fi
3130fi
1c710c3c
DJ
3131ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3133 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3134echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3135else
2aeb72e9
DD
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
af71363e 3138fi
0b0dc272 3139
1c710c3c
DJ
3140 test -n "$ac_ct_CC" && break
3141done
3142
2aeb72e9 3143 CC=$ac_ct_CC
1c710c3c
DJ
3144fi
3145
3146fi
3147
3148
3149test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3150See \`config.log' for more details." >&5
3151echo "$as_me: error: no acceptable C compiler found in \$PATH
3152See \`config.log' for more details." >&2;}
3153 { (exit 1); exit 1; }; }
3154
3155# Provide some information about the compiler.
2aeb72e9
DD
3156echo "$as_me:$LINENO:" \
3157 "checking for C compiler version" >&5
1c710c3c 3158ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3159{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3160 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }
2aeb72e9
DD
3164{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3165 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }
2aeb72e9
DD
3169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3170 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3174
3175cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h. */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h. */
3181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190ac_clean_files_save=$ac_clean_files
3191ac_clean_files="$ac_clean_files a.out a.exe b.out"
3192# Try to create an executable without -o first, disregard a.out.
3193# It will help us diagnose broken compilers, and finding out an intuition
3194# of exeext.
2aeb72e9
DD
3195echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3196echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3197ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3198if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3199 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; then
2aeb72e9
DD
3203 # Find the output, starting from the most likely. This scheme is
3204# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3205# resort.
3206
3207# Be careful to initialize this variable, since it used to be cached.
3208# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3209ac_cv_exeext=
3210# b.out is created by i960 compilers.
3211for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3212do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
2aeb72e9
DD
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3216 ;;
3217 conftest.$ac_ext )
3218 # This is the source file.
1c710c3c
DJ
3219 ;;
3220 [ab].out )
3221 # We found the default executable, but exeext='' is most
3222 # certainly right.
3223 break;;
3224 *.* )
2aeb72e9
DD
3225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # FIXME: I believe we export ac_cv_exeext for Libtool,
3227 # but it would be cool to find out if it's true. Does anybody
3228 # maintain Libtool? --akim.
3229 export ac_cv_exeext
1c710c3c
DJ
3230 break;;
3231 * )
3232 break;;
3233 esac
3234done
3235else
3236 echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3240See \`config.log' for more details." >&5
3241echo "$as_me: error: C compiler cannot create executables
3242See \`config.log' for more details." >&2;}
3243 { (exit 77); exit 77; }; }
3244fi
3245
3246ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3247echo "$as_me:$LINENO: result: $ac_file" >&5
3248echo "${ECHO_T}$ac_file" >&6
1c710c3c 3249
2aeb72e9 3250# Check the compiler produces executables we can run. If not, either
1c710c3c 3251# the compiler is broken, or we cross compile.
2aeb72e9
DD
3252echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3253echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3254# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3255# If not cross compiling, check that we can run a simple program.
3256if test "$cross_compiling" != yes; then
3257 if { ac_try='./$ac_file'
2aeb72e9
DD
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
1c710c3c
DJ
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 cross_compiling=no
3264 else
3265 if test "$cross_compiling" = maybe; then
3266 cross_compiling=yes
3267 else
3268 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3269If you meant to cross compile, use \`--host'.
3270See \`config.log' for more details." >&5
3271echo "$as_me: error: cannot run C compiled programs.
3272If you meant to cross compile, use \`--host'.
3273See \`config.log' for more details." >&2;}
3274 { (exit 1); exit 1; }; }
3275 fi
3276 fi
3277fi
2aeb72e9
DD
3278echo "$as_me:$LINENO: result: yes" >&5
3279echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3280
3281rm -f a.out a.exe conftest$ac_cv_exeext b.out
3282ac_clean_files=$ac_clean_files_save
2aeb72e9 3283# Check the compiler produces executables we can run. If not, either
1c710c3c 3284# the compiler is broken, or we cross compile.
2aeb72e9
DD
3285echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3286echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3287echo "$as_me:$LINENO: result: $cross_compiling" >&5
3288echo "${ECHO_T}$cross_compiling" >&6
3289
3290echo "$as_me:$LINENO: checking for suffix of executables" >&5
3291echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3293 (eval $ac_link) 2>&5
1c710c3c
DJ
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; then
3297 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3298# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3299# work properly (i.e., refer to `conftest.exe'), while it won't with
3300# `rm'.
3301for ac_file in conftest.exe conftest conftest.*; do
3302 test -f "$ac_file" || continue
3303 case $ac_file in
2aeb72e9 3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3306 export ac_cv_exeext
1c710c3c
DJ
3307 break;;
3308 * ) break;;
3309 esac
3310done
af71363e 3311else
1c710c3c
DJ
3312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3313See \`config.log' for more details." >&5
3314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3315See \`config.log' for more details." >&2;}
3316 { (exit 1); exit 1; }; }
3317fi
3318
3319rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3320echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3321echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3322
3323rm -f conftest.$ac_ext
3324EXEEXT=$ac_cv_exeext
3325ac_exeext=$EXEEXT
2aeb72e9
DD
3326echo "$as_me:$LINENO: checking for suffix of object files" >&5
3327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3328if test "${ac_cv_objext+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341
3342 ;
3343 return 0;
3344}
3345_ACEOF
3346rm -f conftest.o conftest.obj
2aeb72e9
DD
3347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348 (eval $ac_compile) 2>&5
1c710c3c
DJ
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; then
2aeb72e9 3352 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3353 case $ac_file in
2aeb72e9 3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356 break;;
3357 esac
3358done
3359else
3360 echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
3363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3364See \`config.log' for more details." >&5
3365echo "$as_me: error: cannot compute suffix of object files: cannot compile
3366See \`config.log' for more details." >&2;}
3367 { (exit 1); exit 1; }; }
3368fi
3369
3370rm -f conftest.$ac_cv_objext conftest.$ac_ext
3371fi
2aeb72e9
DD
3372echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3373echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3374OBJEXT=$ac_cv_objext
3375ac_objext=$OBJEXT
2aeb72e9
DD
3376echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3378if test "${ac_cv_c_compiler_gnu+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381 cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h. */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h. */
3387
3388int
3389main ()
3390{
3391#ifndef __GNUC__
3392 choke me
3393#endif
3394
3395 ;
3396 return 0;
3397}
3398_ACEOF
3399rm -f conftest.$ac_objext
2aeb72e9
DD
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
1c710c3c
DJ
3421 ac_compiler_gnu=yes
3422else
3423 echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
2aeb72e9 3426ac_compiler_gnu=no
1c710c3c 3427fi
2aeb72e9 3428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3429ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430
3431fi
2aeb72e9
DD
3432echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3434GCC=`test $ac_compiler_gnu = yes && echo yes`
3435ac_test_CFLAGS=${CFLAGS+set}
3436ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3437CFLAGS="-g"
3438echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3439echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3440if test "${ac_cv_prog_cc_g+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
2aeb72e9 3443 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3444/* confdefs.h. */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h. */
3449
3450int
3451main ()
3452{
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
2aeb72e9
DD
3459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3461 ac_status=$?
3462 grep -v '^ *+' conftest.er1 >conftest.err
3463 rm -f conftest.er1
3464 cat conftest.err >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3466 (exit $ac_status); } &&
3467 { ac_try='test -z "$ac_c_werror_flag"
3468 || test ! -s conftest.err'
3469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 (eval $ac_try) 2>&5
1c710c3c
DJ
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3473 (exit $ac_status); }; } &&
3474 { ac_try='test -s conftest.$ac_objext'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 (eval $ac_try) 2>&5
1c710c3c
DJ
3477 ac_status=$?
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3479 (exit $ac_status); }; }; then
55ffb5ed
NN
3480 ac_cv_prog_cc_g=yes
3481else
1c710c3c
DJ
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3484
2aeb72e9 3485ac_cv_prog_cc_g=no
0b0dc272 3486fi
2aeb72e9 3487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3488fi
2aeb72e9
DD
3489echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3490echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3491if test "$ac_test_CFLAGS" = set; then
1c710c3c 3492 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3493elif test $ac_cv_prog_cc_g = yes; then
3494 if test "$GCC" = yes; then
3495 CFLAGS="-g -O2"
3496 else
3497 CFLAGS="-g"
3498 fi
3499else
3500 if test "$GCC" = yes; then
3501 CFLAGS="-O2"
3502 else
3503 CFLAGS=
3504 fi
3505fi
2aeb72e9
DD
3506echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3507echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3508if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
2aeb72e9 3511 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3512ac_save_CC=$CC
3513cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h. */
3519#include <stdarg.h>
3520#include <stdio.h>
3521#include <sys/types.h>
3522#include <sys/stat.h>
3523/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524struct buf { int x; };
3525FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526static char *e (p, i)
3527 char **p;
3528 int i;
3529{
3530 return p[i];
3531}
3532static char *f (char * (*g) (char **, int), char **p, ...)
3533{
3534 char *s;
3535 va_list v;
3536 va_start (v,p);
3537 s = g (p, va_arg (v,int));
3538 va_end (v);
3539 return s;
3540}
3541
3542/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3545 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3548 that's true only with -std1. */
1c710c3c
DJ
3549int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550
3551int test (int i, double x);
3552struct s1 {int (*f) (int a);};
3553struct s2 {int (*f) (double a);};
3554int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555int argc;
3556char **argv;
3557int
3558main ()
3559{
3560return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3561 ;
3562 return 0;
3563}
3564_ACEOF
2aeb72e9
DD
3565# Don't try gcc -ansi; that turns off useful extensions and
3566# breaks some systems' header files.
3567# AIX -qlanglvl=ansi
3568# Ultrix and OSF/1 -std1
3569# HP-UX 10.20 and later -Ae
3570# HP-UX older versions -Aa -D_HPUX_SOURCE
3571# SVR4 -Xc -D__EXTENSIONS__
3572for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3573do
3574 CC="$ac_save_CC $ac_arg"
3575 rm -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
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_prog_cc_stdc=$ac_arg
3598break
1c710c3c
DJ
3599else
3600 echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603fi
2aeb72e9 3604rm -f conftest.err conftest.$ac_objext
1c710c3c 3605done
2aeb72e9 3606rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3607CC=$ac_save_CC
3608
3609fi
2aeb72e9
DD
3610
3611case "x$ac_cv_prog_cc_stdc" in
3612 x|xno)
3613 echo "$as_me:$LINENO: result: none needed" >&5
3614echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3615 *)
2aeb72e9
DD
3616 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3617echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3618 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3619esac
3620
2aeb72e9
DD
3621# Some people use a C++ compiler to compile C. Since we use `exit',
3622# in C++ we need to declare it. In case someone uses the same compiler
3623# for both compiling C and C++ we need to have the C++ compiler decide
3624# the declaration of exit, since it's the most demanding environment.
3625cat >conftest.$ac_ext <<_ACEOF
3626#ifndef __cplusplus
3627 choke me
3628#endif
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3633 ac_status=$?
3634 grep -v '^ *+' conftest.er1 >conftest.err
3635 rm -f conftest.er1
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_c_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 (eval $ac_try) 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 for ac_declaration in \
3653 '' \
3654 'extern "C" void std::exit (int) throw (); using std::exit;' \
3655 'extern "C" void std::exit (int); using std::exit;' \
3656 'extern "C" void exit (int) throw ();' \
3657 'extern "C" void exit (int);' \
3658 'void exit (int);'
3659do
3660 cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h. */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h. */
3666$ac_declaration
3667#include <stdlib.h>
3668int
3669main ()
3670{
3671exit (42);
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3679 ac_status=$?
3680 grep -v '^ *+' conftest.er1 >conftest.err
3681 rm -f conftest.er1
3682 cat conftest.err >&5
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -z "$ac_c_werror_flag"
3686 || test ! -s conftest.err'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 :
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703continue
3704fi
3705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712$ac_declaration
3713int
3714main ()
3715{
3716exit (42);
3717 ;
3718 return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext
3722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>conftest.er1
3724 ac_status=$?
3725 grep -v '^ *+' conftest.er1 >conftest.err
3726 rm -f conftest.er1
3727 cat conftest.err >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } &&
3730 { ac_try='test -z "$ac_c_werror_flag"
3731 || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest.$ac_objext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 break
3744else
3745 echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748fi
3749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3750done
3751rm -f conftest*
3752if test -n "$ac_declaration"; then
3753 echo '#ifdef __cplusplus' >>confdefs.h
3754 echo $ac_declaration >>confdefs.h
3755 echo '#endif' >>confdefs.h
3756fi
3757
3758else
3759 echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762fi
3763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3764ac_ext=c
3765ac_cpp='$CPP $CPPFLAGS'
3766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769
3770ac_ext=cc
3771ac_cpp='$CXXCPP $CPPFLAGS'
3772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3775if test -n "$ac_tool_prefix"; then
3776 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3777 do
3778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780echo "$as_me:$LINENO: checking for $ac_word" >&5
3781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782if test "${ac_cv_prog_CXX+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 if test -n "$CXX"; then
3786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799done
3800done
55ffb5ed 3801
c3a86da9
DJ
3802fi
3803fi
3804CXX=$ac_cv_prog_CXX
3805if test -n "$CXX"; then
2aeb72e9
DD
3806 echo "$as_me:$LINENO: result: $CXX" >&5
3807echo "${ECHO_T}$CXX" >&6
c3a86da9 3808else
2aeb72e9
DD
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
c3a86da9
DJ
3811fi
3812
3813 test -n "$CXX" && break
3814 done
3815fi
3816if test -z "$CXX"; then
3817 ac_ct_CXX=$CXX
2aeb72e9 3818 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3819do
3820 # Extract the first word of "$ac_prog", so it can be a program name with args.
3821set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3822echo "$as_me:$LINENO: checking for $ac_word" >&5
3823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3824if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826else
3827 if test -n "$ac_ct_CXX"; then
3828 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3829else
3830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3837 ac_cv_prog_ac_ct_CXX="$ac_prog"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841done
3842done
3843
3844fi
3845fi
3846ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3847if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3848 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3849echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3850else
2aeb72e9
DD
3851 echo "$as_me:$LINENO: result: no" >&5
3852echo "${ECHO_T}no" >&6
c3a86da9
DJ
3853fi
3854
3855 test -n "$ac_ct_CXX" && break
3856done
2aeb72e9 3857test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3858
2aeb72e9 3859 CXX=$ac_ct_CXX
c3a86da9
DJ
3860fi
3861
2aeb72e9 3862
c3a86da9 3863# Provide some information about the compiler.
2aeb72e9
DD
3864echo "$as_me:$LINENO:" \
3865 "checking for C++ compiler version" >&5
c3a86da9 3866ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3867{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3868 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }
2aeb72e9
DD
3872{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3873 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }
2aeb72e9
DD
3877{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3878 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }
3882
2aeb72e9
DD
3883echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3884echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3885if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887else
3888 cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h. */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h. */
3894
3895int
3896main ()
3897{
3898#ifndef __GNUC__
3899 choke me
3900#endif
3901
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext
2aeb72e9
DD
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_cxx_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
c3a86da9
DJ
3928 ac_compiler_gnu=yes
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
2aeb72e9 3933ac_compiler_gnu=no
c3a86da9 3934fi
2aeb72e9 3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3936ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3937
3938fi
2aeb72e9
DD
3939echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3940echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3941GXX=`test $ac_compiler_gnu = yes && echo yes`
3942ac_test_CXXFLAGS=${CXXFLAGS+set}
3943ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3944CXXFLAGS="-g"
3945echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3946echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3947if test "${ac_cv_prog_cxx_g+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
2aeb72e9 3950 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3951/* confdefs.h. */
3952_ACEOF
3953cat confdefs.h >>conftest.$ac_ext
3954cat >>conftest.$ac_ext <<_ACEOF
3955/* end confdefs.h. */
3956
3957int
3958main ()
3959{
3960
3961 ;
3962 return 0;
3963}
3964_ACEOF
3965rm -f conftest.$ac_objext
2aeb72e9
DD
3966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3973 (exit $ac_status); } &&
3974 { ac_try='test -z "$ac_cxx_werror_flag"
3975 || test ! -s conftest.err'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 (eval $ac_try) 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; } &&
3981 { ac_try='test -s conftest.$ac_objext'
3982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
c3a86da9
DJ
3987 ac_cv_prog_cxx_g=yes
3988else
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
2aeb72e9
DD
3992ac_cv_prog_cxx_g=no
3993fi
3994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995fi
3996echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3997echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3998if test "$ac_test_CXXFLAGS" = set; then
3999 CXXFLAGS=$ac_save_CXXFLAGS
4000elif test $ac_cv_prog_cxx_g = yes; then
4001 if test "$GXX" = yes; then
4002 CXXFLAGS="-g -O2"
4003 else
4004 CXXFLAGS="-g"
4005 fi
4006else
4007 if test "$GXX" = yes; then
4008 CXXFLAGS="-O2"
4009 else
4010 CXXFLAGS=
4011 fi
4012fi
4013for ac_declaration in \
4014 '' \
4015 'extern "C" void std::exit (int) throw (); using std::exit;' \
4016 'extern "C" void std::exit (int); using std::exit;' \
4017 'extern "C" void exit (int) throw ();' \
4018 'extern "C" void exit (int);' \
4019 'void exit (int);'
4020do
4021 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
2aeb72e9
DD
4027$ac_declaration
4028#include <stdlib.h>
c3a86da9
DJ
4029int
4030main ()
4031{
2aeb72e9 4032exit (42);
c3a86da9
DJ
4033 ;
4034 return 0;
4035}
4036_ACEOF
4037rm -f conftest.$ac_objext
2aeb72e9
DD
4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4040 ac_status=$?
4041 grep -v '^ *+' conftest.er1 >conftest.err
4042 rm -f conftest.er1
4043 cat conftest.err >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4045 (exit $ac_status); } &&
4046 { ac_try='test -z "$ac_cxx_werror_flag"
4047 || test ! -s conftest.err'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
c3a86da9
DJ
4059 :
4060else
4061 echo "$as_me: failed program was:" >&5
4062sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4063
2aeb72e9
DD
4064continue
4065fi
4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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. */
2aeb72e9 4073$ac_declaration
c3a86da9
DJ
4074int
4075main ()
4076{
2aeb72e9 4077exit (42);
c3a86da9
DJ
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
4104 break
c3a86da9
DJ
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
11a67599 4109fi
2aeb72e9
DD
4110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4111done
4112rm -f conftest*
4113if test -n "$ac_declaration"; then
4114 echo '#ifdef __cplusplus' >>confdefs.h
4115 echo $ac_declaration >>confdefs.h
4116 echo '#endif' >>confdefs.h
c3a86da9
DJ
4117fi
4118
4119ac_ext=c
4120ac_cpp='$CPP $CPPFLAGS'
4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125
4126# We must set the default linker to the linker used by gcc for the correct
4127# operation of libtool. If LD is not defined and we are using gcc, try to
4128# set the LD default to the ld used by gcc.
4129if test -z "$LD"; then
4130 if test "$GCC" = yes; then
4131 case $build in
4132 *-*-mingw*)
4133 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4134 *)
4135 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4136 esac
4137 case $gcc_prog_ld in
4138 # Accept absolute paths.
4139 [\\/]* | [A-Za-z]:[\\/]*)
4140 LD="$gcc_prog_ld" ;;
4141 esac
4142 fi
23f6b2f9
PB
4143fi
4144
23f6b2f9
PB
4145
4146
55ffb5ed 4147
1c710c3c
DJ
4148if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4150set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4151echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4153if test "${ac_cv_prog_GNATBIND+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4155else
4156 if test -n "$GNATBIND"; then
4157 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4158else
1c710c3c
DJ
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4166 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170done
4171done
4172
55ffb5ed
NN
4173fi
4174fi
1c710c3c 4175GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4176if test -n "$GNATBIND"; then
2aeb72e9
DD
4177 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4178echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4179else
2aeb72e9
DD
4180 echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
55ffb5ed
NN
4182fi
4183
1c710c3c 4184fi
55ffb5ed 4185if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4186 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4187 # Extract the first word of "gnatbind", so it can be a program name with args.
4188set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4189echo "$as_me:$LINENO: checking for $ac_word" >&5
4190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4191if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4193else
1c710c3c
DJ
4194 if test -n "$ac_ct_GNATBIND"; then
4195 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4196else
1c710c3c
DJ
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4204 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4207 fi
4208done
4209done
4210
2aeb72e9 4211 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4212fi
4213fi
1c710c3c
DJ
4214ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4215if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4216 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4217echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4218else
2aeb72e9
DD
4219 echo "$as_me:$LINENO: result: no" >&5
4220echo "${ECHO_T}no" >&6
55ffb5ed
NN
4221fi
4222
2aeb72e9 4223 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4224else
1c710c3c 4225 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4226fi
4227
1c710c3c
DJ
4228if test -n "$ac_tool_prefix"; then
4229 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4230set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4231echo "$as_me:$LINENO: checking for $ac_word" >&5
4232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4233if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4235else
4236 if test -n "$GNATMAKE"; then
4237 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4238else
1c710c3c
DJ
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4246 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250done
4251done
4252
5305be7e
RG
4253fi
4254fi
1c710c3c 4255GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4256if test -n "$GNATMAKE"; then
2aeb72e9
DD
4257 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4258echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4259else
2aeb72e9
DD
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
5305be7e
RG
4262fi
4263
1c710c3c 4264fi
5305be7e 4265if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4266 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4267 # Extract the first word of "gnatmake", so it can be a program name with args.
4268set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4269echo "$as_me:$LINENO: checking for $ac_word" >&5
4270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4271if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4273else
1c710c3c
DJ
4274 if test -n "$ac_ct_GNATMAKE"; then
4275 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4276else
1c710c3c
DJ
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4284 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
4289done
4290
2aeb72e9 4291 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4292fi
4293fi
1c710c3c
DJ
4294ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4295if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4296 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4297echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4298else
2aeb72e9
DD
4299 echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6
5305be7e
RG
4301fi
4302
2aeb72e9 4303 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4304else
1c710c3c 4305 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4306fi
4307
2aeb72e9
DD
4308echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4309echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4310if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4312else
4313 cat >conftest.adb <<EOF
4314procedure conftest is begin null; end conftest;
4315EOF
4316acx_cv_cc_gcc_supports_ada=no
4317# There is a bug in old released versions of GCC which causes the
4318# driver to exit successfully when the appropriate language module
4319# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4320# Therefore we must check for the error message as well as an
4321# unsuccessful exit.
1db673ca
RO
4322# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4323# given a .adb file, but produce no object file. So we must check
4324# if an object file was really produced to guard against this.
55ffb5ed 4325errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4326if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4327 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4328fi
4329rm -f conftest.*
4330fi
2aeb72e9
DD
4331echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4332echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4333
5305be7e 4334if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4335 have_gnat=yes
4336else
4337 have_gnat=no
4338fi
4339
2aeb72e9
DD
4340echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4341echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4342if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4344else
4345 echo abfoo >t1
4346 echo cdfoo >t2
4347 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4348 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4349 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4350 :
4351 else
4352 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4353 fi
4354 fi
a76494aa
PB
4355 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4356 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4357 :
a76494aa
PB
4358 else
4359 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4360 fi
4361 fi
4362 rm t1 t2
4363
4364fi
2aeb72e9
DD
4365echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4366echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4367do_compare="$gcc_cv_prog_cmp_skip"
4368
4369
55ffb5ed 4370
bebf829d 4371# Check for GMP and MPFR
e69bf64b 4372gmplibs="-lmpfr -lgmp"
6de9cd9a 4373gmpinc=
e69bf64b
PB
4374have_gmp=no
4375
bebf829d
PB
4376# Specify a location for mpfr
4377# check for this first so it ends up on the link line before gmp.
1c710c3c 4378
2aeb72e9 4379# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4380if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4381 withval="$with_mpfr_dir"
4382 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4383Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4384echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4385Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4386 { (exit 1); exit 1; }; }
2aeb72e9 4387fi;
bebf829d
PB
4388
4389
2aeb72e9 4390# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4391if test "${with_mpfr+set}" = set; then
2aeb72e9 4392 withval="$with_mpfr"
1c710c3c 4393
2aeb72e9 4394fi;
bebf829d 4395
2aeb72e9 4396# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4397if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4398 withval="$with_mpfr_include"
1c710c3c 4399
2aeb72e9 4400fi;
8a877c9c 4401
2aeb72e9 4402# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4403if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4404 withval="$with_mpfr_lib"
8a877c9c 4405
2aeb72e9 4406fi;
bebf829d
PB
4407
4408if test "x$with_mpfr" != x; then
4409 gmplibs="-L$with_mpfr/lib $gmplibs"
4410 gmpinc="-I$with_mpfr/include"
4411fi
8a877c9c
KG
4412if test "x$with_mpfr_include" != x; then
4413 gmpinc="-I$with_mpfr_include"
4414fi
4415if test "x$with_mpfr_lib" != x; then
4416 gmplibs="-L$with_mpfr_lib $gmplibs"
4417fi
e69bf64b
PB
4418if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4419 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4420 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4421 # Do not test the mpfr version. Assume that it is sufficient, since
4422 # it is in the source tree, and the library has not been built yet
4423 # but it would be included on the link line in the version check below
4424 # hence making the test fail.
4425 have_gmp=yes
4426fi
bebf829d 4427
6de9cd9a 4428# Specify a location for gmp
1c710c3c 4429
2aeb72e9 4430# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4431if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4432 withval="$with_gmp_dir"
4433 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4434Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4435echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4436Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4437 { (exit 1); exit 1; }; }
2aeb72e9 4438fi;
6de9cd9a 4439
6de9cd9a 4440
2aeb72e9 4441# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4442if test "${with_gmp+set}" = set; then
2aeb72e9 4443 withval="$with_gmp"
1c710c3c 4444
2aeb72e9 4445fi;
6de9cd9a 4446
2aeb72e9 4447# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4448if test "${with_gmp_include+set}" = set; then
2aeb72e9 4449 withval="$with_gmp_include"
1c710c3c 4450
2aeb72e9 4451fi;
8a877c9c 4452
2aeb72e9 4453# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4454if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4455 withval="$with_gmp_lib"
8a877c9c 4456
2aeb72e9 4457fi;
8a877c9c 4458
6de9cd9a 4459
bebf829d
PB
4460if test "x$with_gmp" != x; then
4461 gmplibs="-L$with_gmp/lib $gmplibs"
4462 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4463fi
8a877c9c
KG
4464if test "x$with_gmp_include" != x; then
4465 gmpinc="-I$with_gmp_include $gmpinc"
4466fi
4467if test "x$with_gmp_lib" != x; then
4468 gmplibs="-L$with_gmp_lib $gmplibs"
4469fi
e69bf64b
PB
4470if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4471 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4472 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4473 # Do not test the gmp version. Assume that it is sufficient, since
4474 # it is in the source tree, and the library has not been built yet
4475 # but it would be included on the link line in the version check below
4476 # hence making the test fail.
4477 have_gmp=yes
4478fi
6de9cd9a 4479
d943d7c4 4480if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4481 have_gmp=yes
4482 saved_CFLAGS="$CFLAGS"
4483 CFLAGS="$CFLAGS $gmpinc"
4484 # Check GMP actually works
2aeb72e9
DD
4485 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4486echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4487
4488cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h. */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h. */
6de9cd9a 4494#include "gmp.h"
1c710c3c
DJ
4495int
4496main ()
4497{
6de9cd9a 4498
e69bf64b
PB
4499 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4500 choke me
4501 #endif
1c710c3c
DJ
4502
4503 ;
4504 return 0;
4505}
4506_ACEOF
4507rm -f conftest.$ac_objext
2aeb72e9
DD
4508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4515 (exit $ac_status); } &&
4516 { ac_try='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 echo "$as_me:$LINENO: result: yes" >&5
4530echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4531else
4532 echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
2aeb72e9
DD
4535echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4537fi
2aeb72e9 4538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4539
e69bf64b
PB
4540 if test x"$have_gmp" = xyes; then
4541 saved_LIBS="$LIBS"
4542 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4543 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4544echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4545 cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h. */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h. */
70ec446f 4551#include <gmp.h>
e69bf64b 4552 #include <mpfr.h>
1c710c3c
DJ
4553int
4554main ()
4555{
e48d66a9 4556
94e1934d 4557 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
e69bf64b
PB
4558 choke me
4559 #endif
54e433bc
MK
4560 mpfr_t n;
4561 mpfr_t x;
e69bf64b 4562 int t;
54e433bc
MK
4563 mpfr_init (n);
4564 mpfr_init (x);
e69bf64b
PB
4565 mpfr_atan2 (n, n, x, GMP_RNDN);
4566 mpfr_erfc (n, x, GMP_RNDN);
4567 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4568
4569 ;
4570 return 0;
4571}
4572_ACEOF
4573rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4576 ac_status=$?
4577 grep -v '^ *+' conftest.er1 >conftest.err
4578 rm -f conftest.er1
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4581 (exit $ac_status); } &&
4582 { ac_try='test -z "$ac_c_werror_flag"
4583 || test ! -s conftest.err'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; } &&
4589 { ac_try='test -s conftest$ac_exeext'
4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 (eval $ac_try) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
1c710c3c
DJ
4595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
a3993f33 4601#include <gmp.h>
e69bf64b 4602 #include <mpfr.h>
1c710c3c
DJ
4603int
4604main ()
4605{
a3993f33 4606
94e1934d 4607 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
e69bf64b
PB
4608 choke me
4609 #endif
4610 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 echo "$as_me:$LINENO: result: yes" >&5
4639echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4640else
4641 echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
2aeb72e9
DD
4644echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4645echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4646fi
2aeb72e9 4647rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4648 conftest$ac_exeext conftest.$ac_ext
4649else
4650 echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
2aeb72e9
DD
4653echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4655fi
2aeb72e9 4656rm -f conftest.err conftest.$ac_objext \
1c710c3c 4657 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4658 LIBS="$saved_LIBS"
4659 fi
4660 CFLAGS="$saved_CFLAGS"
6de9cd9a 4661
e69bf64b 4662 if test x$have_gmp != xyes; then
94e1934d 4663 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
1c710c3c
DJ
4664Try the --with-gmp and/or --with-mpfr options to specify their locations.
4665Copies of these libraries' source code can be found at their respective
4666hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4667See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4668If you obtained GMP and/or MPFR from a vendor distribution package, make
4669sure that you have installed both the libraries and the header files.
4670They may be located in separate packages." >&5
94e1934d 4671echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
ca558912
KG
4672Try the --with-gmp and/or --with-mpfr options to specify their locations.
4673Copies of these libraries' source code can be found at their respective
4674hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4675See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4676If you obtained GMP and/or MPFR from a vendor distribution package, make
4677sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4678They may be located in separate packages." >&2;}
4679 { (exit 1); exit 1; }; }
e69bf64b 4680 fi
70ec446f
KG
4681fi
4682
bebf829d 4683# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4684
4685
4686
1e0f07d3 4687# By default, C is the only stage 1 language.
e1888513 4688stage1_languages=,c,
2805b53a 4689
55ffb5ed
NN
4690# Figure out what language subdirectories are present.
4691# Look if the user specified --enable-languages="..."; if not, use
4692# the environment variable $LANGUAGES if defined. $LANGUAGES might
4693# go away some day.
4694# NB: embedded tabs in this IF block -- do not untabify
4695if test -d ${srcdir}/gcc; then
4696 if test x"${enable_languages+set}" != xset; then
4697 if test x"${LANGUAGES+set}" = xset; then
4698 enable_languages="${LANGUAGES}"
4699 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4700 else
4701 enable_languages=all
4702 fi
4703 else
4704 if test x"${enable_languages}" = x ||
4705 test x"${enable_languages}" = xyes;
4706 then
4707 echo configure.in: --enable-languages needs at least one language argument 1>&2
4708 exit 1
4709 fi
4710 fi
4711 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4712
7f26dfa3
FXC
4713 # 'f95' is the old name for the 'fortran' language. We issue a warning
4714 # and make the substitution.
4715 case ,${enable_languages}, in
4716 *,f95,*)
4717 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4718 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4719 ;;
4720 esac
4721
55ffb5ed
NN
4722 # First scan to see if an enabled language requires some other language.
4723 # We assume that a given config-lang.in will list all the language
4724 # front ends it requires, even if some are required indirectly.
4725 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4726 case ${lang_frag} in
4727 ..) ;;
4728 # The odd quoting in the next line works around
4729 # an apparent bug in bash 1.12 on linux.
4730 ${srcdir}/gcc/[*]/config-lang.in) ;;
4731 *)
4732 # From the config-lang.in, get $language, $lang_requires
4733 language=
4734 lang_requires=
4735 . ${lang_frag}
4736 for other in ${lang_requires} ; do
4737 case ,${enable_languages}, in
4738 *,$other,*) ;;
4739 *,all,*) ;;
4740 *,$language,*)
4741 echo " \`$other' language required by \`$language'; enabling" 1>&2
4742 enable_languages="${enable_languages},${other}"
4743 ;;
4744 esac
4745 done
4746 ;;
4747 esac
4748 done
4749
e1888513 4750 new_enable_languages=,c,
55ffb5ed 4751 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4752 potential_languages=,c,
55ffb5ed
NN
4753
4754 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4755 case ${lang_frag} in
4756 ..) ;;
4757 # The odd quoting in the next line works around
4758 # an apparent bug in bash 1.12 on linux.
4759 ${srcdir}/gcc/[*]/config-lang.in) ;;
4760 *)
1c710c3c 4761 # From the config-lang.in, get $language, $target_libs,
2805b53a 4762 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4763 language=
4764 target_libs=
4765 lang_dirs=
1546bb64 4766 subdir_requires=
e1888513
PB
4767 boot_language=no
4768 build_by_default=yes
55ffb5ed 4769 . ${lang_frag}
e1888513
PB
4770 if test x${language} = x; then
4771 echo "${lang_frag} doesn't set \$language." 1>&2
4772 exit 1
4773 fi
4774
4775 case ,${enable_languages}, in
4776 *,${language},*)
55ffb5ed
NN
4777 # Language was explicitly selected; include it.
4778 add_this_lang=yes
4779 ;;
e1888513
PB
4780 *,all,*)
4781 # 'all' was selected, select it if it is a default language
4782 add_this_lang=${build_by_default}
55ffb5ed
NN
4783 ;;
4784 *)
4785 add_this_lang=no
4786 ;;
4787 esac
6de9cd9a 4788
1546bb64 4789 # Disable languages that need other directories if these aren't available.
95695ad3 4790 for i in $subdir_requires; do
b6348cb3 4791 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4792 case ,${enable_languages}, in
4793 *,${language},*)
4794 # Specifically requested language; tell them.
1c710c3c
DJ
4795 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4796echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4797 { (exit 1); exit 1; }; }
1546bb64
PB
4798 ;;
4799 *)
4800 # Silently disable.
e1888513 4801 add_this_lang=unsupported
1546bb64
PB
4802 ;;
4803 esac
4804 done
4805
e1888513
PB
4806 # Disable Ada if no preexisting GNAT is available.
4807 case ,${enable_languages},:${language}:${have_gnat} in
4808 *,${language},*:ada:no)
4809 # Specifically requested language; tell them.
1c710c3c
DJ
4810 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4811echo "$as_me: error: GNAT is required to build $language" >&2;}
4812 { (exit 1); exit 1; }; }
e1888513
PB
4813 ;;
4814 *:ada:no)
4815 # Silently disable.
4816 add_this_lang=unsupported
4817 ;;
4818 esac
4819
4fab7234
HPN
4820 # Disable a language that is unsupported by the target.
4821 case " $unsupported_languages " in
4822 *" $language "*)
e1888513 4823 add_this_lang=unsupported
4fab7234
HPN
4824 ;;
4825 esac
4826
6de9cd9a 4827 case $add_this_lang in
e1888513 4828 unsupported)
55ffb5ed 4829 # Remove language-dependent dirs.
2805b53a
NN
4830 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4831 ;;
e1888513
PB
4832 no)
4833 # Remove language-dependent dirs; still show language as supported.
4834 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4835 potential_languages="${potential_languages}${language},"
4836 ;;
4837 yes)
4838 new_enable_languages="${new_enable_languages}${language},"
4839 potential_languages="${potential_languages}${language},"
2805b53a
NN
4840 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4841 case ${boot_language} in
4842 yes)
340de83f 4843 # Add to (comma-separated) list of stage 1 languages.
e1888513 4844 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4845 ;;
4846 esac
4847 ;;
55ffb5ed
NN
4848 esac
4849 ;;
4850 esac
4851 done
4852
2aeb72e9 4853 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4854if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4855 enableval="$enable_stage1_languages"
4856 case ,${enable_stage1_languages}, in
e1888513
PB
4857 ,no,|,,)
4858 # Set it to something that will have no effect in the loop below
4859 enable_stage1_languages=c ;;
4860 ,yes,)
4861 enable_stage1_languages=`echo $new_enable_languages | \
4862 sed -e "s/^,//" -e "s/,$//" ` ;;
4863 *,all,*)
4864 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4865 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4866 esac
4867
4868 # Add "good" languages from enable_stage1_languages to stage1_languages,
4869 # while "bad" languages go in missing_languages. Leave no duplicates.
4870 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4871 case $potential_languages in
4872 *,$i,*)
4873 case $stage1_languages in
4874 *,$i,*) ;;
4875 *) stage1_languages="$stage1_languages$i," ;;
4876 esac ;;
4877 *)
4878 case $missing_languages in
4879 *,$i,*) ;;
4880 *) missing_languages="$missing_languages$i," ;;
4881 esac ;;
4882 esac
4883 done
2aeb72e9 4884fi;
e1888513
PB
4885
4886 # Remove leading/trailing commas that were added for simplicity
4887 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4888 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4889 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4890 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4891
55ffb5ed 4892 if test "x$missing_languages" != x; then
1c710c3c 4893 { { echo "$as_me:$LINENO: error:
0cf085e4 4894The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4895Supported languages are: ${potential_languages}" >&5
4896echo "$as_me: error:
4897The following requested languages could not be built: ${missing_languages}
4898Supported languages are: ${potential_languages}" >&2;}
4899 { (exit 1); exit 1; }; }
55ffb5ed 4900 fi
55ffb5ed
NN
4901 if test "x$new_enable_languages" != "x$enable_languages"; then
4902 echo The following languages will be built: ${new_enable_languages}
e1888513 4903 enable_languages="$new_enable_languages"
55ffb5ed 4904 fi
e1888513 4905
1c710c3c 4906
b2eaac4a 4907 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4908fi
4909
27079765
AH
4910# Handle --disable-<component> generically.
4911for dir in $configdirs $build_configdirs $target_configdirs ; do
4912 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
4913 varname=`echo $dirname | sed -e s/+/_/g`
4914 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
4915 noconfigdirs="$noconfigdirs $dir"
4916 fi
4917done
4918
7cd0cf9c 4919# Check for Boehm's garbage collector
2aeb72e9 4920# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4921if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4922 enableval="$enable_objc_gc"
4923 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4924 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4925 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4926echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4927 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4928 ;;
4929esac
2aeb72e9 4930fi;
7cd0cf9c
DA
4931
4932# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4933case ,${enable_languages},:${enable_objc_gc} in
4934 *,objc,*:yes)
7cd0cf9c
DA
4935 # Keep target-boehm-gc if requested for Objective-C.
4936 ;;
7cd0cf9c 4937 *)
2a79fd67
DA
4938 # Otherwise remove target-boehm-gc depending on target-libjava.
4939 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4940 noconfigdirs="$noconfigdirs target-boehm-gc"
4941 fi
7cd0cf9c
DA
4942 ;;
4943esac
4944
ee6a22df
L
4945# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4946# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4947# If we have the source for $noconfigdirs entries, add them to $notsupp.
4948
4949notsupp=""
4950for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4951 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4952 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4953 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4954 if test -r $srcdir/$dirname/configure ; then
4955 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4956 true
4957 else
4958 notsupp="$notsupp $dir"
4959 fi
4960 fi
4961 fi
ee6a22df
L
4962 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4963 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4964 if test -r $srcdir/$dirname/configure ; then
4965 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4966 true
4967 else
4968 notsupp="$notsupp $dir"
4969 fi
4970 fi
4971 fi
55ffb5ed
NN
4972 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4973 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4974 if test -r $srcdir/$dirname/configure ; then
4975 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4976 true
4977 else
4978 notsupp="$notsupp $dir"
4979 fi
4980 fi
4981 fi
4982done
4983
4984# Sometimes the tools are distributed with libiberty but with no other
4985# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4986# Don't let libgcc imply libiberty either.
55ffb5ed 4987if test -n "${target_configdirs}" ; then
54fdc474 4988 libgcc=
55ffb5ed
NN
4989 others=
4990 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4991 if test "$i" = "libgcc"; then
4992 libgcc=target-libgcc
4993 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4994 if test -r $srcdir/$i/configure ; then
4995 others=yes;
4996 break;
4997 fi
4998 fi
4999 done
5000 if test -z "${others}" ; then
54fdc474 5001 target_configdirs=$libgcc
55ffb5ed
NN
5002 fi
5003fi
5004
5005# Quietly strip out all directories which aren't configurable in this tree.
5006# This relies on all configurable subdirectories being autoconfiscated, which
5007# is now the case.
23f6b2f9
PB
5008build_configdirs_all="$build_configdirs"
5009build_configdirs=
5010for i in ${build_configdirs_all} ; do
1c710c3c 5011 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5012 if test -f ${srcdir}/$j/configure ; then
5013 build_configdirs="${build_configdirs} $i"
5014 fi
5015done
5016
55ffb5ed
NN
5017configdirs_all="$configdirs"
5018configdirs=
5019for i in ${configdirs_all} ; do
5020 if test -f ${srcdir}/$i/configure ; then
5021 configdirs="${configdirs} $i"
5022 fi
5023done
23f6b2f9 5024
55ffb5ed
NN
5025target_configdirs_all="$target_configdirs"
5026target_configdirs=
5027for i in ${target_configdirs_all} ; do
1c710c3c 5028 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5029 if test -f ${srcdir}/$j/configure ; then
5030 target_configdirs="${target_configdirs} $i"
5031 fi
5032done
5033
5034# Produce a warning message for the subdirs we can't configure.
5035# This isn't especially interesting in the Cygnus tree, but in the individual
5036# FSF releases, it's important to let people know when their machine isn't
5037# supported by the one or two programs in a package.
5038
5039if test -n "${notsupp}" && test -z "${norecursion}" ; then
5040 # If $appdirs is non-empty, at least one of those directories must still
5041 # be configured, or we error out. (E.g., if the gas release supports a
5042 # specified target in some subdirs but not the gas subdir, we shouldn't
5043 # pretend that all is well.)
5044 if test -n "$appdirs" ; then
5045 for dir in $appdirs ; do
5046 if test -r $dir/Makefile.in ; then
5047 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5048 appdirs=""
5049 break
5050 fi
23f6b2f9 5051 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5052 appdirs=""
5053 break
5054 fi
5055 fi
5056 done
5057 if test -n "$appdirs" ; then
5058 echo "*** This configuration is not supported by this package." 1>&2
5059 exit 1
5060 fi
5061 fi
5062 # Okay, some application will build, or we don't care to check. Still
5063 # notify of subdirs not getting built.
5064 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5065 echo " ${notsupp}" 1>&2
5066 echo " (Any other directories should still work fine.)" 1>&2
5067fi
5068
5069case "$host" in
5070 *msdosdjgpp*)
5071 enable_gdbtk=no ;;
5072esac
5073
c3a86da9
DJ
5074# To find our prefix, in gcc_cv_tool_prefix.
5075
5076# The user is always right.
5077if test "${PATH_SEPARATOR+set}" != set; then
5078 echo "#! /bin/sh" >conf$$.sh
5079 echo "exit 0" >>conf$$.sh
5080 chmod +x conf$$.sh
5081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5082 PATH_SEPARATOR=';'
5083 else
5084 PATH_SEPARATOR=:
5085 fi
5086 rm -f conf$$.sh
5087fi
5088
5089
5090
5091if test "x$exec_prefix" = xNONE; then
5092 if test "x$prefix" = xNONE; then
5093 gcc_cv_tool_prefix=$ac_default_prefix
5094 else
5095 gcc_cv_tool_prefix=$prefix
5096 fi
5097else
5098 gcc_cv_tool_prefix=$exec_prefix
5099fi
5100
5101# If there is no compiler in the tree, use the PATH only. In any
5102# case, if there is no compiler in the tree nobody should use
5103# AS_FOR_TARGET and LD_FOR_TARGET.
5104if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5105 gcc_version=`cat $srcdir/gcc/BASE-VER`
5106 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5107 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5110 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5111 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5112else
5113 gcc_cv_tool_dirs=
5114fi
5115
5116if test x$build = x$target && test -n "$md_exec_prefix"; then
5117 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5118fi
5119
5120
5121
55ffb5ed
NN
5122copy_dirs=
5123
1c710c3c 5124
2aeb72e9 5125# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5126if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5127 withval="$with_build_sysroot"
5128 if test x"$withval" != x ; then
526635cb
MM
5129 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5130 fi
5131else
5132 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5133fi;
526635cb
MM
5134
5135
c8aea42c
PB
5136
5137# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5138if test "${with_debug_prefix_map+set}" = set; then
5139 withval="$with_debug_prefix_map"
5140 if test x"$withval" != x; then
5141 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5142 for debug_map in $withval; do
5143 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5144 done
5145 fi
5146else
5147 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5148fi;
5149
5150
55ffb5ed
NN
5151# Handle --with-headers=XXX. If the value is not "yes", the contents of
5152# the named directory are copied to $(tooldir)/sys-include.
5153if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5154 if test x${is_cross_compiler} = xno ; then
5155 echo 1>&2 '***' --with-headers is only supported when cross compiling
5156 exit 1
5157 fi
5158 if test x"${with_headers}" != xyes ; then
c3a86da9 5159 x=${gcc_cv_tool_prefix}
1c710c3c 5160 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5161 fi
5162fi
5163
5164# Handle --with-libs=XXX. If the value is not "yes", the contents of
5165# the name directories are copied to $(tooldir)/lib. Multiple directories
5166# are permitted.
5167if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5168 if test x${is_cross_compiler} = xno ; then
5169 echo 1>&2 '***' --with-libs is only supported when cross compiling
5170 exit 1
5171 fi
5172 if test x"${with_libs}" != xyes ; then
5173 # Copy the libraries in reverse order, so that files in the first named
5174 # library override files in subsequent libraries.
c3a86da9 5175 x=${gcc_cv_tool_prefix}
55ffb5ed 5176 for l in ${with_libs}; do
1c710c3c 5177 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5178 done
5179 fi
5180fi
5181
e8b05380
PB
5182# Set with_gnu_as and with_gnu_ld as appropriate.
5183#
5184# This is done by determining whether or not the appropriate directory
5185# is available, and by checking whether or not specific configurations
5186# have requested that this magic not happen.
1c710c3c
DJ
5187#
5188# The command line options always override the explicit settings in
e8b05380
PB
5189# configure.in, and the settings in configure.in override this magic.
5190#
1c710c3c 5191# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5192# want to do that, then you should use the --without-gnu-as and
5193# --without-gnu-ld options for the configure script.
5194
5195if test x${use_gnu_as} = x &&
5196 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5197 with_gnu_as=yes
5198 extra_host_args="$extra_host_args --with-gnu-as"
5199fi
5200
5201if test x${use_gnu_ld} = x &&
5202 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5203 with_gnu_ld=yes
5204 extra_host_args="$extra_host_args --with-gnu-ld"
5205fi
5206
5207# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5208# can detect this case.
5209
5210if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5211 with_newlib=yes
5212 extra_host_args="$extra_host_args --with-newlib"
5213fi
5214
55ffb5ed
NN
5215# Handle ${copy_dirs}
5216set fnord ${copy_dirs}
5217shift
5218while test $# != 0 ; do
5219 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5220 :
5221 else
5222 echo Copying $1 to $2
5223
5224 # Use the install script to create the directory and all required
5225 # parent directories.
5226 if test -d $2 ; then
5227 :
5228 else
5229 echo >config.temp
5230 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5231 fi
5232
5233 # Copy the directory, assuming we have tar.
5234 # FIXME: Should we use B in the second tar? Not all systems support it.
5235 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5236
5237 # It is the responsibility of the user to correctly adjust all
5238 # symlinks. If somebody can figure out how to handle them correctly
5239 # here, feel free to add the code.
5240
5241 echo $1 > $2/COPIED
5242 fi
5243 shift; shift
5244done
5245
e8b05380
PB
5246# Determine a target-dependent exec_prefix that the installed
5247# gcc will search in. Keep this list sorted by triplet, with
5248# the *-*-osname triplets last.
5249md_exec_prefix=
5250case "${target}" in
5251 alpha*-*-*vms*)
5252 md_exec_prefix=/gnu/lib/gcc-lib
5253 ;;
30b74385 5254 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5255 md_exec_prefix=/dev/env/DJDIR/bin
5256 ;;
30b74385 5257 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5258 if test $with_gnu_as = yes; then
5259 md_exec_prefix=/usr/gnu/bin
5260 else
5261 md_exec_prefix=/usr/ccs/bin/elf
5262 fi
5263 ;;
5264
5265 mn10300-*-* | \
5266 powerpc-*-chorusos* | \
5267 powerpc*-*-eabi* | \
5268 powerpc*-*-sysv* | \
5269 powerpc*-*-kaos* | \
5270 s390x-ibm-tpf*)
5271 md_exec_prefix=/usr/ccs/bin
5272 ;;
5273 sparc64-*-elf*)
5274 ;;
5275 v850*-*-*)
5276 md_exec_prefix=/usr/ccs/bin
5277 ;;
5278 xtensa-*-elf*)
5279 ;;
5280
5281 *-*-beos* | \
5282 *-*-elf* | \
5283 *-*-hpux* | \
5284 *-*-netware* | \
5285 *-*-nto-qnx* | \
5286 *-*-rtems* | \
5287 *-*-solaris2* | \
30b74385 5288 *-*-sysv[45]* | \
e8b05380
PB
5289 *-*-vxworks* | \
5290 *-wrs-windiss)
5291 md_exec_prefix=/usr/ccs/bin
5292 ;;
5293esac
5294
671aa708
NN
5295extra_arflags_for_target=
5296extra_nmflags_for_target=
5297extra_ranlibflags_for_target=
5298target_makefile_frag=/dev/null
5299case "${target}" in
3e19841a
PB
5300 mep*-*-*)
5301 target_makefile_frag="config/mt-mep"
5302 ;;
58e24147
AM
5303 spu-*-*)
5304 target_makefile_frag="config/mt-spu"
5305 ;;
4bf6c438
RS
5306 mips*-sde-elf*)
5307 target_makefile_frag="config/mt-sde"
5308 ;;
1ec3b87b
RS
5309 mipsisa*-*-elfoabi*)
5310 target_makefile_frag="config/mt-mips-elfoabi"
5311 ;;
61fec9ff 5312 *-*-netware*)
671aa708
NN
5313 target_makefile_frag="config/mt-netware"
5314 ;;
98a5bb3b
RM
5315 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5316 target_makefile_frag="config/mt-gnu"
671aa708
NN
5317 ;;
5318 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5319 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5320 # commands to handle both 32-bit and 64-bit objects. These flags are
5321 # harmless if we're using GNU nm or ar.
5322 extra_arflags_for_target=" -X32_64"
5323 extra_nmflags_for_target=" -B -X32_64"
5324 ;;
5325 *-*-darwin*)
5326 # ranlib from Darwin requires the -c flag to look at common symbols.
5327 extra_ranlibflags_for_target=" -c"
5328 ;;
5329 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5330 target_makefile_frag="config/mt-wince"
5331 ;;
5332esac
5333
5334alphaieee_frag=/dev/null
5335case $target in
5336 alpha*-*-*)
5337 # This just makes sure to use the -mieee option to build target libs.
5338 # This should probably be set individually by each library.
5339 alphaieee_frag="config/mt-alphaieee"
5340 ;;
5341esac
5342
5343# If --enable-target-optspace always use -Os instead of -O2 to build
5344# the target libraries, similarly if it is not specified, use -Os
5345# on selected platforms.
5346ospace_frag=/dev/null
5347case "${enable_target_optspace}:${target}" in
5348 yes:*)
5349 ospace_frag="config/mt-ospace"
5350 ;;
5351 :d30v-*)
5352 ospace_frag="config/mt-d30v"
5353 ;;
5354 :m32r-* | :d10v-* | :fr30-*)
5355 ospace_frag="config/mt-ospace"
5356 ;;
5357 no:* | :*)
5358 ;;
5359 *)
5360 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5361 ;;
5362esac
5363
671aa708
NN
5364# Default to using --with-stabs for certain targets.
5365if test x${with_stabs} = x ; then
5366 case "${target}" in
89a95129 5367 mips*-*-irix[56]*)
671aa708
NN
5368 ;;
5369 mips*-*-* | alpha*-*-osf*)
5370 with_stabs=yes;
5371 extra_host_args="${extra_host_args} --with-stabs"
5372 ;;
5373 esac
5374fi
5375
5376# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5377# them automatically.
5378case "${host}" in
1c710c3c 5379 hppa*64*-*-hpux11*)
671aa708
NN
5380 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5381 ;;
5382esac
5383
671aa708
NN
5384# Some systems (e.g., one of the i386-aix systems the gas testers are
5385# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5386tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5387build_tooldir=${tooldir}
5388
671aa708
NN
5389# Create a .gdbinit file which runs the one in srcdir
5390# and tells GDB to look there for source files.
5391
5392if test -r ${srcdir}/.gdbinit ; then
5393 case ${srcdir} in
5394 .) ;;
5395 *) cat > ./.gdbinit <<EOF
5396# ${NO_EDIT}
5397dir ${srcdir}
5398dir .
5399source ${srcdir}/.gdbinit
5400EOF
5401 ;;
5402 esac
5403fi
5404
671aa708
NN
5405# Make sure that the compiler is able to generate an executable. If it
5406# can't, we are probably in trouble. We don't care whether we can run the
5407# executable--we might be using a cross compiler--we only care whether it
5408# can be created. At this point the main configure script has set CC.
5409we_are_ok=no
5410echo "int main () { return 0; }" > conftest.c
5411${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5412if test $? = 0 ; then
5413 if test -s conftest || test -s conftest.exe ; then
5414 we_are_ok=yes
5415 fi
1c710c3c 5416fi
671aa708
NN
5417case $we_are_ok in
5418 no)
5419 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5420 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5421 rm -f conftest*
5422 exit 1
5423 ;;
5424esac
5425rm -f conftest*
5426
5427# The Solaris /usr/ucb/cc compiler does not appear to work.
5428case "${host}" in
5429 sparc-sun-solaris2*)
5430 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5431 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5432 could_use=
5433 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5434 if test -d /opt/cygnus/bin ; then
5435 if test "$could_use" = "" ; then
5436 could_use="/opt/cygnus/bin"
5437 else
5438 could_use="$could_use or /opt/cygnus/bin"
5439 fi
5440 fi
5441 if test "$could_use" = "" ; then
5442 echo "Warning: compilation may fail because you're using"
5443 echo "/usr/ucb/cc. You should change your PATH or CC "
5444 echo "variable and rerun configure."
5445 else
5446 echo "Warning: compilation may fail because you're using"
5447 echo "/usr/ucb/cc, when you should use the C compiler from"
5448 echo "$could_use. You should change your"
5449 echo "PATH or CC variable and rerun configure."
5450 fi
5451 fi
5452 ;;
5453esac
5454
671aa708
NN
5455case "${host}" in
5456 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5457 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5458 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5459esac
5460
5461# Record target_configdirs and the configure arguments for target and
5462# build configuration in Makefile.
5463target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5464build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5465
671aa708
NN
5466# Determine whether gdb needs tk/tcl or not.
5467# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5468# and in that case we want gdb to be built without tk. Ugh!
5469# In fact I believe gdb is the *only* package directly dependent on tk,
5470# so we should be able to put the 'maybe's in unconditionally and
5471# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5472# 100% sure that that's safe though.
e914a571 5473
b4f96efe 5474gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5475case "$enable_gdbtk" in
5476 no)
5477 GDB_TK="" ;;
e914a571
AC
5478 yes)
5479 GDB_TK="${gdb_tk}" ;;
671aa708 5480 *)
e914a571
AC
5481 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5482 # distro. Eventually someone will fix this and move Insight, nee
5483 # gdbtk to a separate directory.
5484 if test -d ${srcdir}/gdb/gdbtk ; then
5485 GDB_TK="${gdb_tk}"
5486 else
5487 GDB_TK=""
5488 fi
5489 ;;
671aa708 5490esac
ef9db8d5
DJ
5491CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5492INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5493
60975492 5494# Strip out unwanted targets.
8b87bb96
NN
5495
5496# While at that, we remove Makefiles if we were started for recursive
5497# configuration, so that the top-level Makefile reconfigures them,
5498# like we used to do when configure itself was recursive.
8b87bb96 5499
60975492
PB
5500# Loop over modules. $extrasub must be used with care, limiting as
5501# much as possible the usage of range addresses. That's because autoconf
5502# splits the sed script to overcome limits in the number of commands,
5503# and relying on carefully-timed sed passes may turn out to be very hard
5504# to maintain later. In this particular case, you just have to be careful
5505# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5506
2aeb72e9 5507# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5508if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5509 enableval="$enable_bootstrap"
5510
f516a7da 5511else
ce521a9c 5512 enable_bootstrap=default
2aeb72e9 5513fi;
f516a7da 5514
ce521a9c
PB
5515# Issue errors and warnings for invalid/strange bootstrap combinations.
5516case "$configdirs" in
5517 *gcc*) have_compiler=yes ;;
5518 *) have_compiler=no ;;
5519esac
5520
5521case "$have_compiler:$host:$target:$enable_bootstrap" in
5522 *:*:*:no) ;;
5523
1ca26cd2 5524 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5525 # and we are in a native configuration.
5526 yes:$build:$build:default)
1ca26cd2 5527 enable_bootstrap=yes ;;
ce521a9c
PB
5528
5529 *:*:*:default)
5530 enable_bootstrap=no ;;
5531
5532 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5533 yes:$build:$build:yes)
ce521a9c
PB
5534 ;;
5535
5536 # Other configurations, but we have a compiler. Assume the user knows
5537 # what he's doing.
2d309510 5538 yes:*:*:yes)
1c710c3c
DJ
5539 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5540echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5541 ;;
5542
5543 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5544 no:*:*:yes)
1c710c3c
DJ
5545 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5546echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5547 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5548
5549 # Fail if wrong command line
5550 *)
1c710c3c
DJ
5551 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5552echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5553 { (exit 1); exit 1; }; }
ce521a9c
PB
5554 ;;
5555esac
5556
5557# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5558case "$enable_bootstrap" in
5559 yes)
5607edfd 5560 bootstrap_suffix=bootstrap ;;
f516a7da 5561 no)
5607edfd 5562 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5563esac
5564
23f6b2f9 5565for module in ${build_configdirs} ; do
5607edfd
PB
5566 if test -z "${no_recursion}" \
5567 && test -f ${build_subdir}/${module}/Makefile; then
5568 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5569 rm -f ${build_subdir}/${module}/Makefile
5570 fi
5571 extrasub="$extrasub
5572/^@if build-$module\$/d
5573/^@endif build-$module\$/d
5574/^@if build-$module-$bootstrap_suffix\$/d
5575/^@endif build-$module-$bootstrap_suffix\$/d"
5576done
5577for module in ${configdirs} ; do
a6fbc1e2 5578 if test -z "${no_recursion}"; then
f063a9ed 5579 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5580 if test -f ${file}; then
5581 echo 1>&2 "*** removing ${file} to force reconfigure"
5582 rm -f ${file}
5583 fi
5584 done
5607edfd
PB
5585 fi
5586 extrasub="$extrasub
5587/^@if $module\$/d
5588/^@endif $module\$/d
5589/^@if $module-$bootstrap_suffix\$/d
5590/^@endif $module-$bootstrap_suffix\$/d"
5591done
5592for module in ${target_configdirs} ; do
5593 if test -z "${no_recursion}" \
5594 && test -f ${target_subdir}/${module}/Makefile; then
5595 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5596 rm -f ${target_subdir}/${module}/Makefile
5597 fi
5598 extrasub="$extrasub
5599/^@if target-$module\$/d
5600/^@endif target-$module\$/d
5601/^@if target-$module-$bootstrap_suffix\$/d
5602/^@endif target-$module-$bootstrap_suffix\$/d"
5603done
5604
60975492
PB
5605extrasub="$extrasub
5606/^@if /,/^@endif /d"
671aa708
NN
5607
5608# Create the serialization dependencies. This uses a temporary file.
5609
2aeb72e9 5610# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5611if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5612 enableval="$enable_serial_configure"
ade82b16 5613
2aeb72e9 5614fi;
ade82b16 5615
bf1d3e81
NN
5616case ${enable_serial_configure} in
5617 yes)
5618 enable_serial_build_configure=yes
5619 enable_serial_host_configure=yes
5620 enable_serial_target_configure=yes
5621 ;;
5622esac
5623
671aa708
NN
5624# These force 'configure's to be done one at a time, to avoid problems
5625# with contention over a shared config.cache.
5626rm -f serdep.tmp
ade82b16 5627echo '# serdep.tmp' > serdep.tmp
671aa708 5628olditem=
bf1d3e81 5629test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5630for item in ${build_configdirs} ; do
5631 case ${olditem} in
5632 "") ;;
ade82b16 5633 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5634 esac
5635 olditem=${item}
5636done
5637olditem=
bf1d3e81 5638test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5639for item in ${configdirs} ; do
5640 case ${olditem} in
5641 "") ;;
ade82b16 5642 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5643 esac
5644 olditem=${item}
5645done
5646olditem=
bf1d3e81 5647test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5648for item in ${target_configdirs} ; do
5649 case ${olditem} in
5650 "") ;;
ade82b16 5651 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5652 esac
5653 olditem=${item}
5654done
5655serialization_dependencies=serdep.tmp
5656
5657
ade82b16 5658# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5659# target, nonopt, and variable assignments. These are the ones we
5660# might not want to pass down to subconfigures. Also strip
5661# program-prefix, program-suffix, and program-transform-name, so that
5662# we can pass down a consistent program-transform-name.
5663baseargs=
5664keep_next=no
5665skip_next=no
5666eval "set -- $ac_configure_args"
44bfc3ac
DJ
5667for ac_arg
5668do
1c710c3c
DJ
5669 if test X"$skip_next" = X"yes"; then
5670 skip_next=no
5671 continue
5672 fi
5673 if test X"$keep_next" = X"yes"; then
5674 case $ac_arg in
5675 *\'*)
5676 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5677 esac
5678 baseargs="$baseargs '$ac_arg'"
5679 keep_next=no
5680 continue
5681 fi
5682
5683 # Handle separated arguments. Based on the logic generated by
5684 # autoconf 2.59.
5685 case $ac_arg in
5686 *=* | --config-cache | -C | -disable-* | --disable-* \
5687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5689 | -with-* | --with-* | -without-* | --without-* | --x)
5690 separate_arg=no
5691 ;;
5692 -*)
5693 separate_arg=yes
5694 ;;
5695 *)
5696 separate_arg=no
5697 ;;
5698 esac
5699
5700 case "$ac_arg" in
5701 --no*)
5702 continue
5703 ;;
5704 --c* | \
5705 --sr* | \
5706 --ho* | \
5707 --bu* | \
5708 --t* | \
5709 --program-* | \
5710 -cache_file* | \
5711 -srcdir* | \
5712 -host* | \
5713 -build* | \
5714 -target* | \
5715 -program-prefix* | \
5716 -program-suffix* | \
5717 -program-transform-name* )
5718 skip_next=$separate_arg
5719 continue
5720 ;;
5721 -*)
5722 # An option. Add it.
5723 case $ac_arg in
5724 *\'*)
5725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5726 esac
5727 baseargs="$baseargs '$ac_arg'"
5728 keep_next=$separate_arg
5729 ;;
5730 *)
5731 # Either a variable assignment, or a nonopt (triplet). Don't
5732 # pass it down; let the Makefile handle this.
5733 continue
5734 ;;
5735 esac
5736done
5737# Remove the initial space we just introduced and, as these will be
5738# expanded by make, quote '$'.
5739baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5740
43bb47c2
DJ
5741# Add in --program-transform-name, after --program-prefix and
5742# --program-suffix have been applied to it. Autoconf has already
5743# doubled dollar signs and backslashes in program_transform_name; we want
5744# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5745# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5746# Also, because we want to override the logic in subdir configure scripts to
5747# choose program_transform_name, replace any s,x,x, with s,y,y,.
5748sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5749${program_transform_name}
5750EOF_SED
5751gcc_transform_name=`cat conftestsed.out`
5752rm -f conftestsed.out
5753baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5754if test "$silent" = yes; then
5755 baseargs="$baseargs --silent"
5756fi
43bb47c2 5757
671aa708
NN
5758# For the build-side libraries, we just need to pretend we're native,
5759# and not use the same cache file. Multilibs are neither needed nor
5760# desired.
e69bf64b 5761build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5762
5763# For host modules, accept cache file option, or specification as blank.
5764case "${cache_file}" in
5765"") # empty
5766 cache_file_option="" ;;
5767/* | [A-Za-z]:[\\/]* ) # absolute path
5768 cache_file_option="--cache-file=${cache_file}" ;;
5769*) # relative path
5770 cache_file_option="--cache-file=../${cache_file}" ;;
5771esac
5772
09438bde
NN
5773# Host dirs don't like to share a cache file either, horribly enough.
5774# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5775host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5776
5777target_configargs=${baseargs}
5778
5779# Passing a --with-cross-host argument lets the target libraries know
5780# whether they are being built with a cross-compiler or being built
5781# native. However, it would be better to use other mechanisms to make the
5782# sorts of decisions they want to make on this basis. Please consider
5783# this option to be deprecated. FIXME.
5784if test x${is_cross_compiler} = xyes ; then
1c710c3c 5785 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5786fi
5787
5788# Default to --enable-multilib.
5789if test x${enable_multilib} = x ; then
5790 target_configargs="--enable-multilib ${target_configargs}"
5791fi
5792
5793# Pass --with-newlib if appropriate. Note that target_configdirs has
5794# changed from the earlier setting of with_newlib.
5795if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5796 target_configargs="--with-newlib ${target_configargs}"
5797fi
5798
6b9eb62c
NN
5799# Different target subdirs use different values of certain variables
5800# (notably CXX). Worse, multilibs use *lots* of different values.
5801# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5802# it doesn't automatically accept command-line overrides of them.
5803# This means it's not safe for target subdirs to share a cache file,
5804# which is disgusting, but there you have it. Hopefully this can be
5805# fixed in future. It's still worthwhile to use a cache file for each
5806# directory. I think.
5807
bebcd931
MS
5808# Pass the appropriate --build, --host, --target and --cache-file arguments.
5809# We need to pass --target, as newer autoconf's requires consistency
5810# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5811target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5812
671aa708
NN
5813FLAGS_FOR_TARGET=
5814case " $target_configdirs " in
5815 *" newlib "*)
5816 case " $target_configargs " in
5817 *" --with-newlib "*)
5818 case "$target" in
5819 *-cygwin*)
aa8f1f57 5820 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
5821 esac
5822
5823 # If we're not building GCC, don't discard standard headers.
5824 if test -d ${srcdir}/gcc; then
5825 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5826
5827 if test "${build}" != "${host}"; then
5828 # On Canadian crosses, CC_FOR_TARGET will have already been set
5829 # by `configure', so we won't have an opportunity to add -Bgcc/
5830 # to it. This is right: we don't want to search that directory
5831 # for binaries, but we want the header files in there, so add
5832 # them explicitly.
215c351a 5833 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5834
5835 # Someone might think of using the pre-installed headers on
5836 # Canadian crosses, in case the installed compiler is not fully
5837 # compatible with the compiler being built. In this case, it
5838 # would be better to flag an error than risking having
5839 # incompatible object files being constructed. We can't
5840 # guarantee that an error will be flagged, but let's hope the
5841 # compiler will do it, when presented with incompatible header
5842 # files.
5843 fi
5844 fi
5845
5846 case "${target}-${is_cross_compiler}" in
f2a0e225 5847 i[3456789]86-*-linux*-no)
671aa708
NN
5848 # Here host == target, so we don't need to build gcc,
5849 # so we don't want to discard standard headers.
5850 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5851 ;;
5852 *)
5853 # If we're building newlib, use its generic headers last, but search
5854 # for any libc-related directories first (so make it the last -B
5855 # switch).
5856 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
5857
5858 # If we're building libgloss, find the startup file, simulator library
5859 # and linker script.
5860 case " $target_configdirs " in
5861 *" libgloss "*)
5862 # Look for startup file, simulator library and maybe linker script.
5863 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5864 # Look for libnosys.a in case the target needs it.
5865 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5866 # Most targets have the linker script in the source directory.
5867 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5868 ;;
5869 esac
671aa708
NN
5870 ;;
5871 esac
5872 ;;
5873 esac
5874 ;;
5875esac
b91f0a41
CV
5876case "$target" in
5877*-mingw*)
5878 # Can't be handled as Cygwin above since Mingw does not use newlib.
5879 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' ;;
5880esac
671aa708 5881
6691a79e
ME
5882# Allow the user to override the flags for
5883# our build compiler if desired.
f019adc1
MF
5884if test x"${build}" = x"${host}" ; then
5885 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5886 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5887 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5888fi
6691a79e 5889
671aa708
NN
5890# On Canadian crosses, we'll be searching the right directories for
5891# the previously-installed cross compiler, so don't bother to add
5892# flags for directories within the install tree of the compiler
5893# being built; programs in there won't even run.
5894if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5895 # Search for pre-installed headers if nothing else fits.
9124bc53 5896 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
5897fi
5898
5899if test "x${use_gnu_ld}" = x &&
5900 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5901 # Arrange for us to find uninstalled linker scripts.
215c351a 5902 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5903fi
5904
e88a2c09
DD
5905# Search for other target-specific linker scripts and such.
5906case "${target}" in
3e19841a
PB
5907 mep*)
5908 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5909 ;;
e88a2c09
DD
5910esac
5911
671aa708 5912# Makefile fragments.
7b61653a
PE
5913for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5914do
5915 eval fragval=\$$frag
5916 if test $fragval != /dev/null; then
5917 eval $frag=${srcdir}/$fragval
5918 fi
5919done
671aa708
NN
5920
5921
5922
5923
5924
5925# Miscellanea: directories, flags, etc.
5926
5927
5928
5929
5930
5931
5932
23f6b2f9 5933# Build module lists & subconfigure args.
671aa708
NN
5934
5935
5936
2abefe3d
PB
5937# Host module lists & subconfigure args.
5938
5939
5940
5941# Target module lists & subconfigure args.
5942
5943
5944
5945# Build tools.
5946
5947
5948
0999159b
PB
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
2abefe3d
PB
5963# Generate default definitions for YACC, M4, LEX and other programs that run
5964# on the build machine. These are used if the Makefile can't locate these
5965# programs in objdir.
5966MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5967
5968for ac_prog in 'bison -y' byacc yacc
5969do
1c710c3c 5970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5971set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5972echo "$as_me:$LINENO: checking for $ac_word" >&5
5973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5974if test "${ac_cv_prog_YACC+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5976else
5977 if test -n "$YACC"; then
5978 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5979else
1c710c3c
DJ
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5987 ac_cv_prog_YACC="$ac_prog"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992done
5993
2abefe3d
PB
5994fi
5995fi
1c710c3c 5996YACC=$ac_cv_prog_YACC
2abefe3d 5997if test -n "$YACC"; then
2aeb72e9
DD
5998 echo "$as_me:$LINENO: result: $YACC" >&5
5999echo "${ECHO_T}$YACC" >&6
2abefe3d 6000else
2aeb72e9
DD
6001 echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
2abefe3d
PB
6003fi
6004
1c710c3c 6005 test -n "$YACC" && break
2abefe3d
PB
6006done
6007test -n "$YACC" || YACC="$MISSING bison -y"
6008
6009case " $build_configdirs " in
6010 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6011 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6012esac
6013
6014for ac_prog in bison
6015do
1c710c3c 6016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6017set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6018echo "$as_me:$LINENO: checking for $ac_word" >&5
6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6020if test "${ac_cv_prog_BISON+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6022else
6023 if test -n "$BISON"; then
6024 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6025else
1c710c3c
DJ
6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027for as_dir in $PATH
6028do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6033 ac_cv_prog_BISON="$ac_prog"
6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037done
6038done
6039
2abefe3d
PB
6040fi
6041fi
1c710c3c 6042BISON=$ac_cv_prog_BISON
2abefe3d 6043if test -n "$BISON"; then
2aeb72e9
DD
6044 echo "$as_me:$LINENO: result: $BISON" >&5
6045echo "${ECHO_T}$BISON" >&6
2abefe3d 6046else
2aeb72e9
DD
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
2abefe3d
PB
6049fi
6050
1c710c3c 6051 test -n "$BISON" && break
2abefe3d
PB
6052done
6053test -n "$BISON" || BISON="$MISSING bison"
6054
6055case " $build_configdirs " in
6056 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6057esac
6058
6059for ac_prog in gm4 gnum4 m4
6060do
1c710c3c 6061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6062set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6063echo "$as_me:$LINENO: checking for $ac_word" >&5
6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6065if test "${ac_cv_prog_M4+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6067else
6068 if test -n "$M4"; then
6069 ac_cv_prog_M4="$M4" # Let the user override the test.
6070else
1c710c3c
DJ
6071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6078 ac_cv_prog_M4="$ac_prog"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6081 fi
6082done
6083done
6084
2abefe3d
PB
6085fi
6086fi
1c710c3c 6087M4=$ac_cv_prog_M4
2abefe3d 6088if test -n "$M4"; then
2aeb72e9
DD
6089 echo "$as_me:$LINENO: result: $M4" >&5
6090echo "${ECHO_T}$M4" >&6
2abefe3d 6091else
2aeb72e9
DD
6092 echo "$as_me:$LINENO: result: no" >&5
6093echo "${ECHO_T}no" >&6
2abefe3d
PB
6094fi
6095
1c710c3c 6096 test -n "$M4" && break
2abefe3d
PB
6097done
6098test -n "$M4" || M4="$MISSING m4"
6099
6100case " $build_configdirs " in
6101 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6102esac
6103
6104for ac_prog in flex lex
6105do
1c710c3c 6106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6107set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6108echo "$as_me:$LINENO: checking for $ac_word" >&5
6109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6110if test "${ac_cv_prog_LEX+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6112else
6113 if test -n "$LEX"; then
6114 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6115else
1c710c3c
DJ
6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117for as_dir in $PATH
6118do
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6123 ac_cv_prog_LEX="$ac_prog"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6126 fi
6127done
6128done
6129
2abefe3d
PB
6130fi
6131fi
1c710c3c 6132LEX=$ac_cv_prog_LEX
2abefe3d 6133if test -n "$LEX"; then
2aeb72e9
DD
6134 echo "$as_me:$LINENO: result: $LEX" >&5
6135echo "${ECHO_T}$LEX" >&6
2abefe3d 6136else
2aeb72e9
DD
6137 echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6
2abefe3d
PB
6139fi
6140
1c710c3c 6141 test -n "$LEX" && break
2abefe3d
PB
6142done
6143test -n "$LEX" || LEX="$MISSING flex"
6144
6145case " $build_configdirs " in
6146 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6147 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6148esac
6149
6150for ac_prog in flex
6151do
1c710c3c 6152 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6153set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6154echo "$as_me:$LINENO: checking for $ac_word" >&5
6155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6156if test "${ac_cv_prog_FLEX+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6158else
6159 if test -n "$FLEX"; then
6160 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6161else
1c710c3c
DJ
6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH
6164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6169 ac_cv_prog_FLEX="$ac_prog"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
6174done
6175
2abefe3d
PB
6176fi
6177fi
1c710c3c 6178FLEX=$ac_cv_prog_FLEX
2abefe3d 6179if test -n "$FLEX"; then
2aeb72e9
DD
6180 echo "$as_me:$LINENO: result: $FLEX" >&5
6181echo "${ECHO_T}$FLEX" >&6
2abefe3d 6182else
2aeb72e9
DD
6183 echo "$as_me:$LINENO: result: no" >&5
6184echo "${ECHO_T}no" >&6
2abefe3d
PB
6185fi
6186
1c710c3c 6187 test -n "$FLEX" && break
2abefe3d
PB
6188done
6189test -n "$FLEX" || FLEX="$MISSING flex"
6190
6191case " $build_configdirs " in
6192 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6193esac
6194
6195for ac_prog in makeinfo
6196do
1c710c3c 6197 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6198set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6199echo "$as_me:$LINENO: checking for $ac_word" >&5
6200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6201if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6203else
6204 if test -n "$MAKEINFO"; then
6205 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6206else
1c710c3c
DJ
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6214 ac_cv_prog_MAKEINFO="$ac_prog"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219done
6220
2abefe3d
PB
6221fi
6222fi
1c710c3c 6223MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6224if test -n "$MAKEINFO"; then
2aeb72e9
DD
6225 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6226echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6227else
2aeb72e9
DD
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
2abefe3d
PB
6230fi
6231
1c710c3c 6232 test -n "$MAKEINFO" && break
2abefe3d
PB
6233done
6234test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6235
6236case " $build_configdirs " in
6237 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6238 *)
6239
4fe7e755 6240 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6241 # higher, else we use the "missing" dummy.
6242 if ${MAKEINFO} --version \
4fe7e755 6243 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6244 :
6245 else
6246 MAKEINFO="$MISSING makeinfo"
6247 fi
6248 ;;
6249
6250esac
671aa708 6251
2abefe3d 6252# FIXME: expect and dejagnu may become build tools?
671aa708 6253
2abefe3d
PB
6254for ac_prog in expect
6255do
1c710c3c 6256 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6257set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6258echo "$as_me:$LINENO: checking for $ac_word" >&5
6259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6260if test "${ac_cv_prog_EXPECT+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6262else
6263 if test -n "$EXPECT"; then
6264 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6265else
1c710c3c
DJ
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6273 ac_cv_prog_EXPECT="$ac_prog"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277done
6278done
6279
2abefe3d
PB
6280fi
6281fi
1c710c3c 6282EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6283if test -n "$EXPECT"; then
2aeb72e9
DD
6284 echo "$as_me:$LINENO: result: $EXPECT" >&5
6285echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6286else
2aeb72e9
DD
6287 echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6
2abefe3d 6289fi
671aa708 6290
1c710c3c 6291 test -n "$EXPECT" && break
2abefe3d
PB
6292done
6293test -n "$EXPECT" || EXPECT="expect"
671aa708 6294
2abefe3d
PB
6295case " $configdirs " in
6296 *" expect "*)
6297 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6298 ;;
6299esac
671aa708 6300
2abefe3d
PB
6301for ac_prog in runtest
6302do
1c710c3c 6303 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6304set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6305echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6307if test "${ac_cv_prog_RUNTEST+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6309else
6310 if test -n "$RUNTEST"; then
6311 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6312else
1c710c3c
DJ
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6320 ac_cv_prog_RUNTEST="$ac_prog"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325done
6326
2abefe3d
PB
6327fi
6328fi
1c710c3c 6329RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6330if test -n "$RUNTEST"; then
2aeb72e9
DD
6331 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6332echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6333else
2aeb72e9
DD
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
2abefe3d 6336fi
671aa708 6337
1c710c3c 6338 test -n "$RUNTEST" && break
2abefe3d
PB
6339done
6340test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6341
2abefe3d
PB
6342case " $configdirs " in
6343 *" dejagnu "*)
c394e891 6344 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6345 ;;
6346esac
671aa708
NN
6347
6348
671aa708 6349# Host tools.
ca9f4b81
AO
6350ncn_tool_prefix=
6351test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6352ncn_target_tool_prefix=
6353test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6354
278a7a38
AO
6355
6356
6357if test -n "$AR"; then
6358 ac_cv_prog_AR=$AR
6359elif test -n "$ac_cv_prog_AR"; then
6360 AR=$ac_cv_prog_AR
6361fi
6362
6363if test -n "$ac_cv_prog_AR"; then
6364 for ncn_progname in ar; do
6365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6366set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6367echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6369if test "${ac_cv_prog_AR+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372 if test -n "$AR"; then
6373 ac_cv_prog_AR="$AR" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6382 ac_cv_prog_AR="${ncn_progname}"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386done
6387done
6388
6389fi
6390fi
6391AR=$ac_cv_prog_AR
6392if test -n "$AR"; then
2aeb72e9
DD
6393 echo "$as_me:$LINENO: result: $AR" >&5
6394echo "${ECHO_T}$AR" >&6
278a7a38 6395else
2aeb72e9
DD
6396 echo "$as_me:$LINENO: result: no" >&5
6397echo "${ECHO_T}no" >&6
278a7a38
AO
6398fi
6399
6400 done
6401fi
6402
6403for ncn_progname in ar; do
2693c0b0
PB
6404 if test -n "$ncn_tool_prefix"; then
6405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6406set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6407echo "$as_me:$LINENO: checking for $ac_word" >&5
6408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6409if test "${ac_cv_prog_AR+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6411else
6412 if test -n "$AR"; then
6413 ac_cv_prog_AR="$AR" # Let the user override the test.
6414else
1c710c3c
DJ
6415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416for as_dir in $PATH
6417do
6418 IFS=$as_save_IFS
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6422 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 break 2
6425 fi
6426done
6427done
6428
ca9f4b81
AO
6429fi
6430fi
1c710c3c 6431AR=$ac_cv_prog_AR
ca9f4b81 6432if test -n "$AR"; then
2aeb72e9
DD
6433 echo "$as_me:$LINENO: result: $AR" >&5
6434echo "${ECHO_T}$AR" >&6
ca9f4b81 6435else
2aeb72e9
DD
6436 echo "$as_me:$LINENO: result: no" >&5
6437echo "${ECHO_T}no" >&6
ca9f4b81
AO
6438fi
6439
2693c0b0
PB
6440 fi
6441 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6443set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6444echo "$as_me:$LINENO: checking for $ac_word" >&5
6445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6446if test "${ac_cv_prog_AR+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6448else
2693c0b0 6449 if test -n "$AR"; then
af71363e
AS
6450 ac_cv_prog_AR="$AR" # Let the user override the test.
6451else
1c710c3c
DJ
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6459 ac_cv_prog_AR="${ncn_progname}"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464done
6465
ca9f4b81
AO
6466fi
6467fi
1c710c3c 6468AR=$ac_cv_prog_AR
2693c0b0 6469if test -n "$AR"; then
2aeb72e9
DD
6470 echo "$as_me:$LINENO: result: $AR" >&5
6471echo "${ECHO_T}$AR" >&6
ca9f4b81 6472else
2aeb72e9
DD
6473 echo "$as_me:$LINENO: result: no" >&5
6474echo "${ECHO_T}no" >&6
ca9f4b81 6475fi
1c710c3c 6476
2693c0b0
PB
6477 fi
6478 test -n "$ac_cv_prog_AR" && break
6479done
6480
6481if test -z "$ac_cv_prog_AR" ; then
6482 set dummy ar
6483 if test $build = $host ; then
6484 AR="$2"
ca9f4b81 6485 else
2693c0b0 6486 AR="${ncn_tool_prefix}$2"
ca9f4b81 6487 fi
ca9f4b81
AO
6488fi
6489
278a7a38
AO
6490
6491
6492if test -n "$AS"; then
6493 ac_cv_prog_AS=$AS
6494elif test -n "$ac_cv_prog_AS"; then
6495 AS=$ac_cv_prog_AS
6496fi
6497
6498if test -n "$ac_cv_prog_AS"; then
6499 for ncn_progname in as; do
6500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6501set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6502echo "$as_me:$LINENO: checking for $ac_word" >&5
6503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6504if test "${ac_cv_prog_AS+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507 if test -n "$AS"; then
6508 ac_cv_prog_AS="$AS" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6517 ac_cv_prog_AS="${ncn_progname}"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521done
6522done
6523
6524fi
6525fi
6526AS=$ac_cv_prog_AS
6527if test -n "$AS"; then
2aeb72e9
DD
6528 echo "$as_me:$LINENO: result: $AS" >&5
6529echo "${ECHO_T}$AS" >&6
278a7a38 6530else
2aeb72e9
DD
6531 echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6
278a7a38
AO
6533fi
6534
6535 done
6536fi
6537
6538for ncn_progname in as; do
2693c0b0
PB
6539 if test -n "$ncn_tool_prefix"; then
6540 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6541set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6542echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6544if test "${ac_cv_prog_AS+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6546else
6547 if test -n "$AS"; then
6548 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6549else
1c710c3c
DJ
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6557 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561done
6562done
6563
ca9f4b81
AO
6564fi
6565fi
1c710c3c 6566AS=$ac_cv_prog_AS
ca9f4b81 6567if test -n "$AS"; then
2aeb72e9
DD
6568 echo "$as_me:$LINENO: result: $AS" >&5
6569echo "${ECHO_T}$AS" >&6
ca9f4b81 6570else
2aeb72e9
DD
6571 echo "$as_me:$LINENO: result: no" >&5
6572echo "${ECHO_T}no" >&6
ca9f4b81
AO
6573fi
6574
2693c0b0
PB
6575 fi
6576 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6578set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6579echo "$as_me:$LINENO: checking for $ac_word" >&5
6580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6581if test "${ac_cv_prog_AS+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6583else
2693c0b0
PB
6584 if test -n "$AS"; then
6585 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6586else
1c710c3c
DJ
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6594 ac_cv_prog_AS="${ncn_progname}"
6595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598done
6599done
6600
ca9f4b81
AO
6601fi
6602fi
1c710c3c 6603AS=$ac_cv_prog_AS
2693c0b0 6604if test -n "$AS"; then
2aeb72e9
DD
6605 echo "$as_me:$LINENO: result: $AS" >&5
6606echo "${ECHO_T}$AS" >&6
ca9f4b81 6607else
2aeb72e9
DD
6608 echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6
ca9f4b81 6610fi
1c710c3c 6611
2693c0b0
PB
6612 fi
6613 test -n "$ac_cv_prog_AS" && break
6614done
6615
6616if test -z "$ac_cv_prog_AS" ; then
6617 set dummy as
6618 if test $build = $host ; then
6619 AS="$2"
ca9f4b81 6620 else
2693c0b0 6621 AS="${ncn_tool_prefix}$2"
ca9f4b81 6622 fi
ca9f4b81
AO
6623fi
6624
278a7a38
AO
6625
6626
6627if test -n "$DLLTOOL"; then
6628 ac_cv_prog_DLLTOOL=$DLLTOOL
6629elif test -n "$ac_cv_prog_DLLTOOL"; then
6630 DLLTOOL=$ac_cv_prog_DLLTOOL
6631fi
6632
6633if test -n "$ac_cv_prog_DLLTOOL"; then
6634 for ncn_progname in dlltool; do
6635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6636set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6637echo "$as_me:$LINENO: checking for $ac_word" >&5
6638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6639if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642 if test -n "$DLLTOOL"; then
6643 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6652 ac_cv_prog_DLLTOOL="${ncn_progname}"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656done
6657done
6658
6659fi
6660fi
6661DLLTOOL=$ac_cv_prog_DLLTOOL
6662if test -n "$DLLTOOL"; then
2aeb72e9
DD
6663 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6664echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6665else
2aeb72e9
DD
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
278a7a38
AO
6668fi
6669
6670 done
6671fi
6672
6673for ncn_progname in dlltool; do
2693c0b0
PB
6674 if test -n "$ncn_tool_prefix"; then
6675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6676set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6677echo "$as_me:$LINENO: checking for $ac_word" >&5
6678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6679if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6681else
6682 if test -n "$DLLTOOL"; then
6683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6684else
1c710c3c
DJ
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6692 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696done
6697done
6698
ca9f4b81
AO
6699fi
6700fi
1c710c3c 6701DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6702if test -n "$DLLTOOL"; then
2aeb72e9
DD
6703 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6704echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6705else
2aeb72e9
DD
6706 echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
ca9f4b81
AO
6708fi
6709
2693c0b0
PB
6710 fi
6711 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6713set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6714echo "$as_me:$LINENO: checking for $ac_word" >&5
6715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6716if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6718else
2693c0b0
PB
6719 if test -n "$DLLTOOL"; then
6720 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6721else
1c710c3c
DJ
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6729 ac_cv_prog_DLLTOOL="${ncn_progname}"
6730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733done
6734done
6735
ca9f4b81
AO
6736fi
6737fi
1c710c3c 6738DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6739if test -n "$DLLTOOL"; then
2aeb72e9
DD
6740 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6741echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6742else
2aeb72e9
DD
6743 echo "$as_me:$LINENO: result: no" >&5
6744echo "${ECHO_T}no" >&6
ca9f4b81 6745fi
1c710c3c 6746
2693c0b0
PB
6747 fi
6748 test -n "$ac_cv_prog_DLLTOOL" && break
6749done
6750
6751if test -z "$ac_cv_prog_DLLTOOL" ; then
6752 set dummy dlltool
6753 if test $build = $host ; then
6754 DLLTOOL="$2"
ca9f4b81 6755 else
2693c0b0 6756 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6757 fi
ca9f4b81
AO
6758fi
6759
278a7a38
AO
6760
6761
6762if test -n "$LD"; then
6763 ac_cv_prog_LD=$LD
6764elif test -n "$ac_cv_prog_LD"; then
6765 LD=$ac_cv_prog_LD
6766fi
6767
6768if test -n "$ac_cv_prog_LD"; then
6769 for ncn_progname in ld; do
6770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6771set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6772echo "$as_me:$LINENO: checking for $ac_word" >&5
6773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6774if test "${ac_cv_prog_LD+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776else
6777 if test -n "$LD"; then
6778 ac_cv_prog_LD="$LD" # Let the user override the test.
6779else
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6787 ac_cv_prog_LD="${ncn_progname}"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791done
6792done
6793
6794fi
6795fi
6796LD=$ac_cv_prog_LD
6797if test -n "$LD"; then
2aeb72e9
DD
6798 echo "$as_me:$LINENO: result: $LD" >&5
6799echo "${ECHO_T}$LD" >&6
278a7a38 6800else
2aeb72e9
DD
6801 echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6
278a7a38
AO
6803fi
6804
6805 done
6806fi
6807
6808for ncn_progname in ld; do
2693c0b0
PB
6809 if test -n "$ncn_tool_prefix"; then
6810 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6811set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6812echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6814if test "${ac_cv_prog_LD+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6816else
6817 if test -n "$LD"; then
6818 ac_cv_prog_LD="$LD" # Let the user override the test.
6819else
1c710c3c
DJ
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6827 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831done
6832done
6833
ca9f4b81
AO
6834fi
6835fi
1c710c3c 6836LD=$ac_cv_prog_LD
ca9f4b81 6837if test -n "$LD"; then
2aeb72e9
DD
6838 echo "$as_me:$LINENO: result: $LD" >&5
6839echo "${ECHO_T}$LD" >&6
ca9f4b81 6840else
2aeb72e9
DD
6841 echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
ca9f4b81
AO
6843fi
6844
2693c0b0
PB
6845 fi
6846 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6848set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6849echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6851if test "${ac_cv_prog_LD+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6853else
2693c0b0
PB
6854 if test -n "$LD"; then
6855 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6856else
1c710c3c
DJ
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6864 ac_cv_prog_LD="${ncn_progname}"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869done
6870
ca9f4b81
AO
6871fi
6872fi
1c710c3c 6873LD=$ac_cv_prog_LD
2693c0b0 6874if test -n "$LD"; then
2aeb72e9
DD
6875 echo "$as_me:$LINENO: result: $LD" >&5
6876echo "${ECHO_T}$LD" >&6
ca9f4b81 6877else
2aeb72e9
DD
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
ca9f4b81 6880fi
1c710c3c 6881
2693c0b0
PB
6882 fi
6883 test -n "$ac_cv_prog_LD" && break
6884done
6885
6886if test -z "$ac_cv_prog_LD" ; then
6887 set dummy ld
6888 if test $build = $host ; then
6889 LD="$2"
ca9f4b81 6890 else
2693c0b0 6891 LD="${ncn_tool_prefix}$2"
ca9f4b81 6892 fi
ca9f4b81
AO
6893fi
6894
278a7a38
AO
6895
6896
6897if test -n "$LIPO"; then
6898 ac_cv_prog_LIPO=$LIPO
6899elif test -n "$ac_cv_prog_LIPO"; then
6900 LIPO=$ac_cv_prog_LIPO
6901fi
6902
6903if test -n "$ac_cv_prog_LIPO"; then
6904 for ncn_progname in lipo; do
6905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6906set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6907echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6909if test "${ac_cv_prog_LIPO+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 if test -n "$LIPO"; then
6913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6914else
6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916for as_dir in $PATH
6917do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6922 ac_cv_prog_LIPO="${ncn_progname}"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926done
6927done
6928
6929fi
6930fi
6931LIPO=$ac_cv_prog_LIPO
6932if test -n "$LIPO"; then
2aeb72e9
DD
6933 echo "$as_me:$LINENO: result: $LIPO" >&5
6934echo "${ECHO_T}$LIPO" >&6
278a7a38 6935else
2aeb72e9
DD
6936 echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6
278a7a38
AO
6938fi
6939
6940 done
6941fi
6942
6943for ncn_progname in lipo; do
2abefe3d
PB
6944 if test -n "$ncn_tool_prefix"; then
6945 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6946set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6947echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6949if test "${ac_cv_prog_LIPO+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6951else
6952 if test -n "$LIPO"; then
6953 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6954else
1c710c3c
DJ
6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956for as_dir in $PATH
6957do
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6962 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6965 fi
6966done
6967done
6968
2abefe3d
PB
6969fi
6970fi
1c710c3c 6971LIPO=$ac_cv_prog_LIPO
2abefe3d 6972if test -n "$LIPO"; then
2aeb72e9
DD
6973 echo "$as_me:$LINENO: result: $LIPO" >&5
6974echo "${ECHO_T}$LIPO" >&6
2abefe3d 6975else
2aeb72e9
DD
6976 echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6
2abefe3d
PB
6978fi
6979
6980 fi
6981 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6983set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6984echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6986if test "${ac_cv_prog_LIPO+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6988else
6989 if test -n "$LIPO"; then
6990 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6991else
1c710c3c
DJ
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6999 ac_cv_prog_LIPO="${ncn_progname}"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004done
7005
2abefe3d
PB
7006fi
7007fi
1c710c3c 7008LIPO=$ac_cv_prog_LIPO
2abefe3d 7009if test -n "$LIPO"; then
2aeb72e9
DD
7010 echo "$as_me:$LINENO: result: $LIPO" >&5
7011echo "${ECHO_T}$LIPO" >&6
2abefe3d 7012else
2aeb72e9
DD
7013 echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6
2abefe3d 7015fi
1c710c3c 7016
2abefe3d
PB
7017 fi
7018 test -n "$ac_cv_prog_LIPO" && break
7019done
7020
7021if test -z "$ac_cv_prog_LIPO" ; then
7022 set dummy lipo
7023 if test $build = $host ; then
7024 LIPO="$2"
7025 else
7026 LIPO="${ncn_tool_prefix}$2"
7027 fi
7028fi
7029
278a7a38
AO
7030
7031
7032if test -n "$NM"; then
7033 ac_cv_prog_NM=$NM
7034elif test -n "$ac_cv_prog_NM"; then
7035 NM=$ac_cv_prog_NM
7036fi
7037
7038if test -n "$ac_cv_prog_NM"; then
7039 for ncn_progname in nm; do
7040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7041set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7042echo "$as_me:$LINENO: checking for $ac_word" >&5
7043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7044if test "${ac_cv_prog_NM+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7046else
7047 if test -n "$NM"; then
7048 ac_cv_prog_NM="$NM" # Let the user override the test.
7049else
1c710c3c
DJ
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7057 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062done
7063
ca9f4b81
AO
7064fi
7065fi
1c710c3c 7066NM=$ac_cv_prog_NM
ca9f4b81 7067if test -n "$NM"; then
2aeb72e9
DD
7068 echo "$as_me:$LINENO: result: $NM" >&5
7069echo "${ECHO_T}$NM" >&6
ca9f4b81 7070else
2aeb72e9
DD
7071 echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6
ca9f4b81
AO
7073fi
7074
278a7a38
AO
7075 done
7076fi
7077
7078for ncn_progname in nm; do
7079 if test -n "$ncn_tool_prefix"; then
7080 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7081set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7082echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7084if test "${ac_cv_prog_NM+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7086else
2693c0b0
PB
7087 if test -n "$NM"; then
7088 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7089else
1c710c3c
DJ
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7097 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102done
7103
ca9f4b81
AO
7104fi
7105fi
1c710c3c 7106NM=$ac_cv_prog_NM
2693c0b0 7107if test -n "$NM"; then
2aeb72e9
DD
7108 echo "$as_me:$LINENO: result: $NM" >&5
7109echo "${ECHO_T}$NM" >&6
ca9f4b81 7110else
2aeb72e9
DD
7111 echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6
ca9f4b81 7113fi
1c710c3c 7114
2693c0b0 7115 fi
278a7a38
AO
7116 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7118set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7119echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7121if test "${ac_cv_prog_NM+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124 if test -n "$NM"; then
7125 ac_cv_prog_NM="$NM" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7134 ac_cv_prog_NM="${ncn_progname}"
7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138done
7139done
7140
7141fi
7142fi
7143NM=$ac_cv_prog_NM
7144if test -n "$NM"; then
2aeb72e9
DD
7145 echo "$as_me:$LINENO: result: $NM" >&5
7146echo "${ECHO_T}$NM" >&6
278a7a38 7147else
2aeb72e9
DD
7148 echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6
278a7a38
AO
7150fi
7151
7152 fi
7153 test -n "$ac_cv_prog_NM" && break
7154done
7155
7156if test -z "$ac_cv_prog_NM" ; then
7157 set dummy nm
7158 if test $build = $host ; then
7159 NM="$2"
7160 else
7161 NM="${ncn_tool_prefix}$2"
7162 fi
7163fi
7164
7165
7166
7167if test -n "$RANLIB"; then
7168 ac_cv_prog_RANLIB=$RANLIB
7169elif test -n "$ac_cv_prog_RANLIB"; then
7170 RANLIB=$ac_cv_prog_RANLIB
7171fi
7172
7173if test -n "$ac_cv_prog_RANLIB"; then
7174 for ncn_progname in ranlib; do
7175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7176set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7177echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7179if test "${ac_cv_prog_RANLIB+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182 if test -n "$RANLIB"; then
7183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7192 ac_cv_prog_RANLIB="${ncn_progname}"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196done
7197done
7198
7199fi
7200fi
7201RANLIB=$ac_cv_prog_RANLIB
7202if test -n "$RANLIB"; then
2aeb72e9
DD
7203 echo "$as_me:$LINENO: result: $RANLIB" >&5
7204echo "${ECHO_T}$RANLIB" >&6
278a7a38 7205else
2aeb72e9
DD
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
278a7a38
AO
7208fi
7209
7210 done
7211fi
ca9f4b81 7212
278a7a38 7213for ncn_progname in ranlib; do
2693c0b0
PB
7214 if test -n "$ncn_tool_prefix"; then
7215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7217echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7219if test "${ac_cv_prog_RANLIB+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7221else
7222 if test -n "$RANLIB"; then
7223 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7224else
1c710c3c
DJ
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7232 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236done
7237done
7238
ca9f4b81
AO
7239fi
7240fi
1c710c3c 7241RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7242if test -n "$RANLIB"; then
2aeb72e9
DD
7243 echo "$as_me:$LINENO: result: $RANLIB" >&5
7244echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7245else
2aeb72e9
DD
7246 echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
ca9f4b81
AO
7248fi
7249
2693c0b0
PB
7250 fi
7251 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7253set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7254echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7256if test "${ac_cv_prog_RANLIB+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7258else
2693c0b0
PB
7259 if test -n "$RANLIB"; then
7260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7261else
1c710c3c
DJ
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7269 ac_cv_prog_RANLIB="${ncn_progname}"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274done
7275
ca9f4b81
AO
7276fi
7277fi
1c710c3c 7278RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7279if test -n "$RANLIB"; then
2aeb72e9
DD
7280 echo "$as_me:$LINENO: result: $RANLIB" >&5
7281echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7282else
2aeb72e9
DD
7283 echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
ca9f4b81 7285fi
1c710c3c 7286
ca9f4b81 7287 fi
2693c0b0
PB
7288 test -n "$ac_cv_prog_RANLIB" && break
7289done
7290
7291if test -z "$ac_cv_prog_RANLIB" ; then
7292 RANLIB=":"
ca9f4b81
AO
7293fi
7294
278a7a38
AO
7295
7296
7297if test -n "$STRIP"; then
7298 ac_cv_prog_STRIP=$STRIP
7299elif test -n "$ac_cv_prog_STRIP"; then
7300 STRIP=$ac_cv_prog_STRIP
7301fi
7302
7303if test -n "$ac_cv_prog_STRIP"; then
7304 for ncn_progname in strip; do
7305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7306set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7309if test "${ac_cv_prog_STRIP+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$STRIP"; then
7313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7322 ac_cv_prog_STRIP="${ncn_progname}"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331STRIP=$ac_cv_prog_STRIP
7332if test -n "$STRIP"; then
2aeb72e9
DD
7333 echo "$as_me:$LINENO: result: $STRIP" >&5
7334echo "${ECHO_T}$STRIP" >&6
278a7a38 7335else
2aeb72e9
DD
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
278a7a38
AO
7338fi
7339
7340 done
7341fi
7342
7343for ncn_progname in strip; do
2abefe3d
PB
7344 if test -n "$ncn_tool_prefix"; then
7345 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7346set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7347echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7349if test "${ac_cv_prog_STRIP+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7351else
7352 if test -n "$STRIP"; then
7353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7354else
1c710c3c
DJ
7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356for as_dir in $PATH
7357do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7362 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366done
7367done
7368
2abefe3d
PB
7369fi
7370fi
1c710c3c 7371STRIP=$ac_cv_prog_STRIP
2abefe3d 7372if test -n "$STRIP"; then
2aeb72e9
DD
7373 echo "$as_me:$LINENO: result: $STRIP" >&5
7374echo "${ECHO_T}$STRIP" >&6
2abefe3d 7375else
2aeb72e9
DD
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
2abefe3d
PB
7378fi
7379
7380 fi
7381 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7383set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7386if test "${ac_cv_prog_STRIP+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7388else
7389 if test -n "$STRIP"; then
7390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7391else
1c710c3c
DJ
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7399 ac_cv_prog_STRIP="${ncn_progname}"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403done
7404done
7405
2abefe3d
PB
7406fi
7407fi
1c710c3c 7408STRIP=$ac_cv_prog_STRIP
2abefe3d 7409if test -n "$STRIP"; then
2aeb72e9
DD
7410 echo "$as_me:$LINENO: result: $STRIP" >&5
7411echo "${ECHO_T}$STRIP" >&6
2abefe3d 7412else
2aeb72e9
DD
7413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
2abefe3d 7415fi
1c710c3c 7416
2abefe3d
PB
7417 fi
7418 test -n "$ac_cv_prog_STRIP" && break
7419done
7420
7421if test -z "$ac_cv_prog_STRIP" ; then
7422 STRIP=":"
7423fi
7424
278a7a38
AO
7425
7426
7427if test -n "$WINDRES"; then
7428 ac_cv_prog_WINDRES=$WINDRES
7429elif test -n "$ac_cv_prog_WINDRES"; then
7430 WINDRES=$ac_cv_prog_WINDRES
7431fi
7432
7433if test -n "$ac_cv_prog_WINDRES"; then
7434 for ncn_progname in windres; do
7435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7436set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7437echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7439if test "${ac_cv_prog_WINDRES+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442 if test -n "$WINDRES"; then
7443 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7444else
7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7452 ac_cv_prog_WINDRES="${ncn_progname}"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457done
7458
7459fi
7460fi
7461WINDRES=$ac_cv_prog_WINDRES
7462if test -n "$WINDRES"; then
2aeb72e9
DD
7463 echo "$as_me:$LINENO: result: $WINDRES" >&5
7464echo "${ECHO_T}$WINDRES" >&6
278a7a38 7465else
2aeb72e9
DD
7466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
278a7a38
AO
7468fi
7469
7470 done
7471fi
7472
7473for ncn_progname in windres; do
2693c0b0
PB
7474 if test -n "$ncn_tool_prefix"; then
7475 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7476set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7477echo "$as_me:$LINENO: checking for $ac_word" >&5
7478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7479if test "${ac_cv_prog_WINDRES+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7481else
7482 if test -n "$WINDRES"; then
7483 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7484else
1c710c3c
DJ
7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486for as_dir in $PATH
7487do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7492 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496done
7497done
7498
ca9f4b81
AO
7499fi
7500fi
1c710c3c 7501WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7502if test -n "$WINDRES"; then
2aeb72e9
DD
7503 echo "$as_me:$LINENO: result: $WINDRES" >&5
7504echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7505else
2aeb72e9
DD
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
ca9f4b81
AO
7508fi
7509
2693c0b0
PB
7510 fi
7511 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7513set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7514echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7516if test "${ac_cv_prog_WINDRES+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7518else
2693c0b0
PB
7519 if test -n "$WINDRES"; then
7520 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7521else
1c710c3c
DJ
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7529 ac_cv_prog_WINDRES="${ncn_progname}"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533done
7534done
7535
ca9f4b81
AO
7536fi
7537fi
1c710c3c 7538WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7539if test -n "$WINDRES"; then
2aeb72e9
DD
7540 echo "$as_me:$LINENO: result: $WINDRES" >&5
7541echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7542else
2aeb72e9
DD
7543 echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
ca9f4b81 7545fi
1c710c3c 7546
2693c0b0
PB
7547 fi
7548 test -n "$ac_cv_prog_WINDRES" && break
7549done
7550
7551if test -z "$ac_cv_prog_WINDRES" ; then
7552 set dummy windres
7553 if test $build = $host ; then
7554 WINDRES="$2"
ca9f4b81 7555 else
2693c0b0 7556 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7557 fi
ca9f4b81
AO
7558fi
7559
278a7a38
AO
7560
7561
901119ae
KT
7562if test -n "$WINDMC"; then
7563 ac_cv_prog_WINDMC=$WINDMC
7564elif test -n "$ac_cv_prog_WINDMC"; then
7565 WINDMC=$ac_cv_prog_WINDMC
7566fi
7567
7568if test -n "$ac_cv_prog_WINDMC"; then
7569 for ncn_progname in windmc; do
7570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7571set dummy ${ncn_progname}; ac_word=$2
7572echo "$as_me:$LINENO: checking for $ac_word" >&5
7573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7574if test "${ac_cv_prog_WINDMC+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 if test -n "$WINDMC"; then
7578 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_WINDMC="${ncn_progname}"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591done
7592done
7593
7594fi
7595fi
7596WINDMC=$ac_cv_prog_WINDMC
7597if test -n "$WINDMC"; then
7598 echo "$as_me:$LINENO: result: $WINDMC" >&5
7599echo "${ECHO_T}$WINDMC" >&6
7600else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603fi
7604
7605 done
7606fi
7607
7608for ncn_progname in windmc; do
7609 if test -n "$ncn_tool_prefix"; then
7610 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7611set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7612echo "$as_me:$LINENO: checking for $ac_word" >&5
7613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7614if test "${ac_cv_prog_WINDMC+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617 if test -n "$WINDMC"; then
7618 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7619else
7620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7630 fi
7631done
7632done
7633
7634fi
7635fi
7636WINDMC=$ac_cv_prog_WINDMC
7637if test -n "$WINDMC"; then
7638 echo "$as_me:$LINENO: result: $WINDMC" >&5
7639echo "${ECHO_T}$WINDMC" >&6
7640else
7641 echo "$as_me:$LINENO: result: no" >&5
7642echo "${ECHO_T}no" >&6
7643fi
7644
7645 fi
7646 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7648set dummy ${ncn_progname}; ac_word=$2
7649echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7651if test "${ac_cv_prog_WINDMC+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 if test -n "$WINDMC"; then
7655 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7656else
7657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658for as_dir in $PATH
7659do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_WINDMC="${ncn_progname}"
7665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668done
7669done
7670
7671fi
7672fi
7673WINDMC=$ac_cv_prog_WINDMC
7674if test -n "$WINDMC"; then
7675 echo "$as_me:$LINENO: result: $WINDMC" >&5
7676echo "${ECHO_T}$WINDMC" >&6
7677else
7678 echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680fi
7681
7682 fi
7683 test -n "$ac_cv_prog_WINDMC" && break
7684done
7685
7686if test -z "$ac_cv_prog_WINDMC" ; then
7687 set dummy windmc
7688 if test $build = $host ; then
7689 WINDMC="$2"
7690 else
7691 WINDMC="${ncn_tool_prefix}$2"
7692 fi
7693fi
7694
7695
7696
278a7a38
AO
7697if test -n "$OBJCOPY"; then
7698 ac_cv_prog_OBJCOPY=$OBJCOPY
7699elif test -n "$ac_cv_prog_OBJCOPY"; then
7700 OBJCOPY=$ac_cv_prog_OBJCOPY
7701fi
7702
7703if test -n "$ac_cv_prog_OBJCOPY"; then
7704 for ncn_progname in objcopy; do
7705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7706set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7707echo "$as_me:$LINENO: checking for $ac_word" >&5
7708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7709if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712 if test -n "$OBJCOPY"; then
7713 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7722 ac_cv_prog_OBJCOPY="${ncn_progname}"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726done
7727done
7728
7729fi
7730fi
7731OBJCOPY=$ac_cv_prog_OBJCOPY
7732if test -n "$OBJCOPY"; then
2aeb72e9
DD
7733 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7734echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7735else
2aeb72e9
DD
7736 echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6
278a7a38
AO
7738fi
7739
7740 done
7741fi
7742
7743for ncn_progname in objcopy; do
2693c0b0
PB
7744 if test -n "$ncn_tool_prefix"; then
7745 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7746set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7747echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7749if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7751else
7752 if test -n "$OBJCOPY"; then
7753 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7754else
1c710c3c
DJ
7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756for as_dir in $PATH
7757do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7762 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766done
7767done
7768
ca9f4b81
AO
7769fi
7770fi
1c710c3c 7771OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7772if test -n "$OBJCOPY"; then
2aeb72e9
DD
7773 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7774echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7775else
2aeb72e9
DD
7776 echo "$as_me:$LINENO: result: no" >&5
7777echo "${ECHO_T}no" >&6
ca9f4b81
AO
7778fi
7779
2693c0b0
PB
7780 fi
7781 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7783set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7784echo "$as_me:$LINENO: checking for $ac_word" >&5
7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7786if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7788else
2693c0b0
PB
7789 if test -n "$OBJCOPY"; then
7790 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7791else
1c710c3c
DJ
7792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7799 ac_cv_prog_OBJCOPY="${ncn_progname}"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804done
7805
ca9f4b81
AO
7806fi
7807fi
1c710c3c 7808OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7809if test -n "$OBJCOPY"; then
2aeb72e9
DD
7810 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7811echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7812else
2aeb72e9
DD
7813 echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6
ca9f4b81 7815fi
1c710c3c 7816
2693c0b0
PB
7817 fi
7818 test -n "$ac_cv_prog_OBJCOPY" && break
7819done
7820
7821if test -z "$ac_cv_prog_OBJCOPY" ; then
7822 set dummy objcopy
7823 if test $build = $host ; then
7824 OBJCOPY="$2"
ca9f4b81 7825 else
2693c0b0 7826 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7827 fi
ca9f4b81
AO
7828fi
7829
278a7a38
AO
7830
7831
7832if test -n "$OBJDUMP"; then
7833 ac_cv_prog_OBJDUMP=$OBJDUMP
7834elif test -n "$ac_cv_prog_OBJDUMP"; then
7835 OBJDUMP=$ac_cv_prog_OBJDUMP
7836fi
7837
7838if test -n "$ac_cv_prog_OBJDUMP"; then
7839 for ncn_progname in objdump; do
7840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7841set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7842echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7844if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847 if test -n "$OBJDUMP"; then
7848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853 IFS=$as_save_IFS
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7857 ac_cv_prog_OBJDUMP="${ncn_progname}"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859 break 2
7860 fi
7861done
7862done
7863
7864fi
7865fi
7866OBJDUMP=$ac_cv_prog_OBJDUMP
7867if test -n "$OBJDUMP"; then
2aeb72e9
DD
7868 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7869echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7870else
2aeb72e9
DD
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
278a7a38
AO
7873fi
7874
7875 done
7876fi
7877
7878for ncn_progname in objdump; do
2693c0b0
PB
7879 if test -n "$ncn_tool_prefix"; then
7880 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7881set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7882echo "$as_me:$LINENO: checking for $ac_word" >&5
7883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7884if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7886else
7887 if test -n "$OBJDUMP"; then
7888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7889else
1c710c3c
DJ
7890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891for as_dir in $PATH
7892do
7893 IFS=$as_save_IFS
7894 test -z "$as_dir" && as_dir=.
7895 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7897 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901done
7902done
7903
ca9f4b81
AO
7904fi
7905fi
1c710c3c 7906OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7907if test -n "$OBJDUMP"; then
2aeb72e9
DD
7908 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7909echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7910else
2aeb72e9
DD
7911 echo "$as_me:$LINENO: result: no" >&5
7912echo "${ECHO_T}no" >&6
ca9f4b81
AO
7913fi
7914
2693c0b0
PB
7915 fi
7916 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7918set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7919echo "$as_me:$LINENO: checking for $ac_word" >&5
7920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7921if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7923else
2693c0b0
PB
7924 if test -n "$OBJDUMP"; then
7925 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7926else
1c710c3c
DJ
7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7934 ac_cv_prog_OBJDUMP="${ncn_progname}"
7935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938done
7939done
7940
ca9f4b81
AO
7941fi
7942fi
1c710c3c 7943OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7944if test -n "$OBJDUMP"; then
2aeb72e9
DD
7945 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7946echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7947else
2aeb72e9
DD
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
ca9f4b81 7950fi
1c710c3c 7951
2693c0b0
PB
7952 fi
7953 test -n "$ac_cv_prog_OBJDUMP" && break
7954done
7955
7956if test -z "$ac_cv_prog_OBJDUMP" ; then
7957 set dummy objdump
7958 if test $build = $host ; then
7959 OBJDUMP="$2"
ca9f4b81 7960 else
2693c0b0 7961 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7962 fi
ca9f4b81
AO
7963fi
7964
671aa708
NN
7965
7966
7967
7968
7969
2abefe3d 7970# Target tools.
1c710c3c 7971
2aeb72e9 7972# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7973if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7974 withval="$with_build_time_tools"
7975 case x"$withval" in
e8b05380
PB
7976 x/*) ;;
7977 *)
7978 with_build_time_tools=
1c710c3c
DJ
7979 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7980echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7981 ;;
7982 esac
ca9f4b81 7983else
e8b05380 7984 with_build_time_tools=
2aeb72e9 7985fi;
ca9f4b81 7986
278a7a38
AO
7987
7988
7989if test -n "$CC_FOR_TARGET"; then
7990 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7991elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7992 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7993fi
7994
7995if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7996 for ncn_progname in cc gcc; do
7997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7998set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7999echo "$as_me:$LINENO: checking for $ac_word" >&5
8000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8001if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8003else
8004 if test -n "$CC_FOR_TARGET"; then
8005 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8006else
8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8014 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8017 fi
8018done
8019done
8020
8021fi
8022fi
8023CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8024if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8025 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8026echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8027else
2aeb72e9
DD
8028 echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6
278a7a38
AO
8030fi
8031
8032 done
8033fi
8034
8035if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8036 for ncn_progname in cc gcc; do
2aeb72e9
DD
8037 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8038echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8039 if test -x $with_build_time_tools/${ncn_progname}; then
8040 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8041 echo "$as_me:$LINENO: result: yes" >&5
8042echo "${ECHO_T}yes" >&6
72a7ab82 8043 break
e8b05380 8044 else
2aeb72e9
DD
8045 echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
72a7ab82
AP
8047 fi
8048 done
4de997d1
PB
8049fi
8050
e8b05380
PB
8051if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8052 for ncn_progname in cc gcc; do
8053 if test -n "$ncn_target_tool_prefix"; then
8054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8055set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8056echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8058if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8060else
8061 if test -n "$CC_FOR_TARGET"; then
8062 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8063else
1c710c3c
DJ
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8071 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076done
8077
4de997d1
PB
8078fi
8079fi
1c710c3c 8080CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8081if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8082 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8083echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8084else
2aeb72e9
DD
8085 echo "$as_me:$LINENO: result: no" >&5
8086echo "${ECHO_T}no" >&6
4de997d1
PB
8087fi
8088
e8b05380
PB
8089 fi
8090 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8092set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8093echo "$as_me:$LINENO: checking for $ac_word" >&5
8094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8095if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8097else
2693c0b0
PB
8098 if test -n "$CC_FOR_TARGET"; then
8099 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8100else
1c710c3c
DJ
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8108 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112done
8113done
8114
4de997d1
PB
8115fi
8116fi
1c710c3c 8117CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8118if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8119 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8120echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8121else
2aeb72e9
DD
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
4de997d1 8124fi
1c710c3c 8125
e8b05380
PB
8126 fi
8127 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8128 done
8129fi
1c710c3c 8130
2693c0b0
PB
8131if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8132 set dummy cc gcc
8133 if test $build = $target ; then
8134 CC_FOR_TARGET="$2"
4de997d1 8135 else
2693c0b0 8136 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8137 fi
1c00b503
PB
8138else
8139 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8140fi
8141
278a7a38
AO
8142
8143
8144if test -n "$CXX_FOR_TARGET"; then
8145 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8146elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8147 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8148fi
8149
8150if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8151 for ncn_progname in c++ g++ cxx gxx; do
8152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8153set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8154echo "$as_me:$LINENO: checking for $ac_word" >&5
8155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8156if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159 if test -n "$CXX_FOR_TARGET"; then
8160 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8161else
8162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8169 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173done
8174done
8175
8176fi
8177fi
8178CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8179if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8180 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8181echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8182else
2aeb72e9
DD
8183 echo "$as_me:$LINENO: result: no" >&5
8184echo "${ECHO_T}no" >&6
278a7a38
AO
8185fi
8186
8187 done
8188fi
8189
8190if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8191 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8192 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8193echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8194 if test -x $with_build_time_tools/${ncn_progname}; then
8195 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
e8b05380
PB
8198 break
8199 else
2aeb72e9
DD
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
e8b05380
PB
8202 fi
8203 done
8204fi
8205
8206if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8207 for ncn_progname in c++ g++ cxx gxx; do
8208 if test -n "$ncn_target_tool_prefix"; then
8209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8210set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8211echo "$as_me:$LINENO: checking for $ac_word" >&5
8212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8213if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8215else
8216 if test -n "$CXX_FOR_TARGET"; then
8217 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8218else
1c710c3c
DJ
8219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220for as_dir in $PATH
8221do
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8226 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8229 fi
8230done
8231done
8232
4de997d1
PB
8233fi
8234fi
1c710c3c 8235CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8236if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8237 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8238echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8239else
2aeb72e9
DD
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
4de997d1
PB
8242fi
8243
e8b05380
PB
8244 fi
8245 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8247set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8248echo "$as_me:$LINENO: checking for $ac_word" >&5
8249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8250if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8252else
2693c0b0
PB
8253 if test -n "$CXX_FOR_TARGET"; then
8254 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8255else
1c710c3c
DJ
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8263 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267done
8268done
8269
4de997d1
PB
8270fi
8271fi
1c710c3c 8272CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8273if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8274 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8275echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8276else
2aeb72e9
DD
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
4de997d1 8279fi
1c710c3c 8280
e8b05380
PB
8281 fi
8282 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8283 done
8284fi
1c710c3c 8285
2693c0b0
PB
8286if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8287 set dummy c++ g++ cxx gxx
8288 if test $build = $target ; then
8289 CXX_FOR_TARGET="$2"
4de997d1 8290 else
2693c0b0 8291 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8292 fi
1c00b503
PB
8293else
8294 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8295fi
8296
278a7a38
AO
8297
8298
8299if test -n "$GCC_FOR_TARGET"; then
8300 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8301elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8302 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8303fi
8304
8305if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8306 for ncn_progname in gcc; do
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8309echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8311if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 if test -n "$GCC_FOR_TARGET"; then
8315 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8316else
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8324 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329done
8330
8331fi
8332fi
8333GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8334if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8335 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8336echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8337else
2aeb72e9
DD
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
278a7a38
AO
8340fi
8341
8342 done
8343fi
8344
8345if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8346 for ncn_progname in gcc; do
2aeb72e9
DD
8347 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8348echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8349 if test -x $with_build_time_tools/${ncn_progname}; then
8350 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
e8b05380
PB
8353 break
8354 else
2aeb72e9
DD
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
e8b05380
PB
8357 fi
8358 done
8359fi
8360
8361if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8362 for ncn_progname in gcc; do
8363 if test -n "$ncn_target_tool_prefix"; then
8364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8365set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8366echo "$as_me:$LINENO: checking for $ac_word" >&5
8367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8368if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8370else
e8b05380
PB
8371 if test -n "$GCC_FOR_TARGET"; then
8372 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8373else
1c710c3c
DJ
8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8381 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385done
8386done
8387
ca9f4b81
AO
8388fi
8389fi
1c710c3c 8390GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8391if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8392 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8393echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8394else
2aeb72e9
DD
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
ca9f4b81
AO
8397fi
8398
e8b05380
PB
8399 fi
8400 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8402set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8403echo "$as_me:$LINENO: checking for $ac_word" >&5
8404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8405if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8407else
e8b05380
PB
8408 if test -n "$GCC_FOR_TARGET"; then
8409 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8410else
1c710c3c
DJ
8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412for as_dir in $PATH
8413do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8418 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422done
8423done
8424
ca9f4b81
AO
8425fi
8426fi
1c710c3c 8427GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8428if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8429 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8430echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8431else
2aeb72e9
DD
8432 echo "$as_me:$LINENO: result: no" >&5
8433echo "${ECHO_T}no" >&6
ca9f4b81 8434fi
1c710c3c 8435
e8b05380
PB
8436 fi
8437 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8438 done
8439fi
1c710c3c 8440
e8b05380
PB
8441if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8442 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8443else
8444 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8445fi
8446
278a7a38
AO
8447
8448
8449if test -n "$GCJ_FOR_TARGET"; then
8450 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8451elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8452 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8453fi
8454
8455if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8456 for ncn_progname in gcj; do
8457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8458set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8459echo "$as_me:$LINENO: checking for $ac_word" >&5
8460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8461if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464 if test -n "$GCJ_FOR_TARGET"; then
8465 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8466else
8467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468for as_dir in $PATH
8469do
8470 IFS=$as_save_IFS
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8474 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 break 2
8477 fi
8478done
8479done
8480
8481fi
8482fi
8483GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8484if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8485 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8486echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8487else
2aeb72e9
DD
8488 echo "$as_me:$LINENO: result: no" >&5
8489echo "${ECHO_T}no" >&6
278a7a38
AO
8490fi
8491
8492 done
8493fi
8494
8495if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8496 for ncn_progname in gcj; do
2aeb72e9
DD
8497 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8498echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8499 if test -x $with_build_time_tools/${ncn_progname}; then
8500 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8501 echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6
e8b05380
PB
8503 break
8504 else
2aeb72e9
DD
8505 echo "$as_me:$LINENO: result: no" >&5
8506echo "${ECHO_T}no" >&6
e8b05380
PB
8507 fi
8508 done
8509fi
8510
8511if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8512 for ncn_progname in gcj; do
8513 if test -n "$ncn_target_tool_prefix"; then
8514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8515set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8516echo "$as_me:$LINENO: checking for $ac_word" >&5
8517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8518if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8520else
fb0103e5
RG
8521 if test -n "$GCJ_FOR_TARGET"; then
8522 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8523else
1c710c3c
DJ
8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8531 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8534 fi
8535done
8536done
8537
e8b05380
PB
8538fi
8539fi
278a7a38
AO
8540GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8541if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8542 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8543echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8544else
2aeb72e9
DD
8545 echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
278a7a38
AO
8547fi
8548
8549 fi
8550 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8552set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8553echo "$as_me:$LINENO: checking for $ac_word" >&5
8554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8555if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558 if test -n "$GCJ_FOR_TARGET"; then
8559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8560else
8561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562for as_dir in $PATH
8563do
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8571 fi
8572done
8573done
8574
8575fi
8576fi
8577GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8578if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8579 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8580echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8581else
2aeb72e9
DD
8582 echo "$as_me:$LINENO: result: no" >&5
8583echo "${ECHO_T}no" >&6
278a7a38
AO
8584fi
8585
8586 fi
8587 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8588 done
8589fi
8590
8591if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8592 set dummy gcj
8593 if test $build = $target ; then
8594 GCJ_FOR_TARGET="$2"
8595 else
8596 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8597 fi
1c00b503
PB
8598else
8599 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8600fi
8601
8602
8603
8604if test -n "$GFORTRAN_FOR_TARGET"; then
8605 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8606elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8607 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8608fi
8609
278a7a38
AO
8610if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8611 for ncn_progname in gfortran; do
8612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8613set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8614echo "$as_me:$LINENO: checking for $ac_word" >&5
8615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8616if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8617 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8618else
278a7a38
AO
8619 if test -n "$GFORTRAN_FOR_TARGET"; then
8620 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8621else
1c710c3c
DJ
8622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623for as_dir in $PATH
8624do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8629 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633done
8634done
8635
e8b05380
PB
8636fi
8637fi
278a7a38
AO
8638GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8639if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8640 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8641echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8642else
2aeb72e9
DD
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
e8b05380 8645fi
1c710c3c 8646
e8b05380
PB
8647 done
8648fi
1c710c3c 8649
278a7a38 8650if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8651 for ncn_progname in gfortran; do
2aeb72e9
DD
8652 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8653echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8654 if test -x $with_build_time_tools/${ncn_progname}; then
8655 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8656 echo "$as_me:$LINENO: result: yes" >&5
8657echo "${ECHO_T}yes" >&6
e8b05380
PB
8658 break
8659 else
2aeb72e9
DD
8660 echo "$as_me:$LINENO: result: no" >&5
8661echo "${ECHO_T}no" >&6
e8b05380
PB
8662 fi
8663 done
8664fi
8665
8666if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8667 for ncn_progname in gfortran; do
8668 if test -n "$ncn_target_tool_prefix"; then
8669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8670set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8671echo "$as_me:$LINENO: checking for $ac_word" >&5
8672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8673if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8675else
8676 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8677 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8686 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8689 fi
8690done
8691done
8692
e8b05380
PB
8693fi
8694fi
1c710c3c 8695GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8696if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8697 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8698echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8699else
2aeb72e9
DD
8700 echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6
e8b05380
PB
8702fi
8703
8704 fi
8705 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8707set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8708echo "$as_me:$LINENO: checking for $ac_word" >&5
8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8710if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8712else
8713 if test -n "$GFORTRAN_FOR_TARGET"; then
8714 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8715else
1c710c3c
DJ
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8723 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8726 fi
8727done
8728done
8729
e8b05380
PB
8730fi
8731fi
1c710c3c 8732GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8733if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8734 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8735echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8736else
2aeb72e9
DD
8737 echo "$as_me:$LINENO: result: no" >&5
8738echo "${ECHO_T}no" >&6
e8b05380 8739fi
1c710c3c 8740
e8b05380
PB
8741 fi
8742 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8743 done
8744fi
1c710c3c 8745
e8b05380
PB
8746if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8747 set dummy gfortran
2693c0b0 8748 if test $build = $target ; then
e8b05380 8749 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8750 else
e8b05380
PB
8751 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8752 fi
1c00b503
PB
8753else
8754 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8755fi
8756
8757
8758
e8b05380
PB
8759cat > conftest.c << \EOF
8760#ifdef __GNUC__
8761 gcc_yay;
8762#endif
8763EOF
8764if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8765 have_gcc_for_target=yes
8766else
8767 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8768 have_gcc_for_target=no
8769fi
8770rm conftest.c
8771
8772
8773
8774
8775if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8776 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8777 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8778echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8779 if test -x $with_build_time_tools/ar; then
8780 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8781 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8782 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8783echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8784 else
2aeb72e9
DD
8785 echo "$as_me:$LINENO: result: no" >&5
8786echo "${ECHO_T}no" >&6
d1f8db0c 8787 fi
e8b05380
PB
8788 elif test $build != $host && test $have_gcc_for_target = yes; then
8789 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8790 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8791 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8792 fi
8793fi
3e19841a 8794if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8795 # Extract the first word of "ar", so it can be a program name with args.
8796set dummy ar; ac_word=$2
2aeb72e9
DD
8797echo "$as_me:$LINENO: checking for $ac_word" >&5
8798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8799if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8801else
1c710c3c
DJ
8802 case $AR_FOR_TARGET in
8803 [\\/]* | ?:[\\/]*)
e8b05380
PB
8804 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8805 ;;
e8b05380 8806 *)
1c710c3c
DJ
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $gcc_cv_tool_dirs
8809do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8814 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8817 fi
8818done
8819done
8820
e8b05380
PB
8821 ;;
8822esac
8823fi
1c710c3c 8824AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8825
e8b05380 8826if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8827 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8828echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8829else
2aeb72e9
DD
8830 echo "$as_me:$LINENO: result: no" >&5
8831echo "${ECHO_T}no" >&6
4de997d1
PB
8832fi
8833
e8b05380
PB
8834fi
8835if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8836
8837
8838if test -n "$AR_FOR_TARGET"; then
8839 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8840elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8841 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8842fi
8843
8844if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8845 for ncn_progname in ar; do
8846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8847set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8848echo "$as_me:$LINENO: checking for $ac_word" >&5
8849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8850if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852else
8853 if test -n "$AR_FOR_TARGET"; then
8854 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8855else
8856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8863 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8866 fi
8867done
8868done
8869
8870fi
8871fi
8872AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8873if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8874 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8875echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8876else
2aeb72e9
DD
8877 echo "$as_me:$LINENO: result: no" >&5
8878echo "${ECHO_T}no" >&6
278a7a38
AO
8879fi
8880
8881 done
8882fi
8883
8884if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8885 for ncn_progname in ar; do
2aeb72e9
DD
8886 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8887echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8888 if test -x $with_build_time_tools/${ncn_progname}; then
8889 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
e8b05380
PB
8892 break
8893 else
2aeb72e9
DD
8894 echo "$as_me:$LINENO: result: no" >&5
8895echo "${ECHO_T}no" >&6
e8b05380
PB
8896 fi
8897 done
8898fi
8899
8900if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8901 for ncn_progname in ar; do
8902 if test -n "$ncn_target_tool_prefix"; then
8903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8905echo "$as_me:$LINENO: checking for $ac_word" >&5
8906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8907if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8909else
e8b05380
PB
8910 if test -n "$AR_FOR_TARGET"; then
8911 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8912else
1c710c3c
DJ
8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914for as_dir in $PATH
8915do
8916 IFS=$as_save_IFS
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8920 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 break 2
8923 fi
8924done
8925done
8926
4de997d1
PB
8927fi
8928fi
1c710c3c 8929AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8930if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8931 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8932echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8933else
2aeb72e9
DD
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
4de997d1
PB
8936fi
8937
e8b05380
PB
8938 fi
8939 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8941set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8942echo "$as_me:$LINENO: checking for $ac_word" >&5
8943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8944if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8946else
8947 if test -n "$AR_FOR_TARGET"; then
8948 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8949else
1c710c3c
DJ
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8957 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8960 fi
8961done
8962done
8963
e8b05380
PB
8964fi
8965fi
1c710c3c 8966AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8967if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8968 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8969echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8970else
2aeb72e9
DD
8971 echo "$as_me:$LINENO: result: no" >&5
8972echo "${ECHO_T}no" >&6
e8b05380 8973fi
1c710c3c 8974
e8b05380
PB
8975 fi
8976 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8977 done
8978fi
1c710c3c 8979
e8b05380
PB
8980if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8981 set dummy ar
8982 if test $build = $target ; then
8983 AR_FOR_TARGET="$2"
8984 else
8985 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8986 fi
1c00b503
PB
8987else
8988 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8989fi
8990
d1f8db0c
PB
8991else
8992 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8993fi
8994
8995
8996
8997
8998if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8999 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9000 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9001echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9002 if test -x $with_build_time_tools/as; then
9003 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9004 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9005 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9006echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9007 else
2aeb72e9
DD
9008 echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
d1f8db0c 9010 fi
e8b05380
PB
9011 elif test $build != $host && test $have_gcc_for_target = yes; then
9012 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9013 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9014 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9015 fi
9016fi
3e19841a 9017if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9018 # Extract the first word of "as", so it can be a program name with args.
9019set dummy as; ac_word=$2
2aeb72e9
DD
9020echo "$as_me:$LINENO: checking for $ac_word" >&5
9021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9022if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9024else
1c710c3c
DJ
9025 case $AS_FOR_TARGET in
9026 [\\/]* | ?:[\\/]*)
e8b05380
PB
9027 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9028 ;;
e8b05380 9029 *)
1c710c3c
DJ
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $gcc_cv_tool_dirs
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9037 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9040 fi
9041done
9042done
9043
e8b05380
PB
9044 ;;
9045esac
9046fi
1c710c3c 9047AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9048
e8b05380 9049if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9050 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9051echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9052else
2aeb72e9
DD
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
e8b05380
PB
9055fi
9056
9057fi
9058if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9059
9060
9061if test -n "$AS_FOR_TARGET"; then
9062 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9063elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9064 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9065fi
9066
9067if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9068 for ncn_progname in as; do
9069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9070set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9071echo "$as_me:$LINENO: checking for $ac_word" >&5
9072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9073if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9075else
9076 if test -n "$AS_FOR_TARGET"; then
9077 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9078else
9079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080for as_dir in $PATH
9081do
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9086 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 break 2
9089 fi
9090done
9091done
9092
9093fi
9094fi
9095AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9096if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9097 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9098echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9099else
2aeb72e9
DD
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
278a7a38
AO
9102fi
9103
9104 done
9105fi
9106
9107if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9108 for ncn_progname in as; do
2aeb72e9
DD
9109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9110echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9111 if test -x $with_build_time_tools/${ncn_progname}; then
9112 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9113 echo "$as_me:$LINENO: result: yes" >&5
9114echo "${ECHO_T}yes" >&6
e8b05380
PB
9115 break
9116 else
2aeb72e9
DD
9117 echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6
e8b05380
PB
9119 fi
9120 done
9121fi
9122
9123if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9124 for ncn_progname in as; do
9125 if test -n "$ncn_target_tool_prefix"; then
9126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9128echo "$as_me:$LINENO: checking for $ac_word" >&5
9129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9130if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9132else
9133 if test -n "$AS_FOR_TARGET"; then
9134 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9135else
1c710c3c
DJ
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
9141 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9143 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9145 break 2
9146 fi
9147done
9148done
9149
e8b05380
PB
9150fi
9151fi
1c710c3c 9152AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9153if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9154 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9155echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9156else
2aeb72e9
DD
9157 echo "$as_me:$LINENO: result: no" >&5
9158echo "${ECHO_T}no" >&6
e8b05380
PB
9159fi
9160
9161 fi
9162 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9164set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9165echo "$as_me:$LINENO: checking for $ac_word" >&5
9166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9167if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9169else
e8b05380
PB
9170 if test -n "$AS_FOR_TARGET"; then
9171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9172else
1c710c3c
DJ
9173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174for as_dir in $PATH
9175do
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9180 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 break 2
9183 fi
9184done
9185done
9186
4de997d1
PB
9187fi
9188fi
1c710c3c 9189AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9190if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9191 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9192echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9193else
2aeb72e9
DD
9194 echo "$as_me:$LINENO: result: no" >&5
9195echo "${ECHO_T}no" >&6
4de997d1 9196fi
1c710c3c 9197
e8b05380
PB
9198 fi
9199 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9200 done
9201fi
1c710c3c 9202
e8b05380
PB
9203if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9204 set dummy as
9205 if test $build = $target ; then
9206 AS_FOR_TARGET="$2"
9207 else
9208 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9209 fi
1c00b503
PB
9210else
9211 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9212fi
2693c0b0 9213
d1f8db0c
PB
9214else
9215 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9216fi
9217
e8b05380
PB
9218
9219
9220
9221if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9222 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9223 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9224echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9225 if test -x $with_build_time_tools/dlltool; then
9226 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9227 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9228 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9229echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9230 else
2aeb72e9
DD
9231 echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6
d1f8db0c 9233 fi
e8b05380
PB
9234 elif test $build != $host && test $have_gcc_for_target = yes; then
9235 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9236 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9237 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9238 fi
9239fi
3e19841a 9240if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9241 # Extract the first word of "dlltool", so it can be a program name with args.
9242set dummy dlltool; ac_word=$2
2aeb72e9
DD
9243echo "$as_me:$LINENO: checking for $ac_word" >&5
9244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9245if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9247else
1c710c3c
DJ
9248 case $DLLTOOL_FOR_TARGET in
9249 [\\/]* | ?:[\\/]*)
e8b05380
PB
9250 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9251 ;;
e8b05380 9252 *)
1c710c3c
DJ
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254for as_dir in $gcc_cv_tool_dirs
9255do
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9260 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9263 fi
9264done
9265done
9266
e8b05380
PB
9267 ;;
9268esac
4de997d1 9269fi
1c710c3c 9270DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9271
e8b05380 9272if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9273 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9274echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9275else
2aeb72e9
DD
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
4de997d1
PB
9278fi
9279
e8b05380
PB
9280fi
9281if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9282
9283
9284if test -n "$DLLTOOL_FOR_TARGET"; then
9285 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9286elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9287 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9288fi
9289
9290if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9291 for ncn_progname in dlltool; do
9292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9293set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9294echo "$as_me:$LINENO: checking for $ac_word" >&5
9295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9296if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299 if test -n "$DLLTOOL_FOR_TARGET"; then
9300 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9301else
9302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303for as_dir in $PATH
9304do
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9309 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9312 fi
9313done
9314done
9315
9316fi
9317fi
9318DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9319if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9320 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9321echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9322else
2aeb72e9
DD
9323 echo "$as_me:$LINENO: result: no" >&5
9324echo "${ECHO_T}no" >&6
278a7a38
AO
9325fi
9326
9327 done
9328fi
9329
9330if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9331 for ncn_progname in dlltool; do
2aeb72e9
DD
9332 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9333echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9334 if test -x $with_build_time_tools/${ncn_progname}; then
9335 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
e8b05380
PB
9338 break
9339 else
2aeb72e9
DD
9340 echo "$as_me:$LINENO: result: no" >&5
9341echo "${ECHO_T}no" >&6
e8b05380
PB
9342 fi
9343 done
9344fi
9345
9346if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9347 for ncn_progname in dlltool; do
9348 if test -n "$ncn_target_tool_prefix"; then
9349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9351echo "$as_me:$LINENO: checking for $ac_word" >&5
9352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9353if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9355else
e8b05380
PB
9356 if test -n "$DLLTOOL_FOR_TARGET"; then
9357 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9358else
1c710c3c
DJ
9359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360for as_dir in $PATH
9361do
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
9364 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9366 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 break 2
9369 fi
9370done
9371done
9372
4de997d1
PB
9373fi
9374fi
1c710c3c 9375DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9376if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9377 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9378echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9379else
2aeb72e9
DD
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
4de997d1 9382fi
4de997d1 9383
e8b05380
PB
9384 fi
9385 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9388echo "$as_me:$LINENO: checking for $ac_word" >&5
9389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9390if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9392else
e8b05380
PB
9393 if test -n "$DLLTOOL_FOR_TARGET"; then
9394 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9395else
1c710c3c
DJ
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9403 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9406 fi
9407done
9408done
9409
4de997d1
PB
9410fi
9411fi
1c710c3c 9412DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9413if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9414 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9415echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9416else
2aeb72e9
DD
9417 echo "$as_me:$LINENO: result: no" >&5
9418echo "${ECHO_T}no" >&6
4de997d1 9419fi
1c710c3c 9420
e8b05380
PB
9421 fi
9422 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9423 done
9424fi
1c710c3c 9425
e8b05380
PB
9426if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9427 set dummy dlltool
9428 if test $build = $target ; then
9429 DLLTOOL_FOR_TARGET="$2"
9430 else
9431 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9432 fi
1c00b503
PB
9433else
9434 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9435fi
9436
d1f8db0c
PB
9437else
9438 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9439fi
9440
4de997d1 9441
e8b05380
PB
9442
9443
9444if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9445 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9446 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9447echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9448 if test -x $with_build_time_tools/ld; then
9449 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9450 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9451 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9452echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9453 else
2aeb72e9
DD
9454 echo "$as_me:$LINENO: result: no" >&5
9455echo "${ECHO_T}no" >&6
d1f8db0c 9456 fi
e8b05380
PB
9457 elif test $build != $host && test $have_gcc_for_target = yes; then
9458 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9459 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9460 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9461 fi
e8b05380 9462fi
3e19841a 9463if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9464 # Extract the first word of "ld", so it can be a program name with args.
9465set dummy ld; ac_word=$2
2aeb72e9
DD
9466echo "$as_me:$LINENO: checking for $ac_word" >&5
9467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9468if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9470else
1c710c3c
DJ
9471 case $LD_FOR_TARGET in
9472 [\\/]* | ?:[\\/]*)
e8b05380
PB
9473 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9474 ;;
e8b05380 9475 *)
1c710c3c
DJ
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477for as_dir in $gcc_cv_tool_dirs
9478do
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9483 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 break 2
9486 fi
9487done
9488done
9489
e8b05380
PB
9490 ;;
9491esac
4de997d1 9492fi
1c710c3c 9493LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9494
e8b05380 9495if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9496 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9497echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9498else
2aeb72e9
DD
9499 echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
4de997d1 9501fi
2693c0b0 9502
e8b05380
PB
9503fi
9504if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9505
9506
9507if test -n "$LD_FOR_TARGET"; then
9508 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9509elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9510 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9511fi
9512
9513if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9514 for ncn_progname in ld; do
9515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9516set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9517echo "$as_me:$LINENO: checking for $ac_word" >&5
9518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9519if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522 if test -n "$LD_FOR_TARGET"; then
9523 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9524else
9525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526for as_dir in $PATH
9527do
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9532 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 break 2
9535 fi
9536done
9537done
9538
9539fi
9540fi
9541LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9542if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9543 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9544echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9545else
2aeb72e9
DD
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
278a7a38
AO
9548fi
9549
9550 done
9551fi
9552
9553if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9554 for ncn_progname in ld; do
2aeb72e9
DD
9555 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9556echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9557 if test -x $with_build_time_tools/${ncn_progname}; then
9558 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9559 echo "$as_me:$LINENO: result: yes" >&5
9560echo "${ECHO_T}yes" >&6
e8b05380
PB
9561 break
9562 else
2aeb72e9
DD
9563 echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
e8b05380
PB
9565 fi
9566 done
ca9f4b81
AO
9567fi
9568
e8b05380
PB
9569if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9570 for ncn_progname in ld; do
9571 if test -n "$ncn_target_tool_prefix"; then
9572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9573set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9574echo "$as_me:$LINENO: checking for $ac_word" >&5
9575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9576if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9578else
4de997d1
PB
9579 if test -n "$LD_FOR_TARGET"; then
9580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9581else
1c710c3c
DJ
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9589 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9592 fi
9593done
9594done
9595
ca9f4b81
AO
9596fi
9597fi
1c710c3c 9598LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9599if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9600 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9601echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9602else
2aeb72e9
DD
9603 echo "$as_me:$LINENO: result: no" >&5
9604echo "${ECHO_T}no" >&6
ca9f4b81
AO
9605fi
9606
e8b05380
PB
9607 fi
9608 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9610set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9611echo "$as_me:$LINENO: checking for $ac_word" >&5
9612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9613if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9615else
2693c0b0
PB
9616 if test -n "$LD_FOR_TARGET"; then
9617 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9618else
1c710c3c
DJ
9619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620for as_dir in $PATH
9621do
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9626 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9629 fi
9630done
9631done
9632
ca9f4b81
AO
9633fi
9634fi
1c710c3c 9635LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9636if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9637 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9638echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9639else
2aeb72e9
DD
9640 echo "$as_me:$LINENO: result: no" >&5
9641echo "${ECHO_T}no" >&6
ca9f4b81 9642fi
1c710c3c 9643
e8b05380
PB
9644 fi
9645 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9646 done
9647fi
1c710c3c 9648
2693c0b0
PB
9649if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9650 set dummy ld
9651 if test $build = $target ; then
9652 LD_FOR_TARGET="$2"
ca9f4b81 9653 else
2693c0b0 9654 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9655 fi
1c00b503
PB
9656else
9657 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9658fi
9659
d1f8db0c
PB
9660else
9661 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9662fi
9663
9664
9665
9666
9667if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9668 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9669 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9670echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9671 if test -x $with_build_time_tools/lipo; then
9672 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9673 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9674 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9675echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9676 else
2aeb72e9
DD
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
d1f8db0c 9679 fi
e8b05380
PB
9680 elif test $build != $host && test $have_gcc_for_target = yes; then
9681 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9682 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9683 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9684 fi
9685fi
278a7a38
AO
9686if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9687 # Extract the first word of "lipo", so it can be a program name with args.
9688set dummy lipo; ac_word=$2
2aeb72e9
DD
9689echo "$as_me:$LINENO: checking for $ac_word" >&5
9690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9691if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694 case $LIPO_FOR_TARGET in
9695 [\\/]* | ?:[\\/]*)
9696 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9697 ;;
9698 *)
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $gcc_cv_tool_dirs
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9706 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711done
9712
9713 ;;
9714esac
9715fi
9716LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9717
278a7a38 9718if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9719 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9720echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9721else
2aeb72e9
DD
9722 echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
278a7a38
AO
9724fi
9725
9726fi
9727if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9728
9729
9730if test -n "$LIPO_FOR_TARGET"; then
9731 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9732elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9733 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9734fi
9735
9736if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9737 for ncn_progname in lipo; do
9738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9739set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9740echo "$as_me:$LINENO: checking for $ac_word" >&5
9741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9742if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9743 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9744else
278a7a38
AO
9745 if test -n "$LIPO_FOR_TARGET"; then
9746 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9747else
9748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749for as_dir in $PATH
1c710c3c
DJ
9750do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9755 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9757 break 2
9758 fi
9759done
9760done
9761
e8b05380 9762fi
278a7a38
AO
9763fi
9764LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9765if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9766 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9767echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9768else
2aeb72e9
DD
9769 echo "$as_me:$LINENO: result: no" >&5
9770echo "${ECHO_T}no" >&6
e8b05380
PB
9771fi
9772
278a7a38 9773 done
e8b05380 9774fi
278a7a38
AO
9775
9776if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9777 for ncn_progname in lipo; do
2aeb72e9
DD
9778 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9779echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9780 if test -x $with_build_time_tools/${ncn_progname}; then
9781 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9782 echo "$as_me:$LINENO: result: yes" >&5
9783echo "${ECHO_T}yes" >&6
e8b05380
PB
9784 break
9785 else
2aeb72e9
DD
9786 echo "$as_me:$LINENO: result: no" >&5
9787echo "${ECHO_T}no" >&6
e8b05380
PB
9788 fi
9789 done
9790fi
9791
9792if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9793 for ncn_progname in lipo; do
9794 if test -n "$ncn_target_tool_prefix"; then
9795 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9796set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9797echo "$as_me:$LINENO: checking for $ac_word" >&5
9798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9799if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9801else
9802 if test -n "$LIPO_FOR_TARGET"; then
9803 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9804else
1c710c3c
DJ
9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9812 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9815 fi
9816done
9817done
9818
040b1c5a
GK
9819fi
9820fi
1c710c3c 9821LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9822if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9823 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9824echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9825else
2aeb72e9
DD
9826 echo "$as_me:$LINENO: result: no" >&5
9827echo "${ECHO_T}no" >&6
040b1c5a
GK
9828fi
9829
e8b05380
PB
9830 fi
9831 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9833set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9834echo "$as_me:$LINENO: checking for $ac_word" >&5
9835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9836if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9838else
9839 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9840 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9841else
1c710c3c
DJ
9842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843for as_dir in $PATH
9844do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9849 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 break 2
9852 fi
9853done
9854done
9855
040b1c5a
GK
9856fi
9857fi
1c710c3c 9858LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9859if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9860 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9861echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9862else
2aeb72e9
DD
9863 echo "$as_me:$LINENO: result: no" >&5
9864echo "${ECHO_T}no" >&6
040b1c5a 9865fi
1c710c3c 9866
e8b05380
PB
9867 fi
9868 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9869 done
9870fi
1c710c3c 9871
040b1c5a
GK
9872if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9873 set dummy lipo
9874 if test $build = $target ; then
9875 LIPO_FOR_TARGET="$2"
9876 else
9877 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9878 fi
1c00b503
PB
9879else
9880 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9881fi
9882
d1f8db0c
PB
9883else
9884 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9885fi
9886
9887
9888
9889
9890if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9891 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9892 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9893echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9894 if test -x $with_build_time_tools/nm; then
9895 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9896 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9897 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9898echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9899 else
2aeb72e9
DD
9900 echo "$as_me:$LINENO: result: no" >&5
9901echo "${ECHO_T}no" >&6
d1f8db0c 9902 fi
e8b05380
PB
9903 elif test $build != $host && test $have_gcc_for_target = yes; then
9904 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9905 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9906 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9907 fi
9908fi
3e19841a 9909if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9910 # Extract the first word of "nm", so it can be a program name with args.
9911set dummy nm; ac_word=$2
2aeb72e9
DD
9912echo "$as_me:$LINENO: checking for $ac_word" >&5
9913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9914if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9916else
1c710c3c
DJ
9917 case $NM_FOR_TARGET in
9918 [\\/]* | ?:[\\/]*)
e8b05380
PB
9919 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9920 ;;
e8b05380 9921 *)
1c710c3c
DJ
9922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $gcc_cv_tool_dirs
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
9927 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9929 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9931 break 2
9932 fi
9933done
9934done
9935
e8b05380
PB
9936 ;;
9937esac
9938fi
1c710c3c 9939NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9940
e8b05380 9941if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9942 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9943echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9944else
2aeb72e9
DD
9945 echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
e8b05380
PB
9947fi
9948
9949fi
9950if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9951
9952
9953if test -n "$NM_FOR_TARGET"; then
9954 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9955elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9956 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9957fi
9958
9959if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9960 for ncn_progname in nm; do
9961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9962set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9963echo "$as_me:$LINENO: checking for $ac_word" >&5
9964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9965if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968 if test -n "$NM_FOR_TARGET"; then
9969 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9970else
9971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972for as_dir in $PATH
9973do
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9978 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 break 2
9981 fi
9982done
9983done
9984
9985fi
9986fi
9987NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9988if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9989 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9990echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9991else
2aeb72e9
DD
9992 echo "$as_me:$LINENO: result: no" >&5
9993echo "${ECHO_T}no" >&6
278a7a38
AO
9994fi
9995
9996 done
9997fi
9998
9999if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10000 for ncn_progname in nm; do
2aeb72e9
DD
10001 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10002echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10003 if test -x $with_build_time_tools/${ncn_progname}; then
10004 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10005 echo "$as_me:$LINENO: result: yes" >&5
10006echo "${ECHO_T}yes" >&6
e8b05380
PB
10007 break
10008 else
2aeb72e9
DD
10009 echo "$as_me:$LINENO: result: no" >&5
10010echo "${ECHO_T}no" >&6
e8b05380
PB
10011 fi
10012 done
10013fi
10014
10015if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10016 for ncn_progname in nm; do
10017 if test -n "$ncn_target_tool_prefix"; then
10018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10019set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10020echo "$as_me:$LINENO: checking for $ac_word" >&5
10021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10022if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10024else
4de997d1
PB
10025 if test -n "$NM_FOR_TARGET"; then
10026 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10027else
1c710c3c
DJ
10028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029for as_dir in $PATH
10030do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10035 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10038 fi
10039done
10040done
10041
ca9f4b81
AO
10042fi
10043fi
1c710c3c 10044NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10045if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10046 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10047echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10048else
2aeb72e9
DD
10049 echo "$as_me:$LINENO: result: no" >&5
10050echo "${ECHO_T}no" >&6
ca9f4b81
AO
10051fi
10052
e8b05380
PB
10053 fi
10054 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10056set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10057echo "$as_me:$LINENO: checking for $ac_word" >&5
10058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10059if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10061else
2693c0b0
PB
10062 if test -n "$NM_FOR_TARGET"; then
10063 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10064else
1c710c3c
DJ
10065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10072 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10075 fi
10076done
10077done
10078
ca9f4b81
AO
10079fi
10080fi
1c710c3c 10081NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10082if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10083 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10084echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10085else
2aeb72e9
DD
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
ca9f4b81 10088fi
1c710c3c 10089
e8b05380
PB
10090 fi
10091 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10092 done
10093fi
1c710c3c 10094
2693c0b0
PB
10095if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10096 set dummy nm
10097 if test $build = $target ; then
10098 NM_FOR_TARGET="$2"
ca9f4b81 10099 else
2693c0b0 10100 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10101 fi
1c00b503
PB
10102else
10103 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10104fi
10105
d1f8db0c
PB
10106else
10107 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10108fi
10109
10110
10111
10112
10113if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10114 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10115 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10116echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10117 if test -x $with_build_time_tools/objdump; then
10118 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10119 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10120 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10121echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10122 else
2aeb72e9
DD
10123 echo "$as_me:$LINENO: result: no" >&5
10124echo "${ECHO_T}no" >&6
d1f8db0c 10125 fi
e8b05380
PB
10126 elif test $build != $host && test $have_gcc_for_target = yes; then
10127 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10128 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10129 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10130 fi
10131fi
3e19841a 10132if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10133 # Extract the first word of "objdump", so it can be a program name with args.
10134set dummy objdump; ac_word=$2
2aeb72e9
DD
10135echo "$as_me:$LINENO: checking for $ac_word" >&5
10136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10137if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10139else
1c710c3c
DJ
10140 case $OBJDUMP_FOR_TARGET in
10141 [\\/]* | ?:[\\/]*)
e8b05380
PB
10142 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10143 ;;
e8b05380 10144 *)
1c710c3c
DJ
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $gcc_cv_tool_dirs
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10152 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156done
10157done
10158
e8b05380
PB
10159 ;;
10160esac
10161fi
1c710c3c 10162OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10163
e8b05380 10164if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10165 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10166echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10167else
2aeb72e9
DD
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
e8b05380
PB
10170fi
10171
10172fi
10173if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10174
10175
10176if test -n "$OBJDUMP_FOR_TARGET"; then
10177 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10178elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10179 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10180fi
10181
10182if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10183 for ncn_progname in objdump; do
10184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10185set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10186echo "$as_me:$LINENO: checking for $ac_word" >&5
10187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10188if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191 if test -n "$OBJDUMP_FOR_TARGET"; then
10192 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10193else
10194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10201 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205done
10206done
10207
10208fi
10209fi
10210OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10211if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10212 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10213echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10214else
2aeb72e9
DD
10215 echo "$as_me:$LINENO: result: no" >&5
10216echo "${ECHO_T}no" >&6
278a7a38
AO
10217fi
10218
10219 done
10220fi
10221
10222if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10223 for ncn_progname in objdump; do
2aeb72e9
DD
10224 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10225echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10226 if test -x $with_build_time_tools/${ncn_progname}; then
10227 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10228 echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6
e8b05380
PB
10230 break
10231 else
2aeb72e9
DD
10232 echo "$as_me:$LINENO: result: no" >&5
10233echo "${ECHO_T}no" >&6
e8b05380
PB
10234 fi
10235 done
10236fi
10237
10238if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10239 for ncn_progname in objdump; do
10240 if test -n "$ncn_target_tool_prefix"; then
10241 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10242set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10243echo "$as_me:$LINENO: checking for $ac_word" >&5
10244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10245if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10247else
10248 if test -n "$OBJDUMP_FOR_TARGET"; then
10249 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10250else
1c710c3c
DJ
10251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252for as_dir in $PATH
10253do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10258 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10261 fi
10262done
10263done
10264
d739199a
DJ
10265fi
10266fi
1c710c3c 10267OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10268if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10269 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10270echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10271else
2aeb72e9
DD
10272 echo "$as_me:$LINENO: result: no" >&5
10273echo "${ECHO_T}no" >&6
d739199a
DJ
10274fi
10275
e8b05380
PB
10276 fi
10277 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10279set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10280echo "$as_me:$LINENO: checking for $ac_word" >&5
10281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10282if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10284else
10285 if test -n "$OBJDUMP_FOR_TARGET"; then
10286 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10287else
1c710c3c
DJ
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10295 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299done
10300done
10301
d739199a
DJ
10302fi
10303fi
1c710c3c 10304OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10305if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10306 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10307echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10308else
2aeb72e9
DD
10309 echo "$as_me:$LINENO: result: no" >&5
10310echo "${ECHO_T}no" >&6
d739199a 10311fi
1c710c3c 10312
e8b05380
PB
10313 fi
10314 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10315 done
10316fi
1c710c3c 10317
d739199a
DJ
10318if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10319 set dummy objdump
10320 if test $build = $target ; then
10321 OBJDUMP_FOR_TARGET="$2"
10322 else
10323 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10324 fi
1c00b503
PB
10325else
10326 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10327fi
10328
d1f8db0c
PB
10329else
10330 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10331fi
10332
10333
10334
10335
10336if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10337 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10338 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10339echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10340 if test -x $with_build_time_tools/ranlib; then
10341 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10342 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10343 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10344echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10345 else
2aeb72e9
DD
10346 echo "$as_me:$LINENO: result: no" >&5
10347echo "${ECHO_T}no" >&6
d1f8db0c 10348 fi
e8b05380
PB
10349 elif test $build != $host && test $have_gcc_for_target = yes; then
10350 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10351 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10352 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10353 fi
10354fi
3e19841a 10355if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10356 # Extract the first word of "ranlib", so it can be a program name with args.
10357set dummy ranlib; ac_word=$2
2aeb72e9
DD
10358echo "$as_me:$LINENO: checking for $ac_word" >&5
10359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10360if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10362else
1c710c3c
DJ
10363 case $RANLIB_FOR_TARGET in
10364 [\\/]* | ?:[\\/]*)
e8b05380
PB
10365 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10366 ;;
e8b05380 10367 *)
1c710c3c
DJ
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $gcc_cv_tool_dirs
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10375 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379done
10380done
10381
e8b05380
PB
10382 ;;
10383esac
10384fi
1c710c3c 10385RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10386
e8b05380 10387if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10388 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10389echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10390else
2aeb72e9
DD
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
e8b05380
PB
10393fi
10394
10395fi
10396if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10397
10398
10399if test -n "$RANLIB_FOR_TARGET"; then
10400 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10401elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10402 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10403fi
10404
10405if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10406 for ncn_progname in ranlib; do
10407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10408set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10409echo "$as_me:$LINENO: checking for $ac_word" >&5
10410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10411if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 if test -n "$RANLIB_FOR_TARGET"; then
10415 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10416else
10417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10424 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 break 2
10427 fi
10428done
10429done
10430
10431fi
10432fi
10433RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10434if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10435 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10436echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10437else
2aeb72e9
DD
10438 echo "$as_me:$LINENO: result: no" >&5
10439echo "${ECHO_T}no" >&6
278a7a38
AO
10440fi
10441
10442 done
10443fi
10444
10445if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10446 for ncn_progname in ranlib; do
2aeb72e9
DD
10447 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10448echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10449 if test -x $with_build_time_tools/${ncn_progname}; then
10450 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10451 echo "$as_me:$LINENO: result: yes" >&5
10452echo "${ECHO_T}yes" >&6
e8b05380
PB
10453 break
10454 else
2aeb72e9
DD
10455 echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
e8b05380
PB
10457 fi
10458 done
10459fi
10460
10461if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10462 for ncn_progname in ranlib; do
10463 if test -n "$ncn_target_tool_prefix"; then
10464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10465set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10466echo "$as_me:$LINENO: checking for $ac_word" >&5
10467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10468if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10470else
4de997d1
PB
10471 if test -n "$RANLIB_FOR_TARGET"; then
10472 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10473else
1c710c3c
DJ
10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10481 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485done
10486done
10487
ca9f4b81
AO
10488fi
10489fi
1c710c3c 10490RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10491if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10492 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10493echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10494else
2aeb72e9
DD
10495 echo "$as_me:$LINENO: result: no" >&5
10496echo "${ECHO_T}no" >&6
ca9f4b81
AO
10497fi
10498
e8b05380
PB
10499 fi
10500 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10502set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10503echo "$as_me:$LINENO: checking for $ac_word" >&5
10504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10505if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10507else
2693c0b0
PB
10508 if test -n "$RANLIB_FOR_TARGET"; then
10509 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10510else
1c710c3c
DJ
10511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512for as_dir in $PATH
10513do
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10518 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10521 fi
10522done
10523done
10524
ca9f4b81
AO
10525fi
10526fi
1c710c3c 10527RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10528if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10529 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10530echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10531else
2aeb72e9
DD
10532 echo "$as_me:$LINENO: result: no" >&5
10533echo "${ECHO_T}no" >&6
ca9f4b81 10534fi
1c710c3c 10535
e8b05380
PB
10536 fi
10537 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10538 done
10539fi
1c710c3c 10540
e8b05380
PB
10541if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10542 set dummy ranlib
10543 if test $build = $target ; then
10544 RANLIB_FOR_TARGET="$2"
10545 else
10546 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10547 fi
1c00b503
PB
10548else
10549 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10550fi
2693c0b0 10551
d1f8db0c
PB
10552else
10553 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10554fi
10555
e8b05380
PB
10556
10557
10558
10559if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10560 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10561 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10562echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10563 if test -x $with_build_time_tools/strip; then
10564 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10565 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10566 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10567echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10568 else
2aeb72e9
DD
10569 echo "$as_me:$LINENO: result: no" >&5
10570echo "${ECHO_T}no" >&6
d1f8db0c 10571 fi
e8b05380
PB
10572 elif test $build != $host && test $have_gcc_for_target = yes; then
10573 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10574 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10575 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10576 fi
10577fi
3e19841a 10578if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10579 # Extract the first word of "strip", so it can be a program name with args.
10580set dummy strip; ac_word=$2
2aeb72e9
DD
10581echo "$as_me:$LINENO: checking for $ac_word" >&5
10582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10583if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10585else
1c710c3c
DJ
10586 case $STRIP_FOR_TARGET in
10587 [\\/]* | ?:[\\/]*)
e8b05380
PB
10588 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10589 ;;
e8b05380 10590 *)
1c710c3c
DJ
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592for as_dir in $gcc_cv_tool_dirs
10593do
10594 IFS=$as_save_IFS
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10598 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10600 break 2
10601 fi
10602done
10603done
10604
e8b05380
PB
10605 ;;
10606esac
10607fi
1c710c3c 10608STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10609
e8b05380 10610if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10611 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10612echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10613else
2aeb72e9
DD
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
e8b05380
PB
10616fi
10617
10618fi
10619if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10620
10621
10622if test -n "$STRIP_FOR_TARGET"; then
10623 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10624elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10625 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10626fi
10627
10628if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10629 for ncn_progname in strip; do
10630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10631set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10632echo "$as_me:$LINENO: checking for $ac_word" >&5
10633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10634if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637 if test -n "$STRIP_FOR_TARGET"; then
10638 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10639else
10640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641for as_dir in $PATH
10642do
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10647 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10650 fi
10651done
10652done
10653
10654fi
10655fi
10656STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10657if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10658 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10659echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10660else
2aeb72e9
DD
10661 echo "$as_me:$LINENO: result: no" >&5
10662echo "${ECHO_T}no" >&6
278a7a38
AO
10663fi
10664
10665 done
10666fi
10667
10668if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10669 for ncn_progname in strip; do
2aeb72e9
DD
10670 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10671echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10672 if test -x $with_build_time_tools/${ncn_progname}; then
10673 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10674 echo "$as_me:$LINENO: result: yes" >&5
10675echo "${ECHO_T}yes" >&6
e8b05380
PB
10676 break
10677 else
2aeb72e9
DD
10678 echo "$as_me:$LINENO: result: no" >&5
10679echo "${ECHO_T}no" >&6
e8b05380
PB
10680 fi
10681 done
10682fi
10683
10684if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10685 for ncn_progname in strip; do
10686 if test -n "$ncn_target_tool_prefix"; then
10687 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10688set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10689echo "$as_me:$LINENO: checking for $ac_word" >&5
10690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10691if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10693else
10694 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10695 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10696else
10697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698for as_dir in $PATH
10699do
10700 IFS=$as_save_IFS
10701 test -z "$as_dir" && as_dir=.
10702 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10704 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10706 break 2
10707 fi
10708done
10709done
10710
040b1c5a
GK
10711fi
10712fi
1c710c3c 10713STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10714if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10715 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10716echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10717else
2aeb72e9
DD
10718 echo "$as_me:$LINENO: result: no" >&5
10719echo "${ECHO_T}no" >&6
040b1c5a
GK
10720fi
10721
e8b05380
PB
10722 fi
10723 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10725set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10726echo "$as_me:$LINENO: checking for $ac_word" >&5
10727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10728if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10730else
10731 if test -n "$STRIP_FOR_TARGET"; then
10732 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10733else
1c710c3c
DJ
10734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735for as_dir in $PATH
10736do
10737 IFS=$as_save_IFS
10738 test -z "$as_dir" && as_dir=.
10739 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10741 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10743 break 2
10744 fi
10745done
10746done
10747
040b1c5a
GK
10748fi
10749fi
1c710c3c 10750STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10751if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10752 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10753echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10754else
2aeb72e9
DD
10755 echo "$as_me:$LINENO: result: no" >&5
10756echo "${ECHO_T}no" >&6
040b1c5a 10757fi
1c710c3c 10758
e8b05380
PB
10759 fi
10760 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10761 done
10762fi
1c710c3c 10763
040b1c5a
GK
10764if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10765 set dummy strip
10766 if test $build = $target ; then
10767 STRIP_FOR_TARGET="$2"
10768 else
10769 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10770 fi
1c00b503
PB
10771else
10772 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10773fi
10774
d1f8db0c
PB
10775else
10776 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10777fi
10778
10779
10780
10781
10782if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10783 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10784 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10785echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10786 if test -x $with_build_time_tools/windres; then
10787 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10788 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10789 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10790echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10791 else
2aeb72e9
DD
10792 echo "$as_me:$LINENO: result: no" >&5
10793echo "${ECHO_T}no" >&6
d1f8db0c 10794 fi
e8b05380
PB
10795 elif test $build != $host && test $have_gcc_for_target = yes; then
10796 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10797 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10798 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10799 fi
10800fi
3e19841a 10801if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10802 # Extract the first word of "windres", so it can be a program name with args.
10803set dummy windres; ac_word=$2
2aeb72e9
DD
10804echo "$as_me:$LINENO: checking for $ac_word" >&5
10805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10806if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10808else
1c710c3c
DJ
10809 case $WINDRES_FOR_TARGET in
10810 [\\/]* | ?:[\\/]*)
e8b05380
PB
10811 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10812 ;;
e8b05380 10813 *)
1c710c3c
DJ
10814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $gcc_cv_tool_dirs
10816do
10817 IFS=$as_save_IFS
10818 test -z "$as_dir" && as_dir=.
10819 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10821 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 break 2
10824 fi
10825done
10826done
10827
e8b05380
PB
10828 ;;
10829esac
10830fi
1c710c3c 10831WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10832
e8b05380 10833if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10834 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10835echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10836else
2aeb72e9
DD
10837 echo "$as_me:$LINENO: result: no" >&5
10838echo "${ECHO_T}no" >&6
e8b05380
PB
10839fi
10840
10841fi
10842if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10843
10844
10845if test -n "$WINDRES_FOR_TARGET"; then
10846 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10847elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10848 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10849fi
10850
10851if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10852 for ncn_progname in windres; do
10853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10854set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10855echo "$as_me:$LINENO: checking for $ac_word" >&5
10856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10857if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 if test -n "$WINDRES_FOR_TARGET"; then
10861 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10862else
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10870 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874done
10875done
10876
10877fi
10878fi
10879WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10880if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10881 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10882echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10883else
2aeb72e9
DD
10884 echo "$as_me:$LINENO: result: no" >&5
10885echo "${ECHO_T}no" >&6
278a7a38
AO
10886fi
10887
10888 done
10889fi
10890
10891if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10892 for ncn_progname in windres; do
2aeb72e9
DD
10893 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10894echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10895 if test -x $with_build_time_tools/${ncn_progname}; then
10896 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10897 echo "$as_me:$LINENO: result: yes" >&5
10898echo "${ECHO_T}yes" >&6
e8b05380
PB
10899 break
10900 else
2aeb72e9
DD
10901 echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6
e8b05380
PB
10903 fi
10904 done
10905fi
10906
10907if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10908 for ncn_progname in windres; do
10909 if test -n "$ncn_target_tool_prefix"; then
10910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10911set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10912echo "$as_me:$LINENO: checking for $ac_word" >&5
10913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10914if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10916else
4de997d1
PB
10917 if test -n "$WINDRES_FOR_TARGET"; then
10918 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10919else
1c710c3c
DJ
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10927 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10930 fi
10931done
10932done
10933
ca9f4b81
AO
10934fi
10935fi
1c710c3c 10936WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10937if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10938 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10939echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10940else
2aeb72e9
DD
10941 echo "$as_me:$LINENO: result: no" >&5
10942echo "${ECHO_T}no" >&6
ca9f4b81
AO
10943fi
10944
e8b05380
PB
10945 fi
10946 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10948set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10949echo "$as_me:$LINENO: checking for $ac_word" >&5
10950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10951if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10953else
2693c0b0
PB
10954 if test -n "$WINDRES_FOR_TARGET"; then
10955 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10956else
1c710c3c
DJ
10957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958for as_dir in $PATH
10959do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10964 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968done
10969done
10970
ca9f4b81
AO
10971fi
10972fi
1c710c3c 10973WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10974if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10975 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10976echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10977else
2aeb72e9
DD
10978 echo "$as_me:$LINENO: result: no" >&5
10979echo "${ECHO_T}no" >&6
ca9f4b81 10980fi
1c710c3c 10981
e8b05380
PB
10982 fi
10983 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10984 done
10985fi
1c710c3c 10986
2693c0b0
PB
10987if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10988 set dummy windres
10989 if test $build = $target ; then
10990 WINDRES_FOR_TARGET="$2"
ca9f4b81 10991 else
2693c0b0 10992 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10993 fi
1c00b503
PB
10994else
10995 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10996fi
10997
d1f8db0c
PB
10998else
10999 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11000fi
11001
4977bab6 11002
901119ae
KT
11003
11004
11005if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11006 if test -n "$with_build_time_tools"; then
11007 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11008echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11009 if test -x $with_build_time_tools/windmc; then
11010 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11011 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11012 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11013echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11014 else
11015 echo "$as_me:$LINENO: result: no" >&5
11016echo "${ECHO_T}no" >&6
11017 fi
11018 elif test $build != $host && test $have_gcc_for_target = yes; then
11019 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11020 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11021 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11022 fi
11023fi
11024if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11025 # Extract the first word of "windmc", so it can be a program name with args.
11026set dummy windmc; ac_word=$2
11027echo "$as_me:$LINENO: checking for $ac_word" >&5
11028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11029if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031else
11032 case $WINDMC_FOR_TARGET in
11033 [\\/]* | ?:[\\/]*)
11034 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11035 ;;
11036 *)
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038for as_dir in $gcc_cv_tool_dirs
11039do
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11047 fi
11048done
11049done
11050
11051 ;;
11052esac
11053fi
11054WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11055
11056if test -n "$WINDMC_FOR_TARGET"; then
11057 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11058echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11059else
11060 echo "$as_me:$LINENO: result: no" >&5
11061echo "${ECHO_T}no" >&6
11062fi
11063
11064fi
11065if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11066
11067
11068if test -n "$WINDMC_FOR_TARGET"; then
11069 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11070elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11071 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11072fi
11073
11074if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11075 for ncn_progname in windmc; do
11076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11077set dummy ${ncn_progname}; ac_word=$2
11078echo "$as_me:$LINENO: checking for $ac_word" >&5
11079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11080if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 if test -n "$WINDMC_FOR_TARGET"; then
11084 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11085else
11086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087for as_dir in $PATH
11088do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11096 fi
11097done
11098done
11099
11100fi
11101fi
11102WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11103if test -n "$WINDMC_FOR_TARGET"; then
11104 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11105echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11106else
11107 echo "$as_me:$LINENO: result: no" >&5
11108echo "${ECHO_T}no" >&6
11109fi
11110
11111 done
11112fi
11113
11114if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11115 for ncn_progname in windmc; do
11116 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11117echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11118 if test -x $with_build_time_tools/${ncn_progname}; then
11119 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11120 echo "$as_me:$LINENO: result: yes" >&5
11121echo "${ECHO_T}yes" >&6
11122 break
11123 else
11124 echo "$as_me:$LINENO: result: no" >&5
11125echo "${ECHO_T}no" >&6
11126 fi
11127 done
11128fi
11129
11130if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11131 for ncn_progname in windmc; do
11132 if test -n "$ncn_target_tool_prefix"; then
11133 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11134set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11135echo "$as_me:$LINENO: checking for $ac_word" >&5
11136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11137if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139else
11140 if test -n "$WINDMC_FOR_TARGET"; then
11141 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11142else
11143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144for as_dir in $PATH
11145do
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11153 fi
11154done
11155done
11156
11157fi
11158fi
11159WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11160if test -n "$WINDMC_FOR_TARGET"; then
11161 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11162echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11163else
11164 echo "$as_me:$LINENO: result: no" >&5
11165echo "${ECHO_T}no" >&6
11166fi
11167
11168 fi
11169 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11171set dummy ${ncn_progname}; ac_word=$2
11172echo "$as_me:$LINENO: checking for $ac_word" >&5
11173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11174if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176else
11177 if test -n "$WINDMC_FOR_TARGET"; then
11178 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11179else
11180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181for as_dir in $PATH
11182do
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11187 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11189 break 2
11190 fi
11191done
11192done
11193
11194fi
11195fi
11196WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11197if test -n "$WINDMC_FOR_TARGET"; then
11198 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11199echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11200else
11201 echo "$as_me:$LINENO: result: no" >&5
11202echo "${ECHO_T}no" >&6
11203fi
11204
11205 fi
11206 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11207 done
11208fi
11209
11210if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11211 set dummy windmc
11212 if test $build = $target ; then
11213 WINDMC_FOR_TARGET="$2"
11214 else
11215 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11216 fi
1c00b503
PB
11217else
11218 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11219fi
11220
11221else
11222 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11223fi
11224
11225
2abefe3d
PB
11226RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11227
2aeb72e9
DD
11228echo "$as_me:$LINENO: checking where to find the target ar" >&5
11229echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11230if test "x${build}" != "x${host}" ; then
e8b05380
PB
11231 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11232 # We already found the complete path
172e41aa 11233 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11234 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11235echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11236 else
11237 # Canadian cross, just use what we found
2aeb72e9
DD
11238 echo "$as_me:$LINENO: result: pre-installed" >&5
11239echo "${ECHO_T}pre-installed" >&6
e8b05380 11240 fi
2abefe3d
PB
11241else
11242 ok=yes
11243 case " ${configdirs} " in
11244 *" binutils "*) ;;
11245 *) ok=no ;;
11246 esac
1c710c3c 11247
2abefe3d
PB
11248 if test $ok = yes; then
11249 # An in-tree tool is available and we can use it
11250 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11251 echo "$as_me:$LINENO: result: just compiled" >&5
11252echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11253 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11254 # We already found the complete path
172e41aa 11255 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11256 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11257echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11258 elif test "x$target" = "x$host"; then
11259 # We can use an host tool
11260 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11261 echo "$as_me:$LINENO: result: host tool" >&5
11262echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11263 else
11264 # We need a cross tool
2aeb72e9
DD
11265 echo "$as_me:$LINENO: result: pre-installed" >&5
11266echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11267 fi
11268fi
0b0dc272 11269
2aeb72e9
DD
11270echo "$as_me:$LINENO: checking where to find the target as" >&5
11271echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11272if test "x${build}" != "x${host}" ; then
e8b05380
PB
11273 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11274 # We already found the complete path
172e41aa 11275 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11276 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11277echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11278 else
11279 # Canadian cross, just use what we found
2aeb72e9
DD
11280 echo "$as_me:$LINENO: result: pre-installed" >&5
11281echo "${ECHO_T}pre-installed" >&6
e8b05380 11282 fi
2abefe3d
PB
11283else
11284 ok=yes
11285 case " ${configdirs} " in
11286 *" gas "*) ;;
11287 *) ok=no ;;
11288 esac
1c710c3c 11289
2abefe3d
PB
11290 if test $ok = yes; then
11291 # An in-tree tool is available and we can use it
11292 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11293 echo "$as_me:$LINENO: result: just compiled" >&5
11294echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11295 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11296 # We already found the complete path
172e41aa 11297 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11298 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11299echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11300 elif test "x$target" = "x$host"; then
11301 # We can use an host tool
11302 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11303 echo "$as_me:$LINENO: result: host tool" >&5
11304echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11305 else
11306 # We need a cross tool
2aeb72e9
DD
11307 echo "$as_me:$LINENO: result: pre-installed" >&5
11308echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11309 fi
11310fi
0b0dc272 11311
2aeb72e9
DD
11312echo "$as_me:$LINENO: checking where to find the target cc" >&5
11313echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11314if test "x${build}" != "x${host}" ; then
e8b05380
PB
11315 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11316 # We already found the complete path
172e41aa 11317 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11318 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11319echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11320 else
11321 # Canadian cross, just use what we found
2aeb72e9
DD
11322 echo "$as_me:$LINENO: result: pre-installed" >&5
11323echo "${ECHO_T}pre-installed" >&6
e8b05380 11324 fi
2abefe3d
PB
11325else
11326 ok=yes
11327 case " ${configdirs} " in
11328 *" gcc "*) ;;
11329 *) ok=no ;;
11330 esac
1c710c3c 11331
2abefe3d
PB
11332 if test $ok = yes; then
11333 # An in-tree tool is available and we can use it
11334 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11335 echo "$as_me:$LINENO: result: just compiled" >&5
11336echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11337 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11338 # We already found the complete path
172e41aa 11339 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11340 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11341echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11342 elif test "x$target" = "x$host"; then
11343 # We can use an host tool
11344 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11345 echo "$as_me:$LINENO: result: host tool" >&5
11346echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11347 else
11348 # We need a cross tool
2aeb72e9
DD
11349 echo "$as_me:$LINENO: result: pre-installed" >&5
11350echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11351 fi
11352fi
0b0dc272 11353
2aeb72e9
DD
11354echo "$as_me:$LINENO: checking where to find the target c++" >&5
11355echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11356if test "x${build}" != "x${host}" ; then
e8b05380
PB
11357 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11358 # We already found the complete path
172e41aa 11359 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11360 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11361echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11362 else
11363 # Canadian cross, just use what we found
2aeb72e9
DD
11364 echo "$as_me:$LINENO: result: pre-installed" >&5
11365echo "${ECHO_T}pre-installed" >&6
e8b05380 11366 fi
2abefe3d
PB
11367else
11368 ok=yes
11369 case " ${configdirs} " in
11370 *" gcc "*) ;;
11371 *) ok=no ;;
11372 esac
11373 case ,${enable_languages}, in
11374 *,c++,*) ;;
11375 *) ok=no ;;
11376 esac
11377 if test $ok = yes; then
11378 # An in-tree tool is available and we can use it
11379 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
11380 echo "$as_me:$LINENO: result: just compiled" >&5
11381echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11382 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11383 # We already found the complete path
172e41aa 11384 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11385 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11386echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11387 elif test "x$target" = "x$host"; then
11388 # We can use an host tool
11389 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11390 echo "$as_me:$LINENO: result: host tool" >&5
11391echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11392 else
11393 # We need a cross tool
2aeb72e9
DD
11394 echo "$as_me:$LINENO: result: pre-installed" >&5
11395echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11396 fi
11397fi
0b0dc272 11398
2aeb72e9
DD
11399echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11400echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11401if test "x${build}" != "x${host}" ; then
e8b05380
PB
11402 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11403 # We already found the complete path
172e41aa 11404 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11405 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11406echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11407 else
11408 # Canadian cross, just use what we found
2aeb72e9
DD
11409 echo "$as_me:$LINENO: result: pre-installed" >&5
11410echo "${ECHO_T}pre-installed" >&6
e8b05380 11411 fi
2abefe3d
PB
11412else
11413 ok=yes
11414 case " ${configdirs} " in
11415 *" gcc "*) ;;
11416 *) ok=no ;;
11417 esac
11418 case ,${enable_languages}, in
11419 *,c++,*) ;;
11420 *) ok=no ;;
11421 esac
11422 if test $ok = yes; then
11423 # An in-tree tool is available and we can use it
11424 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
11425 echo "$as_me:$LINENO: result: just compiled" >&5
11426echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11427 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11428 # We already found the complete path
172e41aa 11429 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11430 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11431echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11432 elif test "x$target" = "x$host"; then
11433 # We can use an host tool
11434 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11435 echo "$as_me:$LINENO: result: host tool" >&5
11436echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11437 else
11438 # We need a cross tool
2aeb72e9
DD
11439 echo "$as_me:$LINENO: result: pre-installed" >&5
11440echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11441 fi
11442fi
0b0dc272 11443
2aeb72e9
DD
11444echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11445echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11446if test "x${build}" != "x${host}" ; then
e8b05380
PB
11447 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11448 # We already found the complete path
172e41aa 11449 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11450 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11451echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11452 else
11453 # Canadian cross, just use what we found
2aeb72e9
DD
11454 echo "$as_me:$LINENO: result: pre-installed" >&5
11455echo "${ECHO_T}pre-installed" >&6
e8b05380 11456 fi
2abefe3d
PB
11457else
11458 ok=yes
11459 case " ${configdirs} " in
11460 *" binutils "*) ;;
11461 *) ok=no ;;
11462 esac
1c710c3c 11463
2abefe3d
PB
11464 if test $ok = yes; then
11465 # An in-tree tool is available and we can use it
11466 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11467 echo "$as_me:$LINENO: result: just compiled" >&5
11468echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11469 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11470 # We already found the complete path
172e41aa 11471 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11472 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11473echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11474 elif test "x$target" = "x$host"; then
11475 # We can use an host tool
11476 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11477 echo "$as_me:$LINENO: result: host tool" >&5
11478echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11479 else
11480 # We need a cross tool
2aeb72e9
DD
11481 echo "$as_me:$LINENO: result: pre-installed" >&5
11482echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11483 fi
11484fi
0b0dc272 11485
2aeb72e9
DD
11486echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11487echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11488if test "x${build}" != "x${host}" ; then
e8b05380
PB
11489 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11490 # We already found the complete path
172e41aa 11491 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11492 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11493echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11494 else
11495 # Canadian cross, just use what we found
2aeb72e9
DD
11496 echo "$as_me:$LINENO: result: pre-installed" >&5
11497echo "${ECHO_T}pre-installed" >&6
e8b05380 11498 fi
2abefe3d
PB
11499else
11500 ok=yes
11501 case " ${configdirs} " in
11502 *" gcc "*) ;;
11503 *) ok=no ;;
11504 esac
1c710c3c 11505
2abefe3d
PB
11506 if test $ok = yes; then
11507 # An in-tree tool is available and we can use it
11508 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11509 echo "$as_me:$LINENO: result: just compiled" >&5
11510echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11511 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11512 # We already found the complete path
172e41aa 11513 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11514 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11515echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11516 elif test "x$target" = "x$host"; then
11517 # We can use an host tool
11518 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11519 echo "$as_me:$LINENO: result: host tool" >&5
11520echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11521 else
11522 # We need a cross tool
2aeb72e9
DD
11523 echo "$as_me:$LINENO: result: pre-installed" >&5
11524echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11525 fi
11526fi
0b0dc272 11527
2aeb72e9
DD
11528echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11529echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11530if test "x${build}" != "x${host}" ; then
e8b05380
PB
11531 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11532 # We already found the complete path
172e41aa 11533 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11534 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11535echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11536 else
11537 # Canadian cross, just use what we found
2aeb72e9
DD
11538 echo "$as_me:$LINENO: result: pre-installed" >&5
11539echo "${ECHO_T}pre-installed" >&6
e8b05380 11540 fi
2abefe3d
PB
11541else
11542 ok=yes
11543 case " ${configdirs} " in
11544 *" gcc "*) ;;
11545 *) ok=no ;;
11546 esac
11547 case ,${enable_languages}, in
11548 *,java,*) ;;
11549 *) ok=no ;;
11550 esac
11551 if test $ok = yes; then
11552 # An in-tree tool is available and we can use it
11553 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11554 echo "$as_me:$LINENO: result: just compiled" >&5
11555echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11556 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11557 # We already found the complete path
172e41aa 11558 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11559 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11560echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11561 elif test "x$target" = "x$host"; then
11562 # We can use an host tool
11563 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11564 echo "$as_me:$LINENO: result: host tool" >&5
11565echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11566 else
11567 # We need a cross tool
2aeb72e9
DD
11568 echo "$as_me:$LINENO: result: pre-installed" >&5
11569echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11570 fi
11571fi
0b0dc272 11572
2aeb72e9
DD
11573echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11574echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11575if test "x${build}" != "x${host}" ; then
e8b05380
PB
11576 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11577 # We already found the complete path
172e41aa 11578 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11579 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11580echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11581 else
11582 # Canadian cross, just use what we found
2aeb72e9
DD
11583 echo "$as_me:$LINENO: result: pre-installed" >&5
11584echo "${ECHO_T}pre-installed" >&6
e8b05380 11585 fi
2abefe3d
PB
11586else
11587 ok=yes
11588 case " ${configdirs} " in
11589 *" gcc "*) ;;
11590 *) ok=no ;;
11591 esac
11592 case ,${enable_languages}, in
11593 *,fortran,*) ;;
11594 *) ok=no ;;
11595 esac
11596 if test $ok = yes; then
11597 # An in-tree tool is available and we can use it
11598 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11599 echo "$as_me:$LINENO: result: just compiled" >&5
11600echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11601 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11602 # We already found the complete path
172e41aa 11603 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11604 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11605echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11606 elif test "x$target" = "x$host"; then
11607 # We can use an host tool
11608 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11609 echo "$as_me:$LINENO: result: host tool" >&5
11610echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11611 else
11612 # We need a cross tool
2aeb72e9
DD
11613 echo "$as_me:$LINENO: result: pre-installed" >&5
11614echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11615 fi
11616fi
0b0dc272 11617
2aeb72e9
DD
11618echo "$as_me:$LINENO: checking where to find the target ld" >&5
11619echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11620if test "x${build}" != "x${host}" ; then
e8b05380
PB
11621 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11622 # We already found the complete path
172e41aa 11623 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11624 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11625echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11626 else
11627 # Canadian cross, just use what we found
2aeb72e9
DD
11628 echo "$as_me:$LINENO: result: pre-installed" >&5
11629echo "${ECHO_T}pre-installed" >&6
e8b05380 11630 fi
2abefe3d
PB
11631else
11632 ok=yes
11633 case " ${configdirs} " in
11634 *" ld "*) ;;
11635 *) ok=no ;;
11636 esac
1c710c3c 11637
2abefe3d
PB
11638 if test $ok = yes; then
11639 # An in-tree tool is available and we can use it
11640 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11641 echo "$as_me:$LINENO: result: just compiled" >&5
11642echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11643 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11644 # We already found the complete path
172e41aa 11645 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11646 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11647echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11648 elif test "x$target" = "x$host"; then
11649 # We can use an host tool
11650 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11651 echo "$as_me:$LINENO: result: host tool" >&5
11652echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11653 else
11654 # We need a cross tool
2aeb72e9
DD
11655 echo "$as_me:$LINENO: result: pre-installed" >&5
11656echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11657 fi
11658fi
0b0dc272 11659
2aeb72e9
DD
11660echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11661echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11662if test "x${build}" != "x${host}" ; then
e8b05380
PB
11663 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11664 # We already found the complete path
172e41aa 11665 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11666 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11667echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11668 else
11669 # Canadian cross, just use what we found
2aeb72e9
DD
11670 echo "$as_me:$LINENO: result: pre-installed" >&5
11671echo "${ECHO_T}pre-installed" >&6
e8b05380 11672 fi
2abefe3d 11673else
e8b05380
PB
11674 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11675 # We already found the complete path
172e41aa 11676 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11677 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11678echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11679 elif test "x$target" = "x$host"; then
2abefe3d
PB
11680 # We can use an host tool
11681 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11682 echo "$as_me:$LINENO: result: host tool" >&5
11683echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11684 else
11685 # We need a cross tool
2aeb72e9
DD
11686 echo "$as_me:$LINENO: result: pre-installed" >&5
11687echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11688 fi
11689fi
0b0dc272 11690
2aeb72e9
DD
11691echo "$as_me:$LINENO: checking where to find the target nm" >&5
11692echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11693if test "x${build}" != "x${host}" ; then
e8b05380
PB
11694 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11695 # We already found the complete path
172e41aa 11696 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11697 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11698echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11699 else
11700 # Canadian cross, just use what we found
2aeb72e9
DD
11701 echo "$as_me:$LINENO: result: pre-installed" >&5
11702echo "${ECHO_T}pre-installed" >&6
e8b05380 11703 fi
2abefe3d
PB
11704else
11705 ok=yes
11706 case " ${configdirs} " in
11707 *" binutils "*) ;;
11708 *) ok=no ;;
11709 esac
1c710c3c 11710
2abefe3d
PB
11711 if test $ok = yes; then
11712 # An in-tree tool is available and we can use it
11713 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11714 echo "$as_me:$LINENO: result: just compiled" >&5
11715echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11716 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11717 # We already found the complete path
172e41aa 11718 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11719 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11720echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11721 elif test "x$target" = "x$host"; then
11722 # We can use an host tool
11723 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11724 echo "$as_me:$LINENO: result: host tool" >&5
11725echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11726 else
11727 # We need a cross tool
2aeb72e9
DD
11728 echo "$as_me:$LINENO: result: pre-installed" >&5
11729echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11730 fi
11731fi
0b0dc272 11732
2aeb72e9
DD
11733echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11734echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11735if test "x${build}" != "x${host}" ; then
e8b05380
PB
11736 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11737 # We already found the complete path
172e41aa 11738 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11739 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11740echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11741 else
11742 # Canadian cross, just use what we found
2aeb72e9
DD
11743 echo "$as_me:$LINENO: result: pre-installed" >&5
11744echo "${ECHO_T}pre-installed" >&6
e8b05380 11745 fi
2abefe3d
PB
11746else
11747 ok=yes
11748 case " ${configdirs} " in
11749 *" binutils "*) ;;
11750 *) ok=no ;;
11751 esac
1c710c3c 11752
2abefe3d
PB
11753 if test $ok = yes; then
11754 # An in-tree tool is available and we can use it
11755 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11756 echo "$as_me:$LINENO: result: just compiled" >&5
11757echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11758 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11759 # We already found the complete path
172e41aa 11760 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11761 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11762echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11763 elif test "x$target" = "x$host"; then
11764 # We can use an host tool
11765 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11766 echo "$as_me:$LINENO: result: host tool" >&5
11767echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11768 else
11769 # We need a cross tool
2aeb72e9
DD
11770 echo "$as_me:$LINENO: result: pre-installed" >&5
11771echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11772 fi
11773fi
0b0dc272 11774
2aeb72e9
DD
11775echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11776echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11777if test "x${build}" != "x${host}" ; then
e8b05380
PB
11778 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11779 # We already found the complete path
172e41aa 11780 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11781 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11782echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11783 else
11784 # Canadian cross, just use what we found
2aeb72e9
DD
11785 echo "$as_me:$LINENO: result: pre-installed" >&5
11786echo "${ECHO_T}pre-installed" >&6
e8b05380 11787 fi
2abefe3d
PB
11788else
11789 ok=yes
11790 case " ${configdirs} " in
11791 *" binutils "*) ;;
11792 *) ok=no ;;
11793 esac
1c710c3c 11794
2abefe3d
PB
11795 if test $ok = yes; then
11796 # An in-tree tool is available and we can use it
11797 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11798 echo "$as_me:$LINENO: result: just compiled" >&5
11799echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11800 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11801 # We already found the complete path
172e41aa 11802 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11803 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11804echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11805 elif test "x$target" = "x$host"; then
11806 # We can use an host tool
11807 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11808 echo "$as_me:$LINENO: result: host tool" >&5
11809echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11810 else
11811 # We need a cross tool
2aeb72e9
DD
11812 echo "$as_me:$LINENO: result: pre-installed" >&5
11813echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11814 fi
11815fi
0b0dc272 11816
2aeb72e9
DD
11817echo "$as_me:$LINENO: checking where to find the target strip" >&5
11818echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11819if test "x${build}" != "x${host}" ; then
e8b05380
PB
11820 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11821 # We already found the complete path
172e41aa 11822 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11823 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11824echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11825 else
11826 # Canadian cross, just use what we found
2aeb72e9
DD
11827 echo "$as_me:$LINENO: result: pre-installed" >&5
11828echo "${ECHO_T}pre-installed" >&6
e8b05380 11829 fi
2abefe3d
PB
11830else
11831 ok=yes
11832 case " ${configdirs} " in
11833 *" binutils "*) ;;
11834 *) ok=no ;;
11835 esac
1c710c3c 11836
2abefe3d
PB
11837 if test $ok = yes; then
11838 # An in-tree tool is available and we can use it
11839 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11840 echo "$as_me:$LINENO: result: just compiled" >&5
11841echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11842 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11843 # We already found the complete path
172e41aa 11844 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11845 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11846echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11847 elif test "x$target" = "x$host"; then
11848 # We can use an host tool
11849 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11850 echo "$as_me:$LINENO: result: host tool" >&5
11851echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11852 else
11853 # We need a cross tool
2aeb72e9
DD
11854 echo "$as_me:$LINENO: result: pre-installed" >&5
11855echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11856 fi
11857fi
0b0dc272 11858
2aeb72e9
DD
11859echo "$as_me:$LINENO: checking where to find the target windres" >&5
11860echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11861if test "x${build}" != "x${host}" ; then
e8b05380
PB
11862 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11863 # We already found the complete path
172e41aa 11864 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11865 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11866echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11867 else
11868 # Canadian cross, just use what we found
2aeb72e9
DD
11869 echo "$as_me:$LINENO: result: pre-installed" >&5
11870echo "${ECHO_T}pre-installed" >&6
e8b05380 11871 fi
2abefe3d
PB
11872else
11873 ok=yes
11874 case " ${configdirs} " in
11875 *" binutils "*) ;;
11876 *) ok=no ;;
11877 esac
1c710c3c 11878
2abefe3d
PB
11879 if test $ok = yes; then
11880 # An in-tree tool is available and we can use it
11881 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11882 echo "$as_me:$LINENO: result: just compiled" >&5
11883echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11884 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11885 # We already found the complete path
172e41aa 11886 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11887 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11888echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11889 elif test "x$target" = "x$host"; then
11890 # We can use an host tool
11891 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11892 echo "$as_me:$LINENO: result: host tool" >&5
11893echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11894 else
11895 # We need a cross tool
2aeb72e9
DD
11896 echo "$as_me:$LINENO: result: pre-installed" >&5
11897echo "${ECHO_T}pre-installed" >&6
2abefe3d 11898 fi
671aa708 11899fi
be912515 11900
901119ae
KT
11901echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11902echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11903if test "x${build}" != "x${host}" ; then
11904 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11905 # We already found the complete path
11906 ac_dir=`dirname $WINDMC_FOR_TARGET`
11907 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11908echo "${ECHO_T}pre-installed in $ac_dir" >&6
11909 else
11910 # Canadian cross, just use what we found
11911 echo "$as_me:$LINENO: result: pre-installed" >&5
11912echo "${ECHO_T}pre-installed" >&6
11913 fi
11914else
11915 ok=yes
11916 case " ${configdirs} " in
11917 *" binutils "*) ;;
11918 *) ok=no ;;
11919 esac
11920
11921 if test $ok = yes; then
11922 # An in-tree tool is available and we can use it
11923 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11924 echo "$as_me:$LINENO: result: just compiled" >&5
11925echo "${ECHO_T}just compiled" >&6
11926 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11927 # We already found the complete path
11928 ac_dir=`dirname $WINDMC_FOR_TARGET`
11929 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11930echo "${ECHO_T}pre-installed in $ac_dir" >&6
11931 elif test "x$target" = "x$host"; then
11932 # We can use an host tool
11933 WINDMC_FOR_TARGET='$(WINDMC)'
11934 echo "$as_me:$LINENO: result: host tool" >&5
11935echo "${ECHO_T}host tool" >&6
11936 else
11937 # We need a cross tool
11938 echo "$as_me:$LINENO: result: pre-installed" >&5
11939echo "${ECHO_T}pre-installed" >&6
11940 fi
11941fi
11942
be912515
NN
11943
11944
2abefe3d 11945
0b0dc272 11946
671aa708
NN
11947# Certain tools may need extra flags.
11948AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11949RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11950NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11951
2abefe3d
PB
11952# When building target libraries, except in a Canadian cross, we use
11953# the same toolchain as the compiler we just built.
11954COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11955COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11956COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11957if test $host = $build; then
11958 case " $configdirs " in
11959 *" gcc "*)
11960 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11961 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11962 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11963 ;;
11964 esac
11965fi
11966
11967
11968
11969
11970
2aeb72e9
DD
11971echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11972echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11973# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11974if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11975 enableval="$enable_maintainer_mode"
11976 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11977else
11978 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11979fi;
11980echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11981echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11982
11983
11984if test "$USE_MAINTAINER_MODE" = yes; then
11985 MAINTAINER_MODE_TRUE=
11986 MAINTAINER_MODE_FALSE='#'
11987else
11988 MAINTAINER_MODE_TRUE='#'
11989 MAINTAINER_MODE_FALSE=
1c710c3c 11990fi
ee03dc5e
AO
11991MAINT=$MAINTAINER_MODE_TRUE
11992
2805b53a
NN
11993# ---------------------
11994# GCC bootstrap support
11995# ---------------------
11996
11997# Stage specific cflags for build.
11998stage1_cflags="-g"
11999case $build in
12000 vax-*-*)
12001 case ${GCC} in
12002 yes) stage1_cflags="-g -Wa,-J" ;;
12003 *) stage1_cflags="-g -J" ;;
12004 esac ;;
2805b53a
NN
12005esac
12006
0b50988a
EB
12007# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12008if test "$GCC" = yes; then
12009 saved_CFLAGS="$CFLAGS"
12010
12011 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12012 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12013 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12014echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12015 cat >conftest.$ac_ext <<_ACEOF
12016/* confdefs.h. */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h. */
12021
9cc1244e
JJ
12022#if (__GNUC__ < 3) \
12023 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12024 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12025#error http://gcc.gnu.org/PR29382
12026#endif
12027
1c710c3c
DJ
12028int
12029main ()
12030{
12031
12032 ;
12033 return 0;
12034}
12035_ACEOF
12036rm -f conftest.$ac_objext
2aeb72e9
DD
12037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12044 (exit $ac_status); } &&
12045 { ac_try='test -z "$ac_c_werror_flag"
12046 || test ! -s conftest.err'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; } &&
12052 { ac_try='test -s conftest.$ac_objext'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 echo "$as_me:$LINENO: result: yes" >&5
12059echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12060else
12061 echo "$as_me: failed program was:" >&5
12062sed 's/^/| /' conftest.$ac_ext >&5
12063
2aeb72e9
DD
12064echo "$as_me:$LINENO: result: no" >&5
12065echo "${ECHO_T}no" >&6
1c710c3c 12066fi
2aeb72e9 12067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12068
12069 CFLAGS="$saved_CFLAGS"
12070fi
12071
12072
2805b53a 12073
8efea775 12074# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12075# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12076if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12077 enableval="$enable_stage1_checking"
12078 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12079else
e643dc23 12080 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12081 stage1_checking=--enable-checking=yes,types
8efea775 12082else
e643dc23 12083 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12084fi
2aeb72e9 12085fi;
8efea775
PB
12086
12087
2805b53a 12088# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12089# Check whether --enable-werror or --disable-werror was given.
2805b53a 12090if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12091 enableval="$enable_werror"
12092
2805b53a 12093else
416cfb5e 12094 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12095 enable_werror=yes
88fceb68
PB
12096else
12097 enable_werror=no
12098fi
2aeb72e9 12099fi;
09a9c095
NN
12100case ${enable_werror} in
12101 yes) stage2_werror_flag="--enable-werror-always" ;;
12102 *) stage2_werror_flag="" ;;
2805b53a
NN
12103esac
12104
12105
32845532 12106# Flags needed to enable html installing and building
1c710c3c 12107
2aeb72e9 12108# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12109if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12110 withval="$with_datarootdir"
12111 datarootdir="\${prefix}/${withval}"
32845532
CD
12112else
12113 datarootdir="\${prefix}/share"
2aeb72e9 12114fi;
32845532
CD
12115
12116
2aeb72e9 12117# Check whether --with-docdir or --without-docdir was given.
32845532 12118if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12119 withval="$with_docdir"
12120 docdir="\${prefix}/${withval}"
32845532
CD
12121else
12122 docdir="\${datarootdir}/doc"
2aeb72e9 12123fi;
32845532
CD
12124
12125
2aeb72e9 12126# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12127if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12128 withval="$with_pdfdir"
12129 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12130else
12131 pdfdir="\${docdir}"
2aeb72e9 12132fi;
9c4d2493
BM
12133
12134
2aeb72e9 12135# Check whether --with-htmldir or --without-htmldir was given.
32845532 12136if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12137 withval="$with_htmldir"
12138 htmldir="\${prefix}/${withval}"
32845532
CD
12139else
12140 htmldir="\${docdir}"
2aeb72e9 12141fi;
32845532
CD
12142
12143
12144
12145
172e41aa 12146
11a67599 12147
2aeb72e9 12148 ac_config_files="$ac_config_files Makefile"
1c710c3c 12149cat >confcache <<\_ACEOF
671aa708
NN
12150# This file is a shell script that caches the results of configure
12151# tests run on this system so they can be shared between configure
1c710c3c
DJ
12152# scripts and configure runs, see configure's option --config-cache.
12153# It is not useful on other systems. If it contains results you don't
12154# want to keep, you may remove or edit it.
671aa708 12155#
1c710c3c
DJ
12156# config.status only pays attention to the cache file if you give it
12157# the --recheck option to rerun configure.
671aa708 12158#
1c710c3c
DJ
12159# `ac_cv_env_foo' variables (set or unset) will be overridden when
12160# loading this file, other *unset* `ac_cv_foo' will be assigned the
12161# following values.
12162
12163_ACEOF
12164
671aa708
NN
12165# The following way of writing the cache mishandles newlines in values,
12166# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12167# So, don't put newlines in cache variables' values.
671aa708
NN
12168# Ultrix sh set writes to stderr and can't be redirected directly,
12169# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12170{
1c710c3c 12171 (set) 2>&1 |
2aeb72e9
DD
12172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12173 *ac_space=\ *)
1c710c3c
DJ
12174 # `set' does not quote correctly, so add quotes (double-quote
12175 # substitution turns \\\\ into \\, and sed turns \\ into \).
12176 sed -n \
12177 "s/'/'\\\\''/g;
12178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12179 ;;
1c710c3c
DJ
12180 *)
12181 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12182 sed -n \
12183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12184 ;;
2aeb72e9
DD
12185 esac;
12186} |
1c710c3c
DJ
12187 sed '
12188 t clear
2aeb72e9 12189 : clear
1c710c3c
DJ
12190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12191 t end
2aeb72e9
DD
12192 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12193 : end' >>confcache
12194if diff $cache_file confcache >/dev/null 2>&1; then :; else
12195 if test -w $cache_file; then
12196 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12197 cat confcache >$cache_file
671aa708 12198 else
2aeb72e9 12199 echo "not updating unwritable cache $cache_file"
671aa708 12200 fi
4977bab6 12201fi
671aa708 12202rm -f confcache
79c06341 12203
671aa708
NN
12204test "x$prefix" = xNONE && prefix=$ac_default_prefix
12205# Let make expand exec_prefix.
12206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12207
2aeb72e9
DD
12208# VPATH may cause trouble with some makes, so we remove $(srcdir),
12209# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12210# trailing colons and then remove the whole line if VPATH becomes empty
12211# (actually we leave an empty line to preserve line numbers).
12212if test "x$srcdir" = x.; then
12213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12214s/:*\$(srcdir):*/:/;
12215s/:*\${srcdir}:*/:/;
12216s/:*@srcdir@:*/:/;
12217s/^\([^=]*=[ ]*\):*/\1/;
12218s/:*$//;
12219s/^[^=]*=[ ]*$//;
12220}'
12221fi
12222
671aa708
NN
12223# Transform confdefs.h into DEFS.
12224# Protect against shell expansion while executing Makefile rules.
12225# Protect against Makefile macro expansion.
1c710c3c
DJ
12226#
12227# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12228# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12229# look for a macro that doesn't take arguments.
2aeb72e9 12230cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12231t clear
2aeb72e9
DD
12232: clear
12233s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12234t quote
2aeb72e9 12235s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12236t quote
2aeb72e9
DD
12237d
12238: quote
12239s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12240s,\[,\\&,g
12241s,\],\\&,g
12242s,\$,$$,g
12243p
12244_ACEOF
12245# We use echo to avoid assuming a particular line-breaking character.
12246# The extra dot is to prevent the shell from consuming trailing
12247# line-breaks from the sub-command output. A line-break within
12248# single-quotes doesn't work because, if this script is created in a
12249# platform that uses two characters for line-breaks (e.g., DOS), tr
12250# would break.
12251ac_LF_and_DOT=`echo; echo .`
12252DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12253rm -f confdef2opt.sed
1c710c3c
DJ
12254
12255
12256ac_libobjs=
12257ac_ltlibobjs=
12258for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12259 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12260 ac_i=`echo "$ac_i" |
12261 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12262 # 2. Add them.
12263 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12264 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12265done
12266LIBOBJS=$ac_libobjs
fb0103e5 12267
1c710c3c 12268LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12269
af71363e 12270
1c710c3c
DJ
12271
12272: ${CONFIG_STATUS=./config.status}
12273ac_clean_files_save=$ac_clean_files
12274ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12275{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12276echo "$as_me: creating $CONFIG_STATUS" >&6;}
12277cat >$CONFIG_STATUS <<_ACEOF
12278#! $SHELL
12279# Generated by $as_me.
671aa708 12280# Run this file to recreate the current configuration.
671aa708 12281# Compiler output produced by configure, useful for debugging
1c710c3c 12282# configure, is in config.log if it exists.
0b0dc272 12283
1c710c3c
DJ
12284debug=false
12285ac_cs_recheck=false
12286ac_cs_silent=false
12287SHELL=\${CONFIG_SHELL-$SHELL}
12288_ACEOF
12289
12290cat >>$CONFIG_STATUS <<\_ACEOF
12291## --------------------- ##
12292## M4sh Initialization. ##
12293## --------------------- ##
12294
2aeb72e9 12295# Be Bourne compatible
1c710c3c
DJ
12296if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12297 emulate sh
12298 NULLCMD=:
12299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12300 # is contrary to our usage. Disable this feature.
12301 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12302elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12303 set -o posix
1c710c3c 12304fi
2aeb72e9 12305DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12306
12307# Support unset when possible.
12308if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12309 as_unset=unset
12310else
12311 as_unset=false
12312fi
12313
12314
12315# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12316$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12317PS1='$ '
12318PS2='> '
12319PS4='+ '
12320
12321# NLS nuisances.
12322for as_var in \
12323 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12324 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12325 LC_TELEPHONE LC_TIME
12326do
12327 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12328 eval $as_var=C; export $as_var
12329 else
2aeb72e9 12330 $as_unset $as_var
1c710c3c
DJ
12331 fi
12332done
12333
12334# Required to use basename.
2aeb72e9 12335if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12336 as_expr=expr
12337else
12338 as_expr=false
12339fi
12340
2aeb72e9 12341if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12342 as_basename=basename
12343else
12344 as_basename=false
12345fi
12346
12347
12348# Name of the executable.
2aeb72e9 12349as_me=`$as_basename "$0" ||
1c710c3c
DJ
12350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12351 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12352 X"$0" : 'X\(/\)$' \| \
12353 . : '\(.\)' 2>/dev/null ||
1c710c3c 12354echo X/"$0" |
2aeb72e9
DD
12355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12356 /^X\/\(\/\/\)$/{ s//\1/; q; }
12357 /^X\/\(\/\).*/{ s//\1/; q; }
12358 s/.*/./; q'`
1c710c3c 12359
2aeb72e9
DD
12360
12361# PATH needs CR, and LINENO needs CR and PATH.
12362# Avoid depending upon Character Ranges.
12363as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12364as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12365as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12366as_cr_digits='0123456789'
12367as_cr_alnum=$as_cr_Letters$as_cr_digits
12368
12369# The user is always right.
12370if test "${PATH_SEPARATOR+set}" != set; then
12371 echo "#! /bin/sh" >conf$$.sh
12372 echo "exit 0" >>conf$$.sh
12373 chmod +x conf$$.sh
12374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12375 PATH_SEPARATOR=';'
12376 else
12377 PATH_SEPARATOR=:
12378 fi
12379 rm -f conf$$.sh
12380fi
1c710c3c
DJ
12381
12382
2aeb72e9
DD
12383 as_lineno_1=$LINENO
12384 as_lineno_2=$LINENO
12385 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12386 test "x$as_lineno_1" != "x$as_lineno_2" &&
12387 test "x$as_lineno_3" = "x$as_lineno_2" || {
12388 # Find who we are. Look in the path if we contain no path at all
12389 # relative or not.
12390 case $0 in
12391 *[\\/]* ) as_myself=$0 ;;
12392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393for as_dir in $PATH
12394do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
12397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12398done
1c710c3c 12399
2aeb72e9
DD
12400 ;;
12401 esac
12402 # We did not find ourselves, most probably we were run as `sh COMMAND'
12403 # in which case we are not to be found in the path.
12404 if test "x$as_myself" = x; then
12405 as_myself=$0
12406 fi
12407 if test ! -f "$as_myself"; then
12408 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12409echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12410 { (exit 1); exit 1; }; }
12411 fi
12412 case $CONFIG_SHELL in
12413 '')
12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
12419 for as_base in sh bash ksh sh5; do
12420 case $as_dir in
12421 /*)
12422 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12423 as_lineno_1=$LINENO
12424 as_lineno_2=$LINENO
2aeb72e9 12425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12426 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12427 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12428 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12429 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12430 CONFIG_SHELL=$as_dir/$as_base
12431 export CONFIG_SHELL
12432 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12433 fi;;
12434 esac
12435 done
12436done
12437;;
12438 esac
1c710c3c
DJ
12439
12440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12441 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12442 # line-number line before each line; the second 'sed' does the real
12443 # work. The second script uses 'N' to pair each line-number line
12444 # with the numbered line, and appends trailing '-' during
12445 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12447 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12448 sed '=' <$as_myself |
1c710c3c
DJ
12449 sed '
12450 N
2aeb72e9
DD
12451 s,$,-,
12452 : loop
12453 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12454 t loop
2aeb72e9
DD
12455 s,-$,,
12456 s,^['$as_cr_digits']*\n,,
1c710c3c 12457 ' >$as_me.lineno &&
2aeb72e9
DD
12458 chmod +x $as_me.lineno ||
12459 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12460echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12461 { (exit 1); exit 1; }; }
12462
12463 # Don't try to exec as it changes $[0], causing all sort of problems
12464 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12465 # original and so on. Autoconf is especially sensible to this).
12466 . ./$as_me.lineno
1c710c3c
DJ
12467 # Exit status is that of the last command.
12468 exit
12469}
12470
12471
2aeb72e9
DD
12472case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12473 *c*,-n*) ECHO_N= ECHO_C='
12474' ECHO_T=' ' ;;
12475 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12476 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12477esac
12478
2aeb72e9 12479if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12480 as_expr=expr
12481else
12482 as_expr=false
12483fi
12484
12485rm -f conf$$ conf$$.exe conf$$.file
12486echo >conf$$.file
12487if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12488 # We could just check for DJGPP; but this test a) works b) is more generic
12489 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12490 if test -f conf$$.exe; then
12491 # Don't use ln at all; we don't have any links
1c710c3c 12492 as_ln_s='cp -p'
2aeb72e9
DD
12493 else
12494 as_ln_s='ln -s'
12495 fi
1c710c3c
DJ
12496elif ln conf$$.file conf$$ 2>/dev/null; then
12497 as_ln_s=ln
12498else
12499 as_ln_s='cp -p'
12500fi
2aeb72e9 12501rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12502
12503if mkdir -p . 2>/dev/null; then
12504 as_mkdir_p=:
12505else
12506 test -d ./-p && rmdir ./-p
12507 as_mkdir_p=false
12508fi
12509
2aeb72e9 12510as_executable_p="test -f"
1c710c3c
DJ
12511
12512# Sed expression to map a string onto a valid CPP name.
12513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12514
12515# Sed expression to map a string onto a valid variable name.
12516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12517
12518
2aeb72e9
DD
12519# IFS
12520# We need space, tab and new line, in precisely that order.
12521as_nl='
12522'
12523IFS=" $as_nl"
12524
12525# CDPATH.
12526$as_unset CDPATH
12527
1c710c3c
DJ
12528exec 6>&1
12529
2aeb72e9 12530# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12531# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12532# values after options handling. Logging --version etc. is OK.
12533exec 5>>config.log
12534{
12535 echo
12536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12537## Running $as_me. ##
12538_ASBOX
12539} >&5
12540cat >&5 <<_CSEOF
12541
1c710c3c 12542This file was extended by $as_me, which was
2aeb72e9 12543generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12544
12545 CONFIG_FILES = $CONFIG_FILES
12546 CONFIG_HEADERS = $CONFIG_HEADERS
12547 CONFIG_LINKS = $CONFIG_LINKS
12548 CONFIG_COMMANDS = $CONFIG_COMMANDS
12549 $ $0 $@
12550
2aeb72e9
DD
12551_CSEOF
12552echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12553echo >&5
1c710c3c
DJ
12554_ACEOF
12555
12556# Files that config.status was made for.
2aeb72e9
DD
12557if test -n "$ac_config_files"; then
12558 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12559fi
1c710c3c 12560
2aeb72e9
DD
12561if test -n "$ac_config_headers"; then
12562 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12563fi
12564
12565if test -n "$ac_config_links"; then
12566 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12567fi
12568
12569if test -n "$ac_config_commands"; then
12570 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12571fi
1c710c3c
DJ
12572
12573cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12574
1c710c3c
DJ
12575ac_cs_usage="\
12576\`$as_me' instantiates files from templates according to the
12577current configuration.
12578
12579Usage: $0 [OPTIONS] [FILE]...
12580
12581 -h, --help print this help, then exit
2aeb72e9 12582 -V, --version print version number, then exit
1c710c3c
DJ
12583 -q, --quiet do not print progress messages
12584 -d, --debug don't remove temporary files
12585 --recheck update $as_me by reconfiguring in the same conditions
12586 --file=FILE[:TEMPLATE]
12587 instantiate the configuration file FILE
12588
12589Configuration files:
12590$config_files
12591
12592Report bugs to <bug-autoconf@gnu.org>."
11a67599 12593_ACEOF
2aeb72e9 12594
1c710c3c
DJ
12595cat >>$CONFIG_STATUS <<_ACEOF
12596ac_cs_version="\\
12597config.status
2aeb72e9
DD
12598configured by $0, generated by GNU Autoconf 2.59,
12599 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12600
2aeb72e9 12601Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12602This config.status script is free software; the Free Software Foundation
12603gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12604srcdir=$srcdir
12605INSTALL="$INSTALL"
1c710c3c
DJ
12606_ACEOF
12607
12608cat >>$CONFIG_STATUS <<\_ACEOF
12609# If no file are specified by the user, then we need to provide default
12610# value. By we need to know if files were specified by the user.
12611ac_need_defaults=:
12612while test $# != 0
a4b9e93e 12613do
1c710c3c
DJ
12614 case $1 in
12615 --*=*)
2aeb72e9
DD
12616 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12617 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12618 ac_shift=:
12619 ;;
2aeb72e9 12620 -*)
1c710c3c
DJ
12621 ac_option=$1
12622 ac_optarg=$2
12623 ac_shift=shift
12624 ;;
2aeb72e9
DD
12625 *) # This is not an option, so the user has probably given explicit
12626 # arguments.
12627 ac_option=$1
12628 ac_need_defaults=false;;
1c710c3c
DJ
12629 esac
12630
12631 case $ac_option in
12632 # Handling of the options.
2aeb72e9
DD
12633_ACEOF
12634cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12636 ac_cs_recheck=: ;;
2aeb72e9
DD
12637 --version | --vers* | -V )
12638 echo "$ac_cs_version"; exit 0 ;;
12639 --he | --h)
12640 # Conflict between --help and --header
12641 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12642Try \`$0 --help' for more information." >&5
12643echo "$as_me: error: ambiguous option: $1
12644Try \`$0 --help' for more information." >&2;}
12645 { (exit 1); exit 1; }; };;
12646 --help | --hel | -h )
12647 echo "$ac_cs_usage"; exit 0 ;;
12648 --debug | --d* | -d )
1c710c3c
DJ
12649 debug=: ;;
12650 --file | --fil | --fi | --f )
12651 $ac_shift
12652 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12653 ac_need_defaults=false;;
2aeb72e9
DD
12654 --header | --heade | --head | --hea )
12655 $ac_shift
12656 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12657 ac_need_defaults=false;;
1c710c3c
DJ
12658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12660 ac_cs_silent=: ;;
12661
12662 # This is an error.
2aeb72e9
DD
12663 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12664Try \`$0 --help' for more information." >&5
12665echo "$as_me: error: unrecognized option: $1
12666Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12667 { (exit 1); exit 1; }; } ;;
12668
2aeb72e9 12669 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12670
0b0dc272 12671 esac
1c710c3c 12672 shift
0b0dc272
AM
12673done
12674
1c710c3c 12675ac_configure_extra_args=
0b0dc272 12676
1c710c3c
DJ
12677if $ac_cs_silent; then
12678 exec 6>/dev/null
12679 ac_configure_extra_args="$ac_configure_extra_args --silent"
12680fi
0b0dc272 12681
1c710c3c
DJ
12682_ACEOF
12683cat >>$CONFIG_STATUS <<_ACEOF
12684if \$ac_cs_recheck; then
2aeb72e9
DD
12685 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12686 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12687fi
12688
12689_ACEOF
12690
1c710c3c 12691
11a67599 12692
2aeb72e9
DD
12693
12694
12695cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12696for ac_config_target in $ac_config_targets
12697do
2aeb72e9
DD
12698 case "$ac_config_target" in
12699 # Handling of arguments.
12700 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12702echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12703 { (exit 1); exit 1; }; };;
12704 esac
12705done
12706
12707# If the user did not use the arguments to specify the items to instantiate,
12708# then the envvar interface is used. Set only those that are not.
12709# We use the long form for the default assignment because of an extremely
12710# bizarre bug on SunOS 4.1.3.
12711if $ac_need_defaults; then
12712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12713fi
12714
12715# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12716# simply because there is no reason to put it here, and in addition,
1c710c3c 12717# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12718# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12719$debug ||
12720{
2aeb72e9 12721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12722 trap '{ (exit 1); exit 1; }' 1 2 13 15
12723}
2aeb72e9 12724
1c710c3c
DJ
12725# Create a (secure) tmp directory for tmp files.
12726
12727{
2aeb72e9 12728 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12729 test -n "$tmp" && test -d "$tmp"
12730} ||
12731{
2aeb72e9
DD
12732 tmp=./confstat$$-$RANDOM
12733 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12734} ||
12735{
12736 echo "$me: cannot create a temporary directory in ." >&2
12737 { (exit 1); exit 1; }
12738}
12739
2aeb72e9
DD
12740_ACEOF
12741
12742cat >>$CONFIG_STATUS <<_ACEOF
12743
1c710c3c 12744#
2aeb72e9 12745# CONFIG_FILES section.
1c710c3c
DJ
12746#
12747
12748# No need to generate the scripts if there are no CONFIG_FILES.
12749# This happens for instance when ./config.status config.h
2aeb72e9
DD
12750if test -n "\$CONFIG_FILES"; then
12751 # Protect against being on the right side of a sed subst in config.status.
12752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12754s,@SHELL@,$SHELL,;t t
12755s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12756s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12757s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12758s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12759s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12760s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12761s,@exec_prefix@,$exec_prefix,;t t
12762s,@prefix@,$prefix,;t t
12763s,@program_transform_name@,$program_transform_name,;t t
12764s,@bindir@,$bindir,;t t
12765s,@sbindir@,$sbindir,;t t
12766s,@libexecdir@,$libexecdir,;t t
12767s,@datadir@,$datadir,;t t
12768s,@sysconfdir@,$sysconfdir,;t t
12769s,@sharedstatedir@,$sharedstatedir,;t t
12770s,@localstatedir@,$localstatedir,;t t
12771s,@libdir@,$libdir,;t t
12772s,@includedir@,$includedir,;t t
12773s,@oldincludedir@,$oldincludedir,;t t
12774s,@infodir@,$infodir,;t t
12775s,@mandir@,$mandir,;t t
12776s,@build_alias@,$build_alias,;t t
12777s,@host_alias@,$host_alias,;t t
12778s,@target_alias@,$target_alias,;t t
12779s,@DEFS@,$DEFS,;t t
12780s,@ECHO_C@,$ECHO_C,;t t
12781s,@ECHO_N@,$ECHO_N,;t t
12782s,@ECHO_T@,$ECHO_T,;t t
12783s,@LIBS@,$LIBS,;t t
12784s,@build@,$build,;t t
12785s,@build_cpu@,$build_cpu,;t t
12786s,@build_vendor@,$build_vendor,;t t
12787s,@build_os@,$build_os,;t t
12788s,@build_noncanonical@,$build_noncanonical,;t t
12789s,@host_noncanonical@,$host_noncanonical,;t t
12790s,@target_noncanonical@,$target_noncanonical,;t t
12791s,@host@,$host,;t t
12792s,@host_cpu@,$host_cpu,;t t
12793s,@host_vendor@,$host_vendor,;t t
12794s,@host_os@,$host_os,;t t
12795s,@target@,$target,;t t
12796s,@target_cpu@,$target_cpu,;t t
12797s,@target_vendor@,$target_vendor,;t t
12798s,@target_os@,$target_os,;t t
12799s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12800s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12801s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12802s,@LN@,$LN,;t t
12803s,@LN_S@,$LN_S,;t t
12804s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12805s,@build_libsubdir@,$build_libsubdir,;t t
12806s,@build_subdir@,$build_subdir,;t t
12807s,@host_subdir@,$host_subdir,;t t
12808s,@target_subdir@,$target_subdir,;t t
12809s,@CC@,$CC,;t t
12810s,@CFLAGS@,$CFLAGS,;t t
12811s,@LDFLAGS@,$LDFLAGS,;t t
12812s,@CPPFLAGS@,$CPPFLAGS,;t t
12813s,@ac_ct_CC@,$ac_ct_CC,;t t
12814s,@EXEEXT@,$EXEEXT,;t t
12815s,@OBJEXT@,$OBJEXT,;t t
12816s,@CXX@,$CXX,;t t
12817s,@CXXFLAGS@,$CXXFLAGS,;t t
12818s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12819s,@GNATBIND@,$GNATBIND,;t t
12820s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12821s,@GNATMAKE@,$GNATMAKE,;t t
12822s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12823s,@do_compare@,$do_compare,;t t
12824s,@gmplibs@,$gmplibs,;t t
12825s,@gmpinc@,$gmpinc,;t t
12826s,@stage1_languages@,$stage1_languages,;t t
12827s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 12828s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
2aeb72e9
DD
12829s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12830s,@tooldir@,$tooldir,;t t
12831s,@build_tooldir@,$build_tooldir,;t t
12832s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12833s,@GDB_TK@,$GDB_TK,;t t
12834s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12835s,@build_configargs@,$build_configargs,;t t
12836s,@build_configdirs@,$build_configdirs,;t t
12837s,@host_configargs@,$host_configargs,;t t
12838s,@configdirs@,$configdirs,;t t
12839s,@target_configargs@,$target_configargs,;t t
0999159b
PB
12840s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12841s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 12842s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
12843s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12844s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12845s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12846s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12847s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12848s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12849s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12850s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12851s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12852s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12853s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12854s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
12855s,@config_shell@,$config_shell,;t t
12856s,@YACC@,$YACC,;t t
12857s,@BISON@,$BISON,;t t
12858s,@M4@,$M4,;t t
12859s,@LEX@,$LEX,;t t
12860s,@FLEX@,$FLEX,;t t
12861s,@MAKEINFO@,$MAKEINFO,;t t
12862s,@EXPECT@,$EXPECT,;t t
12863s,@RUNTEST@,$RUNTEST,;t t
12864s,@AR@,$AR,;t t
12865s,@AS@,$AS,;t t
12866s,@DLLTOOL@,$DLLTOOL,;t t
12867s,@LD@,$LD,;t t
12868s,@LIPO@,$LIPO,;t t
12869s,@NM@,$NM,;t t
12870s,@RANLIB@,$RANLIB,;t t
12871s,@STRIP@,$STRIP,;t t
12872s,@WINDRES@,$WINDRES,;t t
901119ae 12873s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12874s,@OBJCOPY@,$OBJCOPY,;t t
12875s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
12876s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12877s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12878s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12879s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12880s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12881s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12882s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12883s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12884s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12885s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12886s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12887s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12888s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12889s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12890s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12891s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12892s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12893s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12894s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12895s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12896s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12897s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12898s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12899s,@MAINT@,$MAINT,;t t
12900s,@stage1_cflags@,$stage1_cflags,;t t
12901s,@stage1_checking@,$stage1_checking,;t t
12902s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12903s,@datarootdir@,$datarootdir,;t t
12904s,@docdir@,$docdir,;t t
12905s,@pdfdir@,$pdfdir,;t t
12906s,@htmldir@,$htmldir,;t t
12907s,@LIBOBJS@,$LIBOBJS,;t t
12908s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12909/@serialization_dependencies@/r $serialization_dependencies
12910s,@serialization_dependencies@,,;t t
12911/@host_makefile_frag@/r $host_makefile_frag
12912s,@host_makefile_frag@,,;t t
12913/@target_makefile_frag@/r $target_makefile_frag
12914s,@target_makefile_frag@,,;t t
12915/@alphaieee_frag@/r $alphaieee_frag
12916s,@alphaieee_frag@,,;t t
12917/@ospace_frag@/r $ospace_frag
12918s,@ospace_frag@,,;t t
12919CEOF
79c06341 12920
1c710c3c
DJ
12921_ACEOF
12922
2aeb72e9
DD
12923 cat >>$CONFIG_STATUS <<\_ACEOF
12924 # Split the substitutions into bite-sized pieces for seds with
12925 # small command number limits, like on Digital OSF/1 and HP-UX.
12926 ac_max_sed_lines=48
12927 ac_sed_frag=1 # Number of current file.
12928 ac_beg=1 # First line for current file.
12929 ac_end=$ac_max_sed_lines # Line after last line for current file.
12930 ac_more_lines=:
12931 ac_sed_cmds=
12932 while $ac_more_lines; do
12933 if test $ac_beg -gt 1; then
12934 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12935 else
12936 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12937 fi
12938 if test ! -s $tmp/subs.frag; then
12939 ac_more_lines=false
12940 else
12941 # The purpose of the label and of the branching condition is to
12942 # speed up the sed processing (if there are no `@' at all, there
12943 # is no need to browse any of the substitutions).
12944 # These are the two extra sed commands mentioned above.
12945 (echo ':t
12946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12947 if test -z "$ac_sed_cmds"; then
12948 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12949 else
12950 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12951 fi
12952 ac_sed_frag=`expr $ac_sed_frag + 1`
12953 ac_beg=$ac_end
12954 ac_end=`expr $ac_end + $ac_max_sed_lines`
12955 fi
12956 done
12957 if test -z "$ac_sed_cmds"; then
12958 ac_sed_cmds=cat
11a67599 12959 fi
2aeb72e9 12960fi # test -n "$CONFIG_FILES"
11a67599 12961
11a67599 12962_ACEOF
1c710c3c 12963cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12964for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12966 case $ac_file in
12967 - | *:- | *:-:* ) # input from stdin
12968 cat >$tmp/stdin
12969 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12970 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12971 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12972 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12973 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12974 esac
12975
2aeb72e9
DD
12976 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12977 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12978$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12979 X"$ac_file" : 'X\(//\)[^/]' \| \
12980 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12981 X"$ac_file" : 'X\(/\)' \| \
12982 . : '\(.\)' 2>/dev/null ||
1c710c3c 12983echo X"$ac_file" |
2aeb72e9
DD
12984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12986 /^X\(\/\/\)$/{ s//\1/; q; }
12987 /^X\(\/\).*/{ s//\1/; q; }
12988 s/.*/./; q'`
12989 { if $as_mkdir_p; then
12990 mkdir -p "$ac_dir"
12991 else
12992 as_dir="$ac_dir"
1c710c3c 12993 as_dirs=
2aeb72e9
DD
12994 while test ! -d "$as_dir"; do
12995 as_dirs="$as_dir $as_dirs"
12996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12998 X"$as_dir" : 'X\(//\)[^/]' \| \
12999 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13000 X"$as_dir" : 'X\(/\)' \| \
13001 . : '\(.\)' 2>/dev/null ||
1c710c3c 13002echo X"$as_dir" |
2aeb72e9
DD
13003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13005 /^X\(\/\/\)$/{ s//\1/; q; }
13006 /^X\(\/\).*/{ s//\1/; q; }
13007 s/.*/./; q'`
1c710c3c 13008 done
2aeb72e9
DD
13009 test ! -n "$as_dirs" || mkdir $as_dirs
13010 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13011echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13012 { (exit 1); exit 1; }; }; }
2aeb72e9 13013
1c710c3c 13014 ac_builddir=.
0b0dc272 13015
2aeb72e9 13016if test "$ac_dir" != .; then
1c710c3c 13017 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13018 # A "../" for each directory in $ac_dir_suffix.
13019 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13020else
13021 ac_dir_suffix= ac_top_builddir=
13022fi
1c710c3c
DJ
13023
13024case $srcdir in
2aeb72e9 13025 .) # No --srcdir option. We are building in place.
1c710c3c 13026 ac_srcdir=.
2aeb72e9
DD
13027 if test -z "$ac_top_builddir"; then
13028 ac_top_srcdir=.
13029 else
13030 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13031 fi ;;
13032 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13033 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13034 ac_top_srcdir=$srcdir ;;
13035 *) # Relative path.
13036 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13037 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13038esac
a4b9e93e 13039
2aeb72e9
DD
13040# Do not use `cd foo && pwd` to compute absolute paths, because
13041# the directories may not exist.
13042case `pwd` in
13043.) ac_abs_builddir="$ac_dir";;
13044*)
13045 case "$ac_dir" in
13046 .) ac_abs_builddir=`pwd`;;
13047 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13048 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13049 esac;;
13050esac
13051case $ac_abs_builddir in
13052.) ac_abs_top_builddir=${ac_top_builddir}.;;
13053*)
13054 case ${ac_top_builddir}. in
13055 .) ac_abs_top_builddir=$ac_abs_builddir;;
13056 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13057 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13058 esac;;
13059esac
13060case $ac_abs_builddir in
13061.) ac_abs_srcdir=$ac_srcdir;;
13062*)
13063 case $ac_srcdir in
13064 .) ac_abs_srcdir=$ac_abs_builddir;;
13065 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13066 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13067 esac;;
13068esac
13069case $ac_abs_builddir in
13070.) ac_abs_top_srcdir=$ac_top_srcdir;;
13071*)
13072 case $ac_top_srcdir in
13073 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13074 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13075 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13076 esac;;
13077esac
0b0dc272 13078
1c710c3c
DJ
13079
13080 case $INSTALL in
13081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13082 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13083 esac
11a67599 13084
2aeb72e9
DD
13085 if test x"$ac_file" != x-; then
13086 { echo "$as_me:$LINENO: creating $ac_file" >&5
13087echo "$as_me: creating $ac_file" >&6;}
13088 rm -f "$ac_file"
13089 fi
13090 # Let's still pretend it is `configure' which instantiates (i.e., don't
13091 # use $as_me), people would be surprised to read:
13092 # /* config.h. Generated by config.status. */
13093 if test x"$ac_file" = x-; then
13094 configure_input=
13095 else
13096 configure_input="$ac_file. "
13097 fi
13098 configure_input=$configure_input"Generated from `echo $ac_file_in |
13099 sed 's,.*/,,'` by configure."
13100
13101 # First look for the input files in the build tree, otherwise in the
13102 # src tree.
13103 ac_file_inputs=`IFS=:
13104 for f in $ac_file_in; do
13105 case $f in
13106 -) echo $tmp/stdin ;;
13107 [\\/$]*)
13108 # Absolute (can't be DOS-style, as IFS=:)
13109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13110echo "$as_me: error: cannot find input file: $f" >&2;}
13111 { (exit 1); exit 1; }; }
13112 echo "$f";;
13113 *) # Relative
13114 if test -f "$f"; then
13115 # Build tree
13116 echo "$f"
13117 elif test -f "$srcdir/$f"; then
13118 # Source tree
13119 echo "$srcdir/$f"
13120 else
13121 # /dev/null tree
13122 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13123echo "$as_me: error: cannot find input file: $f" >&2;}
13124 { (exit 1); exit 1; }; }
13125 fi;;
13126 esac
13127 done` || { (exit 1); exit 1; }
11a67599 13128_ACEOF
1c710c3c
DJ
13129cat >>$CONFIG_STATUS <<_ACEOF
13130 sed "$ac_vpsub
13131$extrasub
13132_ACEOF
13133cat >>$CONFIG_STATUS <<\_ACEOF
13134:t
13135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13136s,@configure_input@,$configure_input,;t t
13137s,@srcdir@,$ac_srcdir,;t t
13138s,@abs_srcdir@,$ac_abs_srcdir,;t t
13139s,@top_srcdir@,$ac_top_srcdir,;t t
13140s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13141s,@builddir@,$ac_builddir,;t t
13142s,@abs_builddir@,$ac_abs_builddir,;t t
13143s,@top_builddir@,$ac_top_builddir,;t t
13144s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13145s,@INSTALL@,$ac_INSTALL,;t t
13146" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13147 rm -f $tmp/stdin
13148 if test x"$ac_file" != x-; then
13149 mv $tmp/out $ac_file
13150 else
13151 cat $tmp/out
13152 rm -f $tmp/out
13153 fi
11a67599 13154
2aeb72e9
DD
13155done
13156_ACEOF
11a67599 13157
2aeb72e9 13158cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13159
1c710c3c
DJ
13160{ (exit 0); exit 0; }
13161_ACEOF
671aa708 13162chmod +x $CONFIG_STATUS
1c710c3c
DJ
13163ac_clean_files=$ac_clean_files_save
13164
13165
13166# configure is writing to config.log, and then calls config.status.
13167# config.status does its own redirection, appending to config.log.
13168# Unfortunately, on DOS this fails, as config.log is still kept open
13169# by configure, so config.status won't be able to write to it; its
13170# output is simply discarded. So we exec the FD to /dev/null,
13171# effectively closing config.log, so it can be properly (re)opened and
13172# appended to by config.status. When coming back to configure, we
13173# need to make the FD available again.
13174if test "$no_create" != yes; then
13175 ac_cs_success=:
13176 ac_config_status_args=
13177 test "$silent" = yes &&
13178 ac_config_status_args="$ac_config_status_args --quiet"
13179 exec 5>/dev/null
13180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13181 exec 5>>config.log
13182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13183 # would make configure fail if this is the last instruction.
13184 $ac_cs_success || { (exit 1); exit 1; }
13185fi
79c06341 13186
This page took 2.766776 seconds and 5 git commands to generate.