]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
* gfortran.dg/nint_2.f90: Revert previous commit.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
2aeb72e9 3# Generated by GNU Autoconf 2.59.
671aa708 4#
2aeb72e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
2aeb72e9 12# Be Bourne compatible
1c710c3c
DJ
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
1c710c3c 21fi
2aeb72e9 22DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 33$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
2aeb72e9 47 $as_unset $as_var
1c710c3c
DJ
48 fi
49done
50
51# Required to use basename.
2aeb72e9 52if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
53 as_expr=expr
54else
55 as_expr=false
56fi
57
2aeb72e9 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
2aeb72e9 66as_me=`$as_basename "$0" ||
1c710c3c
DJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
1c710c3c 71echo X/"$0" |
2aeb72e9
DD
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
1c710c3c 76
1c710c3c 77
2aeb72e9
DD
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 85
2aeb72e9
DD
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
11a67599
ZW
97fi
98
11a67599 99
2aeb72e9
DD
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
11a67599 116
2aeb72e9
DD
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
1c710c3c
DJ
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
2aeb72e9
DD
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
1c710c3c 137 /*)
2aeb72e9 138 if ("$as_dir/$as_base" -c '
11a67599
ZW
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
2aeb72e9 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11a67599 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
1c710c3c
DJ
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
1c710c3c 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
1c710c3c
DJ
165 sed '
166 N
2aeb72e9
DD
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 170 t loop
2aeb72e9
DD
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
1c710c3c 173 ' >$as_me.lineno &&
2aeb72e9 174 chmod +x $as_me.lineno ||
1c710c3c
DJ
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
1c710c3c
DJ
182 # Exit status is that of the last command.
183 exit
184}
185
186
2aeb72e9
DD
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
192esac
193
2aeb72e9 194if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
1c710c3c 207 as_ln_s='cp -p'
2aeb72e9
DD
208 else
209 as_ln_s='ln -s'
210 fi
1c710c3c
DJ
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
2aeb72e9 216rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
2aeb72e9 225as_executable_p="test -f"
0b0dc272 226
1c710c3c
DJ
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
2aeb72e9
DD
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
1c710c3c
DJ
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
2aeb72e9
DD
249exec 6>&1
250
1c710c3c
DJ
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
2aeb72e9
DD
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
1c710c3c
DJ
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
c8aea42c 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
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
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
2aeb72e9
DD
880_ACEOF
881
882 cat <<_ACEOF
1c710c3c
DJ
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
923fi
924
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
30b74385
RW
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 935 stage1. Mostly useful for compiler development.
30b74385
RW
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
1c710c3c 941 sub-packages for the host, target or build
30b74385 942 machine, or all sub-packages
1c710c3c
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
30b74385
RW
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
1c710c3c
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
30b74385
RW
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
30b74385
RW
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
1c710c3c 967 use sysroot as the system root during the build
c8aea42c
PB
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
30b74385 970 --with-build-time-tools=PATH
1c710c3c 971 use given path to find target tools during the build
30b74385
RW
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
1c710c3c
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
2aeb72e9
DD
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
c3a86da9
DJ
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
278a7a38
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
901119ae 995 WINDMC WINDMC for the host
278a7a38
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
901119ae
KT
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
1c710c3c
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
2aeb72e9 1039 ac_popdir=`pwd`
1c710c3c 1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1041 test -d $ac_dir || continue
1c710c3c
DJ
1042 ac_builddir=.
1043
2aeb72e9 1044if test "$ac_dir" != .; then
1c710c3c 1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1c710c3c
DJ
1051
1052case $srcdir in
2aeb72e9 1053 .) # No --srcdir option. We are building in place.
1c710c3c 1054 ac_srcdir=.
2aeb72e9
DD
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1061 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1c710c3c 1105esac
2aeb72e9
DD
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1c710c3c
DJ
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1121 fi
1122 cd $ac_popdir
1c710c3c
DJ
1123 done
1124fi
1125
2aeb72e9 1126test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
2aeb72e9 1130Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
2aeb72e9 1134 exit 0
0b0dc272 1135fi
2aeb72e9
DD
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1c710c3c
DJ
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
2aeb72e9 1142generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
2aeb72e9 1200ac_sep=
1c710c3c
DJ
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
2aeb72e9 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
2aeb72e9
DD
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1c710c3c
DJ
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
2aeb72e9
DD
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1260{
1c710c3c 1261 (set) 2>&1 |
2aeb72e9
DD
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1c710c3c 1264 sed -n \
2aeb72e9
DD
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1c710c3c 1268 *)
2aeb72e9
DD
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1271 ;;
2aeb72e9
DD
1272 esac;
1273}
1c710c3c
DJ
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
2aeb72e9
DD
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
2aeb72e9
DD
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1c710c3c
DJ
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
2aeb72e9
DD
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
2aeb72e9 1311 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
2aeb72e9
DD
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1320 exit $exit_status
2aeb72e9 1321 ' 0
1c710c3c
DJ
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1c710c3c
DJ
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
0b0dc272 1347
1c710c3c
DJ
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
671aa708 1360# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
671aa708 1367fi
2aeb72e9 1368for ac_site_file in $CONFIG_SITE; do
671aa708 1369 if test -r "$ac_site_file"; then
1c710c3c
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
1c710c3c
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
2aeb72e9
DD
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1c710c3c
DJ
1386 esac
1387 fi
671aa708 1388else
1c710c3c
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
2aeb72e9
DD
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
2aeb72e9
DD
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
671aa708
NN
1443fi
1444
2aeb72e9
DD
1445ac_ext=c
1446ac_cpp='$CPP $CPPFLAGS'
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1c710c3c
DJ
1451
1452
1453
1454
671aa708
NN
1455
1456
d02c69be 1457
1c710c3c
DJ
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
671aa708 1472ac_aux_dir=
2aeb72e9
DD
1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
671aa708
NN
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
2aeb72e9 1478 elif test -f $ac_dir/install.sh; then
671aa708
NN
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
2aeb72e9 1482 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
671aa708
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1491 { (exit 1); exit 1; }; }
671aa708 1492fi
2aeb72e9
DD
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1496
1c710c3c 1497# Make sure we can run config.sub.
2aeb72e9
DD
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1501 { (exit 1); exit 1; }; }
1502
2aeb72e9
DD
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
2aeb72e9
DD
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
2aeb72e9
DD
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1518 { (exit 1); exit 1; }; }
1519
1520fi
2aeb72e9
DD
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1523build=$ac_cv_build
2aeb72e9
DD
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1527
671aa708 1528
1c710c3c
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1532esac
1533
1534
af71363e 1535
1c710c3c
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1539esac
1540
af71363e 1541
1c710c3c
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1546esac
1547
af71363e 1548
1c710c3c
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
1c710c3c 1554 program_transform_name=s,y,y,
af71363e 1555
2aeb72e9
DD
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1560else
2aeb72e9
DD
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1567 { (exit 1); exit 1; }; }
1568
af71363e 1569fi
2aeb72e9
DD
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1572host=$ac_cv_host
2aeb72e9
DD
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
2aeb72e9
DD
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1589 { (exit 1); exit 1; }; }
1590
1591fi
2aeb72e9
DD
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1594target=$ac_cv_target
2aeb72e9
DD
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
671aa708 1606test "$program_prefix" != NONE &&
2aeb72e9 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
2aeb72e9 1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1617rm conftest.sed
af71363e 1618
671aa708
NN
1619
1620
775956d0
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
1c710c3c 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1633# OS/2's system install, which has a completely different semantic
775956d0 1634# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1637if test -z "$INSTALL"; then
1c710c3c
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1659 if test $ac_prog = install &&
1c710c3c 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
1c710c3c
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
775956d0 1667 else
1c710c3c
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
775956d0
NN
1670 fi
1671 fi
1672 done
1c710c3c
DJ
1673 done
1674 ;;
1675esac
1676done
1677
775956d0
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1681 INSTALL=$ac_cv_path_install
775956d0 1682 else
2aeb72e9
DD
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
775956d0 1685 # break other packages using the cache if that directory is
2aeb72e9 1686 # removed, or if the path is relative.
1c710c3c 1687 INSTALL=$ac_install_sh
775956d0
NN
1688 fi
1689fi
2aeb72e9
DD
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1c710c3c 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
2aeb72e9
DD
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
2aeb72e9
DD
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1721else
1722 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
ad6717df
PB
1725fi
1726
2aeb72e9
DD
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
fb0103e5 1733else
2aeb72e9
DD
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1736fi
1737
775956d0 1738
79c06341 1739### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
671aa708
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
79c06341
JL
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
671aa708 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1776
beeaf216
MM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
9f8c6739
JM
1781for ac_arg
1782do
beeaf216 1783 case "$ac_arg" in
8c79f3c4 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
d9acb717
RW
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
beeaf216
MM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1799
cc1e60ea 1800
671aa708 1801moveifchange=${srcdir}/move-if-change
79c06341 1802
ee6a22df
L
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
671aa708
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
671aa708
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
79c06341
JL
1816fi
1817
671aa708 1818topsrcdir=$srcpwd
5d4a5ee6 1819
671aa708 1820extra_host_args=
afabd8e6 1821
671aa708
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
79c06341 1825
1c710c3c 1826# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1827# configdirs, or target_configdirs; see the serialization section below.
79c06341 1828
1c710c3c
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
671aa708 1831# the Makefile, whether or not it's implicitly specified here.
79c06341 1832
671aa708
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
79c06341 1835
23f6b2f9
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
71b5d516 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1843
671aa708
NN
1844# these libraries are used by various programs built for the host environment
1845#
e69bf64b 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1847
671aa708
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
5395b47b 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
671aa708
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
291f172e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
671aa708
NN
1866 target-libgloss \
1867 target-newlib \
cb543528 1868 target-libstdc++-v3 \
6de9cd9a 1869 target-libmudflap \
77008252 1870 target-libssp \
6de9cd9a 1871 target-libgfortran \
7cd0cf9c 1872 target-boehm-gc \
77d187bc 1873 ${libgcj} \
d9cdb878 1874 target-libobjc \
953ff289
DN
1875 target-libada \
1876 target-libgomp"
671aa708 1877
4dbda6f0
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
671aa708 1880#
4dbda6f0 1881# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
97286f7f 1885target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1886
671aa708 1887################################################################################
79c06341 1888
671aa708
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
671aa708 1894configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1896build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1897
671aa708 1898################################################################################
79c06341 1899
671aa708 1900srcname="gnu development package"
79c06341 1901
671aa708
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
79c06341 1904
671aa708
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
79c06341 1909else
671aa708 1910 is_cross_compiler=yes
1c710c3c 1911fi
79c06341 1912
b4acb5ef 1913# Find the build and target subdir names.
8b87bb96 1914
2e9e6f68
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1925build_subdir="build-${build_noncanonical}"
1c710c3c 1926
2aeb72e9 1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1928if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
2e9e6f68
DJ
1931else
1932 build_libsubdir="$build_subdir"
2aeb72e9 1933fi;
215c351a
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
8b87bb96
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
1c710c3c 1943
79c06341 1944
671aa708
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
79c06341 1949
671aa708
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1955fi
1956
671aa708
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1962fi
1963
1c710c3c 1964# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1965# it's not even worth trying to configure, much less build, that tool.
79c06341 1966
671aa708
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
b4f96efe 1970 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1971 # We won't be able to build gdbtk without X.
1c710c3c 1972 enable_gdbtk=no
671aa708
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
79c06341 1976
671aa708 1977# Some tools are only suitable for building in a "native" situation.
1c710c3c 1978# Remove these if host!=target.
9e299237 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1980
671aa708
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
79c06341 1989
671aa708
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
ee6a22df
L
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
79c06341
JL
1997fi
1998
671aa708
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
79c06341 2004
671aa708 2005# Configure extra directories which are host specific
79c06341 2006
671aa708
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
79c06341 2011
4fab7234
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
1c710c3c 2016# Remove more programs from consideration, based on the host or
671aa708
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
ec8d6ddc 2019
671aa708
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
f2a0e225 2024 i[3456789]86-*-vsta)
b4f96efe 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2026 ;;
f2a0e225 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2029 ;;
95af8923
KT
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
f2a0e225 2033 i[3456789]86-*-mingw32*)
b4f96efe 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2036 ;;
f2a0e225 2037 i[3456789]86-*-beos*)
b4f96efe 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2039 ;;
671aa708 2040 *-*-cygwin*)
a22c2d8d 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2042 ;;
2043 *-*-netbsd*)
a22c2d8d 2044 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2045 ;;
2046 ppc*-*-pe)
b4f96efe 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2048 ;;
2049 powerpc-*-beos*)
b4f96efe 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2051 ;;
671aa708 2052esac
ec8d6ddc 2053
6de9cd9a 2054
2aeb72e9 2055# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2056if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
d9cdb878
AC
2059else
2060 ENABLE_LIBADA=yes
2aeb72e9 2061fi;
d9cdb878 2062if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2063 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2064fi
2065
2aeb72e9 2066# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2067if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2070else
2071 ENABLE_LIBSSP=yes
2aeb72e9 2072fi;
ef0087a7 2073
671aa708
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
ec8d6ddc 2089
6de9cd9a 2090
27079765
AH
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
dfcada9a 2093 case "${target}" in
1c00b503 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2095 # Enable libmudflap by default in GNU and friends.
dfcada9a 2096 ;;
a3e8d8b4
LR
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
dfcada9a
MM
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
27079765 2105fi
6de9cd9a 2106
27079765
AH
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
953ff289
DN
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
670cbfcf 2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
04879af3 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2116 ;;
cac90078 2117 *-*-darwin* | *-*-aix*)
953ff289
DN
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
27079765 2123fi
953ff289 2124
c03353e2
RIL
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
6de9cd9a 2127
671aa708
NN
2128case "${target}" in
2129 *-*-chorusos)
cb253473 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2131 ;;
42c1cd8a 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2134 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2135 ;;
42c1cd8a
AT
2136 *-*-darwin*)
2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2138 noconfigdirs="$noconfigdirs sim target-rda"
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
671aa708 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2143 ;;
c3f84f61 2144 *-*-freebsd*)
6de9cd9a
DN
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
cb253473 2156 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2157 ;;
2158 esac
2159 ;;
ef4e7569
US
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
cb253473 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
671aa708
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
0590b963 2174 arm*-*-netbsdelf*) ;;
671aa708 2175 *)
cb253473 2176 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2177 ;;
2178 esac
2179 ;;
61fec9ff 2180 *-*-netware*)
cb253473 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2182 ;;
2183 *-*-rtems*)
cb253473 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2185 ;;
a8ba31f2
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
cb253473 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2189 ;;
5785c0ed 2190 *-*-uclinux*)
cb253473 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2192 ;;
671aa708 2193 *-*-vxworks*)
cb253473 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
cb253473 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
671aa708
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
cb253473 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2212 ;;
33952f6f 2213 am33_2.0-*-linux*)
cb253473 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2215 ;;
671aa708 2216 sh-*-linux*)
cb253473 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2218 ;;
671aa708 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2220 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
cb543528 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2230 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2231 ;;
2232 esac
c03353e2 2233 libgloss_dir=wince
671aa708
NN
2234 ;;
2235 arc-*-*)
cb253473 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2237 ;;
ee6a22df 2238 arm-semi-aof )
ee6a22df 2239 ;;
671aa708 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2241 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2242 libgloss_dir=arm
671aa708 2243 ;;
b3f8d95d 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2246 libgloss_dir=arm
671aa708 2247 ;;
077fc835 2248 arm*-*-linux-gnueabi)
c4e9bf2b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
1c00b503
PB
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
c03353e2 2254 libgloss_dir=arm
077fc835 2255 ;;
972974fc 2256 arm*-*-symbianelf*)
cb253473 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2258 libgloss_dir=arm
972974fc 2259 ;;
671aa708 2260 arm-*-pe*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2262 ;;
671aa708 2263 thumb-*-coff)
cb253473 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2265 ;;
2266 thumb-*-elf)
cb253473 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2268 ;;
671aa708 2269 thumb-*-pe)
cb253473 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2271 ;;
2272 arm-*-riscix*)
cb253473 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2274 ;;
2275 avr-*-*)
cb253473 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2277 ;;
6b65a26d 2278 bfin-*-*)
8b3c6c5a 2279 noconfigdirs="$noconfigdirs gdb"
61efc800 2280 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
671aa708 2284 c4x-*-* | tic4x-*-*)
cb253473 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
cb253473 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2289 ;;
40d64b5a 2290 cris-*-* | crisv32-*-*)
4fab7234 2291 unsupported_languages="$unsupported_languages java"
40d64b5a 2292 case "${target}" in
c2e0d3a9 2293 *-*-aout)
7f26dfa3 2294 unsupported_languages="$unsupported_languages fortran"
4fab7234 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2296 *-*-elf)
7f26dfa3 2297 unsupported_languages="$unsupported_languages fortran"
789ec619 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2299 *-*-linux*)
789ec619 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2301 *)
7f26dfa3 2302 unsupported_languages="$unsupported_languages fortran"
cb253473 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2304 esac
c03353e2 2305 libgloss_dir=cris
671aa708 2306 ;;
25b656e7 2307 crx-*-*)
cb253473 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2309 ;;
671aa708 2310 d10v-*-*)
cb253473 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2312 ;;
2313 d30v-*-*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2315 ;;
c03353e2
RIL
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
671aa708 2319 fr30-*-elf*)
cb253473 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2321 ;;
2322 frv-*-*)
cb253473 2323 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2324 ;;
2325 h8300*-*-*)
cb253473 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2327 ;;
2328 h8500-*-*)
cb253473 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2330 ;;
ee6a22df 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2332 ;;
671aa708
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
3e732ba0
JDA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
671aa708 2341 hppa*-*-*elf* | \
671aa708
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2346 ;;
2a332582
JDA
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
2349 ;;
c03353e2
RIL
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
671aa708
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
cb253473 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2357 ;;
fb87ad5d 2358 i960-*-*)
cb253473 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2360 ;;
671aa708
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
b4f96efe 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
cb253473 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2368 ;;
ee6a22df 2369 i370-*-opened*)
ee6a22df 2370 ;;
f2a0e225 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2372 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2373 libgloss_dir=i386
671aa708 2374 ;;
f2a0e225 2375 i[3456789]86-*-linux*)
671aa708
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
cb253473 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
3aa83176 2386 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
f2a0e225 2394 i[3456789]86-*-mingw32*)
b91f0a41
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2397 ;;
95af8923
KT
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2401 ;;
671aa708
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2405 # always build newlib if winsup directory is present.
b91f0a41 2406 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2408 elif test -d "$srcdir/newlib"; then
b91f0a41 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2410 fi
1c710c3c 2411 ;;
ee6a22df
L
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2414 ;;
f2a0e225 2415 i[3456789]86-*-pe)
cb253473 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2417 ;;
f2a0e225 2418 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
cb253473 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2422 ;;
f2a0e225 2423 i[3456789]86-*-sco*)
cb253473 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2425 ;;
f2a0e225 2426 i[3456789]86-*-solaris2*)
671aa708
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
f2a0e225 2429 i[3456789]86-*-sysv4*)
cb253473 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2431 ;;
f2a0e225 2432 i[3456789]86-*-beos*)
cb253473 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2434 ;;
d1f8db0c
PB
2435 i[3456789]86-*-rdos*)
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
fb87ad5d 2438 m32r-*-*)
cb253473 2439 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2440 ;;
671aa708 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2443 libgloss_dir=m68hc11
671aa708
NN
2444 ;;
2445 m68k-*-elf*)
cb253473 2446 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2447 ;;
2448 m68k-*-coff*)
cb253473 2449 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2450 ;;
c03353e2
RIL
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
671aa708
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
4fab7234 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2461 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2462 ;;
2463 mn10200-*-*)
cb253473 2464 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2465 ;;
2466 mn10300-*-*)
cb253473 2467 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2468 ;;
ab34901f 2469 mt-*-*)
79dd769c
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
671aa708
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
cb253473 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
cb253473 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
cb253473 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2485 libgloss_dir=rs6000
671aa708
NN
2486 ;;
2487 powerpc-*-beos*)
cb253473 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2489 ;;
671aa708 2490 powerpc-*-eabi)
cb253473 2491 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2492 libgloss_dir=rs6000
ee6a22df
L
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2495 libgloss_dir=rs6000
671aa708 2496 ;;
671aa708 2497 rs6000-*-lynxos*)
cb253473 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2499 ;;
2500 rs6000-*-aix*)
cb253473 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2502 ;;
2503 rs6000-*-*)
cb253473 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2505 ;;
2506 m68k-apollo-*)
cb253473 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2508 ;;
2509 mips*-*-irix5*)
cb253473 2510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2511 ;;
2512 mips*-*-irix6*)
671aa708
NN
2513 # Linking libjava exceeds command-line length limits on at least
2514 # IRIX 6.2, but not on IRIX 6.5.
2515 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2516 # <oldham@codesourcery.com>
cb253473 2517 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2518 ;;
671aa708 2519 mips*-*-bsd*)
cb253473 2520 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2521 ;;
671aa708
NN
2522 mips*-*-linux*)
2523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2524 ;;
2525 mips*-*-*)
cb253473 2526 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2527 libgloss_dir=mips
671aa708
NN
2528 ;;
2529 romp-*-*)
cb253473 2530 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2531 ;;
669f01d8 2532 sh-*-* | sh64-*-*)
671aa708 2533 case "${host}" in
f2a0e225
KC
2534 i[3456789]86-*-vsta) ;; # don't add gprof back in
2535 i[3456789]86-*-go32*) ;; # don't add gprof back in
2536 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2537 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2538 esac
cb253473 2539 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2540 ;;
c03353e2
RIL
2541 sparclet-*-aout* | sparc86x-*-*)
2542 libgloss_dir=sparc
2543 ;;
671aa708 2544 sparc-*-elf*)
cb253473 2545 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2546 ;;
2547 sparc64-*-elf*)
cb253473 2548 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2549 libgloss_dir=sparc
671aa708
NN
2550 ;;
2551 sparclite-*-*)
cb253473 2552 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2553 libgloss_dir=sparc
671aa708
NN
2554 ;;
2555 sparc-*-sunos4*)
cb253473 2556 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2557 if test x${is_cross_compiler} != xno ; then
2558 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2559 else
2560 use_gnu_ld=no
2561 fi
2562 ;;
bba5e0ca 2563 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2564 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2565 ;;
671aa708
NN
2566 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2567 ;;
85d9c13c 2568 spu-*-*)
ea6f5c57 2569 skipdirs="target-libssp"
85d9c13c 2570 ;;
671aa708 2571 v810-*-*)
cb253473 2572 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2573 ;;
2574 v850-*-*)
cb253473 2575 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2576 ;;
2577 v850e-*-*)
cb253473 2578 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2579 ;;
2580 v850ea-*-*)
cb253473 2581 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2582 ;;
2583 vax-*-vms)
cb253473 2584 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2585 ;;
2586 vax-*-*)
cb253473 2587 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2588 ;;
0d4f1b4e 2589 xtensa-*-*)
cb253473 2590 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2591 ;;
671aa708 2592 ip2k-*-*)
cb253473 2593 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2594 ;;
c3f84f61 2595 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2597 ;;
2598 *-*-lynxos*)
cb253473 2599 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2600 ;;
671aa708 2601 *-*-*)
cb253473 2602 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2603 ;;
2604esac
79c06341 2605
671aa708
NN
2606# If we aren't building newlib, then don't build libgloss, since libgloss
2607# depends upon some newlib header files.
2608case "${noconfigdirs}" in
2609 *target-libgloss*) ;;
2610 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2611esac
2612
671aa708
NN
2613# Work in distributions that contain no compiler tools, like Autoconf.
2614tentative_cc=""
2615host_makefile_frag=/dev/null
2616if test -d ${srcdir}/config ; then
2617case "${host}" in
2618 m68k-hp-hpux*)
2619 # Avoid "too much defining" errors from HPUX compiler.
2620 tentative_cc="cc -Wp,-H256000"
2621 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2622 # If it's HP/UX ar, this should be harmless.
2623 RANLIB="ar ts"
2624 ;;
2625 m68k-apollo-sysv*)
2626 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2627 ;;
2628 m68k-apollo-bsd*)
2629 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2630 # chokes on bfd, the compiler won't let you assign integers to enums, and
2631 # other problems. Defining CC to gcc is a questionable way to say "don't use
2632 # the apollo compiler" (the preferred version of GCC could be called cc,
2633 # or whatever), but I'm not sure leaving CC as cc is any better...
2634 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2635 # Used to have BISON=yacc.
2636 tentative_cc=gcc
2637 ;;
2638 m88k-dg-dgux*)
2639 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2640 ;;
2641 m88k-harris-cxux*)
2642 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2643 tentative_cc="cc -Xa"
2644 host_makefile_frag="config/mh-cxux"
2645 ;;
2646 m88k-motorola-sysv*)
2647 ;;
2648 mips*-dec-ultrix*)
2649 tentative_cc="cc -Wf,-XNg1000"
2650 host_makefile_frag="config/mh-decstation"
2651 ;;
2652 mips*-nec-sysv4*)
2653 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2654 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2655 host_makefile_frag="config/mh-necv4"
2656 ;;
2657 mips*-sgi-irix4*)
2658 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2659 # environment. Also bump switch table size so that cp-parse will
2660 # compile. Bump string length limit so linker builds.
2661 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2662 ;;
2663 mips*-*-sysv4*)
2664 host_makefile_frag="config/mh-sysv4"
2665 ;;
2666 mips*-*-sysv*)
2667 # This is for a MIPS running RISC/os 4.52C.
2668
2669 # This is needed for GDB, but needs to be in the top-level make because
2670 # if a library is compiled with the bsd headers and gets linked with the
2671 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2672 # a different size).
2673 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2674 # known except to select the sysv environment. Could we use /proc instead?
2675 # These "sysv environments" and "bsd environments" often end up being a pain.
2676 #
2677 # This is not part of CFLAGS because perhaps not all C compilers have this
2678 # option.
2679 tentative_cc="cc -systype sysv"
2680 ;;
2681 i370-ibm-opened*)
2682 tentative_cc="c89"
2683 ;;
f2a0e225 2684 i[3456789]86-*-sysv5*)
671aa708
NN
2685 host_makefile_frag="config/mh-sysv5"
2686 ;;
f2a0e225 2687 i[3456789]86-*-dgux*)
671aa708
NN
2688 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2689 host_makefile_frag="config/mh-dgux386"
2690 ;;
f2a0e225 2691 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2692 # The MetaWare compiler will generate a copyright message unless you
2693 # turn it off by adding the -Hnocopyr flag.
2694 tentative_cc="cc -Hnocopyr"
2695 ;;
f2a0e225 2696 i[3456789]86-ncr-sysv4*)
671aa708
NN
2697 # for an NCR 3000 (i486/SVR4) system.
2698 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2699 # This compiler not only emits obnoxious copyright messages every time
2700 # you run it, but it chokes and dies on a whole bunch of GNU source
2701 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2702 tentative_cc="/usr/ccs/ATT/cc"
2703 host_makefile_frag="config/mh-ncr3000"
2704 ;;
f2a0e225 2705 i[3456789]86-*-sco3.2v5*)
671aa708 2706 ;;
f2a0e225 2707 i[3456789]86-*-sco*)
671aa708
NN
2708 # The native C compiler botches some simple uses of const. Unfortunately,
2709 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2710 tentative_cc="cc -Dconst="
2711 host_makefile_frag="config/mh-sco"
2712 ;;
f2a0e225 2713 i[3456789]86-*-udk*)
671aa708
NN
2714 host_makefile_frag="config/mh-sysv5"
2715 ;;
f2a0e225 2716 i[3456789]86-*-solaris2*)
671aa708
NN
2717 host_makefile_frag="config/mh-sysv4"
2718 ;;
f2a0e225 2719 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2720 host_makefile_frag="config/mh-djgpp"
2721 ;;
2722 *-cygwin*)
2723 host_makefile_frag="config/mh-cygwin"
2724 ;;
2725 *-mingw32*)
1f5a6b84 2726 host_makefile_frag="config/mh-mingw"
671aa708 2727 ;;
95af8923 2728 *-mingw64*)
1f5a6b84 2729 host_makefile_frag="config/mh-mingw"
95af8923 2730 ;;
671aa708
NN
2731 *-interix*)
2732 host_makefile_frag="config/mh-interix"
2733 ;;
2734 vax-*-ultrix2*)
2735 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2736 tentative_cc=gcc
2737 ;;
2738 *-*-solaris2*)
2739 host_makefile_frag="config/mh-solaris"
2740 ;;
2741 m68k-sun-sunos*)
2742 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2743 # without overflowing the jump tables (-J says to use a 32 bit table)
2744 tentative_cc="cc -J"
2745 ;;
2746 *-hp-hpux*)
2747 tentative_cc="cc -Wp,-H256000"
2748 ;;
2749 *-*-hiux*)
2750 tentative_cc="cc -Wp,-H256000"
2751 ;;
2752 rs6000-*-lynxos*)
2753 # /bin/cc is less than useful for our purposes. Always use GCC
2754 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2755 host_makefile_frag="config/mh-lynxrs6k"
2756 ;;
45f366ab 2757 powerpc-*-darwin*)
be8fff81
RB
2758 host_makefile_frag="config/mh-ppc-darwin"
2759 ;;
d19bca38
PB
2760 powerpc-*-aix*)
2761 host_makefile_frag="config/mh-ppc-aix"
2762 ;;
2763 rs6000-*-aix*)
2764 host_makefile_frag="config/mh-ppc-aix"
2765 ;;
671aa708
NN
2766 *-*-lynxos*)
2767 # /bin/cc is less than useful for our purposes. Always use GCC
2768 tentative_cc="/bin/gcc"
2769 ;;
2770 *-*-sysv4*)
2771 host_makefile_frag="config/mh-sysv4"
2772 ;;
95c53c62
RS
2773 # This is placed last to prevent interfering with the cases above.
2774 i[3456789]86-*-*)
2775 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2776 host_makefile_frag="config/mh-x86omitfp"
2777 ;;
671aa708
NN
2778esac
2779fi
2780
55ffb5ed
NN
2781# If we aren't going to be using gcc, see if we can extract a definition
2782# of CC from the fragment.
2783# Actually, use the 'pre-extracted' version above.
2784if test -z "${CC}" && test "${build}" = "${host}" ; then
2785 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2786 found=
2787 for dir in $PATH; do
2788 test -z "$dir" && dir=.
2789 if test -f $dir/gcc; then
2790 found=yes
2791 break
2792 fi
2793 done
2794 IFS="$save_ifs"
2795 if test -z "${found}" && test -n "${tentative_cc}" ; then
2796 CC=$tentative_cc
2797 fi
2798fi
2799
2800if test "${build}" != "${host}" ; then
55ffb5ed 2801 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2802else
fb0103e5 2803 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2804fi
2805
2806ac_ext=c
1c710c3c
DJ
2807ac_cpp='$CPP $CPPFLAGS'
2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2814echo "$as_me:$LINENO: checking for $ac_word" >&5
2815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2816if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
2836fi
2837fi
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2aeb72e9
DD
2840 echo "$as_me:$LINENO: result: $CC" >&5
2841echo "${ECHO_T}$CC" >&6
1c710c3c 2842else
2aeb72e9
DD
2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
1c710c3c
DJ
2845fi
2846
2847fi
2848if test -z "$ac_cv_prog_CC"; then
2849 ac_ct_CC=$CC
fb0103e5
RG
2850 # Extract the first word of "gcc", so it can be a program name with args.
2851set dummy gcc; ac_word=$2
2aeb72e9
DD
2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2867 ac_cv_prog_ac_ct_CC="gcc"
2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871done
2872done
2873
2874fi
2875fi
2876ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2880else
2aeb72e9
DD
2881 echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
1c710c3c
DJ
2883fi
2884
2aeb72e9 2885 CC=$ac_ct_CC
1c710c3c
DJ
2886else
2887 CC="$ac_cv_prog_CC"
2888fi
2889
2890if test -z "$CC"; then
2aeb72e9
DD
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2893set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2894echo "$as_me:$LINENO: checking for $ac_word" >&5
2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2896if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2898else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
1c710c3c
DJ
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2909 ac_cv_prog_CC="${ac_tool_prefix}cc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913done
2914done
2915
0b0dc272 2916fi
0b0dc272 2917fi
1c710c3c 2918CC=$ac_cv_prog_CC
af71363e 2919if test -n "$CC"; then
2aeb72e9
DD
2920 echo "$as_me:$LINENO: result: $CC" >&5
2921echo "${ECHO_T}$CC" >&6
0b0dc272 2922else
2aeb72e9
DD
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
0b0dc272
AM
2925fi
2926
2aeb72e9
DD
2927fi
2928if test -z "$ac_cv_prog_CC"; then
2929 ac_ct_CC=$CC
2930 # Extract the first word of "cc", so it can be a program name with args.
2931set dummy cc; ac_word=$2
2932echo "$as_me:$LINENO: checking for $ac_word" >&5
2933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="cc"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
11a67599 2950 fi
2aeb72e9
DD
2951done
2952done
2953
2954fi
2955fi
2956ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957if test -n "$ac_ct_CC"; then
2958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2959echo "${ECHO_T}$ac_ct_CC" >&6
2960else
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
2963fi
2964
2965 CC=$ac_ct_CC
2966else
2967 CC="$ac_cv_prog_CC"
2968fi
2969
1c710c3c 2970fi
55ffb5ed
NN
2971if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973set dummy cc; ac_word=$2
2aeb72e9
DD
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2976if test "${ac_cv_prog_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2978else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
0b0dc272 2982 ac_prog_rejected=no
1c710c3c
DJ
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2992 continue
2993 fi
2994 ac_cv_prog_CC="cc"
2995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998done
2999done
3000
55ffb5ed
NN
3001if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3004 shift
1c710c3c 3005 if test $# != 0; then
55ffb5ed
NN
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3009 shift
1c710c3c 3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3011 fi
3012fi
3013fi
3014fi
1c710c3c 3015CC=$ac_cv_prog_CC
55ffb5ed 3016if test -n "$CC"; then
2aeb72e9
DD
3017 echo "$as_me:$LINENO: result: $CC" >&5
3018echo "${ECHO_T}$CC" >&6
55ffb5ed 3019else
2aeb72e9
DD
3020 echo "$as_me:$LINENO: result: no" >&5
3021echo "${ECHO_T}no" >&6
55ffb5ed
NN
3022fi
3023
1c710c3c
DJ
3024fi
3025if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
2aeb72e9 3027 for ac_prog in cl
1c710c3c
DJ
3028 do
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3031echo "$as_me:$LINENO: checking for $ac_word" >&5
3032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3033if test "${ac_cv_prog_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3035else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
1c710c3c
DJ
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050done
3051done
3052
55ffb5ed
NN
3053fi
3054fi
1c710c3c 3055CC=$ac_cv_prog_CC
55ffb5ed 3056if test -n "$CC"; then
2aeb72e9
DD
3057 echo "$as_me:$LINENO: result: $CC" >&5
3058echo "${ECHO_T}$CC" >&6
a4b9e93e 3059else
2aeb72e9
DD
3060 echo "$as_me:$LINENO: result: no" >&5
3061echo "${ECHO_T}no" >&6
fb0103e5 3062fi
af71363e 3063
1c710c3c
DJ
3064 test -n "$CC" && break
3065 done
af71363e 3066fi
1c710c3c
DJ
3067if test -z "$CC"; then
3068 ac_ct_CC=$CC
2aeb72e9 3069 for ac_prog in cl
1c710c3c
DJ
3070do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3077else
1c710c3c
DJ
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3080else
1c710c3c
DJ
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
af71363e
AS
3095fi
3096fi
1c710c3c
DJ
3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3101else
2aeb72e9
DD
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
af71363e 3104fi
0b0dc272 3105
1c710c3c
DJ
3106 test -n "$ac_ct_CC" && break
3107done
3108
2aeb72e9 3109 CC=$ac_ct_CC
1c710c3c
DJ
3110fi
3111
3112fi
3113
3114
3115test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3116See \`config.log' for more details." >&5
3117echo "$as_me: error: no acceptable C compiler found in \$PATH
3118See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3120
3121# Provide some information about the compiler.
2aeb72e9
DD
3122echo "$as_me:$LINENO:" \
3123 "checking for C compiler version" >&5
1c710c3c 3124ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3125{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3126 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }
2aeb72e9
DD
3130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3131 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }
2aeb72e9
DD
3135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3136 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3140
3141cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147
3148int
3149main ()
3150{
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
3156ac_clean_files_save=$ac_clean_files
3157ac_clean_files="$ac_clean_files a.out a.exe b.out"
3158# Try to create an executable without -o first, disregard a.out.
3159# It will help us diagnose broken compilers, and finding out an intuition
3160# of exeext.
2aeb72e9
DD
3161echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3164if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3165 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; then
2aeb72e9
DD
3169 # Find the output, starting from the most likely. This scheme is
3170# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3171# resort.
3172
3173# Be careful to initialize this variable, since it used to be cached.
3174# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3175ac_cv_exeext=
3176# b.out is created by i960 compilers.
3177for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3178do
3179 test -f "$ac_file" || continue
3180 case $ac_file in
2aeb72e9
DD
3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3182 ;;
3183 conftest.$ac_ext )
3184 # This is the source file.
1c710c3c
DJ
3185 ;;
3186 [ab].out )
3187 # We found the default executable, but exeext='' is most
3188 # certainly right.
3189 break;;
3190 *.* )
2aeb72e9
DD
3191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3192 # FIXME: I believe we export ac_cv_exeext for Libtool,
3193 # but it would be cool to find out if it's true. Does anybody
3194 # maintain Libtool? --akim.
3195 export ac_cv_exeext
1c710c3c
DJ
3196 break;;
3197 * )
3198 break;;
3199 esac
3200done
3201else
3202 echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3206See \`config.log' for more details." >&5
3207echo "$as_me: error: C compiler cannot create executables
3208See \`config.log' for more details." >&2;}
3209 { (exit 77); exit 77; }; }
3210fi
3211
3212ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3213echo "$as_me:$LINENO: result: $ac_file" >&5
3214echo "${ECHO_T}$ac_file" >&6
1c710c3c 3215
2aeb72e9 3216# Check the compiler produces executables we can run. If not, either
1c710c3c 3217# the compiler is broken, or we cross compile.
2aeb72e9
DD
3218echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3219echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3220# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3221# If not cross compiling, check that we can run a simple program.
3222if test "$cross_compiling" != yes; then
3223 if { ac_try='./$ac_file'
2aeb72e9
DD
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
1c710c3c
DJ
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 cross_compiling=no
3230 else
3231 if test "$cross_compiling" = maybe; then
3232 cross_compiling=yes
3233 else
3234 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3235If you meant to cross compile, use \`--host'.
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: cannot run C compiled programs.
3238If you meant to cross compile, use \`--host'.
3239See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242 fi
3243fi
2aeb72e9
DD
3244echo "$as_me:$LINENO: result: yes" >&5
3245echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3246
3247rm -f a.out a.exe conftest$ac_cv_exeext b.out
3248ac_clean_files=$ac_clean_files_save
2aeb72e9 3249# Check the compiler produces executables we can run. If not, either
1c710c3c 3250# the compiler is broken, or we cross compile.
2aeb72e9
DD
3251echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3252echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3253echo "$as_me:$LINENO: result: $cross_compiling" >&5
3254echo "${ECHO_T}$cross_compiling" >&6
3255
3256echo "$as_me:$LINENO: checking for suffix of executables" >&5
3257echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>&5
1c710c3c
DJ
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; then
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265# work properly (i.e., refer to `conftest.exe'), while it won't with
3266# `rm'.
3267for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3269 case $ac_file in
2aeb72e9 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3272 export ac_cv_exeext
1c710c3c
DJ
3273 break;;
3274 * ) break;;
3275 esac
3276done
af71363e 3277else
1c710c3c
DJ
3278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3279See \`config.log' for more details." >&5
3280echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3281See \`config.log' for more details." >&2;}
3282 { (exit 1); exit 1; }; }
3283fi
3284
3285rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3286echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3287echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3288
3289rm -f conftest.$ac_ext
3290EXEEXT=$ac_cv_exeext
3291ac_exeext=$EXEEXT
2aeb72e9
DD
3292echo "$as_me:$LINENO: checking for suffix of object files" >&5
3293echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3294if test "${ac_cv_objext+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.o conftest.obj
2aeb72e9
DD
3313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>&5
1c710c3c
DJ
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; then
2aeb72e9 3318 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3319 case $ac_file in
2aeb72e9 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3322 break;;
3323 esac
3324done
3325else
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3330See \`config.log' for more details." >&5
3331echo "$as_me: error: cannot compute suffix of object files: cannot compile
3332See \`config.log' for more details." >&2;}
3333 { (exit 1); exit 1; }; }
3334fi
3335
3336rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337fi
2aeb72e9
DD
3338echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3339echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3340OBJEXT=$ac_cv_objext
3341ac_objext=$OBJEXT
2aeb72e9
DD
3342echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3343echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3344if test "${ac_cv_c_compiler_gnu+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346else
3347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
3353
3354int
3355main ()
3356{
3357#ifndef __GNUC__
3358 choke me
3359#endif
3360
3361 ;
3362 return 0;
3363}
3364_ACEOF
3365rm -f conftest.$ac_objext
2aeb72e9
DD
3366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3367 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag"
3375 || test ! -s conftest.err'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 (eval $ac_try) 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
1c710c3c
DJ
3387 ac_compiler_gnu=yes
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
2aeb72e9 3392ac_compiler_gnu=no
1c710c3c 3393fi
2aeb72e9 3394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3395ac_cv_c_compiler_gnu=$ac_compiler_gnu
3396
3397fi
2aeb72e9
DD
3398echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3399echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3400GCC=`test $ac_compiler_gnu = yes && echo yes`
3401ac_test_CFLAGS=${CFLAGS+set}
3402ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3403CFLAGS="-g"
3404echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3405echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3406if test "${ac_cv_prog_cc_g+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408else
2aeb72e9 3409 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415
3416int
3417main ()
3418{
3419
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
2aeb72e9
DD
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
1c710c3c
DJ
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
1c710c3c
DJ
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3445 (exit $ac_status); }; }; then
55ffb5ed
NN
3446 ac_cv_prog_cc_g=yes
3447else
1c710c3c
DJ
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3450
2aeb72e9 3451ac_cv_prog_cc_g=no
0b0dc272 3452fi
2aeb72e9 3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3454fi
2aeb72e9
DD
3455echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3456echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3457if test "$ac_test_CFLAGS" = set; then
1c710c3c 3458 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3459elif test $ac_cv_prog_cc_g = yes; then
3460 if test "$GCC" = yes; then
3461 CFLAGS="-g -O2"
3462 else
3463 CFLAGS="-g"
3464 fi
3465else
3466 if test "$GCC" = yes; then
3467 CFLAGS="-O2"
3468 else
3469 CFLAGS=
3470 fi
3471fi
2aeb72e9
DD
3472echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3473echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3474if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
2aeb72e9 3477 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3478ac_save_CC=$CC
3479cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h. */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h. */
3485#include <stdarg.h>
3486#include <stdio.h>
3487#include <sys/types.h>
3488#include <sys/stat.h>
3489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3490struct buf { int x; };
3491FILE * (*rcsopen) (struct buf *, struct stat *, int);
3492static char *e (p, i)
3493 char **p;
3494 int i;
3495{
3496 return p[i];
3497}
3498static char *f (char * (*g) (char **, int), char **p, ...)
3499{
3500 char *s;
3501 va_list v;
3502 va_start (v,p);
3503 s = g (p, va_arg (v,int));
3504 va_end (v);
3505 return s;
3506}
3507
3508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3509 function prototypes and stuff, but not '\xHH' hex character constants.
3510 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3511 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3513 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3514 that's true only with -std1. */
1c710c3c
DJ
3515int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516
3517int test (int i, double x);
3518struct s1 {int (*f) (int a);};
3519struct s2 {int (*f) (double a);};
3520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521int argc;
3522char **argv;
3523int
3524main ()
3525{
3526return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3527 ;
3528 return 0;
3529}
3530_ACEOF
2aeb72e9
DD
3531# Don't try gcc -ansi; that turns off useful extensions and
3532# breaks some systems' header files.
3533# AIX -qlanglvl=ansi
3534# Ultrix and OSF/1 -std1
3535# HP-UX 10.20 and later -Ae
3536# HP-UX older versions -Aa -D_HPUX_SOURCE
3537# SVR4 -Xc -D__EXTENSIONS__
3538for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3539do
3540 CC="$ac_save_CC $ac_arg"
3541 rm -f conftest.$ac_objext
2aeb72e9
DD
3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest.$ac_objext'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_prog_cc_stdc=$ac_arg
3564break
1c710c3c
DJ
3565else
3566 echo "$as_me: failed program was:" >&5
3567sed 's/^/| /' conftest.$ac_ext >&5
3568
3569fi
2aeb72e9 3570rm -f conftest.err conftest.$ac_objext
1c710c3c 3571done
2aeb72e9 3572rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3573CC=$ac_save_CC
3574
3575fi
2aeb72e9
DD
3576
3577case "x$ac_cv_prog_cc_stdc" in
3578 x|xno)
3579 echo "$as_me:$LINENO: result: none needed" >&5
3580echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3581 *)
2aeb72e9
DD
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3583echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3584 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3585esac
3586
2aeb72e9
DD
3587# Some people use a C++ compiler to compile C. Since we use `exit',
3588# in C++ we need to declare it. In case someone uses the same compiler
3589# for both compiling C and C++ we need to have the C++ compiler decide
3590# the declaration of exit, since it's the most demanding environment.
3591cat >conftest.$ac_ext <<_ACEOF
3592#ifndef __cplusplus
3593 choke me
3594#endif
3595_ACEOF
3596rm -f conftest.$ac_objext
3597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 for ac_declaration in \
3619 '' \
3620 'extern "C" void std::exit (int) throw (); using std::exit;' \
3621 'extern "C" void std::exit (int); using std::exit;' \
3622 'extern "C" void exit (int) throw ();' \
3623 'extern "C" void exit (int);' \
3624 'void exit (int);'
3625do
3626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632$ac_declaration
3633#include <stdlib.h>
3634int
3635main ()
3636{
3637exit (42);
3638 ;
3639 return 0;
3640}
3641_ACEOF
3642rm -f conftest.$ac_objext
3643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644 (eval $ac_compile) 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } &&
3651 { ac_try='test -z "$ac_c_werror_flag"
3652 || test ! -s conftest.err'
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 (eval $ac_try) 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 :
3665else
3666 echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669continue
3670fi
3671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3672 cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
3678$ac_declaration
3679int
3680main ()
3681{
3682exit (42);
3683 ;
3684 return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest.$ac_objext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 break
3710else
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714fi
3715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3716done
3717rm -f conftest*
3718if test -n "$ac_declaration"; then
3719 echo '#ifdef __cplusplus' >>confdefs.h
3720 echo $ac_declaration >>confdefs.h
3721 echo '#endif' >>confdefs.h
3722fi
3723
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728fi
3729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730ac_ext=c
3731ac_cpp='$CPP $CPPFLAGS'
3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735
3736ac_ext=cc
3737ac_cpp='$CXXCPP $CPPFLAGS'
3738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3741if test -n "$ac_tool_prefix"; then
3742 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3743 do
3744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746echo "$as_me:$LINENO: checking for $ac_word" >&5
3747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748if test "${ac_cv_prog_CXX+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if test -n "$CXX"; then
3752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765done
3766done
55ffb5ed 3767
c3a86da9
DJ
3768fi
3769fi
3770CXX=$ac_cv_prog_CXX
3771if test -n "$CXX"; then
2aeb72e9
DD
3772 echo "$as_me:$LINENO: result: $CXX" >&5
3773echo "${ECHO_T}$CXX" >&6
c3a86da9 3774else
2aeb72e9
DD
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
c3a86da9
DJ
3777fi
3778
3779 test -n "$CXX" && break
3780 done
3781fi
3782if test -z "$CXX"; then
3783 ac_ct_CXX=$CXX
2aeb72e9 3784 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3785do
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3788echo "$as_me:$LINENO: checking for $ac_word" >&5
3789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3790if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 if test -n "$ac_ct_CXX"; then
3794 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3795else
3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797for as_dir in $PATH
3798do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3803 ac_cv_prog_ac_ct_CXX="$ac_prog"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
3807done
3808done
3809
3810fi
3811fi
3812ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3813if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3814 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3815echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3816else
2aeb72e9
DD
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
c3a86da9
DJ
3819fi
3820
3821 test -n "$ac_ct_CXX" && break
3822done
2aeb72e9 3823test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3824
2aeb72e9 3825 CXX=$ac_ct_CXX
c3a86da9
DJ
3826fi
3827
2aeb72e9 3828
c3a86da9 3829# Provide some information about the compiler.
2aeb72e9
DD
3830echo "$as_me:$LINENO:" \
3831 "checking for C++ compiler version" >&5
c3a86da9 3832ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3833{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3834 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3835 ac_status=$?
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }
2aeb72e9
DD
3838{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3839 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }
2aeb72e9
DD
3843{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3844 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }
3848
2aeb72e9
DD
3849echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3850echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3851if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h. */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
3859/* end confdefs.h. */
3860
3861int
3862main ()
3863{
3864#ifndef __GNUC__
3865 choke me
3866#endif
3867
3868 ;
3869 return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext
2aeb72e9
DD
3873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3880 (exit $ac_status); } &&
3881 { ac_try='test -z "$ac_cxx_werror_flag"
3882 || test ! -s conftest.err'
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; } &&
3888 { ac_try='test -s conftest.$ac_objext'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; }; then
c3a86da9
DJ
3894 ac_compiler_gnu=yes
3895else
3896 echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
2aeb72e9 3899ac_compiler_gnu=no
c3a86da9 3900fi
2aeb72e9 3901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3902ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3903
3904fi
2aeb72e9
DD
3905echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3906echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3907GXX=`test $ac_compiler_gnu = yes && echo yes`
3908ac_test_CXXFLAGS=${CXXFLAGS+set}
3909ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3910CXXFLAGS="-g"
3911echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3912echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3913if test "${ac_cv_prog_cxx_g+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
2aeb72e9 3916 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
3922
3923int
3924main ()
3925{
3926
3927 ;
3928 return 0;
3929}
3930_ACEOF
3931rm -f conftest.$ac_objext
2aeb72e9
DD
3932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3939 (exit $ac_status); } &&
3940 { ac_try='test -z "$ac_cxx_werror_flag"
3941 || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 (eval $ac_try) 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
c3a86da9
DJ
3953 ac_cv_prog_cxx_g=yes
3954else
3955 echo "$as_me: failed program was:" >&5
3956sed 's/^/| /' conftest.$ac_ext >&5
3957
2aeb72e9
DD
3958ac_cv_prog_cxx_g=no
3959fi
3960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3961fi
3962echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3963echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3964if test "$ac_test_CXXFLAGS" = set; then
3965 CXXFLAGS=$ac_save_CXXFLAGS
3966elif test $ac_cv_prog_cxx_g = yes; then
3967 if test "$GXX" = yes; then
3968 CXXFLAGS="-g -O2"
3969 else
3970 CXXFLAGS="-g"
3971 fi
3972else
3973 if test "$GXX" = yes; then
3974 CXXFLAGS="-O2"
3975 else
3976 CXXFLAGS=
3977 fi
3978fi
3979for ac_declaration in \
3980 '' \
3981 'extern "C" void std::exit (int) throw (); using std::exit;' \
3982 'extern "C" void std::exit (int); using std::exit;' \
3983 'extern "C" void exit (int) throw ();' \
3984 'extern "C" void exit (int);' \
3985 'void exit (int);'
3986do
3987 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
2aeb72e9
DD
3993$ac_declaration
3994#include <stdlib.h>
c3a86da9
DJ
3995int
3996main ()
3997{
2aeb72e9 3998exit (42);
c3a86da9
DJ
3999 ;
4000 return 0;
4001}
4002_ACEOF
4003rm -f conftest.$ac_objext
2aeb72e9
DD
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_cxx_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
c3a86da9
DJ
4025 :
4026else
4027 echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4029
2aeb72e9
DD
4030continue
4031fi
4032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
2aeb72e9 4039$ac_declaration
c3a86da9
DJ
4040int
4041main ()
4042{
2aeb72e9 4043exit (42);
c3a86da9
DJ
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext
2aeb72e9
DD
4049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4056 (exit $ac_status); } &&
4057 { ac_try='test -z "$ac_cxx_werror_flag"
4058 || test ! -s conftest.err'
4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060 (eval $ac_try) 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 (eval $ac_try) 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 break
c3a86da9
DJ
4071else
4072 echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
11a67599 4075fi
2aeb72e9
DD
4076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4077done
4078rm -f conftest*
4079if test -n "$ac_declaration"; then
4080 echo '#ifdef __cplusplus' >>confdefs.h
4081 echo $ac_declaration >>confdefs.h
4082 echo '#endif' >>confdefs.h
c3a86da9
DJ
4083fi
4084
4085ac_ext=c
4086ac_cpp='$CPP $CPPFLAGS'
4087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090
4091
4092# We must set the default linker to the linker used by gcc for the correct
4093# operation of libtool. If LD is not defined and we are using gcc, try to
4094# set the LD default to the ld used by gcc.
4095if test -z "$LD"; then
4096 if test "$GCC" = yes; then
4097 case $build in
4098 *-*-mingw*)
4099 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4100 *)
4101 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4102 esac
4103 case $gcc_prog_ld in
4104 # Accept absolute paths.
4105 [\\/]* | [A-Za-z]:[\\/]*)
4106 LD="$gcc_prog_ld" ;;
4107 esac
4108 fi
23f6b2f9
PB
4109fi
4110
23f6b2f9
PB
4111
4112
55ffb5ed 4113
1c710c3c
DJ
4114if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4116set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4119if test "${ac_cv_prog_GNATBIND+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4121else
4122 if test -n "$GNATBIND"; then
4123 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4124else
1c710c3c
DJ
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4132 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136done
4137done
4138
55ffb5ed
NN
4139fi
4140fi
1c710c3c 4141GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4142if test -n "$GNATBIND"; then
2aeb72e9
DD
4143 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4144echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4145else
2aeb72e9
DD
4146 echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
55ffb5ed
NN
4148fi
4149
1c710c3c 4150fi
55ffb5ed 4151if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4152 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4153 # Extract the first word of "gnatbind", so it can be a program name with args.
4154set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4155echo "$as_me:$LINENO: checking for $ac_word" >&5
4156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4157if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4159else
1c710c3c
DJ
4160 if test -n "$ac_ct_GNATBIND"; then
4161 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4162else
1c710c3c
DJ
4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4170 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174done
4175done
4176
2aeb72e9 4177 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4178fi
4179fi
1c710c3c
DJ
4180ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4181if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4182 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4183echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4184else
2aeb72e9
DD
4185 echo "$as_me:$LINENO: result: no" >&5
4186echo "${ECHO_T}no" >&6
55ffb5ed
NN
4187fi
4188
2aeb72e9 4189 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4190else
1c710c3c 4191 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4192fi
4193
1c710c3c
DJ
4194if test -n "$ac_tool_prefix"; then
4195 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4196set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4197echo "$as_me:$LINENO: checking for $ac_word" >&5
4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4199if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4201else
4202 if test -n "$GNATMAKE"; then
4203 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4204else
1c710c3c
DJ
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4212 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217done
4218
5305be7e
RG
4219fi
4220fi
1c710c3c 4221GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4222if test -n "$GNATMAKE"; then
2aeb72e9
DD
4223 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4224echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4225else
2aeb72e9
DD
4226 echo "$as_me:$LINENO: result: no" >&5
4227echo "${ECHO_T}no" >&6
5305be7e
RG
4228fi
4229
1c710c3c 4230fi
5305be7e 4231if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4232 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4233 # Extract the first word of "gnatmake", so it can be a program name with args.
4234set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4235echo "$as_me:$LINENO: checking for $ac_word" >&5
4236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4237if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4239else
1c710c3c
DJ
4240 if test -n "$ac_ct_GNATMAKE"; then
4241 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4242else
1c710c3c
DJ
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4250 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254done
4255done
4256
2aeb72e9 4257 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4258fi
4259fi
1c710c3c
DJ
4260ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4261if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4262 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4263echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4264else
2aeb72e9
DD
4265 echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
5305be7e
RG
4267fi
4268
2aeb72e9 4269 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4270else
1c710c3c 4271 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4272fi
4273
2aeb72e9
DD
4274echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4275echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4276if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4278else
4279 cat >conftest.adb <<EOF
4280procedure conftest is begin null; end conftest;
4281EOF
4282acx_cv_cc_gcc_supports_ada=no
4283# There is a bug in old released versions of GCC which causes the
4284# driver to exit successfully when the appropriate language module
4285# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4286# Therefore we must check for the error message as well as an
4287# unsuccessful exit.
1db673ca
RO
4288# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4289# given a .adb file, but produce no object file. So we must check
4290# if an object file was really produced to guard against this.
55ffb5ed 4291errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4292if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4293 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4294fi
4295rm -f conftest.*
4296fi
2aeb72e9
DD
4297echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4298echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4299
5305be7e 4300if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4301 have_gnat=yes
4302else
4303 have_gnat=no
4304fi
4305
2aeb72e9
DD
4306echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4307echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4308if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4310else
4311 echo abfoo >t1
4312 echo cdfoo >t2
4313 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4314 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4315 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4316 :
4317 else
4318 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4319 fi
4320 fi
a76494aa
PB
4321 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4322 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4323 :
a76494aa
PB
4324 else
4325 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4326 fi
4327 fi
4328 rm t1 t2
4329
4330fi
2aeb72e9
DD
4331echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4332echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4333do_compare="$gcc_cv_prog_cmp_skip"
4334
4335
55ffb5ed 4336
bebf829d 4337# Check for GMP and MPFR
e69bf64b 4338gmplibs="-lmpfr -lgmp"
6de9cd9a 4339gmpinc=
e69bf64b
PB
4340have_gmp=no
4341
bebf829d
PB
4342# Specify a location for mpfr
4343# check for this first so it ends up on the link line before gmp.
1c710c3c 4344
2aeb72e9 4345# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4346if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4347 withval="$with_mpfr_dir"
4348 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4349Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4350echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4351Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4352 { (exit 1); exit 1; }; }
2aeb72e9 4353fi;
bebf829d
PB
4354
4355
2aeb72e9 4356# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4357if test "${with_mpfr+set}" = set; then
2aeb72e9 4358 withval="$with_mpfr"
1c710c3c 4359
2aeb72e9 4360fi;
bebf829d 4361
2aeb72e9 4362# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4363if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4364 withval="$with_mpfr_include"
1c710c3c 4365
2aeb72e9 4366fi;
8a877c9c 4367
2aeb72e9 4368# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4369if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4370 withval="$with_mpfr_lib"
8a877c9c 4371
2aeb72e9 4372fi;
bebf829d
PB
4373
4374if test "x$with_mpfr" != x; then
4375 gmplibs="-L$with_mpfr/lib $gmplibs"
4376 gmpinc="-I$with_mpfr/include"
4377fi
8a877c9c
KG
4378if test "x$with_mpfr_include" != x; then
4379 gmpinc="-I$with_mpfr_include"
4380fi
4381if test "x$with_mpfr_lib" != x; then
4382 gmplibs="-L$with_mpfr_lib $gmplibs"
4383fi
e69bf64b
PB
4384if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4385 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4386 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4387 # Do not test the mpfr version. Assume that it is sufficient, since
4388 # it is in the source tree, and the library has not been built yet
4389 # but it would be included on the link line in the version check below
4390 # hence making the test fail.
4391 have_gmp=yes
4392fi
bebf829d 4393
6de9cd9a 4394# Specify a location for gmp
1c710c3c 4395
2aeb72e9 4396# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4397if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4398 withval="$with_gmp_dir"
4399 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4400Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4401echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4402Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4403 { (exit 1); exit 1; }; }
2aeb72e9 4404fi;
6de9cd9a 4405
6de9cd9a 4406
2aeb72e9 4407# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4408if test "${with_gmp+set}" = set; then
2aeb72e9 4409 withval="$with_gmp"
1c710c3c 4410
2aeb72e9 4411fi;
6de9cd9a 4412
2aeb72e9 4413# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4414if test "${with_gmp_include+set}" = set; then
2aeb72e9 4415 withval="$with_gmp_include"
1c710c3c 4416
2aeb72e9 4417fi;
8a877c9c 4418
2aeb72e9 4419# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4420if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4421 withval="$with_gmp_lib"
8a877c9c 4422
2aeb72e9 4423fi;
8a877c9c 4424
6de9cd9a 4425
bebf829d
PB
4426if test "x$with_gmp" != x; then
4427 gmplibs="-L$with_gmp/lib $gmplibs"
4428 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4429fi
8a877c9c
KG
4430if test "x$with_gmp_include" != x; then
4431 gmpinc="-I$with_gmp_include $gmpinc"
4432fi
4433if test "x$with_gmp_lib" != x; then
4434 gmplibs="-L$with_gmp_lib $gmplibs"
4435fi
e69bf64b
PB
4436if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4437 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4438 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4439 # Do not test the gmp version. Assume that it is sufficient, since
4440 # it is in the source tree, and the library has not been built yet
4441 # but it would be included on the link line in the version check below
4442 # hence making the test fail.
4443 have_gmp=yes
4444fi
6de9cd9a 4445
d943d7c4 4446if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4447 have_gmp=yes
4448 saved_CFLAGS="$CFLAGS"
4449 CFLAGS="$CFLAGS $gmpinc"
4450 # Check GMP actually works
2aeb72e9
DD
4451 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4452echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4453
4454cat >conftest.$ac_ext <<_ACEOF
4455/* confdefs.h. */
4456_ACEOF
4457cat confdefs.h >>conftest.$ac_ext
4458cat >>conftest.$ac_ext <<_ACEOF
4459/* end confdefs.h. */
6de9cd9a 4460#include "gmp.h"
1c710c3c
DJ
4461int
4462main ()
4463{
6de9cd9a 4464
e69bf64b
PB
4465 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4466 choke me
4467 #endif
1c710c3c
DJ
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473rm -f conftest.$ac_objext
2aeb72e9
DD
4474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 (eval $ac_try) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4497else
4498 echo "$as_me: failed program was:" >&5
4499sed 's/^/| /' conftest.$ac_ext >&5
4500
2aeb72e9
DD
4501echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4503fi
2aeb72e9 4504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4505
e69bf64b
PB
4506 if test x"$have_gmp" = xyes; then
4507 saved_LIBS="$LIBS"
4508 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4509 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4510echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4511 cat >conftest.$ac_ext <<_ACEOF
4512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
70ec446f 4517#include <gmp.h>
e69bf64b 4518 #include <mpfr.h>
1c710c3c
DJ
4519int
4520main ()
4521{
e48d66a9 4522
e69bf64b
PB
4523 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4524 choke me
4525 #endif
54e433bc
MK
4526 mpfr_t n;
4527 mpfr_t x;
e69bf64b 4528 int t;
54e433bc
MK
4529 mpfr_init (n);
4530 mpfr_init (x);
e69bf64b
PB
4531 mpfr_atan2 (n, n, x, GMP_RNDN);
4532 mpfr_erfc (n, x, GMP_RNDN);
4533 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4534
4535 ;
4536 return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
1c710c3c
DJ
4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
a3993f33 4567#include <gmp.h>
e69bf64b 4568 #include <mpfr.h>
1c710c3c
DJ
4569int
4570main ()
4571{
a3993f33 4572
e69bf64b
PB
4573 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4574 choke me
4575 #endif
4576 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4584 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag"
4592 || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4606else
4607 echo "$as_me: failed program was:" >&5
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
2aeb72e9
DD
4610echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4611echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4612fi
2aeb72e9 4613rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4614 conftest$ac_exeext conftest.$ac_ext
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
2aeb72e9
DD
4619echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4621fi
2aeb72e9 4622rm -f conftest.err conftest.$ac_objext \
1c710c3c 4623 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4624 LIBS="$saved_LIBS"
4625 fi
4626 CFLAGS="$saved_CFLAGS"
6de9cd9a 4627
e69bf64b 4628 if test x$have_gmp != xyes; then
1c710c3c
DJ
4629 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4630Try the --with-gmp and/or --with-mpfr options to specify their locations.
4631Copies of these libraries' source code can be found at their respective
4632hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4633See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4634If you obtained GMP and/or MPFR from a vendor distribution package, make
4635sure that you have installed both the libraries and the header files.
4636They may be located in separate packages." >&5
4637echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4638Try the --with-gmp and/or --with-mpfr options to specify their locations.
4639Copies of these libraries' source code can be found at their respective
4640hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4641See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4642If you obtained GMP and/or MPFR from a vendor distribution package, make
4643sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4644They may be located in separate packages." >&2;}
4645 { (exit 1); exit 1; }; }
e69bf64b 4646 fi
70ec446f
KG
4647fi
4648
bebf829d 4649# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4650
4651
4652
1e0f07d3 4653# By default, C is the only stage 1 language.
e1888513 4654stage1_languages=,c,
2805b53a 4655
55ffb5ed
NN
4656# Figure out what language subdirectories are present.
4657# Look if the user specified --enable-languages="..."; if not, use
4658# the environment variable $LANGUAGES if defined. $LANGUAGES might
4659# go away some day.
4660# NB: embedded tabs in this IF block -- do not untabify
4661if test -d ${srcdir}/gcc; then
4662 if test x"${enable_languages+set}" != xset; then
4663 if test x"${LANGUAGES+set}" = xset; then
4664 enable_languages="${LANGUAGES}"
4665 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4666 else
4667 enable_languages=all
4668 fi
4669 else
4670 if test x"${enable_languages}" = x ||
4671 test x"${enable_languages}" = xyes;
4672 then
4673 echo configure.in: --enable-languages needs at least one language argument 1>&2
4674 exit 1
4675 fi
4676 fi
4677 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4678
7f26dfa3
FXC
4679 # 'f95' is the old name for the 'fortran' language. We issue a warning
4680 # and make the substitution.
4681 case ,${enable_languages}, in
4682 *,f95,*)
4683 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4684 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4685 ;;
4686 esac
4687
55ffb5ed
NN
4688 # First scan to see if an enabled language requires some other language.
4689 # We assume that a given config-lang.in will list all the language
4690 # front ends it requires, even if some are required indirectly.
4691 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4692 case ${lang_frag} in
4693 ..) ;;
4694 # The odd quoting in the next line works around
4695 # an apparent bug in bash 1.12 on linux.
4696 ${srcdir}/gcc/[*]/config-lang.in) ;;
4697 *)
4698 # From the config-lang.in, get $language, $lang_requires
4699 language=
4700 lang_requires=
4701 . ${lang_frag}
4702 for other in ${lang_requires} ; do
4703 case ,${enable_languages}, in
4704 *,$other,*) ;;
4705 *,all,*) ;;
4706 *,$language,*)
4707 echo " \`$other' language required by \`$language'; enabling" 1>&2
4708 enable_languages="${enable_languages},${other}"
4709 ;;
4710 esac
4711 done
4712 ;;
4713 esac
4714 done
4715
e1888513 4716 new_enable_languages=,c,
55ffb5ed 4717 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4718 potential_languages=,c,
55ffb5ed
NN
4719
4720 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4721 case ${lang_frag} in
4722 ..) ;;
4723 # The odd quoting in the next line works around
4724 # an apparent bug in bash 1.12 on linux.
4725 ${srcdir}/gcc/[*]/config-lang.in) ;;
4726 *)
1c710c3c 4727 # From the config-lang.in, get $language, $target_libs,
2805b53a 4728 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4729 language=
4730 target_libs=
4731 lang_dirs=
1546bb64 4732 subdir_requires=
e1888513
PB
4733 boot_language=no
4734 build_by_default=yes
55ffb5ed 4735 . ${lang_frag}
e1888513
PB
4736 if test x${language} = x; then
4737 echo "${lang_frag} doesn't set \$language." 1>&2
4738 exit 1
4739 fi
4740
4741 case ,${enable_languages}, in
4742 *,${language},*)
55ffb5ed
NN
4743 # Language was explicitly selected; include it.
4744 add_this_lang=yes
4745 ;;
e1888513
PB
4746 *,all,*)
4747 # 'all' was selected, select it if it is a default language
4748 add_this_lang=${build_by_default}
55ffb5ed
NN
4749 ;;
4750 *)
4751 add_this_lang=no
4752 ;;
4753 esac
6de9cd9a 4754
1546bb64 4755 # Disable languages that need other directories if these aren't available.
95695ad3 4756 for i in $subdir_requires; do
b6348cb3 4757 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4758 case ,${enable_languages}, in
4759 *,${language},*)
4760 # Specifically requested language; tell them.
1c710c3c
DJ
4761 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4762echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4763 { (exit 1); exit 1; }; }
1546bb64
PB
4764 ;;
4765 *)
4766 # Silently disable.
e1888513 4767 add_this_lang=unsupported
1546bb64
PB
4768 ;;
4769 esac
4770 done
4771
e1888513
PB
4772 # Disable Ada if no preexisting GNAT is available.
4773 case ,${enable_languages},:${language}:${have_gnat} in
4774 *,${language},*:ada:no)
4775 # Specifically requested language; tell them.
1c710c3c
DJ
4776 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4777echo "$as_me: error: GNAT is required to build $language" >&2;}
4778 { (exit 1); exit 1; }; }
e1888513
PB
4779 ;;
4780 *:ada:no)
4781 # Silently disable.
4782 add_this_lang=unsupported
4783 ;;
4784 esac
4785
4fab7234
HPN
4786 # Disable a language that is unsupported by the target.
4787 case " $unsupported_languages " in
4788 *" $language "*)
e1888513 4789 add_this_lang=unsupported
4fab7234
HPN
4790 ;;
4791 esac
4792
6de9cd9a 4793 case $add_this_lang in
e1888513 4794 unsupported)
55ffb5ed 4795 # Remove language-dependent dirs.
2805b53a
NN
4796 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4797 ;;
e1888513
PB
4798 no)
4799 # Remove language-dependent dirs; still show language as supported.
4800 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4801 potential_languages="${potential_languages}${language},"
4802 ;;
4803 yes)
4804 new_enable_languages="${new_enable_languages}${language},"
4805 potential_languages="${potential_languages}${language},"
2805b53a
NN
4806 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4807 case ${boot_language} in
4808 yes)
340de83f 4809 # Add to (comma-separated) list of stage 1 languages.
e1888513 4810 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4811 ;;
4812 esac
4813 ;;
55ffb5ed
NN
4814 esac
4815 ;;
4816 esac
4817 done
4818
2aeb72e9 4819 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4820if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4821 enableval="$enable_stage1_languages"
4822 case ,${enable_stage1_languages}, in
e1888513
PB
4823 ,no,|,,)
4824 # Set it to something that will have no effect in the loop below
4825 enable_stage1_languages=c ;;
4826 ,yes,)
4827 enable_stage1_languages=`echo $new_enable_languages | \
4828 sed -e "s/^,//" -e "s/,$//" ` ;;
4829 *,all,*)
4830 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4831 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4832 esac
4833
4834 # Add "good" languages from enable_stage1_languages to stage1_languages,
4835 # while "bad" languages go in missing_languages. Leave no duplicates.
4836 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4837 case $potential_languages in
4838 *,$i,*)
4839 case $stage1_languages in
4840 *,$i,*) ;;
4841 *) stage1_languages="$stage1_languages$i," ;;
4842 esac ;;
4843 *)
4844 case $missing_languages in
4845 *,$i,*) ;;
4846 *) missing_languages="$missing_languages$i," ;;
4847 esac ;;
4848 esac
4849 done
2aeb72e9 4850fi;
e1888513
PB
4851
4852 # Remove leading/trailing commas that were added for simplicity
4853 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4854 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4855 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4856 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4857
55ffb5ed 4858 if test "x$missing_languages" != x; then
1c710c3c 4859 { { echo "$as_me:$LINENO: error:
0cf085e4 4860The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4861Supported languages are: ${potential_languages}" >&5
4862echo "$as_me: error:
4863The following requested languages could not be built: ${missing_languages}
4864Supported languages are: ${potential_languages}" >&2;}
4865 { (exit 1); exit 1; }; }
55ffb5ed 4866 fi
55ffb5ed
NN
4867 if test "x$new_enable_languages" != "x$enable_languages"; then
4868 echo The following languages will be built: ${new_enable_languages}
e1888513 4869 enable_languages="$new_enable_languages"
55ffb5ed 4870 fi
e1888513 4871
1c710c3c 4872
b2eaac4a 4873 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4874fi
4875
27079765
AH
4876# Handle --disable-<component> generically.
4877for dir in $configdirs $build_configdirs $target_configdirs ; do
4878 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4879 if eval test x\${enable_${dirname}} "=" xno ; then
4880 noconfigdirs="$noconfigdirs $dir"
4881 fi
4882done
4883
7cd0cf9c 4884# Check for Boehm's garbage collector
2aeb72e9 4885# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4886if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4887 enableval="$enable_objc_gc"
4888 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4889 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4890 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4891echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4892 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4893 ;;
4894esac
2aeb72e9 4895fi;
7cd0cf9c
DA
4896
4897# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4898case ,${enable_languages},:${enable_objc_gc} in
4899 *,objc,*:yes)
7cd0cf9c
DA
4900 # Keep target-boehm-gc if requested for Objective-C.
4901 ;;
7cd0cf9c 4902 *)
2a79fd67
DA
4903 # Otherwise remove target-boehm-gc depending on target-libjava.
4904 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4905 noconfigdirs="$noconfigdirs target-boehm-gc"
4906 fi
7cd0cf9c
DA
4907 ;;
4908esac
4909
ee6a22df
L
4910# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4911# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4912# If we have the source for $noconfigdirs entries, add them to $notsupp.
4913
4914notsupp=""
4915for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4916 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4917 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4918 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4919 if test -r $srcdir/$dirname/configure ; then
4920 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4921 true
4922 else
4923 notsupp="$notsupp $dir"
4924 fi
4925 fi
4926 fi
ee6a22df
L
4927 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4928 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4929 if test -r $srcdir/$dirname/configure ; then
4930 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4931 true
4932 else
4933 notsupp="$notsupp $dir"
4934 fi
4935 fi
4936 fi
55ffb5ed
NN
4937 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4938 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4939 if test -r $srcdir/$dirname/configure ; then
4940 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4941 true
4942 else
4943 notsupp="$notsupp $dir"
4944 fi
4945 fi
4946 fi
4947done
4948
4949# Sometimes the tools are distributed with libiberty but with no other
4950# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4951# Don't let libgcc imply libiberty either.
55ffb5ed 4952if test -n "${target_configdirs}" ; then
54fdc474 4953 libgcc=
55ffb5ed
NN
4954 others=
4955 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4956 if test "$i" = "libgcc"; then
4957 libgcc=target-libgcc
4958 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4959 if test -r $srcdir/$i/configure ; then
4960 others=yes;
4961 break;
4962 fi
4963 fi
4964 done
4965 if test -z "${others}" ; then
54fdc474 4966 target_configdirs=$libgcc
55ffb5ed
NN
4967 fi
4968fi
4969
4970# Quietly strip out all directories which aren't configurable in this tree.
4971# This relies on all configurable subdirectories being autoconfiscated, which
4972# is now the case.
23f6b2f9
PB
4973build_configdirs_all="$build_configdirs"
4974build_configdirs=
4975for i in ${build_configdirs_all} ; do
1c710c3c 4976 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4977 if test -f ${srcdir}/$j/configure ; then
4978 build_configdirs="${build_configdirs} $i"
4979 fi
4980done
4981
55ffb5ed
NN
4982configdirs_all="$configdirs"
4983configdirs=
4984for i in ${configdirs_all} ; do
4985 if test -f ${srcdir}/$i/configure ; then
4986 configdirs="${configdirs} $i"
4987 fi
4988done
23f6b2f9 4989
55ffb5ed
NN
4990target_configdirs_all="$target_configdirs"
4991target_configdirs=
4992for i in ${target_configdirs_all} ; do
1c710c3c 4993 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4994 if test -f ${srcdir}/$j/configure ; then
4995 target_configdirs="${target_configdirs} $i"
4996 fi
4997done
4998
4999# Produce a warning message for the subdirs we can't configure.
5000# This isn't especially interesting in the Cygnus tree, but in the individual
5001# FSF releases, it's important to let people know when their machine isn't
5002# supported by the one or two programs in a package.
5003
5004if test -n "${notsupp}" && test -z "${norecursion}" ; then
5005 # If $appdirs is non-empty, at least one of those directories must still
5006 # be configured, or we error out. (E.g., if the gas release supports a
5007 # specified target in some subdirs but not the gas subdir, we shouldn't
5008 # pretend that all is well.)
5009 if test -n "$appdirs" ; then
5010 for dir in $appdirs ; do
5011 if test -r $dir/Makefile.in ; then
5012 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5013 appdirs=""
5014 break
5015 fi
23f6b2f9 5016 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5017 appdirs=""
5018 break
5019 fi
5020 fi
5021 done
5022 if test -n "$appdirs" ; then
5023 echo "*** This configuration is not supported by this package." 1>&2
5024 exit 1
5025 fi
5026 fi
5027 # Okay, some application will build, or we don't care to check. Still
5028 # notify of subdirs not getting built.
5029 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5030 echo " ${notsupp}" 1>&2
5031 echo " (Any other directories should still work fine.)" 1>&2
5032fi
5033
5034case "$host" in
5035 *msdosdjgpp*)
5036 enable_gdbtk=no ;;
5037esac
5038
c3a86da9
DJ
5039# To find our prefix, in gcc_cv_tool_prefix.
5040
5041# The user is always right.
5042if test "${PATH_SEPARATOR+set}" != set; then
5043 echo "#! /bin/sh" >conf$$.sh
5044 echo "exit 0" >>conf$$.sh
5045 chmod +x conf$$.sh
5046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5047 PATH_SEPARATOR=';'
5048 else
5049 PATH_SEPARATOR=:
5050 fi
5051 rm -f conf$$.sh
5052fi
5053
5054
5055
5056if test "x$exec_prefix" = xNONE; then
5057 if test "x$prefix" = xNONE; then
5058 gcc_cv_tool_prefix=$ac_default_prefix
5059 else
5060 gcc_cv_tool_prefix=$prefix
5061 fi
5062else
5063 gcc_cv_tool_prefix=$exec_prefix
5064fi
5065
5066# If there is no compiler in the tree, use the PATH only. In any
5067# case, if there is no compiler in the tree nobody should use
5068# AS_FOR_TARGET and LD_FOR_TARGET.
5069if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5070 gcc_version=`cat $srcdir/gcc/BASE-VER`
5071 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5076 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5077else
5078 gcc_cv_tool_dirs=
5079fi
5080
5081if test x$build = x$target && test -n "$md_exec_prefix"; then
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5083fi
5084
5085
5086
55ffb5ed
NN
5087copy_dirs=
5088
1c710c3c 5089
2aeb72e9 5090# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5091if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5092 withval="$with_build_sysroot"
5093 if test x"$withval" != x ; then
526635cb
MM
5094 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5095 fi
5096else
5097 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5098fi;
526635cb
MM
5099
5100
c8aea42c
PB
5101
5102# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5103if test "${with_debug_prefix_map+set}" = set; then
5104 withval="$with_debug_prefix_map"
5105 if test x"$withval" != x; then
5106 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5107 for debug_map in $withval; do
5108 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5109 done
5110 fi
5111else
5112 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5113fi;
5114
5115
55ffb5ed
NN
5116# Handle --with-headers=XXX. If the value is not "yes", the contents of
5117# the named directory are copied to $(tooldir)/sys-include.
5118if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5119 if test x${is_cross_compiler} = xno ; then
5120 echo 1>&2 '***' --with-headers is only supported when cross compiling
5121 exit 1
5122 fi
5123 if test x"${with_headers}" != xyes ; then
c3a86da9 5124 x=${gcc_cv_tool_prefix}
1c710c3c 5125 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5126 fi
5127fi
5128
5129# Handle --with-libs=XXX. If the value is not "yes", the contents of
5130# the name directories are copied to $(tooldir)/lib. Multiple directories
5131# are permitted.
5132if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5133 if test x${is_cross_compiler} = xno ; then
5134 echo 1>&2 '***' --with-libs is only supported when cross compiling
5135 exit 1
5136 fi
5137 if test x"${with_libs}" != xyes ; then
5138 # Copy the libraries in reverse order, so that files in the first named
5139 # library override files in subsequent libraries.
c3a86da9 5140 x=${gcc_cv_tool_prefix}
55ffb5ed 5141 for l in ${with_libs}; do
1c710c3c 5142 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5143 done
5144 fi
5145fi
5146
e8b05380
PB
5147# Set with_gnu_as and with_gnu_ld as appropriate.
5148#
5149# This is done by determining whether or not the appropriate directory
5150# is available, and by checking whether or not specific configurations
5151# have requested that this magic not happen.
1c710c3c
DJ
5152#
5153# The command line options always override the explicit settings in
e8b05380
PB
5154# configure.in, and the settings in configure.in override this magic.
5155#
1c710c3c 5156# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5157# want to do that, then you should use the --without-gnu-as and
5158# --without-gnu-ld options for the configure script.
5159
5160if test x${use_gnu_as} = x &&
5161 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5162 with_gnu_as=yes
5163 extra_host_args="$extra_host_args --with-gnu-as"
5164fi
5165
5166if test x${use_gnu_ld} = x &&
5167 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5168 with_gnu_ld=yes
5169 extra_host_args="$extra_host_args --with-gnu-ld"
5170fi
5171
5172# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5173# can detect this case.
5174
5175if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5176 with_newlib=yes
5177 extra_host_args="$extra_host_args --with-newlib"
5178fi
5179
55ffb5ed
NN
5180# Handle ${copy_dirs}
5181set fnord ${copy_dirs}
5182shift
5183while test $# != 0 ; do
5184 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5185 :
5186 else
5187 echo Copying $1 to $2
5188
5189 # Use the install script to create the directory and all required
5190 # parent directories.
5191 if test -d $2 ; then
5192 :
5193 else
5194 echo >config.temp
5195 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5196 fi
5197
5198 # Copy the directory, assuming we have tar.
5199 # FIXME: Should we use B in the second tar? Not all systems support it.
5200 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5201
5202 # It is the responsibility of the user to correctly adjust all
5203 # symlinks. If somebody can figure out how to handle them correctly
5204 # here, feel free to add the code.
5205
5206 echo $1 > $2/COPIED
5207 fi
5208 shift; shift
5209done
5210
e8b05380
PB
5211# Determine a target-dependent exec_prefix that the installed
5212# gcc will search in. Keep this list sorted by triplet, with
5213# the *-*-osname triplets last.
5214md_exec_prefix=
5215case "${target}" in
5216 alpha*-*-*vms*)
5217 md_exec_prefix=/gnu/lib/gcc-lib
5218 ;;
30b74385 5219 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5220 md_exec_prefix=/dev/env/DJDIR/bin
5221 ;;
30b74385 5222 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5223 if test $with_gnu_as = yes; then
5224 md_exec_prefix=/usr/gnu/bin
5225 else
5226 md_exec_prefix=/usr/ccs/bin/elf
5227 fi
5228 ;;
5229
5230 mn10300-*-* | \
5231 powerpc-*-chorusos* | \
5232 powerpc*-*-eabi* | \
5233 powerpc*-*-sysv* | \
5234 powerpc*-*-kaos* | \
5235 s390x-ibm-tpf*)
5236 md_exec_prefix=/usr/ccs/bin
5237 ;;
5238 sparc64-*-elf*)
5239 ;;
5240 v850*-*-*)
5241 md_exec_prefix=/usr/ccs/bin
5242 ;;
5243 xtensa-*-elf*)
5244 ;;
5245
5246 *-*-beos* | \
5247 *-*-elf* | \
5248 *-*-hpux* | \
5249 *-*-netware* | \
5250 *-*-nto-qnx* | \
5251 *-*-rtems* | \
5252 *-*-solaris2* | \
30b74385 5253 *-*-sysv[45]* | \
e8b05380
PB
5254 *-*-vxworks* | \
5255 *-wrs-windiss)
5256 md_exec_prefix=/usr/ccs/bin
5257 ;;
5258esac
5259
671aa708
NN
5260extra_arflags_for_target=
5261extra_nmflags_for_target=
5262extra_ranlibflags_for_target=
5263target_makefile_frag=/dev/null
5264case "${target}" in
3e19841a
PB
5265 mep*-*-*)
5266 target_makefile_frag="config/mt-mep"
5267 ;;
58e24147
AM
5268 spu-*-*)
5269 target_makefile_frag="config/mt-spu"
5270 ;;
4bf6c438
RS
5271 mips*-sde-elf*)
5272 target_makefile_frag="config/mt-sde"
5273 ;;
61fec9ff 5274 *-*-netware*)
671aa708
NN
5275 target_makefile_frag="config/mt-netware"
5276 ;;
98a5bb3b
RM
5277 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5278 target_makefile_frag="config/mt-gnu"
671aa708
NN
5279 ;;
5280 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5281 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5282 # commands to handle both 32-bit and 64-bit objects. These flags are
5283 # harmless if we're using GNU nm or ar.
5284 extra_arflags_for_target=" -X32_64"
5285 extra_nmflags_for_target=" -B -X32_64"
5286 ;;
5287 *-*-darwin*)
5288 # ranlib from Darwin requires the -c flag to look at common symbols.
5289 extra_ranlibflags_for_target=" -c"
5290 ;;
5291 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5292 target_makefile_frag="config/mt-wince"
5293 ;;
5294esac
5295
5296alphaieee_frag=/dev/null
5297case $target in
5298 alpha*-*-*)
5299 # This just makes sure to use the -mieee option to build target libs.
5300 # This should probably be set individually by each library.
5301 alphaieee_frag="config/mt-alphaieee"
5302 ;;
5303esac
5304
5305# If --enable-target-optspace always use -Os instead of -O2 to build
5306# the target libraries, similarly if it is not specified, use -Os
5307# on selected platforms.
5308ospace_frag=/dev/null
5309case "${enable_target_optspace}:${target}" in
5310 yes:*)
5311 ospace_frag="config/mt-ospace"
5312 ;;
5313 :d30v-*)
5314 ospace_frag="config/mt-d30v"
5315 ;;
5316 :m32r-* | :d10v-* | :fr30-*)
5317 ospace_frag="config/mt-ospace"
5318 ;;
5319 no:* | :*)
5320 ;;
5321 *)
5322 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5323 ;;
5324esac
5325
671aa708
NN
5326# Default to using --with-stabs for certain targets.
5327if test x${with_stabs} = x ; then
5328 case "${target}" in
89a95129 5329 mips*-*-irix[56]*)
671aa708
NN
5330 ;;
5331 mips*-*-* | alpha*-*-osf*)
5332 with_stabs=yes;
5333 extra_host_args="${extra_host_args} --with-stabs"
5334 ;;
5335 esac
5336fi
5337
5338# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5339# them automatically.
5340case "${host}" in
1c710c3c 5341 hppa*64*-*-hpux11*)
671aa708
NN
5342 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5343 ;;
5344esac
5345
671aa708
NN
5346# Some systems (e.g., one of the i386-aix systems the gas testers are
5347# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5348tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5349build_tooldir=${tooldir}
5350
671aa708
NN
5351# Create a .gdbinit file which runs the one in srcdir
5352# and tells GDB to look there for source files.
5353
5354if test -r ${srcdir}/.gdbinit ; then
5355 case ${srcdir} in
5356 .) ;;
5357 *) cat > ./.gdbinit <<EOF
5358# ${NO_EDIT}
5359dir ${srcdir}
5360dir .
5361source ${srcdir}/.gdbinit
5362EOF
5363 ;;
5364 esac
5365fi
5366
671aa708
NN
5367# Make sure that the compiler is able to generate an executable. If it
5368# can't, we are probably in trouble. We don't care whether we can run the
5369# executable--we might be using a cross compiler--we only care whether it
5370# can be created. At this point the main configure script has set CC.
5371we_are_ok=no
5372echo "int main () { return 0; }" > conftest.c
5373${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5374if test $? = 0 ; then
5375 if test -s conftest || test -s conftest.exe ; then
5376 we_are_ok=yes
5377 fi
1c710c3c 5378fi
671aa708
NN
5379case $we_are_ok in
5380 no)
5381 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5382 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5383 rm -f conftest*
5384 exit 1
5385 ;;
5386esac
5387rm -f conftest*
5388
5389# The Solaris /usr/ucb/cc compiler does not appear to work.
5390case "${host}" in
5391 sparc-sun-solaris2*)
5392 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5393 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5394 could_use=
5395 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5396 if test -d /opt/cygnus/bin ; then
5397 if test "$could_use" = "" ; then
5398 could_use="/opt/cygnus/bin"
5399 else
5400 could_use="$could_use or /opt/cygnus/bin"
5401 fi
5402 fi
5403 if test "$could_use" = "" ; then
5404 echo "Warning: compilation may fail because you're using"
5405 echo "/usr/ucb/cc. You should change your PATH or CC "
5406 echo "variable and rerun configure."
5407 else
5408 echo "Warning: compilation may fail because you're using"
5409 echo "/usr/ucb/cc, when you should use the C compiler from"
5410 echo "$could_use. You should change your"
5411 echo "PATH or CC variable and rerun configure."
5412 fi
5413 fi
5414 ;;
5415esac
5416
671aa708
NN
5417case "${host}" in
5418 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5419 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5420 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5421esac
5422
5423# Record target_configdirs and the configure arguments for target and
5424# build configuration in Makefile.
5425target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5426build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5427
671aa708
NN
5428# Determine whether gdb needs tk/tcl or not.
5429# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5430# and in that case we want gdb to be built without tk. Ugh!
5431# In fact I believe gdb is the *only* package directly dependent on tk,
5432# so we should be able to put the 'maybe's in unconditionally and
5433# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5434# 100% sure that that's safe though.
e914a571 5435
b4f96efe 5436gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5437case "$enable_gdbtk" in
5438 no)
5439 GDB_TK="" ;;
e914a571
AC
5440 yes)
5441 GDB_TK="${gdb_tk}" ;;
671aa708 5442 *)
e914a571
AC
5443 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5444 # distro. Eventually someone will fix this and move Insight, nee
5445 # gdbtk to a separate directory.
5446 if test -d ${srcdir}/gdb/gdbtk ; then
5447 GDB_TK="${gdb_tk}"
5448 else
5449 GDB_TK=""
5450 fi
5451 ;;
671aa708 5452esac
ef9db8d5
DJ
5453CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5454INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5455
60975492 5456# Strip out unwanted targets.
8b87bb96
NN
5457
5458# While at that, we remove Makefiles if we were started for recursive
5459# configuration, so that the top-level Makefile reconfigures them,
5460# like we used to do when configure itself was recursive.
8b87bb96 5461
60975492
PB
5462# Loop over modules. $extrasub must be used with care, limiting as
5463# much as possible the usage of range addresses. That's because autoconf
5464# splits the sed script to overcome limits in the number of commands,
5465# and relying on carefully-timed sed passes may turn out to be very hard
5466# to maintain later. In this particular case, you just have to be careful
5467# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5468
2aeb72e9 5469# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5470if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5471 enableval="$enable_bootstrap"
5472
f516a7da 5473else
ce521a9c 5474 enable_bootstrap=default
2aeb72e9 5475fi;
f516a7da 5476
ce521a9c
PB
5477# Issue errors and warnings for invalid/strange bootstrap combinations.
5478case "$configdirs" in
5479 *gcc*) have_compiler=yes ;;
5480 *) have_compiler=no ;;
5481esac
5482
5483case "$have_compiler:$host:$target:$enable_bootstrap" in
5484 *:*:*:no) ;;
5485
1ca26cd2 5486 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5487 # and we are in a native configuration.
5488 yes:$build:$build:default)
1ca26cd2 5489 enable_bootstrap=yes ;;
ce521a9c
PB
5490
5491 *:*:*:default)
5492 enable_bootstrap=no ;;
5493
5494 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5495 yes:$build:$build:yes)
ce521a9c
PB
5496 ;;
5497
5498 # Other configurations, but we have a compiler. Assume the user knows
5499 # what he's doing.
2d309510 5500 yes:*:*:yes)
1c710c3c
DJ
5501 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5502echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5503 ;;
5504
5505 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5506 no:*:*:yes)
1c710c3c
DJ
5507 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5508echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5509 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5510
5511 # Fail if wrong command line
5512 *)
1c710c3c
DJ
5513 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5514echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5515 { (exit 1); exit 1; }; }
ce521a9c
PB
5516 ;;
5517esac
5518
5519# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5520case "$enable_bootstrap" in
5521 yes)
5607edfd 5522 bootstrap_suffix=bootstrap ;;
f516a7da 5523 no)
5607edfd 5524 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5525esac
5526
23f6b2f9 5527for module in ${build_configdirs} ; do
5607edfd
PB
5528 if test -z "${no_recursion}" \
5529 && test -f ${build_subdir}/${module}/Makefile; then
5530 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5531 rm -f ${build_subdir}/${module}/Makefile
5532 fi
5533 extrasub="$extrasub
5534/^@if build-$module\$/d
5535/^@endif build-$module\$/d
5536/^@if build-$module-$bootstrap_suffix\$/d
5537/^@endif build-$module-$bootstrap_suffix\$/d"
5538done
5539for module in ${configdirs} ; do
a6fbc1e2 5540 if test -z "${no_recursion}"; then
f063a9ed 5541 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5542 if test -f ${file}; then
5543 echo 1>&2 "*** removing ${file} to force reconfigure"
5544 rm -f ${file}
5545 fi
5546 done
5607edfd
PB
5547 fi
5548 extrasub="$extrasub
5549/^@if $module\$/d
5550/^@endif $module\$/d
5551/^@if $module-$bootstrap_suffix\$/d
5552/^@endif $module-$bootstrap_suffix\$/d"
5553done
5554for module in ${target_configdirs} ; do
5555 if test -z "${no_recursion}" \
5556 && test -f ${target_subdir}/${module}/Makefile; then
5557 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5558 rm -f ${target_subdir}/${module}/Makefile
5559 fi
5560 extrasub="$extrasub
5561/^@if target-$module\$/d
5562/^@endif target-$module\$/d
5563/^@if target-$module-$bootstrap_suffix\$/d
5564/^@endif target-$module-$bootstrap_suffix\$/d"
5565done
5566
60975492
PB
5567extrasub="$extrasub
5568/^@if /,/^@endif /d"
671aa708
NN
5569
5570# Create the serialization dependencies. This uses a temporary file.
5571
2aeb72e9 5572# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5573if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5574 enableval="$enable_serial_configure"
ade82b16 5575
2aeb72e9 5576fi;
ade82b16 5577
bf1d3e81
NN
5578case ${enable_serial_configure} in
5579 yes)
5580 enable_serial_build_configure=yes
5581 enable_serial_host_configure=yes
5582 enable_serial_target_configure=yes
5583 ;;
5584esac
5585
671aa708
NN
5586# These force 'configure's to be done one at a time, to avoid problems
5587# with contention over a shared config.cache.
5588rm -f serdep.tmp
ade82b16 5589echo '# serdep.tmp' > serdep.tmp
671aa708 5590olditem=
bf1d3e81 5591test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5592for item in ${build_configdirs} ; do
5593 case ${olditem} in
5594 "") ;;
ade82b16 5595 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5596 esac
5597 olditem=${item}
5598done
5599olditem=
bf1d3e81 5600test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5601for item in ${configdirs} ; do
5602 case ${olditem} in
5603 "") ;;
ade82b16 5604 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5605 esac
5606 olditem=${item}
5607done
5608olditem=
bf1d3e81 5609test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5610for item in ${target_configdirs} ; do
5611 case ${olditem} in
5612 "") ;;
ade82b16 5613 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5614 esac
5615 olditem=${item}
5616done
5617serialization_dependencies=serdep.tmp
5618
5619
ade82b16 5620# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5621# target, nonopt, and variable assignments. These are the ones we
5622# might not want to pass down to subconfigures. Also strip
5623# program-prefix, program-suffix, and program-transform-name, so that
5624# we can pass down a consistent program-transform-name.
5625baseargs=
5626keep_next=no
5627skip_next=no
5628eval "set -- $ac_configure_args"
44bfc3ac
DJ
5629for ac_arg
5630do
1c710c3c
DJ
5631 if test X"$skip_next" = X"yes"; then
5632 skip_next=no
5633 continue
5634 fi
5635 if test X"$keep_next" = X"yes"; then
5636 case $ac_arg in
5637 *\'*)
5638 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5639 esac
5640 baseargs="$baseargs '$ac_arg'"
5641 keep_next=no
5642 continue
5643 fi
5644
5645 # Handle separated arguments. Based on the logic generated by
5646 # autoconf 2.59.
5647 case $ac_arg in
5648 *=* | --config-cache | -C | -disable-* | --disable-* \
5649 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5650 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5651 | -with-* | --with-* | -without-* | --without-* | --x)
5652 separate_arg=no
5653 ;;
5654 -*)
5655 separate_arg=yes
5656 ;;
5657 *)
5658 separate_arg=no
5659 ;;
5660 esac
5661
5662 case "$ac_arg" in
5663 --no*)
5664 continue
5665 ;;
5666 --c* | \
5667 --sr* | \
5668 --ho* | \
5669 --bu* | \
5670 --t* | \
5671 --program-* | \
5672 -cache_file* | \
5673 -srcdir* | \
5674 -host* | \
5675 -build* | \
5676 -target* | \
5677 -program-prefix* | \
5678 -program-suffix* | \
5679 -program-transform-name* )
5680 skip_next=$separate_arg
5681 continue
5682 ;;
5683 -*)
5684 # An option. Add it.
5685 case $ac_arg in
5686 *\'*)
5687 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5688 esac
5689 baseargs="$baseargs '$ac_arg'"
5690 keep_next=$separate_arg
5691 ;;
5692 *)
5693 # Either a variable assignment, or a nonopt (triplet). Don't
5694 # pass it down; let the Makefile handle this.
5695 continue
5696 ;;
5697 esac
5698done
5699# Remove the initial space we just introduced and, as these will be
5700# expanded by make, quote '$'.
5701baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5702
43bb47c2
DJ
5703# Add in --program-transform-name, after --program-prefix and
5704# --program-suffix have been applied to it. Autoconf has already
5705# doubled dollar signs and backslashes in program_transform_name; we want
5706# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5707# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5708# Also, because we want to override the logic in subdir configure scripts to
5709# choose program_transform_name, replace any s,x,x, with s,y,y,.
5710sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5711${program_transform_name}
5712EOF_SED
5713gcc_transform_name=`cat conftestsed.out`
5714rm -f conftestsed.out
5715baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5716if test "$silent" = yes; then
5717 baseargs="$baseargs --silent"
5718fi
43bb47c2 5719
671aa708
NN
5720# For the build-side libraries, we just need to pretend we're native,
5721# and not use the same cache file. Multilibs are neither needed nor
5722# desired.
e69bf64b 5723build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5724
5725# For host modules, accept cache file option, or specification as blank.
5726case "${cache_file}" in
5727"") # empty
5728 cache_file_option="" ;;
5729/* | [A-Za-z]:[\\/]* ) # absolute path
5730 cache_file_option="--cache-file=${cache_file}" ;;
5731*) # relative path
5732 cache_file_option="--cache-file=../${cache_file}" ;;
5733esac
5734
09438bde
NN
5735# Host dirs don't like to share a cache file either, horribly enough.
5736# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5737host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5738
5739target_configargs=${baseargs}
5740
5741# Passing a --with-cross-host argument lets the target libraries know
5742# whether they are being built with a cross-compiler or being built
5743# native. However, it would be better to use other mechanisms to make the
5744# sorts of decisions they want to make on this basis. Please consider
5745# this option to be deprecated. FIXME.
5746if test x${is_cross_compiler} = xyes ; then
1c710c3c 5747 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5748fi
5749
5750# Default to --enable-multilib.
5751if test x${enable_multilib} = x ; then
5752 target_configargs="--enable-multilib ${target_configargs}"
5753fi
5754
5755# Pass --with-newlib if appropriate. Note that target_configdirs has
5756# changed from the earlier setting of with_newlib.
5757if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5758 target_configargs="--with-newlib ${target_configargs}"
5759fi
5760
6b9eb62c
NN
5761# Different target subdirs use different values of certain variables
5762# (notably CXX). Worse, multilibs use *lots* of different values.
5763# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5764# it doesn't automatically accept command-line overrides of them.
5765# This means it's not safe for target subdirs to share a cache file,
5766# which is disgusting, but there you have it. Hopefully this can be
5767# fixed in future. It's still worthwhile to use a cache file for each
5768# directory. I think.
5769
bebcd931
MS
5770# Pass the appropriate --build, --host, --target and --cache-file arguments.
5771# We need to pass --target, as newer autoconf's requires consistency
5772# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5773target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5774
671aa708
NN
5775FLAGS_FOR_TARGET=
5776case " $target_configdirs " in
5777 *" newlib "*)
5778 case " $target_configargs " in
5779 *" --with-newlib "*)
5780 case "$target" in
5781 *-cygwin*)
aa8f1f57 5782 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
5783 esac
5784
5785 # If we're not building GCC, don't discard standard headers.
5786 if test -d ${srcdir}/gcc; then
5787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5788
5789 if test "${build}" != "${host}"; then
5790 # On Canadian crosses, CC_FOR_TARGET will have already been set
5791 # by `configure', so we won't have an opportunity to add -Bgcc/
5792 # to it. This is right: we don't want to search that directory
5793 # for binaries, but we want the header files in there, so add
5794 # them explicitly.
215c351a 5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5796
5797 # Someone might think of using the pre-installed headers on
5798 # Canadian crosses, in case the installed compiler is not fully
5799 # compatible with the compiler being built. In this case, it
5800 # would be better to flag an error than risking having
5801 # incompatible object files being constructed. We can't
5802 # guarantee that an error will be flagged, but let's hope the
5803 # compiler will do it, when presented with incompatible header
5804 # files.
5805 fi
5806 fi
5807
5808 case "${target}-${is_cross_compiler}" in
f2a0e225 5809 i[3456789]86-*-linux*-no)
671aa708
NN
5810 # Here host == target, so we don't need to build gcc,
5811 # so we don't want to discard standard headers.
5812 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5813 ;;
5814 *)
5815 # If we're building newlib, use its generic headers last, but search
5816 # for any libc-related directories first (so make it the last -B
5817 # switch).
5818 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
5819
5820 # If we're building libgloss, find the startup file, simulator library
5821 # and linker script.
5822 case " $target_configdirs " in
5823 *" libgloss "*)
5824 # Look for startup file, simulator library and maybe linker script.
5825 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5826 # Look for libnosys.a in case the target needs it.
5827 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5828 # Most targets have the linker script in the source directory.
5829 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5830 ;;
5831 esac
671aa708
NN
5832 ;;
5833 esac
5834 ;;
5835 esac
5836 ;;
5837esac
b91f0a41
CV
5838case "$target" in
5839*-mingw*)
5840 # Can't be handled as Cygwin above since Mingw does not use newlib.
5841 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' ;;
5842esac
671aa708 5843
6691a79e
ME
5844# Allow the user to override the flags for
5845# our build compiler if desired.
5846CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5847
671aa708
NN
5848# On Canadian crosses, we'll be searching the right directories for
5849# the previously-installed cross compiler, so don't bother to add
5850# flags for directories within the install tree of the compiler
5851# being built; programs in there won't even run.
5852if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5853 # Search for pre-installed headers if nothing else fits.
9124bc53 5854 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
5855fi
5856
5857if test "x${use_gnu_ld}" = x &&
5858 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5859 # Arrange for us to find uninstalled linker scripts.
215c351a 5860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5861fi
5862
e88a2c09
DD
5863# Search for other target-specific linker scripts and such.
5864case "${target}" in
3e19841a
PB
5865 mep*)
5866 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5867 ;;
e88a2c09
DD
5868esac
5869
671aa708 5870# Makefile fragments.
7b61653a
PE
5871for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5872do
5873 eval fragval=\$$frag
5874 if test $fragval != /dev/null; then
5875 eval $frag=${srcdir}/$fragval
5876 fi
5877done
671aa708
NN
5878
5879
5880
5881
5882
5883# Miscellanea: directories, flags, etc.
5884
5885
5886
5887
5888
5889
5890
23f6b2f9 5891# Build module lists & subconfigure args.
671aa708
NN
5892
5893
5894
2abefe3d
PB
5895# Host module lists & subconfigure args.
5896
5897
5898
5899# Target module lists & subconfigure args.
5900
5901
5902
5903# Build tools.
5904
5905
5906
5907# Generate default definitions for YACC, M4, LEX and other programs that run
5908# on the build machine. These are used if the Makefile can't locate these
5909# programs in objdir.
5910MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5911
5912for ac_prog in 'bison -y' byacc yacc
5913do
1c710c3c 5914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5915set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5916echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5918if test "${ac_cv_prog_YACC+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5920else
5921 if test -n "$YACC"; then
5922 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5923else
1c710c3c
DJ
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5931 ac_cv_prog_YACC="$ac_prog"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937
2abefe3d
PB
5938fi
5939fi
1c710c3c 5940YACC=$ac_cv_prog_YACC
2abefe3d 5941if test -n "$YACC"; then
2aeb72e9
DD
5942 echo "$as_me:$LINENO: result: $YACC" >&5
5943echo "${ECHO_T}$YACC" >&6
2abefe3d 5944else
2aeb72e9
DD
5945 echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
2abefe3d
PB
5947fi
5948
1c710c3c 5949 test -n "$YACC" && break
2abefe3d
PB
5950done
5951test -n "$YACC" || YACC="$MISSING bison -y"
5952
5953case " $build_configdirs " in
5954 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5955 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5956esac
5957
5958for ac_prog in bison
5959do
1c710c3c 5960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5961set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5962echo "$as_me:$LINENO: checking for $ac_word" >&5
5963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5964if test "${ac_cv_prog_BISON+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5966else
5967 if test -n "$BISON"; then
5968 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5969else
1c710c3c
DJ
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5977 ac_cv_prog_BISON="$ac_prog"
5978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981done
5982done
5983
2abefe3d
PB
5984fi
5985fi
1c710c3c 5986BISON=$ac_cv_prog_BISON
2abefe3d 5987if test -n "$BISON"; then
2aeb72e9
DD
5988 echo "$as_me:$LINENO: result: $BISON" >&5
5989echo "${ECHO_T}$BISON" >&6
2abefe3d 5990else
2aeb72e9
DD
5991 echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6
2abefe3d
PB
5993fi
5994
1c710c3c 5995 test -n "$BISON" && break
2abefe3d
PB
5996done
5997test -n "$BISON" || BISON="$MISSING bison"
5998
5999case " $build_configdirs " in
6000 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6001esac
6002
6003for ac_prog in gm4 gnum4 m4
6004do
1c710c3c 6005 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6006set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6007echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6009if test "${ac_cv_prog_M4+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6011else
6012 if test -n "$M4"; then
6013 ac_cv_prog_M4="$M4" # Let the user override the test.
6014else
1c710c3c
DJ
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6022 ac_cv_prog_M4="$ac_prog"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026done
6027done
6028
2abefe3d
PB
6029fi
6030fi
1c710c3c 6031M4=$ac_cv_prog_M4
2abefe3d 6032if test -n "$M4"; then
2aeb72e9
DD
6033 echo "$as_me:$LINENO: result: $M4" >&5
6034echo "${ECHO_T}$M4" >&6
2abefe3d 6035else
2aeb72e9
DD
6036 echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
2abefe3d
PB
6038fi
6039
1c710c3c 6040 test -n "$M4" && break
2abefe3d
PB
6041done
6042test -n "$M4" || M4="$MISSING m4"
6043
6044case " $build_configdirs " in
6045 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6046esac
6047
6048for ac_prog in flex lex
6049do
1c710c3c 6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6051set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6052echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6054if test "${ac_cv_prog_LEX+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6056else
6057 if test -n "$LEX"; then
6058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6059else
1c710c3c
DJ
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6067 ac_cv_prog_LEX="$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072done
6073
2abefe3d
PB
6074fi
6075fi
1c710c3c 6076LEX=$ac_cv_prog_LEX
2abefe3d 6077if test -n "$LEX"; then
2aeb72e9
DD
6078 echo "$as_me:$LINENO: result: $LEX" >&5
6079echo "${ECHO_T}$LEX" >&6
2abefe3d 6080else
2aeb72e9
DD
6081 echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6
2abefe3d
PB
6083fi
6084
1c710c3c 6085 test -n "$LEX" && break
2abefe3d
PB
6086done
6087test -n "$LEX" || LEX="$MISSING flex"
6088
6089case " $build_configdirs " in
6090 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6091 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6092esac
6093
6094for ac_prog in flex
6095do
1c710c3c 6096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6097set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6098echo "$as_me:$LINENO: checking for $ac_word" >&5
6099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6100if test "${ac_cv_prog_FLEX+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6102else
6103 if test -n "$FLEX"; then
6104 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6105else
1c710c3c
DJ
6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107for as_dir in $PATH
6108do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6113 ac_cv_prog_FLEX="$ac_prog"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117done
6118done
6119
2abefe3d
PB
6120fi
6121fi
1c710c3c 6122FLEX=$ac_cv_prog_FLEX
2abefe3d 6123if test -n "$FLEX"; then
2aeb72e9
DD
6124 echo "$as_me:$LINENO: result: $FLEX" >&5
6125echo "${ECHO_T}$FLEX" >&6
2abefe3d 6126else
2aeb72e9
DD
6127 echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6
2abefe3d
PB
6129fi
6130
1c710c3c 6131 test -n "$FLEX" && break
2abefe3d
PB
6132done
6133test -n "$FLEX" || FLEX="$MISSING flex"
6134
6135case " $build_configdirs " in
6136 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6137esac
6138
6139for ac_prog in makeinfo
6140do
1c710c3c 6141 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6142set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6143echo "$as_me:$LINENO: checking for $ac_word" >&5
6144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6145if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6147else
6148 if test -n "$MAKEINFO"; then
6149 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6150else
1c710c3c
DJ
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6158 ac_cv_prog_MAKEINFO="$ac_prog"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162done
6163done
6164
2abefe3d
PB
6165fi
6166fi
1c710c3c 6167MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6168if test -n "$MAKEINFO"; then
2aeb72e9
DD
6169 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6170echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6171else
2aeb72e9
DD
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
2abefe3d
PB
6174fi
6175
1c710c3c 6176 test -n "$MAKEINFO" && break
2abefe3d
PB
6177done
6178test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6179
6180case " $build_configdirs " in
6181 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6182 *)
6183
27b6c940 6184 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
6185 # higher, else we use the "missing" dummy.
6186 if ${MAKEINFO} --version \
27b6c940 6187 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
6188 :
6189 else
6190 MAKEINFO="$MISSING makeinfo"
6191 fi
6192 ;;
6193
6194esac
671aa708 6195
2abefe3d 6196# FIXME: expect and dejagnu may become build tools?
671aa708 6197
2abefe3d
PB
6198for ac_prog in expect
6199do
1c710c3c 6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6201set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6202echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6204if test "${ac_cv_prog_EXPECT+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6206else
6207 if test -n "$EXPECT"; then
6208 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6209else
1c710c3c
DJ
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6217 ac_cv_prog_EXPECT="$ac_prog"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221done
6222done
6223
2abefe3d
PB
6224fi
6225fi
1c710c3c 6226EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6227if test -n "$EXPECT"; then
2aeb72e9
DD
6228 echo "$as_me:$LINENO: result: $EXPECT" >&5
6229echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6230else
2aeb72e9
DD
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
2abefe3d 6233fi
671aa708 6234
1c710c3c 6235 test -n "$EXPECT" && break
2abefe3d
PB
6236done
6237test -n "$EXPECT" || EXPECT="expect"
671aa708 6238
2abefe3d
PB
6239case " $configdirs " in
6240 *" expect "*)
6241 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6242 ;;
6243esac
671aa708 6244
2abefe3d
PB
6245for ac_prog in runtest
6246do
1c710c3c 6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6248set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6249echo "$as_me:$LINENO: checking for $ac_word" >&5
6250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6251if test "${ac_cv_prog_RUNTEST+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6253else
6254 if test -n "$RUNTEST"; then
6255 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6256else
1c710c3c
DJ
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6264 ac_cv_prog_RUNTEST="$ac_prog"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268done
6269done
6270
2abefe3d
PB
6271fi
6272fi
1c710c3c 6273RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6274if test -n "$RUNTEST"; then
2aeb72e9
DD
6275 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6276echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6277else
2aeb72e9
DD
6278 echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6
2abefe3d 6280fi
671aa708 6281
1c710c3c 6282 test -n "$RUNTEST" && break
2abefe3d
PB
6283done
6284test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6285
2abefe3d
PB
6286case " $configdirs " in
6287 *" dejagnu "*)
c394e891 6288 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6289 ;;
6290esac
671aa708
NN
6291
6292
671aa708 6293# Host tools.
ca9f4b81
AO
6294ncn_tool_prefix=
6295test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6296ncn_target_tool_prefix=
6297test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6298
278a7a38
AO
6299
6300
6301if test -n "$AR"; then
6302 ac_cv_prog_AR=$AR
6303elif test -n "$ac_cv_prog_AR"; then
6304 AR=$ac_cv_prog_AR
6305fi
6306
6307if test -n "$ac_cv_prog_AR"; then
6308 for ncn_progname in ar; do
6309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6310set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6311echo "$as_me:$LINENO: checking for $ac_word" >&5
6312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6313if test "${ac_cv_prog_AR+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315else
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR="$AR" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6326 ac_cv_prog_AR="${ncn_progname}"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330done
6331done
6332
6333fi
6334fi
6335AR=$ac_cv_prog_AR
6336if test -n "$AR"; then
2aeb72e9
DD
6337 echo "$as_me:$LINENO: result: $AR" >&5
6338echo "${ECHO_T}$AR" >&6
278a7a38 6339else
2aeb72e9
DD
6340 echo "$as_me:$LINENO: result: no" >&5
6341echo "${ECHO_T}no" >&6
278a7a38
AO
6342fi
6343
6344 done
6345fi
6346
6347for ncn_progname in ar; do
2693c0b0
PB
6348 if test -n "$ncn_tool_prefix"; then
6349 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6350set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6351echo "$as_me:$LINENO: checking for $ac_word" >&5
6352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6353if test "${ac_cv_prog_AR+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6355else
6356 if test -n "$AR"; then
6357 ac_cv_prog_AR="$AR" # Let the user override the test.
6358else
1c710c3c
DJ
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6366 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371done
6372
ca9f4b81
AO
6373fi
6374fi
1c710c3c 6375AR=$ac_cv_prog_AR
ca9f4b81 6376if test -n "$AR"; then
2aeb72e9
DD
6377 echo "$as_me:$LINENO: result: $AR" >&5
6378echo "${ECHO_T}$AR" >&6
ca9f4b81 6379else
2aeb72e9
DD
6380 echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
ca9f4b81
AO
6382fi
6383
2693c0b0
PB
6384 fi
6385 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6387set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6388echo "$as_me:$LINENO: checking for $ac_word" >&5
6389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6390if test "${ac_cv_prog_AR+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6392else
2693c0b0 6393 if test -n "$AR"; then
af71363e
AS
6394 ac_cv_prog_AR="$AR" # Let the user override the test.
6395else
1c710c3c
DJ
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6403 ac_cv_prog_AR="${ncn_progname}"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408done
6409
ca9f4b81
AO
6410fi
6411fi
1c710c3c 6412AR=$ac_cv_prog_AR
2693c0b0 6413if test -n "$AR"; then
2aeb72e9
DD
6414 echo "$as_me:$LINENO: result: $AR" >&5
6415echo "${ECHO_T}$AR" >&6
ca9f4b81 6416else
2aeb72e9
DD
6417 echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6
ca9f4b81 6419fi
1c710c3c 6420
2693c0b0
PB
6421 fi
6422 test -n "$ac_cv_prog_AR" && break
6423done
6424
6425if test -z "$ac_cv_prog_AR" ; then
6426 set dummy ar
6427 if test $build = $host ; then
6428 AR="$2"
ca9f4b81 6429 else
2693c0b0 6430 AR="${ncn_tool_prefix}$2"
ca9f4b81 6431 fi
ca9f4b81
AO
6432fi
6433
278a7a38
AO
6434
6435
6436if test -n "$AS"; then
6437 ac_cv_prog_AS=$AS
6438elif test -n "$ac_cv_prog_AS"; then
6439 AS=$ac_cv_prog_AS
6440fi
6441
6442if test -n "$ac_cv_prog_AS"; then
6443 for ncn_progname in as; do
6444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6445set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6446echo "$as_me:$LINENO: checking for $ac_word" >&5
6447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6448if test "${ac_cv_prog_AS+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450else
6451 if test -n "$AS"; then
6452 ac_cv_prog_AS="$AS" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6461 ac_cv_prog_AS="${ncn_progname}"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465done
6466done
6467
6468fi
6469fi
6470AS=$ac_cv_prog_AS
6471if test -n "$AS"; then
2aeb72e9
DD
6472 echo "$as_me:$LINENO: result: $AS" >&5
6473echo "${ECHO_T}$AS" >&6
278a7a38 6474else
2aeb72e9
DD
6475 echo "$as_me:$LINENO: result: no" >&5
6476echo "${ECHO_T}no" >&6
278a7a38
AO
6477fi
6478
6479 done
6480fi
6481
6482for ncn_progname in as; do
2693c0b0
PB
6483 if test -n "$ncn_tool_prefix"; then
6484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6486echo "$as_me:$LINENO: checking for $ac_word" >&5
6487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6488if test "${ac_cv_prog_AS+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6490else
6491 if test -n "$AS"; then
6492 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6493else
1c710c3c
DJ
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6501 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505done
6506done
6507
ca9f4b81
AO
6508fi
6509fi
1c710c3c 6510AS=$ac_cv_prog_AS
ca9f4b81 6511if test -n "$AS"; then
2aeb72e9
DD
6512 echo "$as_me:$LINENO: result: $AS" >&5
6513echo "${ECHO_T}$AS" >&6
ca9f4b81 6514else
2aeb72e9
DD
6515 echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6
ca9f4b81
AO
6517fi
6518
2693c0b0
PB
6519 fi
6520 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6522set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6523echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6525if test "${ac_cv_prog_AS+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6527else
2693c0b0
PB
6528 if test -n "$AS"; then
6529 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6530else
1c710c3c
DJ
6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6538 ac_cv_prog_AS="${ncn_progname}"
6539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542done
6543done
6544
ca9f4b81
AO
6545fi
6546fi
1c710c3c 6547AS=$ac_cv_prog_AS
2693c0b0 6548if test -n "$AS"; then
2aeb72e9
DD
6549 echo "$as_me:$LINENO: result: $AS" >&5
6550echo "${ECHO_T}$AS" >&6
ca9f4b81 6551else
2aeb72e9
DD
6552 echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6
ca9f4b81 6554fi
1c710c3c 6555
2693c0b0
PB
6556 fi
6557 test -n "$ac_cv_prog_AS" && break
6558done
6559
6560if test -z "$ac_cv_prog_AS" ; then
6561 set dummy as
6562 if test $build = $host ; then
6563 AS="$2"
ca9f4b81 6564 else
2693c0b0 6565 AS="${ncn_tool_prefix}$2"
ca9f4b81 6566 fi
ca9f4b81
AO
6567fi
6568
278a7a38
AO
6569
6570
6571if test -n "$DLLTOOL"; then
6572 ac_cv_prog_DLLTOOL=$DLLTOOL
6573elif test -n "$ac_cv_prog_DLLTOOL"; then
6574 DLLTOOL=$ac_cv_prog_DLLTOOL
6575fi
6576
6577if test -n "$ac_cv_prog_DLLTOOL"; then
6578 for ncn_progname in dlltool; do
6579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6580set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6581echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6583if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 if test -n "$DLLTOOL"; then
6587 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6596 ac_cv_prog_DLLTOOL="${ncn_progname}"
6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601done
6602
6603fi
6604fi
6605DLLTOOL=$ac_cv_prog_DLLTOOL
6606if test -n "$DLLTOOL"; then
2aeb72e9
DD
6607 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6608echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6609else
2aeb72e9
DD
6610 echo "$as_me:$LINENO: result: no" >&5
6611echo "${ECHO_T}no" >&6
278a7a38
AO
6612fi
6613
6614 done
6615fi
6616
6617for ncn_progname in dlltool; do
2693c0b0
PB
6618 if test -n "$ncn_tool_prefix"; then
6619 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6620set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6621echo "$as_me:$LINENO: checking for $ac_word" >&5
6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6623if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6625else
6626 if test -n "$DLLTOOL"; then
6627 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6628else
1c710c3c
DJ
6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630for as_dir in $PATH
6631do
6632 IFS=$as_save_IFS
6633 test -z "$as_dir" && as_dir=.
6634 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6636 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 break 2
6639 fi
6640done
6641done
6642
ca9f4b81
AO
6643fi
6644fi
1c710c3c 6645DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6646if test -n "$DLLTOOL"; then
2aeb72e9
DD
6647 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6648echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6649else
2aeb72e9
DD
6650 echo "$as_me:$LINENO: result: no" >&5
6651echo "${ECHO_T}no" >&6
ca9f4b81
AO
6652fi
6653
2693c0b0
PB
6654 fi
6655 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6657set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6658echo "$as_me:$LINENO: checking for $ac_word" >&5
6659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6660if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6662else
2693c0b0
PB
6663 if test -n "$DLLTOOL"; then
6664 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6665else
1c710c3c
DJ
6666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6673 ac_cv_prog_DLLTOOL="${ncn_progname}"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679
ca9f4b81
AO
6680fi
6681fi
1c710c3c 6682DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6683if test -n "$DLLTOOL"; then
2aeb72e9
DD
6684 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6685echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6686else
2aeb72e9
DD
6687 echo "$as_me:$LINENO: result: no" >&5
6688echo "${ECHO_T}no" >&6
ca9f4b81 6689fi
1c710c3c 6690
2693c0b0
PB
6691 fi
6692 test -n "$ac_cv_prog_DLLTOOL" && break
6693done
6694
6695if test -z "$ac_cv_prog_DLLTOOL" ; then
6696 set dummy dlltool
6697 if test $build = $host ; then
6698 DLLTOOL="$2"
ca9f4b81 6699 else
2693c0b0 6700 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6701 fi
ca9f4b81
AO
6702fi
6703
278a7a38
AO
6704
6705
6706if test -n "$LD"; then
6707 ac_cv_prog_LD=$LD
6708elif test -n "$ac_cv_prog_LD"; then
6709 LD=$ac_cv_prog_LD
6710fi
6711
6712if test -n "$ac_cv_prog_LD"; then
6713 for ncn_progname in ld; do
6714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6715set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6716echo "$as_me:$LINENO: checking for $ac_word" >&5
6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6718if test "${ac_cv_prog_LD+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721 if test -n "$LD"; then
6722 ac_cv_prog_LD="$LD" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6731 ac_cv_prog_LD="${ncn_progname}"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736done
6737
6738fi
6739fi
6740LD=$ac_cv_prog_LD
6741if test -n "$LD"; then
2aeb72e9
DD
6742 echo "$as_me:$LINENO: result: $LD" >&5
6743echo "${ECHO_T}$LD" >&6
278a7a38 6744else
2aeb72e9
DD
6745 echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6
278a7a38
AO
6747fi
6748
6749 done
6750fi
6751
6752for ncn_progname in ld; do
2693c0b0
PB
6753 if test -n "$ncn_tool_prefix"; then
6754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6756echo "$as_me:$LINENO: checking for $ac_word" >&5
6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6758if test "${ac_cv_prog_LD+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6760else
6761 if test -n "$LD"; then
6762 ac_cv_prog_LD="$LD" # Let the user override the test.
6763else
1c710c3c
DJ
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6771 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775done
6776done
6777
ca9f4b81
AO
6778fi
6779fi
1c710c3c 6780LD=$ac_cv_prog_LD
ca9f4b81 6781if test -n "$LD"; then
2aeb72e9
DD
6782 echo "$as_me:$LINENO: result: $LD" >&5
6783echo "${ECHO_T}$LD" >&6
ca9f4b81 6784else
2aeb72e9
DD
6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
ca9f4b81
AO
6787fi
6788
2693c0b0
PB
6789 fi
6790 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6792set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6793echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6795if test "${ac_cv_prog_LD+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6797else
2693c0b0
PB
6798 if test -n "$LD"; then
6799 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6800else
1c710c3c
DJ
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6808 ac_cv_prog_LD="${ncn_progname}"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813done
6814
ca9f4b81
AO
6815fi
6816fi
1c710c3c 6817LD=$ac_cv_prog_LD
2693c0b0 6818if test -n "$LD"; then
2aeb72e9
DD
6819 echo "$as_me:$LINENO: result: $LD" >&5
6820echo "${ECHO_T}$LD" >&6
ca9f4b81 6821else
2aeb72e9
DD
6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
ca9f4b81 6824fi
1c710c3c 6825
2693c0b0
PB
6826 fi
6827 test -n "$ac_cv_prog_LD" && break
6828done
6829
6830if test -z "$ac_cv_prog_LD" ; then
6831 set dummy ld
6832 if test $build = $host ; then
6833 LD="$2"
ca9f4b81 6834 else
2693c0b0 6835 LD="${ncn_tool_prefix}$2"
ca9f4b81 6836 fi
ca9f4b81
AO
6837fi
6838
278a7a38
AO
6839
6840
6841if test -n "$LIPO"; then
6842 ac_cv_prog_LIPO=$LIPO
6843elif test -n "$ac_cv_prog_LIPO"; then
6844 LIPO=$ac_cv_prog_LIPO
6845fi
6846
6847if test -n "$ac_cv_prog_LIPO"; then
6848 for ncn_progname in lipo; do
6849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6850set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6851echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6853if test "${ac_cv_prog_LIPO+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 if test -n "$LIPO"; then
6857 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6866 ac_cv_prog_LIPO="${ncn_progname}"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872
6873fi
6874fi
6875LIPO=$ac_cv_prog_LIPO
6876if test -n "$LIPO"; then
2aeb72e9
DD
6877 echo "$as_me:$LINENO: result: $LIPO" >&5
6878echo "${ECHO_T}$LIPO" >&6
278a7a38 6879else
2aeb72e9
DD
6880 echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6
278a7a38
AO
6882fi
6883
6884 done
6885fi
6886
6887for ncn_progname in lipo; do
2abefe3d
PB
6888 if test -n "$ncn_tool_prefix"; then
6889 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6890set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6891echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6893if test "${ac_cv_prog_LIPO+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6895else
6896 if test -n "$LIPO"; then
6897 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6898else
1c710c3c
DJ
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6906 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
6912
2abefe3d
PB
6913fi
6914fi
1c710c3c 6915LIPO=$ac_cv_prog_LIPO
2abefe3d 6916if test -n "$LIPO"; then
2aeb72e9
DD
6917 echo "$as_me:$LINENO: result: $LIPO" >&5
6918echo "${ECHO_T}$LIPO" >&6
2abefe3d 6919else
2aeb72e9
DD
6920 echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6
2abefe3d
PB
6922fi
6923
6924 fi
6925 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6927set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6928echo "$as_me:$LINENO: checking for $ac_word" >&5
6929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6930if test "${ac_cv_prog_LIPO+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6932else
6933 if test -n "$LIPO"; then
6934 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6935else
1c710c3c
DJ
6936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6943 ac_cv_prog_LIPO="${ncn_progname}"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947done
6948done
6949
2abefe3d
PB
6950fi
6951fi
1c710c3c 6952LIPO=$ac_cv_prog_LIPO
2abefe3d 6953if test -n "$LIPO"; then
2aeb72e9
DD
6954 echo "$as_me:$LINENO: result: $LIPO" >&5
6955echo "${ECHO_T}$LIPO" >&6
2abefe3d 6956else
2aeb72e9
DD
6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
2abefe3d 6959fi
1c710c3c 6960
2abefe3d
PB
6961 fi
6962 test -n "$ac_cv_prog_LIPO" && break
6963done
6964
6965if test -z "$ac_cv_prog_LIPO" ; then
6966 set dummy lipo
6967 if test $build = $host ; then
6968 LIPO="$2"
6969 else
6970 LIPO="${ncn_tool_prefix}$2"
6971 fi
6972fi
6973
278a7a38
AO
6974
6975
6976if test -n "$NM"; then
6977 ac_cv_prog_NM=$NM
6978elif test -n "$ac_cv_prog_NM"; then
6979 NM=$ac_cv_prog_NM
6980fi
6981
6982if test -n "$ac_cv_prog_NM"; then
6983 for ncn_progname in nm; do
6984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6985set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6986echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6988if test "${ac_cv_prog_NM+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6990else
6991 if test -n "$NM"; then
6992 ac_cv_prog_NM="$NM" # Let the user override the test.
6993else
1c710c3c
DJ
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7001 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006done
7007
ca9f4b81
AO
7008fi
7009fi
1c710c3c 7010NM=$ac_cv_prog_NM
ca9f4b81 7011if test -n "$NM"; then
2aeb72e9
DD
7012 echo "$as_me:$LINENO: result: $NM" >&5
7013echo "${ECHO_T}$NM" >&6
ca9f4b81 7014else
2aeb72e9
DD
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
ca9f4b81
AO
7017fi
7018
278a7a38
AO
7019 done
7020fi
7021
7022for ncn_progname in nm; do
7023 if test -n "$ncn_tool_prefix"; then
7024 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7025set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7026echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7028if test "${ac_cv_prog_NM+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7030else
2693c0b0
PB
7031 if test -n "$NM"; then
7032 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7033else
1c710c3c
DJ
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7041 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046done
7047
ca9f4b81
AO
7048fi
7049fi
1c710c3c 7050NM=$ac_cv_prog_NM
2693c0b0 7051if test -n "$NM"; then
2aeb72e9
DD
7052 echo "$as_me:$LINENO: result: $NM" >&5
7053echo "${ECHO_T}$NM" >&6
ca9f4b81 7054else
2aeb72e9
DD
7055 echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6
ca9f4b81 7057fi
1c710c3c 7058
2693c0b0 7059 fi
278a7a38
AO
7060 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7062set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7063echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7065if test "${ac_cv_prog_NM+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068 if test -n "$NM"; then
7069 ac_cv_prog_NM="$NM" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7078 ac_cv_prog_NM="${ncn_progname}"
7079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082done
7083done
7084
7085fi
7086fi
7087NM=$ac_cv_prog_NM
7088if test -n "$NM"; then
2aeb72e9
DD
7089 echo "$as_me:$LINENO: result: $NM" >&5
7090echo "${ECHO_T}$NM" >&6
278a7a38 7091else
2aeb72e9
DD
7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
278a7a38
AO
7094fi
7095
7096 fi
7097 test -n "$ac_cv_prog_NM" && break
7098done
7099
7100if test -z "$ac_cv_prog_NM" ; then
7101 set dummy nm
7102 if test $build = $host ; then
7103 NM="$2"
7104 else
7105 NM="${ncn_tool_prefix}$2"
7106 fi
7107fi
7108
7109
7110
7111if test -n "$RANLIB"; then
7112 ac_cv_prog_RANLIB=$RANLIB
7113elif test -n "$ac_cv_prog_RANLIB"; then
7114 RANLIB=$ac_cv_prog_RANLIB
7115fi
7116
7117if test -n "$ac_cv_prog_RANLIB"; then
7118 for ncn_progname in ranlib; do
7119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7120set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7121echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7123if test "${ac_cv_prog_RANLIB+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 if test -n "$RANLIB"; then
7127 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7136 ac_cv_prog_RANLIB="${ncn_progname}"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140done
7141done
7142
7143fi
7144fi
7145RANLIB=$ac_cv_prog_RANLIB
7146if test -n "$RANLIB"; then
2aeb72e9
DD
7147 echo "$as_me:$LINENO: result: $RANLIB" >&5
7148echo "${ECHO_T}$RANLIB" >&6
278a7a38 7149else
2aeb72e9
DD
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
278a7a38
AO
7152fi
7153
7154 done
7155fi
ca9f4b81 7156
278a7a38 7157for ncn_progname in ranlib; do
2693c0b0
PB
7158 if test -n "$ncn_tool_prefix"; then
7159 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7160set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7161echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7163if test "${ac_cv_prog_RANLIB+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7165else
7166 if test -n "$RANLIB"; then
7167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7168else
1c710c3c
DJ
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7176 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181done
7182
ca9f4b81
AO
7183fi
7184fi
1c710c3c 7185RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7186if test -n "$RANLIB"; then
2aeb72e9
DD
7187 echo "$as_me:$LINENO: result: $RANLIB" >&5
7188echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7189else
2aeb72e9
DD
7190 echo "$as_me:$LINENO: result: no" >&5
7191echo "${ECHO_T}no" >&6
ca9f4b81
AO
7192fi
7193
2693c0b0
PB
7194 fi
7195 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7197set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7198echo "$as_me:$LINENO: checking for $ac_word" >&5
7199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7200if test "${ac_cv_prog_RANLIB+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7202else
2693c0b0
PB
7203 if test -n "$RANLIB"; then
7204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7205else
1c710c3c
DJ
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7213 ac_cv_prog_RANLIB="${ncn_progname}"
7214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217done
7218done
7219
ca9f4b81
AO
7220fi
7221fi
1c710c3c 7222RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7223if test -n "$RANLIB"; then
2aeb72e9
DD
7224 echo "$as_me:$LINENO: result: $RANLIB" >&5
7225echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7226else
2aeb72e9
DD
7227 echo "$as_me:$LINENO: result: no" >&5
7228echo "${ECHO_T}no" >&6
ca9f4b81 7229fi
1c710c3c 7230
ca9f4b81 7231 fi
2693c0b0
PB
7232 test -n "$ac_cv_prog_RANLIB" && break
7233done
7234
7235if test -z "$ac_cv_prog_RANLIB" ; then
7236 RANLIB=":"
ca9f4b81
AO
7237fi
7238
278a7a38
AO
7239
7240
7241if test -n "$STRIP"; then
7242 ac_cv_prog_STRIP=$STRIP
7243elif test -n "$ac_cv_prog_STRIP"; then
7244 STRIP=$ac_cv_prog_STRIP
7245fi
7246
7247if test -n "$ac_cv_prog_STRIP"; then
7248 for ncn_progname in strip; do
7249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7250set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7251echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7253if test "${ac_cv_prog_STRIP+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256 if test -n "$STRIP"; then
7257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7266 ac_cv_prog_STRIP="${ncn_progname}"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270done
7271done
7272
7273fi
7274fi
7275STRIP=$ac_cv_prog_STRIP
7276if test -n "$STRIP"; then
2aeb72e9
DD
7277 echo "$as_me:$LINENO: result: $STRIP" >&5
7278echo "${ECHO_T}$STRIP" >&6
278a7a38 7279else
2aeb72e9
DD
7280 echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6
278a7a38
AO
7282fi
7283
7284 done
7285fi
7286
7287for ncn_progname in strip; do
2abefe3d
PB
7288 if test -n "$ncn_tool_prefix"; then
7289 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7290set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7291echo "$as_me:$LINENO: checking for $ac_word" >&5
7292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7293if test "${ac_cv_prog_STRIP+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7295else
7296 if test -n "$STRIP"; then
7297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7298else
1c710c3c
DJ
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7306 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311done
7312
2abefe3d
PB
7313fi
7314fi
1c710c3c 7315STRIP=$ac_cv_prog_STRIP
2abefe3d 7316if test -n "$STRIP"; then
2aeb72e9
DD
7317 echo "$as_me:$LINENO: result: $STRIP" >&5
7318echo "${ECHO_T}$STRIP" >&6
2abefe3d 7319else
2aeb72e9
DD
7320 echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6
2abefe3d
PB
7322fi
7323
7324 fi
7325 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7327set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7328echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7330if test "${ac_cv_prog_STRIP+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7332else
7333 if test -n "$STRIP"; then
7334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7335else
1c710c3c
DJ
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7343 ac_cv_prog_STRIP="${ncn_progname}"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347done
7348done
7349
2abefe3d
PB
7350fi
7351fi
1c710c3c 7352STRIP=$ac_cv_prog_STRIP
2abefe3d 7353if test -n "$STRIP"; then
2aeb72e9
DD
7354 echo "$as_me:$LINENO: result: $STRIP" >&5
7355echo "${ECHO_T}$STRIP" >&6
2abefe3d 7356else
2aeb72e9
DD
7357 echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6
2abefe3d 7359fi
1c710c3c 7360
2abefe3d
PB
7361 fi
7362 test -n "$ac_cv_prog_STRIP" && break
7363done
7364
7365if test -z "$ac_cv_prog_STRIP" ; then
7366 STRIP=":"
7367fi
7368
278a7a38
AO
7369
7370
7371if test -n "$WINDRES"; then
7372 ac_cv_prog_WINDRES=$WINDRES
7373elif test -n "$ac_cv_prog_WINDRES"; then
7374 WINDRES=$ac_cv_prog_WINDRES
7375fi
7376
7377if test -n "$ac_cv_prog_WINDRES"; then
7378 for ncn_progname in windres; do
7379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7380set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7381echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7383if test "${ac_cv_prog_WINDRES+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 if test -n "$WINDRES"; then
7387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7396 ac_cv_prog_WINDRES="${ncn_progname}"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
7401done
7402
7403fi
7404fi
7405WINDRES=$ac_cv_prog_WINDRES
7406if test -n "$WINDRES"; then
2aeb72e9
DD
7407 echo "$as_me:$LINENO: result: $WINDRES" >&5
7408echo "${ECHO_T}$WINDRES" >&6
278a7a38 7409else
2aeb72e9
DD
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
278a7a38
AO
7412fi
7413
7414 done
7415fi
7416
7417for ncn_progname in windres; do
2693c0b0
PB
7418 if test -n "$ncn_tool_prefix"; then
7419 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7420set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7421echo "$as_me:$LINENO: checking for $ac_word" >&5
7422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7423if test "${ac_cv_prog_WINDRES+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7425else
7426 if test -n "$WINDRES"; then
7427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7428else
1c710c3c
DJ
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7436 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
7441done
7442
ca9f4b81
AO
7443fi
7444fi
1c710c3c 7445WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7446if test -n "$WINDRES"; then
2aeb72e9
DD
7447 echo "$as_me:$LINENO: result: $WINDRES" >&5
7448echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7449else
2aeb72e9
DD
7450 echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6
ca9f4b81
AO
7452fi
7453
2693c0b0
PB
7454 fi
7455 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7457set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7458echo "$as_me:$LINENO: checking for $ac_word" >&5
7459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7460if test "${ac_cv_prog_WINDRES+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7462else
2693c0b0
PB
7463 if test -n "$WINDRES"; then
7464 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7465else
1c710c3c
DJ
7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7473 ac_cv_prog_WINDRES="${ncn_progname}"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477done
7478done
7479
ca9f4b81
AO
7480fi
7481fi
1c710c3c 7482WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7483if test -n "$WINDRES"; then
2aeb72e9
DD
7484 echo "$as_me:$LINENO: result: $WINDRES" >&5
7485echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7486else
2aeb72e9
DD
7487 echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6
ca9f4b81 7489fi
1c710c3c 7490
2693c0b0
PB
7491 fi
7492 test -n "$ac_cv_prog_WINDRES" && break
7493done
7494
7495if test -z "$ac_cv_prog_WINDRES" ; then
7496 set dummy windres
7497 if test $build = $host ; then
7498 WINDRES="$2"
ca9f4b81 7499 else
2693c0b0 7500 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7501 fi
ca9f4b81
AO
7502fi
7503
278a7a38
AO
7504
7505
901119ae
KT
7506if test -n "$WINDMC"; then
7507 ac_cv_prog_WINDMC=$WINDMC
7508elif test -n "$ac_cv_prog_WINDMC"; then
7509 WINDMC=$ac_cv_prog_WINDMC
7510fi
7511
7512if test -n "$ac_cv_prog_WINDMC"; then
7513 for ncn_progname in windmc; do
7514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7515set dummy ${ncn_progname}; ac_word=$2
7516echo "$as_me:$LINENO: checking for $ac_word" >&5
7517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518if test "${ac_cv_prog_WINDMC+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 if test -n "$WINDMC"; then
7522 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7523else
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_WINDMC="${ncn_progname}"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7534 fi
7535done
7536done
7537
7538fi
7539fi
7540WINDMC=$ac_cv_prog_WINDMC
7541if test -n "$WINDMC"; then
7542 echo "$as_me:$LINENO: result: $WINDMC" >&5
7543echo "${ECHO_T}$WINDMC" >&6
7544else
7545 echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547fi
7548
7549 done
7550fi
7551
7552for ncn_progname in windmc; do
7553 if test -n "$ncn_tool_prefix"; then
7554 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7555set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7556echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558if test "${ac_cv_prog_WINDMC+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561 if test -n "$WINDMC"; then
7562 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575done
7576done
7577
7578fi
7579fi
7580WINDMC=$ac_cv_prog_WINDMC
7581if test -n "$WINDMC"; then
7582 echo "$as_me:$LINENO: result: $WINDMC" >&5
7583echo "${ECHO_T}$WINDMC" >&6
7584else
7585 echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587fi
7588
7589 fi
7590 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7592set dummy ${ncn_progname}; ac_word=$2
7593echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7595if test "${ac_cv_prog_WINDMC+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 if test -n "$WINDMC"; then
7599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_WINDMC="${ncn_progname}"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614
7615fi
7616fi
7617WINDMC=$ac_cv_prog_WINDMC
7618if test -n "$WINDMC"; then
7619 echo "$as_me:$LINENO: result: $WINDMC" >&5
7620echo "${ECHO_T}$WINDMC" >&6
7621else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624fi
7625
7626 fi
7627 test -n "$ac_cv_prog_WINDMC" && break
7628done
7629
7630if test -z "$ac_cv_prog_WINDMC" ; then
7631 set dummy windmc
7632 if test $build = $host ; then
7633 WINDMC="$2"
7634 else
7635 WINDMC="${ncn_tool_prefix}$2"
7636 fi
7637fi
7638
7639
7640
278a7a38
AO
7641if test -n "$OBJCOPY"; then
7642 ac_cv_prog_OBJCOPY=$OBJCOPY
7643elif test -n "$ac_cv_prog_OBJCOPY"; then
7644 OBJCOPY=$ac_cv_prog_OBJCOPY
7645fi
7646
7647if test -n "$ac_cv_prog_OBJCOPY"; then
7648 for ncn_progname in objcopy; do
7649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7650set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7651echo "$as_me:$LINENO: checking for $ac_word" >&5
7652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7653if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655else
7656 if test -n "$OBJCOPY"; then
7657 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7666 ac_cv_prog_OBJCOPY="${ncn_progname}"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670done
7671done
7672
7673fi
7674fi
7675OBJCOPY=$ac_cv_prog_OBJCOPY
7676if test -n "$OBJCOPY"; then
2aeb72e9
DD
7677 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7678echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7679else
2aeb72e9
DD
7680 echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
278a7a38
AO
7682fi
7683
7684 done
7685fi
7686
7687for ncn_progname in objcopy; do
2693c0b0
PB
7688 if test -n "$ncn_tool_prefix"; then
7689 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7690set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7691echo "$as_me:$LINENO: checking for $ac_word" >&5
7692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7693if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7695else
7696 if test -n "$OBJCOPY"; then
7697 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7698else
1c710c3c
DJ
7699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7706 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711done
7712
ca9f4b81
AO
7713fi
7714fi
1c710c3c 7715OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7716if test -n "$OBJCOPY"; then
2aeb72e9
DD
7717 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7718echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7719else
2aeb72e9
DD
7720 echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6
ca9f4b81
AO
7722fi
7723
2693c0b0
PB
7724 fi
7725 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7727set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7730if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7732else
2693c0b0
PB
7733 if test -n "$OBJCOPY"; then
7734 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7735else
1c710c3c
DJ
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7743 ac_cv_prog_OBJCOPY="${ncn_progname}"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749
ca9f4b81
AO
7750fi
7751fi
1c710c3c 7752OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7753if test -n "$OBJCOPY"; then
2aeb72e9
DD
7754 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7755echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7756else
2aeb72e9
DD
7757 echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
ca9f4b81 7759fi
1c710c3c 7760
2693c0b0
PB
7761 fi
7762 test -n "$ac_cv_prog_OBJCOPY" && break
7763done
7764
7765if test -z "$ac_cv_prog_OBJCOPY" ; then
7766 set dummy objcopy
7767 if test $build = $host ; then
7768 OBJCOPY="$2"
ca9f4b81 7769 else
2693c0b0 7770 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7771 fi
ca9f4b81
AO
7772fi
7773
278a7a38
AO
7774
7775
7776if test -n "$OBJDUMP"; then
7777 ac_cv_prog_OBJDUMP=$OBJDUMP
7778elif test -n "$ac_cv_prog_OBJDUMP"; then
7779 OBJDUMP=$ac_cv_prog_OBJDUMP
7780fi
7781
7782if test -n "$ac_cv_prog_OBJDUMP"; then
7783 for ncn_progname in objdump; do
7784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7785set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7786echo "$as_me:$LINENO: checking for $ac_word" >&5
7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7788if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791 if test -n "$OBJDUMP"; then
7792 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7793else
7794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795for as_dir in $PATH
7796do
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7801 ac_cv_prog_OBJDUMP="${ncn_progname}"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7804 fi
7805done
7806done
7807
7808fi
7809fi
7810OBJDUMP=$ac_cv_prog_OBJDUMP
7811if test -n "$OBJDUMP"; then
2aeb72e9
DD
7812 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7813echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7814else
2aeb72e9
DD
7815 echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6
278a7a38
AO
7817fi
7818
7819 done
7820fi
7821
7822for ncn_progname in objdump; do
2693c0b0
PB
7823 if test -n "$ncn_tool_prefix"; then
7824 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7825set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7826echo "$as_me:$LINENO: checking for $ac_word" >&5
7827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7828if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7830else
7831 if test -n "$OBJDUMP"; then
7832 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7833else
1c710c3c
DJ
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7841 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845done
7846done
7847
ca9f4b81
AO
7848fi
7849fi
1c710c3c 7850OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7851if test -n "$OBJDUMP"; then
2aeb72e9
DD
7852 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7853echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7854else
2aeb72e9
DD
7855 echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6
ca9f4b81
AO
7857fi
7858
2693c0b0
PB
7859 fi
7860 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7862set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7863echo "$as_me:$LINENO: checking for $ac_word" >&5
7864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7865if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7867else
2693c0b0
PB
7868 if test -n "$OBJDUMP"; then
7869 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7870else
1c710c3c
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7878 ac_cv_prog_OBJDUMP="${ncn_progname}"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884
ca9f4b81
AO
7885fi
7886fi
1c710c3c 7887OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7888if test -n "$OBJDUMP"; then
2aeb72e9
DD
7889 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7890echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7891else
2aeb72e9
DD
7892 echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
ca9f4b81 7894fi
1c710c3c 7895
2693c0b0
PB
7896 fi
7897 test -n "$ac_cv_prog_OBJDUMP" && break
7898done
7899
7900if test -z "$ac_cv_prog_OBJDUMP" ; then
7901 set dummy objdump
7902 if test $build = $host ; then
7903 OBJDUMP="$2"
ca9f4b81 7904 else
2693c0b0 7905 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7906 fi
ca9f4b81
AO
7907fi
7908
671aa708
NN
7909
7910
7911
7912
7913
7914
2abefe3d 7915# Target tools.
1c710c3c 7916
2aeb72e9 7917# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7918if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7919 withval="$with_build_time_tools"
7920 case x"$withval" in
e8b05380
PB
7921 x/*) ;;
7922 *)
7923 with_build_time_tools=
1c710c3c
DJ
7924 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7925echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7926 ;;
7927 esac
ca9f4b81 7928else
e8b05380 7929 with_build_time_tools=
2aeb72e9 7930fi;
ca9f4b81 7931
278a7a38
AO
7932
7933
7934if test -n "$CC_FOR_TARGET"; then
7935 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7936elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7937 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7938fi
7939
7940if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7941 for ncn_progname in cc gcc; do
7942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7943set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7944echo "$as_me:$LINENO: checking for $ac_word" >&5
7945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7946if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949 if test -n "$CC_FOR_TARGET"; then
7950 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7959 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963done
7964done
7965
7966fi
7967fi
7968CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7969if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7970 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7971echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 7972else
2aeb72e9
DD
7973 echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
278a7a38
AO
7975fi
7976
7977 done
7978fi
7979
7980if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7981 for ncn_progname in cc gcc; do
2aeb72e9
DD
7982 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7983echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7984 if test -x $with_build_time_tools/${ncn_progname}; then
7985 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
72a7ab82 7988 break
e8b05380 7989 else
2aeb72e9
DD
7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
72a7ab82
AP
7992 fi
7993 done
4de997d1
PB
7994fi
7995
e8b05380
PB
7996if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7997 for ncn_progname in cc gcc; do
7998 if test -n "$ncn_target_tool_prefix"; then
7999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8001echo "$as_me:$LINENO: checking for $ac_word" >&5
8002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8003if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8005else
8006 if test -n "$CC_FOR_TARGET"; then
8007 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8008else
1c710c3c
DJ
8009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010for as_dir in $PATH
8011do
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8016 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8019 fi
8020done
8021done
8022
4de997d1
PB
8023fi
8024fi
1c710c3c 8025CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8026if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8027 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8028echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8029else
2aeb72e9
DD
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
4de997d1
PB
8032fi
8033
e8b05380
PB
8034 fi
8035 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8037set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8038echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8040if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8042else
2693c0b0
PB
8043 if test -n "$CC_FOR_TARGET"; then
8044 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8045else
1c710c3c
DJ
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8053 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058done
8059
4de997d1
PB
8060fi
8061fi
1c710c3c 8062CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8063if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8064 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8065echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8066else
2aeb72e9
DD
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
4de997d1 8069fi
1c710c3c 8070
e8b05380
PB
8071 fi
8072 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8073 done
8074fi
1c710c3c 8075
2693c0b0
PB
8076if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8077 set dummy cc gcc
8078 if test $build = $target ; then
8079 CC_FOR_TARGET="$2"
4de997d1 8080 else
2693c0b0 8081 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8082 fi
1c00b503
PB
8083else
8084 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8085fi
8086
278a7a38
AO
8087
8088
8089if test -n "$CXX_FOR_TARGET"; then
8090 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8091elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8092 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8093fi
8094
8095if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8096 for ncn_progname in c++ g++ cxx gxx; do
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8099echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8101if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 if test -n "$CXX_FOR_TARGET"; then
8105 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8114 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119done
8120
8121fi
8122fi
8123CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8124if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8125 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8126echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8127else
2aeb72e9
DD
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
278a7a38
AO
8130fi
8131
8132 done
8133fi
8134
8135if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8136 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8137 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8138echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8139 if test -x $with_build_time_tools/${ncn_progname}; then
8140 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8141 echo "$as_me:$LINENO: result: yes" >&5
8142echo "${ECHO_T}yes" >&6
e8b05380
PB
8143 break
8144 else
2aeb72e9
DD
8145 echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6
e8b05380
PB
8147 fi
8148 done
8149fi
8150
8151if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8152 for ncn_progname in c++ g++ cxx gxx; do
8153 if test -n "$ncn_target_tool_prefix"; then
8154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8155set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8156echo "$as_me:$LINENO: checking for $ac_word" >&5
8157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8158if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8160else
8161 if test -n "$CXX_FOR_TARGET"; then
8162 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8163else
1c710c3c
DJ
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8171 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8174 fi
8175done
8176done
8177
4de997d1
PB
8178fi
8179fi
1c710c3c 8180CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8181if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8182 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8183echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8184else
2aeb72e9
DD
8185 echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6
4de997d1
PB
8187fi
8188
e8b05380
PB
8189 fi
8190 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8192set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8193echo "$as_me:$LINENO: checking for $ac_word" >&5
8194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8195if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8197else
2693c0b0
PB
8198 if test -n "$CXX_FOR_TARGET"; then
8199 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8200else
1c710c3c
DJ
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8208 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212done
8213done
8214
4de997d1
PB
8215fi
8216fi
1c710c3c 8217CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8218if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8219 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8220echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8221else
2aeb72e9
DD
8222 echo "$as_me:$LINENO: result: no" >&5
8223echo "${ECHO_T}no" >&6
4de997d1 8224fi
1c710c3c 8225
e8b05380
PB
8226 fi
8227 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8228 done
8229fi
1c710c3c 8230
2693c0b0
PB
8231if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8232 set dummy c++ g++ cxx gxx
8233 if test $build = $target ; then
8234 CXX_FOR_TARGET="$2"
4de997d1 8235 else
2693c0b0 8236 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8237 fi
1c00b503
PB
8238else
8239 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8240fi
8241
278a7a38
AO
8242
8243
8244if test -n "$GCC_FOR_TARGET"; then
8245 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8246elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8247 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8248fi
8249
8250if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8251 for ncn_progname in gcc; do
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8254echo "$as_me:$LINENO: checking for $ac_word" >&5
8255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8256if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259 if test -n "$GCC_FOR_TARGET"; then
8260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8269 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273done
8274done
8275
8276fi
8277fi
8278GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8279if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8280 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8281echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8282else
2aeb72e9
DD
8283 echo "$as_me:$LINENO: result: no" >&5
8284echo "${ECHO_T}no" >&6
278a7a38
AO
8285fi
8286
8287 done
8288fi
8289
8290if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8291 for ncn_progname in gcc; do
2aeb72e9
DD
8292 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8293echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8294 if test -x $with_build_time_tools/${ncn_progname}; then
8295 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8296 echo "$as_me:$LINENO: result: yes" >&5
8297echo "${ECHO_T}yes" >&6
e8b05380
PB
8298 break
8299 else
2aeb72e9
DD
8300 echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
e8b05380
PB
8302 fi
8303 done
8304fi
8305
8306if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8307 for ncn_progname in gcc; do
8308 if test -n "$ncn_target_tool_prefix"; then
8309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8311echo "$as_me:$LINENO: checking for $ac_word" >&5
8312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8313if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8315else
e8b05380
PB
8316 if test -n "$GCC_FOR_TARGET"; then
8317 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8318else
1c710c3c
DJ
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8326 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330done
8331done
8332
ca9f4b81
AO
8333fi
8334fi
1c710c3c 8335GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8336if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8337 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8338echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8339else
2aeb72e9
DD
8340 echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
ca9f4b81
AO
8342fi
8343
e8b05380
PB
8344 fi
8345 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8347set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8348echo "$as_me:$LINENO: checking for $ac_word" >&5
8349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8350if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8352else
e8b05380
PB
8353 if test -n "$GCC_FOR_TARGET"; then
8354 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8355else
1c710c3c
DJ
8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357for as_dir in $PATH
8358do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8363 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367done
8368done
8369
ca9f4b81
AO
8370fi
8371fi
1c710c3c 8372GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8373if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8374 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8375echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8376else
2aeb72e9
DD
8377 echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6
ca9f4b81 8379fi
1c710c3c 8380
e8b05380
PB
8381 fi
8382 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8383 done
8384fi
1c710c3c 8385
e8b05380
PB
8386if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8387 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8388else
8389 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8390fi
8391
278a7a38
AO
8392
8393
8394if test -n "$GCJ_FOR_TARGET"; then
8395 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8396elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8397 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8398fi
8399
8400if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8401 for ncn_progname in gcj; do
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8404echo "$as_me:$LINENO: checking for $ac_word" >&5
8405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8406if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409 if test -n "$GCJ_FOR_TARGET"; then
8410 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8411else
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8419 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423done
8424done
8425
8426fi
8427fi
8428GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8429if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8430 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8431echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8432else
2aeb72e9
DD
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
278a7a38
AO
8435fi
8436
8437 done
8438fi
8439
8440if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8441 for ncn_progname in gcj; do
2aeb72e9
DD
8442 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8443echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8444 if test -x $with_build_time_tools/${ncn_progname}; then
8445 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
e8b05380
PB
8448 break
8449 else
2aeb72e9
DD
8450 echo "$as_me:$LINENO: result: no" >&5
8451echo "${ECHO_T}no" >&6
e8b05380
PB
8452 fi
8453 done
8454fi
8455
8456if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8457 for ncn_progname in gcj; do
8458 if test -n "$ncn_target_tool_prefix"; then
8459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8461echo "$as_me:$LINENO: checking for $ac_word" >&5
8462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8463if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8465else
fb0103e5
RG
8466 if test -n "$GCJ_FOR_TARGET"; then
8467 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8468else
1c710c3c
DJ
8469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470for as_dir in $PATH
8471do
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8476 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480done
8481done
8482
e8b05380
PB
8483fi
8484fi
278a7a38
AO
8485GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8486if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8487 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8488echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8489else
2aeb72e9
DD
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
278a7a38
AO
8492fi
8493
8494 fi
8495 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8497set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8498echo "$as_me:$LINENO: checking for $ac_word" >&5
8499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8500if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 if test -n "$GCJ_FOR_TARGET"; then
8504 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8513 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8516 fi
8517done
8518done
8519
8520fi
8521fi
8522GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8523if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8524 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8525echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8526else
2aeb72e9
DD
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
278a7a38
AO
8529fi
8530
8531 fi
8532 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8533 done
8534fi
8535
8536if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8537 set dummy gcj
8538 if test $build = $target ; then
8539 GCJ_FOR_TARGET="$2"
8540 else
8541 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8542 fi
1c00b503
PB
8543else
8544 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8545fi
8546
8547
8548
8549if test -n "$GFORTRAN_FOR_TARGET"; then
8550 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8551elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8552 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8553fi
8554
278a7a38
AO
8555if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8556 for ncn_progname in gfortran; do
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8558set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8559echo "$as_me:$LINENO: checking for $ac_word" >&5
8560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8561if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8562 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8563else
278a7a38
AO
8564 if test -n "$GFORTRAN_FOR_TARGET"; then
8565 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8566else
1c710c3c
DJ
8567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8574 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578done
8579done
8580
e8b05380
PB
8581fi
8582fi
278a7a38
AO
8583GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8584if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8585 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8586echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8587else
2aeb72e9
DD
8588 echo "$as_me:$LINENO: result: no" >&5
8589echo "${ECHO_T}no" >&6
e8b05380 8590fi
1c710c3c 8591
e8b05380
PB
8592 done
8593fi
1c710c3c 8594
278a7a38 8595if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8596 for ncn_progname in gfortran; do
2aeb72e9
DD
8597 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8598echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8599 if test -x $with_build_time_tools/${ncn_progname}; then
8600 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
e8b05380
PB
8603 break
8604 else
2aeb72e9
DD
8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
e8b05380
PB
8607 fi
8608 done
8609fi
8610
8611if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8612 for ncn_progname in gfortran; do
8613 if test -n "$ncn_target_tool_prefix"; then
8614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8615set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8616echo "$as_me:$LINENO: checking for $ac_word" >&5
8617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8618if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8620else
8621 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8622 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8623else
8624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8631 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635done
8636done
8637
e8b05380
PB
8638fi
8639fi
1c710c3c 8640GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8641if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8642 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8643echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8644else
2aeb72e9
DD
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
e8b05380
PB
8647fi
8648
8649 fi
8650 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8652set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8653echo "$as_me:$LINENO: checking for $ac_word" >&5
8654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8655if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8657else
8658 if test -n "$GFORTRAN_FOR_TARGET"; then
8659 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8660else
1c710c3c
DJ
8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8668 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 break 2
8671 fi
8672done
8673done
8674
e8b05380
PB
8675fi
8676fi
1c710c3c 8677GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8678if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8679 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8680echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8681else
2aeb72e9
DD
8682 echo "$as_me:$LINENO: result: no" >&5
8683echo "${ECHO_T}no" >&6
e8b05380 8684fi
1c710c3c 8685
e8b05380
PB
8686 fi
8687 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8688 done
8689fi
1c710c3c 8690
e8b05380
PB
8691if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8692 set dummy gfortran
2693c0b0 8693 if test $build = $target ; then
e8b05380 8694 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8695 else
e8b05380
PB
8696 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8697 fi
1c00b503
PB
8698else
8699 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8700fi
8701
8702
8703
e8b05380
PB
8704cat > conftest.c << \EOF
8705#ifdef __GNUC__
8706 gcc_yay;
8707#endif
8708EOF
8709if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8710 have_gcc_for_target=yes
8711else
8712 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8713 have_gcc_for_target=no
8714fi
8715rm conftest.c
8716
8717
8718
8719
8720if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8721 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8722 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8723echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8724 if test -x $with_build_time_tools/ar; then
8725 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8726 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8727 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8728echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8729 else
2aeb72e9
DD
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
d1f8db0c 8732 fi
e8b05380
PB
8733 elif test $build != $host && test $have_gcc_for_target = yes; then
8734 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8735 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8736 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8737 fi
8738fi
3e19841a 8739if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8740 # Extract the first word of "ar", so it can be a program name with args.
8741set dummy ar; ac_word=$2
2aeb72e9
DD
8742echo "$as_me:$LINENO: checking for $ac_word" >&5
8743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8744if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8746else
1c710c3c
DJ
8747 case $AR_FOR_TARGET in
8748 [\\/]* | ?:[\\/]*)
e8b05380
PB
8749 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8750 ;;
e8b05380 8751 *)
1c710c3c
DJ
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $gcc_cv_tool_dirs
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8759 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8762 fi
8763done
8764done
8765
e8b05380
PB
8766 ;;
8767esac
8768fi
1c710c3c 8769AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8770
e8b05380 8771if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8772 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8773echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8774else
2aeb72e9
DD
8775 echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
4de997d1
PB
8777fi
8778
e8b05380
PB
8779fi
8780if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8781
8782
8783if test -n "$AR_FOR_TARGET"; then
8784 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8785elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8786 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8787fi
8788
8789if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8790 for ncn_progname in ar; do
8791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8792set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8793echo "$as_me:$LINENO: checking for $ac_word" >&5
8794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8795if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 if test -n "$AR_FOR_TARGET"; then
8799 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8800else
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8808 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8811 fi
8812done
8813done
8814
8815fi
8816fi
8817AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8818if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8819 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8820echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8821else
2aeb72e9
DD
8822 echo "$as_me:$LINENO: result: no" >&5
8823echo "${ECHO_T}no" >&6
278a7a38
AO
8824fi
8825
8826 done
8827fi
8828
8829if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8830 for ncn_progname in ar; do
2aeb72e9
DD
8831 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8832echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8833 if test -x $with_build_time_tools/${ncn_progname}; then
8834 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8835 echo "$as_me:$LINENO: result: yes" >&5
8836echo "${ECHO_T}yes" >&6
e8b05380
PB
8837 break
8838 else
2aeb72e9
DD
8839 echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
e8b05380
PB
8841 fi
8842 done
8843fi
8844
8845if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8846 for ncn_progname in ar; do
8847 if test -n "$ncn_target_tool_prefix"; then
8848 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8849set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8850echo "$as_me:$LINENO: checking for $ac_word" >&5
8851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8852if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8854else
e8b05380
PB
8855 if test -n "$AR_FOR_TARGET"; then
8856 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8857else
1c710c3c
DJ
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
8863 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8865 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 break 2
8868 fi
8869done
8870done
8871
4de997d1
PB
8872fi
8873fi
1c710c3c 8874AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8875if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8876 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8877echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8878else
2aeb72e9
DD
8879 echo "$as_me:$LINENO: result: no" >&5
8880echo "${ECHO_T}no" >&6
4de997d1
PB
8881fi
8882
e8b05380
PB
8883 fi
8884 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8887echo "$as_me:$LINENO: checking for $ac_word" >&5
8888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8889if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8891else
8892 if test -n "$AR_FOR_TARGET"; then
8893 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8894else
1c710c3c
DJ
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8902 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907done
8908
e8b05380
PB
8909fi
8910fi
1c710c3c 8911AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8912if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8913 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8914echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8915else
2aeb72e9
DD
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
e8b05380 8918fi
1c710c3c 8919
e8b05380
PB
8920 fi
8921 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8922 done
8923fi
1c710c3c 8924
e8b05380
PB
8925if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8926 set dummy ar
8927 if test $build = $target ; then
8928 AR_FOR_TARGET="$2"
8929 else
8930 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8931 fi
1c00b503
PB
8932else
8933 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8934fi
8935
d1f8db0c
PB
8936else
8937 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8938fi
8939
8940
8941
8942
8943if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8944 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8945 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8946echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8947 if test -x $with_build_time_tools/as; then
8948 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8949 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
8950 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8951echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8952 else
2aeb72e9
DD
8953 echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
d1f8db0c 8955 fi
e8b05380
PB
8956 elif test $build != $host && test $have_gcc_for_target = yes; then
8957 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
8958 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8959 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
8960 fi
8961fi
3e19841a 8962if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8963 # Extract the first word of "as", so it can be a program name with args.
8964set dummy as; ac_word=$2
2aeb72e9
DD
8965echo "$as_me:$LINENO: checking for $ac_word" >&5
8966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8967if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8969else
1c710c3c
DJ
8970 case $AS_FOR_TARGET in
8971 [\\/]* | ?:[\\/]*)
e8b05380
PB
8972 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8973 ;;
e8b05380 8974 *)
1c710c3c
DJ
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $gcc_cv_tool_dirs
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8982 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987done
8988
e8b05380
PB
8989 ;;
8990esac
8991fi
1c710c3c 8992AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 8993
e8b05380 8994if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
8995 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8996echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8997else
2aeb72e9
DD
8998 echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
e8b05380
PB
9000fi
9001
9002fi
9003if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9004
9005
9006if test -n "$AS_FOR_TARGET"; then
9007 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9008elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9009 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9010fi
9011
9012if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9013 for ncn_progname in as; do
9014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9015set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9016echo "$as_me:$LINENO: checking for $ac_word" >&5
9017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9018if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020else
9021 if test -n "$AS_FOR_TARGET"; then
9022 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9023else
9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025for as_dir in $PATH
9026do
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9031 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9034 fi
9035done
9036done
9037
9038fi
9039fi
9040AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9041if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9042 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9043echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9044else
2aeb72e9
DD
9045 echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
278a7a38
AO
9047fi
9048
9049 done
9050fi
9051
9052if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9053 for ncn_progname in as; do
2aeb72e9
DD
9054 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9055echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9056 if test -x $with_build_time_tools/${ncn_progname}; then
9057 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
e8b05380
PB
9060 break
9061 else
2aeb72e9
DD
9062 echo "$as_me:$LINENO: result: no" >&5
9063echo "${ECHO_T}no" >&6
e8b05380
PB
9064 fi
9065 done
9066fi
9067
9068if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9069 for ncn_progname in as; do
9070 if test -n "$ncn_target_tool_prefix"; then
9071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9073echo "$as_me:$LINENO: checking for $ac_word" >&5
9074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9075if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9077else
9078 if test -n "$AS_FOR_TARGET"; then
9079 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9080else
1c710c3c
DJ
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9088 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093done
9094
e8b05380
PB
9095fi
9096fi
1c710c3c 9097AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9098if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9099 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9100echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9101else
2aeb72e9
DD
9102 echo "$as_me:$LINENO: result: no" >&5
9103echo "${ECHO_T}no" >&6
e8b05380
PB
9104fi
9105
9106 fi
9107 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9109set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9110echo "$as_me:$LINENO: checking for $ac_word" >&5
9111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9112if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9114else
e8b05380
PB
9115 if test -n "$AS_FOR_TARGET"; then
9116 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9117else
1c710c3c
DJ
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9125 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129done
9130done
9131
4de997d1
PB
9132fi
9133fi
1c710c3c 9134AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9135if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9136 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9137echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9138else
2aeb72e9
DD
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
4de997d1 9141fi
1c710c3c 9142
e8b05380
PB
9143 fi
9144 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9145 done
9146fi
1c710c3c 9147
e8b05380
PB
9148if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9149 set dummy as
9150 if test $build = $target ; then
9151 AS_FOR_TARGET="$2"
9152 else
9153 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9154 fi
1c00b503
PB
9155else
9156 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9157fi
2693c0b0 9158
d1f8db0c
PB
9159else
9160 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9161fi
9162
e8b05380
PB
9163
9164
9165
9166if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9167 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9168 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9169echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9170 if test -x $with_build_time_tools/dlltool; then
9171 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9172 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9173 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9174echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9175 else
2aeb72e9
DD
9176 echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
d1f8db0c 9178 fi
e8b05380
PB
9179 elif test $build != $host && test $have_gcc_for_target = yes; then
9180 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9181 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9182 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9183 fi
9184fi
3e19841a 9185if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9186 # Extract the first word of "dlltool", so it can be a program name with args.
9187set dummy dlltool; ac_word=$2
2aeb72e9
DD
9188echo "$as_me:$LINENO: checking for $ac_word" >&5
9189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9190if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9192else
1c710c3c
DJ
9193 case $DLLTOOL_FOR_TARGET in
9194 [\\/]* | ?:[\\/]*)
e8b05380
PB
9195 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9196 ;;
e8b05380 9197 *)
1c710c3c
DJ
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199for as_dir in $gcc_cv_tool_dirs
9200do
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9205 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9208 fi
9209done
9210done
9211
e8b05380
PB
9212 ;;
9213esac
4de997d1 9214fi
1c710c3c 9215DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9216
e8b05380 9217if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9218 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9219echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9220else
2aeb72e9
DD
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
4de997d1
PB
9223fi
9224
e8b05380
PB
9225fi
9226if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9227
9228
9229if test -n "$DLLTOOL_FOR_TARGET"; then
9230 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9231elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9232 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9233fi
9234
9235if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9236 for ncn_progname in dlltool; do
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9239echo "$as_me:$LINENO: checking for $ac_word" >&5
9240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9241if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244 if test -n "$DLLTOOL_FOR_TARGET"; then
9245 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9246else
9247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248for as_dir in $PATH
9249do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9254 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258done
9259done
9260
9261fi
9262fi
9263DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9264if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9265 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9266echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9267else
2aeb72e9
DD
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
278a7a38
AO
9270fi
9271
9272 done
9273fi
9274
9275if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9276 for ncn_progname in dlltool; do
2aeb72e9
DD
9277 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9278echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9279 if test -x $with_build_time_tools/${ncn_progname}; then
9280 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
e8b05380
PB
9283 break
9284 else
2aeb72e9
DD
9285 echo "$as_me:$LINENO: result: no" >&5
9286echo "${ECHO_T}no" >&6
e8b05380
PB
9287 fi
9288 done
9289fi
9290
9291if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9292 for ncn_progname in dlltool; do
9293 if test -n "$ncn_target_tool_prefix"; then
9294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9295set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9296echo "$as_me:$LINENO: checking for $ac_word" >&5
9297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9298if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9300else
e8b05380
PB
9301 if test -n "$DLLTOOL_FOR_TARGET"; then
9302 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9303else
1c710c3c
DJ
9304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305for as_dir in $PATH
9306do
9307 IFS=$as_save_IFS
9308 test -z "$as_dir" && as_dir=.
9309 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9311 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9313 break 2
9314 fi
9315done
9316done
9317
4de997d1
PB
9318fi
9319fi
1c710c3c 9320DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9321if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9322 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9323echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9324else
2aeb72e9
DD
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
4de997d1 9327fi
4de997d1 9328
e8b05380
PB
9329 fi
9330 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9332set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9333echo "$as_me:$LINENO: checking for $ac_word" >&5
9334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9335if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9337else
e8b05380
PB
9338 if test -n "$DLLTOOL_FOR_TARGET"; then
9339 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9340else
1c710c3c
DJ
9341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342for as_dir in $PATH
9343do
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9348 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352done
9353done
9354
4de997d1
PB
9355fi
9356fi
1c710c3c 9357DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9358if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9359 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9360echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9361else
2aeb72e9
DD
9362 echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
4de997d1 9364fi
1c710c3c 9365
e8b05380
PB
9366 fi
9367 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9368 done
9369fi
1c710c3c 9370
e8b05380
PB
9371if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9372 set dummy dlltool
9373 if test $build = $target ; then
9374 DLLTOOL_FOR_TARGET="$2"
9375 else
9376 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9377 fi
1c00b503
PB
9378else
9379 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9380fi
9381
d1f8db0c
PB
9382else
9383 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9384fi
9385
4de997d1 9386
e8b05380
PB
9387
9388
9389if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9390 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9391 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9392echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9393 if test -x $with_build_time_tools/ld; then
9394 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9395 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9396 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9397echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9398 else
2aeb72e9
DD
9399 echo "$as_me:$LINENO: result: no" >&5
9400echo "${ECHO_T}no" >&6
d1f8db0c 9401 fi
e8b05380
PB
9402 elif test $build != $host && test $have_gcc_for_target = yes; then
9403 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9404 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9405 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9406 fi
e8b05380 9407fi
3e19841a 9408if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9409 # Extract the first word of "ld", so it can be a program name with args.
9410set dummy ld; ac_word=$2
2aeb72e9
DD
9411echo "$as_me:$LINENO: checking for $ac_word" >&5
9412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9413if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9415else
1c710c3c
DJ
9416 case $LD_FOR_TARGET in
9417 [\\/]* | ?:[\\/]*)
e8b05380
PB
9418 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9419 ;;
e8b05380 9420 *)
1c710c3c
DJ
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9422for as_dir in $gcc_cv_tool_dirs
9423do
9424 IFS=$as_save_IFS
9425 test -z "$as_dir" && as_dir=.
9426 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9428 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 break 2
9431 fi
9432done
9433done
9434
e8b05380
PB
9435 ;;
9436esac
4de997d1 9437fi
1c710c3c 9438LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9439
e8b05380 9440if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9441 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9442echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9443else
2aeb72e9
DD
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
4de997d1 9446fi
2693c0b0 9447
e8b05380
PB
9448fi
9449if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9450
9451
9452if test -n "$LD_FOR_TARGET"; then
9453 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9454elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9455 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9456fi
9457
9458if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9459 for ncn_progname in ld; do
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9462echo "$as_me:$LINENO: checking for $ac_word" >&5
9463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9464if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466else
9467 if test -n "$LD_FOR_TARGET"; then
9468 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9477 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9480 fi
9481done
9482done
9483
9484fi
9485fi
9486LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9487if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9488 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9489echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9490else
2aeb72e9
DD
9491 echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
278a7a38
AO
9493fi
9494
9495 done
9496fi
9497
9498if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9499 for ncn_progname in ld; do
2aeb72e9
DD
9500 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9501echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9502 if test -x $with_build_time_tools/${ncn_progname}; then
9503 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
e8b05380
PB
9506 break
9507 else
2aeb72e9
DD
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
e8b05380
PB
9510 fi
9511 done
ca9f4b81
AO
9512fi
9513
e8b05380
PB
9514if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9515 for ncn_progname in ld; do
9516 if test -n "$ncn_target_tool_prefix"; then
9517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9518set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9519echo "$as_me:$LINENO: checking for $ac_word" >&5
9520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9521if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9523else
4de997d1
PB
9524 if test -n "$LD_FOR_TARGET"; then
9525 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9526else
1c710c3c
DJ
9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9534 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9537 fi
9538done
9539done
9540
ca9f4b81
AO
9541fi
9542fi
1c710c3c 9543LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9544if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9545 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9546echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9547else
2aeb72e9
DD
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
ca9f4b81
AO
9550fi
9551
e8b05380
PB
9552 fi
9553 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9555set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9556echo "$as_me:$LINENO: checking for $ac_word" >&5
9557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9558if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9560else
2693c0b0
PB
9561 if test -n "$LD_FOR_TARGET"; then
9562 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9563else
1c710c3c
DJ
9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565for as_dir in $PATH
9566do
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9571 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9574 fi
9575done
9576done
9577
ca9f4b81
AO
9578fi
9579fi
1c710c3c 9580LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9581if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9582 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9583echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9584else
2aeb72e9
DD
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
ca9f4b81 9587fi
1c710c3c 9588
e8b05380
PB
9589 fi
9590 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9591 done
9592fi
1c710c3c 9593
2693c0b0
PB
9594if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9595 set dummy ld
9596 if test $build = $target ; then
9597 LD_FOR_TARGET="$2"
ca9f4b81 9598 else
2693c0b0 9599 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9600 fi
1c00b503
PB
9601else
9602 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9603fi
9604
d1f8db0c
PB
9605else
9606 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9607fi
9608
9609
9610
9611
9612if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9613 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9614 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9615echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9616 if test -x $with_build_time_tools/lipo; then
9617 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9618 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9619 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9620echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9621 else
2aeb72e9
DD
9622 echo "$as_me:$LINENO: result: no" >&5
9623echo "${ECHO_T}no" >&6
d1f8db0c 9624 fi
e8b05380
PB
9625 elif test $build != $host && test $have_gcc_for_target = yes; then
9626 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9627 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9628 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9629 fi
9630fi
278a7a38
AO
9631if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9632 # Extract the first word of "lipo", so it can be a program name with args.
9633set dummy lipo; ac_word=$2
2aeb72e9
DD
9634echo "$as_me:$LINENO: checking for $ac_word" >&5
9635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9636if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 case $LIPO_FOR_TARGET in
9640 [\\/]* | ?:[\\/]*)
9641 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9642 ;;
9643 *)
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $gcc_cv_tool_dirs
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9651 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656done
9657
9658 ;;
9659esac
9660fi
9661LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9662
278a7a38 9663if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9664 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9665echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9666else
2aeb72e9
DD
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
278a7a38
AO
9669fi
9670
9671fi
9672if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9673
9674
9675if test -n "$LIPO_FOR_TARGET"; then
9676 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9677elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9678 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9679fi
9680
9681if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9682 for ncn_progname in lipo; do
9683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9684set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9685echo "$as_me:$LINENO: checking for $ac_word" >&5
9686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9687if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9688 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9689else
278a7a38
AO
9690 if test -n "$LIPO_FOR_TARGET"; then
9691 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9692else
9693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9694for as_dir in $PATH
1c710c3c
DJ
9695do
9696 IFS=$as_save_IFS
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9700 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9702 break 2
9703 fi
9704done
9705done
9706
e8b05380 9707fi
278a7a38
AO
9708fi
9709LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9710if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9711 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9712echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9713else
2aeb72e9
DD
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
e8b05380
PB
9716fi
9717
278a7a38 9718 done
e8b05380 9719fi
278a7a38
AO
9720
9721if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9722 for ncn_progname in lipo; do
2aeb72e9
DD
9723 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9724echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9725 if test -x $with_build_time_tools/${ncn_progname}; then
9726 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9727 echo "$as_me:$LINENO: result: yes" >&5
9728echo "${ECHO_T}yes" >&6
e8b05380
PB
9729 break
9730 else
2aeb72e9
DD
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
e8b05380
PB
9733 fi
9734 done
9735fi
9736
9737if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9738 for ncn_progname in lipo; do
9739 if test -n "$ncn_target_tool_prefix"; then
9740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9741set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9742echo "$as_me:$LINENO: checking for $ac_word" >&5
9743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9744if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9746else
9747 if test -n "$LIPO_FOR_TARGET"; then
9748 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9749else
1c710c3c
DJ
9750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751for as_dir in $PATH
9752do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9757 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761done
9762done
9763
040b1c5a
GK
9764fi
9765fi
1c710c3c 9766LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9767if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9768 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9769echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9770else
2aeb72e9
DD
9771 echo "$as_me:$LINENO: result: no" >&5
9772echo "${ECHO_T}no" >&6
040b1c5a
GK
9773fi
9774
e8b05380
PB
9775 fi
9776 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9778set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9779echo "$as_me:$LINENO: checking for $ac_word" >&5
9780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9781if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9783else
9784 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9785 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9786else
1c710c3c
DJ
9787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788for as_dir in $PATH
9789do
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9794 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9797 fi
9798done
9799done
9800
040b1c5a
GK
9801fi
9802fi
1c710c3c 9803LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9804if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9805 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9806echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9807else
2aeb72e9
DD
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
040b1c5a 9810fi
1c710c3c 9811
e8b05380
PB
9812 fi
9813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9814 done
9815fi
1c710c3c 9816
040b1c5a
GK
9817if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9818 set dummy lipo
9819 if test $build = $target ; then
9820 LIPO_FOR_TARGET="$2"
9821 else
9822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9823 fi
1c00b503
PB
9824else
9825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9826fi
9827
d1f8db0c
PB
9828else
9829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9830fi
9831
9832
9833
9834
9835if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9836 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9837 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9838echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9839 if test -x $with_build_time_tools/nm; then
9840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9842 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9843echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9844 else
2aeb72e9
DD
9845 echo "$as_me:$LINENO: result: no" >&5
9846echo "${ECHO_T}no" >&6
d1f8db0c 9847 fi
e8b05380
PB
9848 elif test $build != $host && test $have_gcc_for_target = yes; then
9849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9852 fi
9853fi
3e19841a 9854if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9855 # Extract the first word of "nm", so it can be a program name with args.
9856set dummy nm; ac_word=$2
2aeb72e9
DD
9857echo "$as_me:$LINENO: checking for $ac_word" >&5
9858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9859if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9861else
1c710c3c
DJ
9862 case $NM_FOR_TARGET in
9863 [\\/]* | ?:[\\/]*)
e8b05380
PB
9864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9865 ;;
e8b05380 9866 *)
1c710c3c
DJ
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868for as_dir in $gcc_cv_tool_dirs
9869do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9877 fi
9878done
9879done
9880
e8b05380
PB
9881 ;;
9882esac
9883fi
1c710c3c 9884NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9885
e8b05380 9886if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9887 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9888echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9889else
2aeb72e9
DD
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
e8b05380
PB
9892fi
9893
9894fi
9895if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9896
9897
9898if test -n "$NM_FOR_TARGET"; then
9899 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9900elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9901 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9902fi
9903
9904if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9905 for ncn_progname in nm; do
9906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9907set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9908echo "$as_me:$LINENO: checking for $ac_word" >&5
9909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9910if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912else
9913 if test -n "$NM_FOR_TARGET"; then
9914 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9923 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928done
9929
9930fi
9931fi
9932NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9933if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9934 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9935echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9936else
2aeb72e9
DD
9937 echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
278a7a38
AO
9939fi
9940
9941 done
9942fi
9943
9944if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9945 for ncn_progname in nm; do
2aeb72e9
DD
9946 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9948 if test -x $with_build_time_tools/${ncn_progname}; then
9949 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9950 echo "$as_me:$LINENO: result: yes" >&5
9951echo "${ECHO_T}yes" >&6
e8b05380
PB
9952 break
9953 else
2aeb72e9
DD
9954 echo "$as_me:$LINENO: result: no" >&5
9955echo "${ECHO_T}no" >&6
e8b05380
PB
9956 fi
9957 done
9958fi
9959
9960if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9961 for ncn_progname in nm; do
9962 if test -n "$ncn_target_tool_prefix"; then
9963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9964set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9965echo "$as_me:$LINENO: checking for $ac_word" >&5
9966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9967if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9969else
4de997d1
PB
9970 if test -n "$NM_FOR_TARGET"; then
9971 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9972else
1c710c3c
DJ
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9980 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984done
9985done
9986
ca9f4b81
AO
9987fi
9988fi
1c710c3c 9989NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 9990if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9991 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9992echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9993else
2aeb72e9
DD
9994 echo "$as_me:$LINENO: result: no" >&5
9995echo "${ECHO_T}no" >&6
ca9f4b81
AO
9996fi
9997
e8b05380
PB
9998 fi
9999 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10001set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10002echo "$as_me:$LINENO: checking for $ac_word" >&5
10003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10004if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10006else
2693c0b0
PB
10007 if test -n "$NM_FOR_TARGET"; then
10008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10009else
1c710c3c
DJ
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013 IFS=$as_save_IFS
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10017 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 break 2
10020 fi
10021done
10022done
10023
ca9f4b81
AO
10024fi
10025fi
1c710c3c 10026NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10027if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10028 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10029echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10030else
2aeb72e9
DD
10031 echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
ca9f4b81 10033fi
1c710c3c 10034
e8b05380
PB
10035 fi
10036 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10037 done
10038fi
1c710c3c 10039
2693c0b0
PB
10040if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10041 set dummy nm
10042 if test $build = $target ; then
10043 NM_FOR_TARGET="$2"
ca9f4b81 10044 else
2693c0b0 10045 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10046 fi
1c00b503
PB
10047else
10048 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10049fi
10050
d1f8db0c
PB
10051else
10052 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10053fi
10054
10055
10056
10057
10058if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10059 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10060 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10061echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10062 if test -x $with_build_time_tools/objdump; then
10063 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10064 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10065 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10066echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10067 else
2aeb72e9
DD
10068 echo "$as_me:$LINENO: result: no" >&5
10069echo "${ECHO_T}no" >&6
d1f8db0c 10070 fi
e8b05380
PB
10071 elif test $build != $host && test $have_gcc_for_target = yes; then
10072 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10073 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10074 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10075 fi
10076fi
3e19841a 10077if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10078 # Extract the first word of "objdump", so it can be a program name with args.
10079set dummy objdump; ac_word=$2
2aeb72e9
DD
10080echo "$as_me:$LINENO: checking for $ac_word" >&5
10081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10082if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10084else
1c710c3c
DJ
10085 case $OBJDUMP_FOR_TARGET in
10086 [\\/]* | ?:[\\/]*)
e8b05380
PB
10087 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10088 ;;
e8b05380 10089 *)
1c710c3c
DJ
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $gcc_cv_tool_dirs
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10097 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10100 fi
10101done
10102done
10103
e8b05380
PB
10104 ;;
10105esac
10106fi
1c710c3c 10107OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10108
e8b05380 10109if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10110 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10111echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10112else
2aeb72e9
DD
10113 echo "$as_me:$LINENO: result: no" >&5
10114echo "${ECHO_T}no" >&6
e8b05380
PB
10115fi
10116
10117fi
10118if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10119
10120
10121if test -n "$OBJDUMP_FOR_TARGET"; then
10122 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10123elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10124 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10125fi
10126
10127if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10128 for ncn_progname in objdump; do
10129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10130set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10131echo "$as_me:$LINENO: checking for $ac_word" >&5
10132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10133if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136 if test -n "$OBJDUMP_FOR_TARGET"; then
10137 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10138else
10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10146 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10149 fi
10150done
10151done
10152
10153fi
10154fi
10155OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10156if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10157 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10158echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10159else
2aeb72e9
DD
10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
278a7a38
AO
10162fi
10163
10164 done
10165fi
10166
10167if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10168 for ncn_progname in objdump; do
2aeb72e9
DD
10169 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10170echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10171 if test -x $with_build_time_tools/${ncn_progname}; then
10172 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10173 echo "$as_me:$LINENO: result: yes" >&5
10174echo "${ECHO_T}yes" >&6
e8b05380
PB
10175 break
10176 else
2aeb72e9
DD
10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
e8b05380
PB
10179 fi
10180 done
10181fi
10182
10183if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10184 for ncn_progname in objdump; do
10185 if test -n "$ncn_target_tool_prefix"; then
10186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10187set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10188echo "$as_me:$LINENO: checking for $ac_word" >&5
10189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10190if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10192else
10193 if test -n "$OBJDUMP_FOR_TARGET"; then
10194 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10195else
1c710c3c
DJ
10196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197for as_dir in $PATH
10198do
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10203 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10206 fi
10207done
10208done
10209
d739199a
DJ
10210fi
10211fi
1c710c3c 10212OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10213if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10214 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10215echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10216else
2aeb72e9
DD
10217 echo "$as_me:$LINENO: result: no" >&5
10218echo "${ECHO_T}no" >&6
d739199a
DJ
10219fi
10220
e8b05380
PB
10221 fi
10222 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10224set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10225echo "$as_me:$LINENO: checking for $ac_word" >&5
10226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10227if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10229else
10230 if test -n "$OBJDUMP_FOR_TARGET"; then
10231 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10232else
1c710c3c
DJ
10233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10234for as_dir in $PATH
10235do
10236 IFS=$as_save_IFS
10237 test -z "$as_dir" && as_dir=.
10238 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10240 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10242 break 2
10243 fi
10244done
10245done
10246
d739199a
DJ
10247fi
10248fi
1c710c3c 10249OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10250if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10251 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10252echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10253else
2aeb72e9
DD
10254 echo "$as_me:$LINENO: result: no" >&5
10255echo "${ECHO_T}no" >&6
d739199a 10256fi
1c710c3c 10257
e8b05380
PB
10258 fi
10259 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10260 done
10261fi
1c710c3c 10262
d739199a
DJ
10263if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10264 set dummy objdump
10265 if test $build = $target ; then
10266 OBJDUMP_FOR_TARGET="$2"
10267 else
10268 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10269 fi
1c00b503
PB
10270else
10271 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10272fi
10273
d1f8db0c
PB
10274else
10275 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10276fi
10277
10278
10279
10280
10281if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10282 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10283 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10284echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10285 if test -x $with_build_time_tools/ranlib; then
10286 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10287 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10288 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10289echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10290 else
2aeb72e9
DD
10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
d1f8db0c 10293 fi
e8b05380
PB
10294 elif test $build != $host && test $have_gcc_for_target = yes; then
10295 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10296 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10297 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10298 fi
10299fi
3e19841a 10300if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10301 # Extract the first word of "ranlib", so it can be a program name with args.
10302set dummy ranlib; ac_word=$2
2aeb72e9
DD
10303echo "$as_me:$LINENO: checking for $ac_word" >&5
10304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10305if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10307else
1c710c3c
DJ
10308 case $RANLIB_FOR_TARGET in
10309 [\\/]* | ?:[\\/]*)
e8b05380
PB
10310 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10311 ;;
e8b05380 10312 *)
1c710c3c
DJ
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $gcc_cv_tool_dirs
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10320 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324done
10325done
10326
e8b05380
PB
10327 ;;
10328esac
10329fi
1c710c3c 10330RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10331
e8b05380 10332if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10333 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10334echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10335else
2aeb72e9
DD
10336 echo "$as_me:$LINENO: result: no" >&5
10337echo "${ECHO_T}no" >&6
e8b05380
PB
10338fi
10339
10340fi
10341if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10342
10343
10344if test -n "$RANLIB_FOR_TARGET"; then
10345 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10346elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10347 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10348fi
10349
10350if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10351 for ncn_progname in ranlib; do
10352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10353set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10354echo "$as_me:$LINENO: checking for $ac_word" >&5
10355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10356if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 if test -n "$RANLIB_FOR_TARGET"; then
10360 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10369 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373done
10374done
10375
10376fi
10377fi
10378RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10379if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10380 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10381echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10382else
2aeb72e9
DD
10383 echo "$as_me:$LINENO: result: no" >&5
10384echo "${ECHO_T}no" >&6
278a7a38
AO
10385fi
10386
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10391 for ncn_progname in ranlib; do
2aeb72e9
DD
10392 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10393echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10394 if test -x $with_build_time_tools/${ncn_progname}; then
10395 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10396 echo "$as_me:$LINENO: result: yes" >&5
10397echo "${ECHO_T}yes" >&6
e8b05380
PB
10398 break
10399 else
2aeb72e9
DD
10400 echo "$as_me:$LINENO: result: no" >&5
10401echo "${ECHO_T}no" >&6
e8b05380
PB
10402 fi
10403 done
10404fi
10405
10406if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10407 for ncn_progname in ranlib; do
10408 if test -n "$ncn_target_tool_prefix"; then
10409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10411echo "$as_me:$LINENO: checking for $ac_word" >&5
10412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10413if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10415else
4de997d1
PB
10416 if test -n "$RANLIB_FOR_TARGET"; then
10417 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10418else
1c710c3c
DJ
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10426 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430done
10431done
10432
ca9f4b81
AO
10433fi
10434fi
1c710c3c 10435RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10436if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10437 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10438echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10439else
2aeb72e9
DD
10440 echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6
ca9f4b81
AO
10442fi
10443
e8b05380
PB
10444 fi
10445 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10447set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10448echo "$as_me:$LINENO: checking for $ac_word" >&5
10449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10450if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10452else
2693c0b0
PB
10453 if test -n "$RANLIB_FOR_TARGET"; then
10454 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10455else
1c710c3c
DJ
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10463 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10466 fi
10467done
10468done
10469
ca9f4b81
AO
10470fi
10471fi
1c710c3c 10472RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10473if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10474 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10475echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10476else
2aeb72e9
DD
10477 echo "$as_me:$LINENO: result: no" >&5
10478echo "${ECHO_T}no" >&6
ca9f4b81 10479fi
1c710c3c 10480
e8b05380
PB
10481 fi
10482 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10483 done
10484fi
1c710c3c 10485
e8b05380
PB
10486if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10487 set dummy ranlib
10488 if test $build = $target ; then
10489 RANLIB_FOR_TARGET="$2"
10490 else
10491 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10492 fi
1c00b503
PB
10493else
10494 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10495fi
2693c0b0 10496
d1f8db0c
PB
10497else
10498 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10499fi
10500
e8b05380
PB
10501
10502
10503
10504if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10505 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10506 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10507echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10508 if test -x $with_build_time_tools/strip; then
10509 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10510 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10511 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10512echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10513 else
2aeb72e9
DD
10514 echo "$as_me:$LINENO: result: no" >&5
10515echo "${ECHO_T}no" >&6
d1f8db0c 10516 fi
e8b05380
PB
10517 elif test $build != $host && test $have_gcc_for_target = yes; then
10518 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10519 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10520 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10521 fi
10522fi
3e19841a 10523if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10524 # Extract the first word of "strip", so it can be a program name with args.
10525set dummy strip; ac_word=$2
2aeb72e9
DD
10526echo "$as_me:$LINENO: checking for $ac_word" >&5
10527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10528if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10530else
1c710c3c
DJ
10531 case $STRIP_FOR_TARGET in
10532 [\\/]* | ?:[\\/]*)
e8b05380
PB
10533 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10534 ;;
e8b05380 10535 *)
1c710c3c
DJ
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $gcc_cv_tool_dirs
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10543 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548done
10549
e8b05380
PB
10550 ;;
10551esac
10552fi
1c710c3c 10553STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10554
e8b05380 10555if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10556 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10557echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10558else
2aeb72e9
DD
10559 echo "$as_me:$LINENO: result: no" >&5
10560echo "${ECHO_T}no" >&6
e8b05380
PB
10561fi
10562
10563fi
10564if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10565
10566
10567if test -n "$STRIP_FOR_TARGET"; then
10568 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10569elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10570 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10571fi
10572
10573if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10574 for ncn_progname in strip; do
10575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10576set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10577echo "$as_me:$LINENO: checking for $ac_word" >&5
10578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10579if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582 if test -n "$STRIP_FOR_TARGET"; then
10583 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10592 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597done
10598
10599fi
10600fi
10601STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10602if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10603 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10604echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10605else
2aeb72e9
DD
10606 echo "$as_me:$LINENO: result: no" >&5
10607echo "${ECHO_T}no" >&6
278a7a38
AO
10608fi
10609
10610 done
10611fi
10612
10613if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10614 for ncn_progname in strip; do
2aeb72e9
DD
10615 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10616echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10617 if test -x $with_build_time_tools/${ncn_progname}; then
10618 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10619 echo "$as_me:$LINENO: result: yes" >&5
10620echo "${ECHO_T}yes" >&6
e8b05380
PB
10621 break
10622 else
2aeb72e9
DD
10623 echo "$as_me:$LINENO: result: no" >&5
10624echo "${ECHO_T}no" >&6
e8b05380
PB
10625 fi
10626 done
10627fi
10628
10629if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10630 for ncn_progname in strip; do
10631 if test -n "$ncn_target_tool_prefix"; then
10632 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10633set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10634echo "$as_me:$LINENO: checking for $ac_word" >&5
10635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10636if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10638else
10639 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10640 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10641else
10642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $PATH
10644do
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
10647 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10649 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10651 break 2
10652 fi
10653done
10654done
10655
040b1c5a
GK
10656fi
10657fi
1c710c3c 10658STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10659if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10660 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10661echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10662else
2aeb72e9
DD
10663 echo "$as_me:$LINENO: result: no" >&5
10664echo "${ECHO_T}no" >&6
040b1c5a
GK
10665fi
10666
e8b05380
PB
10667 fi
10668 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10670set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10671echo "$as_me:$LINENO: checking for $ac_word" >&5
10672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10673if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10675else
10676 if test -n "$STRIP_FOR_TARGET"; then
10677 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10678else
1c710c3c
DJ
10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10686 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690done
10691done
10692
040b1c5a
GK
10693fi
10694fi
1c710c3c 10695STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10696if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10697 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10698echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10699else
2aeb72e9
DD
10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
040b1c5a 10702fi
1c710c3c 10703
e8b05380
PB
10704 fi
10705 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10706 done
10707fi
1c710c3c 10708
040b1c5a
GK
10709if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10710 set dummy strip
10711 if test $build = $target ; then
10712 STRIP_FOR_TARGET="$2"
10713 else
10714 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10715 fi
1c00b503
PB
10716else
10717 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10718fi
10719
d1f8db0c
PB
10720else
10721 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10722fi
10723
10724
10725
10726
10727if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10728 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10729 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10730echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10731 if test -x $with_build_time_tools/windres; then
10732 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10733 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10734 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10735echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10736 else
2aeb72e9
DD
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
d1f8db0c 10739 fi
e8b05380
PB
10740 elif test $build != $host && test $have_gcc_for_target = yes; then
10741 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10742 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10743 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10744 fi
10745fi
3e19841a 10746if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10747 # Extract the first word of "windres", so it can be a program name with args.
10748set dummy windres; ac_word=$2
2aeb72e9
DD
10749echo "$as_me:$LINENO: checking for $ac_word" >&5
10750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10751if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10753else
1c710c3c
DJ
10754 case $WINDRES_FOR_TARGET in
10755 [\\/]* | ?:[\\/]*)
e8b05380
PB
10756 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10757 ;;
e8b05380 10758 *)
1c710c3c
DJ
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $gcc_cv_tool_dirs
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10766 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
e8b05380
PB
10773 ;;
10774esac
10775fi
1c710c3c 10776WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10777
e8b05380 10778if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10779 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10780echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10781else
2aeb72e9
DD
10782 echo "$as_me:$LINENO: result: no" >&5
10783echo "${ECHO_T}no" >&6
e8b05380
PB
10784fi
10785
10786fi
10787if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10788
10789
10790if test -n "$WINDRES_FOR_TARGET"; then
10791 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10792elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10793 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10794fi
10795
10796if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10797 for ncn_progname in windres; do
10798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10799set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10800echo "$as_me:$LINENO: checking for $ac_word" >&5
10801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10802if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 if test -n "$WINDRES_FOR_TARGET"; then
10806 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10807else
10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10815 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 break 2
10818 fi
10819done
10820done
10821
10822fi
10823fi
10824WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10825if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10826 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10827echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10828else
2aeb72e9
DD
10829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
278a7a38
AO
10831fi
10832
10833 done
10834fi
10835
10836if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10837 for ncn_progname in windres; do
2aeb72e9
DD
10838 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10839echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10840 if test -x $with_build_time_tools/${ncn_progname}; then
10841 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10842 echo "$as_me:$LINENO: result: yes" >&5
10843echo "${ECHO_T}yes" >&6
e8b05380
PB
10844 break
10845 else
2aeb72e9
DD
10846 echo "$as_me:$LINENO: result: no" >&5
10847echo "${ECHO_T}no" >&6
e8b05380
PB
10848 fi
10849 done
10850fi
10851
10852if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10853 for ncn_progname in windres; do
10854 if test -n "$ncn_target_tool_prefix"; then
10855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10856set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10857echo "$as_me:$LINENO: checking for $ac_word" >&5
10858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10859if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10861else
4de997d1
PB
10862 if test -n "$WINDRES_FOR_TARGET"; then
10863 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10864else
1c710c3c
DJ
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10872 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877done
10878
ca9f4b81
AO
10879fi
10880fi
1c710c3c 10881WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10882if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10883 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10884echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10885else
2aeb72e9
DD
10886 echo "$as_me:$LINENO: result: no" >&5
10887echo "${ECHO_T}no" >&6
ca9f4b81
AO
10888fi
10889
e8b05380
PB
10890 fi
10891 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10893set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10894echo "$as_me:$LINENO: checking for $ac_word" >&5
10895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10896if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10897 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10898else
2693c0b0
PB
10899 if test -n "$WINDRES_FOR_TARGET"; then
10900 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10901else
1c710c3c
DJ
10902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903for as_dir in $PATH
10904do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10909 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913done
10914done
10915
ca9f4b81
AO
10916fi
10917fi
1c710c3c 10918WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10919if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10920 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10921echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10922else
2aeb72e9
DD
10923 echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6
ca9f4b81 10925fi
1c710c3c 10926
e8b05380
PB
10927 fi
10928 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10929 done
10930fi
1c710c3c 10931
2693c0b0
PB
10932if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10933 set dummy windres
10934 if test $build = $target ; then
10935 WINDRES_FOR_TARGET="$2"
ca9f4b81 10936 else
2693c0b0 10937 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10938 fi
1c00b503
PB
10939else
10940 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10941fi
10942
d1f8db0c
PB
10943else
10944 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10945fi
10946
4977bab6 10947
901119ae
KT
10948
10949
10950if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10951 if test -n "$with_build_time_tools"; then
10952 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10953echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10954 if test -x $with_build_time_tools/windmc; then
10955 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10956 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10957 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10958echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10959 else
10960 echo "$as_me:$LINENO: result: no" >&5
10961echo "${ECHO_T}no" >&6
10962 fi
10963 elif test $build != $host && test $have_gcc_for_target = yes; then
10964 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
10965 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10966 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
10967 fi
10968fi
10969if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10970 # Extract the first word of "windmc", so it can be a program name with args.
10971set dummy windmc; ac_word=$2
10972echo "$as_me:$LINENO: checking for $ac_word" >&5
10973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10974if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 case $WINDMC_FOR_TARGET in
10978 [\\/]* | ?:[\\/]*)
10979 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10980 ;;
10981 *)
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $gcc_cv_tool_dirs
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 break 2
10992 fi
10993done
10994done
10995
10996 ;;
10997esac
10998fi
10999WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11000
11001if test -n "$WINDMC_FOR_TARGET"; then
11002 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11003echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11004else
11005 echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6
11007fi
11008
11009fi
11010if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11011
11012
11013if test -n "$WINDMC_FOR_TARGET"; then
11014 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11015elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11016 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11017fi
11018
11019if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11020 for ncn_progname in windmc; do
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022set dummy ${ncn_progname}; ac_word=$2
11023echo "$as_me:$LINENO: checking for $ac_word" >&5
11024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11025if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 if test -n "$WINDMC_FOR_TARGET"; then
11029 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11030else
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11038 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042done
11043done
11044
11045fi
11046fi
11047WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11048if test -n "$WINDMC_FOR_TARGET"; then
11049 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11050echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11051else
11052 echo "$as_me:$LINENO: result: no" >&5
11053echo "${ECHO_T}no" >&6
11054fi
11055
11056 done
11057fi
11058
11059if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11060 for ncn_progname in windmc; do
11061 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11062echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11063 if test -x $with_build_time_tools/${ncn_progname}; then
11064 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11065 echo "$as_me:$LINENO: result: yes" >&5
11066echo "${ECHO_T}yes" >&6
11067 break
11068 else
11069 echo "$as_me:$LINENO: result: no" >&5
11070echo "${ECHO_T}no" >&6
11071 fi
11072 done
11073fi
11074
11075if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11076 for ncn_progname in windmc; do
11077 if test -n "$ncn_target_tool_prefix"; then
11078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11079set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11080echo "$as_me:$LINENO: checking for $ac_word" >&5
11081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11082if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084else
11085 if test -n "$WINDMC_FOR_TARGET"; then
11086 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11095 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099done
11100done
11101
11102fi
11103fi
11104WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11105if test -n "$WINDMC_FOR_TARGET"; then
11106 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11107echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11108else
11109 echo "$as_me:$LINENO: result: no" >&5
11110echo "${ECHO_T}no" >&6
11111fi
11112
11113 fi
11114 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116set dummy ${ncn_progname}; ac_word=$2
11117echo "$as_me:$LINENO: checking for $ac_word" >&5
11118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11119if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 if test -n "$WINDMC_FOR_TARGET"; then
11123 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136done
11137done
11138
11139fi
11140fi
11141WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11142if test -n "$WINDMC_FOR_TARGET"; then
11143 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11144echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11145else
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
11148fi
11149
11150 fi
11151 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11152 done
11153fi
11154
11155if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11156 set dummy windmc
11157 if test $build = $target ; then
11158 WINDMC_FOR_TARGET="$2"
11159 else
11160 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11161 fi
1c00b503
PB
11162else
11163 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11164fi
11165
11166else
11167 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11168fi
11169
11170
2abefe3d
PB
11171RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11172
2aeb72e9
DD
11173echo "$as_me:$LINENO: checking where to find the target ar" >&5
11174echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11175if test "x${build}" != "x${host}" ; then
e8b05380
PB
11176 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11177 # We already found the complete path
172e41aa 11178 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11179 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11180echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11181 else
11182 # Canadian cross, just use what we found
2aeb72e9
DD
11183 echo "$as_me:$LINENO: result: pre-installed" >&5
11184echo "${ECHO_T}pre-installed" >&6
e8b05380 11185 fi
2abefe3d
PB
11186else
11187 ok=yes
11188 case " ${configdirs} " in
11189 *" binutils "*) ;;
11190 *) ok=no ;;
11191 esac
1c710c3c 11192
2abefe3d
PB
11193 if test $ok = yes; then
11194 # An in-tree tool is available and we can use it
11195 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11196 echo "$as_me:$LINENO: result: just compiled" >&5
11197echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11198 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11199 # We already found the complete path
172e41aa 11200 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11201 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11202echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11203 elif test "x$target" = "x$host"; then
11204 # We can use an host tool
11205 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11206 echo "$as_me:$LINENO: result: host tool" >&5
11207echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11208 else
11209 # We need a cross tool
2aeb72e9
DD
11210 echo "$as_me:$LINENO: result: pre-installed" >&5
11211echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11212 fi
11213fi
0b0dc272 11214
2aeb72e9
DD
11215echo "$as_me:$LINENO: checking where to find the target as" >&5
11216echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11217if test "x${build}" != "x${host}" ; then
e8b05380
PB
11218 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11219 # We already found the complete path
172e41aa 11220 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11221 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11222echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11223 else
11224 # Canadian cross, just use what we found
2aeb72e9
DD
11225 echo "$as_me:$LINENO: result: pre-installed" >&5
11226echo "${ECHO_T}pre-installed" >&6
e8b05380 11227 fi
2abefe3d
PB
11228else
11229 ok=yes
11230 case " ${configdirs} " in
11231 *" gas "*) ;;
11232 *) ok=no ;;
11233 esac
1c710c3c 11234
2abefe3d
PB
11235 if test $ok = yes; then
11236 # An in-tree tool is available and we can use it
11237 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11238 echo "$as_me:$LINENO: result: just compiled" >&5
11239echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11240 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11241 # We already found the complete path
172e41aa 11242 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11243 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11244echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11245 elif test "x$target" = "x$host"; then
11246 # We can use an host tool
11247 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11248 echo "$as_me:$LINENO: result: host tool" >&5
11249echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11250 else
11251 # We need a cross tool
2aeb72e9
DD
11252 echo "$as_me:$LINENO: result: pre-installed" >&5
11253echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11254 fi
11255fi
0b0dc272 11256
2aeb72e9
DD
11257echo "$as_me:$LINENO: checking where to find the target cc" >&5
11258echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11259if test "x${build}" != "x${host}" ; then
e8b05380
PB
11260 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11261 # We already found the complete path
172e41aa 11262 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11263 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11264echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11265 else
11266 # Canadian cross, just use what we found
2aeb72e9
DD
11267 echo "$as_me:$LINENO: result: pre-installed" >&5
11268echo "${ECHO_T}pre-installed" >&6
e8b05380 11269 fi
2abefe3d
PB
11270else
11271 ok=yes
11272 case " ${configdirs} " in
11273 *" gcc "*) ;;
11274 *) ok=no ;;
11275 esac
1c710c3c 11276
2abefe3d
PB
11277 if test $ok = yes; then
11278 # An in-tree tool is available and we can use it
11279 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11280 echo "$as_me:$LINENO: result: just compiled" >&5
11281echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11282 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11283 # We already found the complete path
172e41aa 11284 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11285 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11286echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11287 elif test "x$target" = "x$host"; then
11288 # We can use an host tool
11289 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11290 echo "$as_me:$LINENO: result: host tool" >&5
11291echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11292 else
11293 # We need a cross tool
2aeb72e9
DD
11294 echo "$as_me:$LINENO: result: pre-installed" >&5
11295echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11296 fi
11297fi
0b0dc272 11298
2aeb72e9
DD
11299echo "$as_me:$LINENO: checking where to find the target c++" >&5
11300echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11301if test "x${build}" != "x${host}" ; then
e8b05380
PB
11302 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11303 # We already found the complete path
172e41aa 11304 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11305 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11306echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11307 else
11308 # Canadian cross, just use what we found
2aeb72e9
DD
11309 echo "$as_me:$LINENO: result: pre-installed" >&5
11310echo "${ECHO_T}pre-installed" >&6
e8b05380 11311 fi
2abefe3d
PB
11312else
11313 ok=yes
11314 case " ${configdirs} " in
11315 *" gcc "*) ;;
11316 *) ok=no ;;
11317 esac
11318 case ,${enable_languages}, in
11319 *,c++,*) ;;
11320 *) ok=no ;;
11321 esac
11322 if test $ok = yes; then
11323 # An in-tree tool is available and we can use it
11324 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
11325 echo "$as_me:$LINENO: result: just compiled" >&5
11326echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11327 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11328 # We already found the complete path
172e41aa 11329 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11330 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11331echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11332 elif test "x$target" = "x$host"; then
11333 # We can use an host tool
11334 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11335 echo "$as_me:$LINENO: result: host tool" >&5
11336echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11337 else
11338 # We need a cross tool
2aeb72e9
DD
11339 echo "$as_me:$LINENO: result: pre-installed" >&5
11340echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11341 fi
11342fi
0b0dc272 11343
2aeb72e9
DD
11344echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11345echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11346if test "x${build}" != "x${host}" ; then
e8b05380
PB
11347 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11348 # We already found the complete path
172e41aa 11349 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11350 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11351echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11352 else
11353 # Canadian cross, just use what we found
2aeb72e9
DD
11354 echo "$as_me:$LINENO: result: pre-installed" >&5
11355echo "${ECHO_T}pre-installed" >&6
e8b05380 11356 fi
2abefe3d
PB
11357else
11358 ok=yes
11359 case " ${configdirs} " in
11360 *" gcc "*) ;;
11361 *) ok=no ;;
11362 esac
11363 case ,${enable_languages}, in
11364 *,c++,*) ;;
11365 *) ok=no ;;
11366 esac
11367 if test $ok = yes; then
11368 # An in-tree tool is available and we can use it
11369 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
11370 echo "$as_me:$LINENO: result: just compiled" >&5
11371echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11372 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11373 # We already found the complete path
172e41aa 11374 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11375 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11376echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11377 elif test "x$target" = "x$host"; then
11378 # We can use an host tool
11379 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11380 echo "$as_me:$LINENO: result: host tool" >&5
11381echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11382 else
11383 # We need a cross tool
2aeb72e9
DD
11384 echo "$as_me:$LINENO: result: pre-installed" >&5
11385echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11386 fi
11387fi
0b0dc272 11388
2aeb72e9
DD
11389echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11390echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11391if test "x${build}" != "x${host}" ; then
e8b05380
PB
11392 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11393 # We already found the complete path
172e41aa 11394 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11395 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11396echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11397 else
11398 # Canadian cross, just use what we found
2aeb72e9
DD
11399 echo "$as_me:$LINENO: result: pre-installed" >&5
11400echo "${ECHO_T}pre-installed" >&6
e8b05380 11401 fi
2abefe3d
PB
11402else
11403 ok=yes
11404 case " ${configdirs} " in
11405 *" binutils "*) ;;
11406 *) ok=no ;;
11407 esac
1c710c3c 11408
2abefe3d
PB
11409 if test $ok = yes; then
11410 # An in-tree tool is available and we can use it
11411 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11412 echo "$as_me:$LINENO: result: just compiled" >&5
11413echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11414 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11415 # We already found the complete path
172e41aa 11416 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11417 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11418echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11419 elif test "x$target" = "x$host"; then
11420 # We can use an host tool
11421 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11422 echo "$as_me:$LINENO: result: host tool" >&5
11423echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11424 else
11425 # We need a cross tool
2aeb72e9
DD
11426 echo "$as_me:$LINENO: result: pre-installed" >&5
11427echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11428 fi
11429fi
0b0dc272 11430
2aeb72e9
DD
11431echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11432echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11433if test "x${build}" != "x${host}" ; then
e8b05380
PB
11434 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11435 # We already found the complete path
172e41aa 11436 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11437 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11438echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11439 else
11440 # Canadian cross, just use what we found
2aeb72e9
DD
11441 echo "$as_me:$LINENO: result: pre-installed" >&5
11442echo "${ECHO_T}pre-installed" >&6
e8b05380 11443 fi
2abefe3d
PB
11444else
11445 ok=yes
11446 case " ${configdirs} " in
11447 *" gcc "*) ;;
11448 *) ok=no ;;
11449 esac
1c710c3c 11450
2abefe3d
PB
11451 if test $ok = yes; then
11452 # An in-tree tool is available and we can use it
11453 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11454 echo "$as_me:$LINENO: result: just compiled" >&5
11455echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11456 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11457 # We already found the complete path
172e41aa 11458 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11459 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11460echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11461 elif test "x$target" = "x$host"; then
11462 # We can use an host tool
11463 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11464 echo "$as_me:$LINENO: result: host tool" >&5
11465echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11466 else
11467 # We need a cross tool
2aeb72e9
DD
11468 echo "$as_me:$LINENO: result: pre-installed" >&5
11469echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11470 fi
11471fi
0b0dc272 11472
2aeb72e9
DD
11473echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11474echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11475if test "x${build}" != "x${host}" ; then
e8b05380
PB
11476 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11477 # We already found the complete path
172e41aa 11478 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11479 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11480echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11481 else
11482 # Canadian cross, just use what we found
2aeb72e9
DD
11483 echo "$as_me:$LINENO: result: pre-installed" >&5
11484echo "${ECHO_T}pre-installed" >&6
e8b05380 11485 fi
2abefe3d
PB
11486else
11487 ok=yes
11488 case " ${configdirs} " in
11489 *" gcc "*) ;;
11490 *) ok=no ;;
11491 esac
11492 case ,${enable_languages}, in
11493 *,java,*) ;;
11494 *) ok=no ;;
11495 esac
11496 if test $ok = yes; then
11497 # An in-tree tool is available and we can use it
11498 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11499 echo "$as_me:$LINENO: result: just compiled" >&5
11500echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11501 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11502 # We already found the complete path
172e41aa 11503 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11504 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11505echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11506 elif test "x$target" = "x$host"; then
11507 # We can use an host tool
11508 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11509 echo "$as_me:$LINENO: result: host tool" >&5
11510echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11511 else
11512 # We need a cross tool
2aeb72e9
DD
11513 echo "$as_me:$LINENO: result: pre-installed" >&5
11514echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11515 fi
11516fi
0b0dc272 11517
2aeb72e9
DD
11518echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11519echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11520if test "x${build}" != "x${host}" ; then
e8b05380
PB
11521 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11522 # We already found the complete path
172e41aa 11523 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11524 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11525echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11526 else
11527 # Canadian cross, just use what we found
2aeb72e9
DD
11528 echo "$as_me:$LINENO: result: pre-installed" >&5
11529echo "${ECHO_T}pre-installed" >&6
e8b05380 11530 fi
2abefe3d
PB
11531else
11532 ok=yes
11533 case " ${configdirs} " in
11534 *" gcc "*) ;;
11535 *) ok=no ;;
11536 esac
11537 case ,${enable_languages}, in
11538 *,fortran,*) ;;
11539 *) ok=no ;;
11540 esac
11541 if test $ok = yes; then
11542 # An in-tree tool is available and we can use it
11543 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11544 echo "$as_me:$LINENO: result: just compiled" >&5
11545echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11546 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11547 # We already found the complete path
172e41aa 11548 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11549 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11550echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11551 elif test "x$target" = "x$host"; then
11552 # We can use an host tool
11553 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11554 echo "$as_me:$LINENO: result: host tool" >&5
11555echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11556 else
11557 # We need a cross tool
2aeb72e9
DD
11558 echo "$as_me:$LINENO: result: pre-installed" >&5
11559echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11560 fi
11561fi
0b0dc272 11562
2aeb72e9
DD
11563echo "$as_me:$LINENO: checking where to find the target ld" >&5
11564echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11565if test "x${build}" != "x${host}" ; then
e8b05380
PB
11566 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11567 # We already found the complete path
172e41aa 11568 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11569 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11570echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11571 else
11572 # Canadian cross, just use what we found
2aeb72e9
DD
11573 echo "$as_me:$LINENO: result: pre-installed" >&5
11574echo "${ECHO_T}pre-installed" >&6
e8b05380 11575 fi
2abefe3d
PB
11576else
11577 ok=yes
11578 case " ${configdirs} " in
11579 *" ld "*) ;;
11580 *) ok=no ;;
11581 esac
1c710c3c 11582
2abefe3d
PB
11583 if test $ok = yes; then
11584 # An in-tree tool is available and we can use it
11585 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11586 echo "$as_me:$LINENO: result: just compiled" >&5
11587echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11588 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11589 # We already found the complete path
172e41aa 11590 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11591 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11592echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11593 elif test "x$target" = "x$host"; then
11594 # We can use an host tool
11595 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11596 echo "$as_me:$LINENO: result: host tool" >&5
11597echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11598 else
11599 # We need a cross tool
2aeb72e9
DD
11600 echo "$as_me:$LINENO: result: pre-installed" >&5
11601echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11602 fi
11603fi
0b0dc272 11604
2aeb72e9
DD
11605echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11606echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11607if test "x${build}" != "x${host}" ; then
e8b05380
PB
11608 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11609 # We already found the complete path
172e41aa 11610 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11611 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11612echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11613 else
11614 # Canadian cross, just use what we found
2aeb72e9
DD
11615 echo "$as_me:$LINENO: result: pre-installed" >&5
11616echo "${ECHO_T}pre-installed" >&6
e8b05380 11617 fi
2abefe3d 11618else
e8b05380
PB
11619 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11620 # We already found the complete path
172e41aa 11621 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11622 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11623echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11624 elif test "x$target" = "x$host"; then
2abefe3d
PB
11625 # We can use an host tool
11626 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11627 echo "$as_me:$LINENO: result: host tool" >&5
11628echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11629 else
11630 # We need a cross tool
2aeb72e9
DD
11631 echo "$as_me:$LINENO: result: pre-installed" >&5
11632echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11633 fi
11634fi
0b0dc272 11635
2aeb72e9
DD
11636echo "$as_me:$LINENO: checking where to find the target nm" >&5
11637echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11638if test "x${build}" != "x${host}" ; then
e8b05380
PB
11639 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11640 # We already found the complete path
172e41aa 11641 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11642 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11643echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11644 else
11645 # Canadian cross, just use what we found
2aeb72e9
DD
11646 echo "$as_me:$LINENO: result: pre-installed" >&5
11647echo "${ECHO_T}pre-installed" >&6
e8b05380 11648 fi
2abefe3d
PB
11649else
11650 ok=yes
11651 case " ${configdirs} " in
11652 *" binutils "*) ;;
11653 *) ok=no ;;
11654 esac
1c710c3c 11655
2abefe3d
PB
11656 if test $ok = yes; then
11657 # An in-tree tool is available and we can use it
11658 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11659 echo "$as_me:$LINENO: result: just compiled" >&5
11660echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11661 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11662 # We already found the complete path
172e41aa 11663 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11664 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11665echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11666 elif test "x$target" = "x$host"; then
11667 # We can use an host tool
11668 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11669 echo "$as_me:$LINENO: result: host tool" >&5
11670echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11671 else
11672 # We need a cross tool
2aeb72e9
DD
11673 echo "$as_me:$LINENO: result: pre-installed" >&5
11674echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11675 fi
11676fi
0b0dc272 11677
2aeb72e9
DD
11678echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11679echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11680if test "x${build}" != "x${host}" ; then
e8b05380
PB
11681 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11682 # We already found the complete path
172e41aa 11683 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11684 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11685echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11686 else
11687 # Canadian cross, just use what we found
2aeb72e9
DD
11688 echo "$as_me:$LINENO: result: pre-installed" >&5
11689echo "${ECHO_T}pre-installed" >&6
e8b05380 11690 fi
2abefe3d
PB
11691else
11692 ok=yes
11693 case " ${configdirs} " in
11694 *" binutils "*) ;;
11695 *) ok=no ;;
11696 esac
1c710c3c 11697
2abefe3d
PB
11698 if test $ok = yes; then
11699 # An in-tree tool is available and we can use it
11700 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11701 echo "$as_me:$LINENO: result: just compiled" >&5
11702echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11703 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11704 # We already found the complete path
172e41aa 11705 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11706 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11707echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11708 elif test "x$target" = "x$host"; then
11709 # We can use an host tool
11710 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11711 echo "$as_me:$LINENO: result: host tool" >&5
11712echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11713 else
11714 # We need a cross tool
2aeb72e9
DD
11715 echo "$as_me:$LINENO: result: pre-installed" >&5
11716echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11717 fi
11718fi
0b0dc272 11719
2aeb72e9
DD
11720echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11721echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11722if test "x${build}" != "x${host}" ; then
e8b05380
PB
11723 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11724 # We already found the complete path
172e41aa 11725 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11726 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11727echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11728 else
11729 # Canadian cross, just use what we found
2aeb72e9
DD
11730 echo "$as_me:$LINENO: result: pre-installed" >&5
11731echo "${ECHO_T}pre-installed" >&6
e8b05380 11732 fi
2abefe3d
PB
11733else
11734 ok=yes
11735 case " ${configdirs} " in
11736 *" binutils "*) ;;
11737 *) ok=no ;;
11738 esac
1c710c3c 11739
2abefe3d
PB
11740 if test $ok = yes; then
11741 # An in-tree tool is available and we can use it
11742 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11743 echo "$as_me:$LINENO: result: just compiled" >&5
11744echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11745 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11746 # We already found the complete path
172e41aa 11747 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11748 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11749echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11750 elif test "x$target" = "x$host"; then
11751 # We can use an host tool
11752 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11753 echo "$as_me:$LINENO: result: host tool" >&5
11754echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11755 else
11756 # We need a cross tool
2aeb72e9
DD
11757 echo "$as_me:$LINENO: result: pre-installed" >&5
11758echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11759 fi
11760fi
0b0dc272 11761
2aeb72e9
DD
11762echo "$as_me:$LINENO: checking where to find the target strip" >&5
11763echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11764if test "x${build}" != "x${host}" ; then
e8b05380
PB
11765 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11766 # We already found the complete path
172e41aa 11767 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11768 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11769echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11770 else
11771 # Canadian cross, just use what we found
2aeb72e9
DD
11772 echo "$as_me:$LINENO: result: pre-installed" >&5
11773echo "${ECHO_T}pre-installed" >&6
e8b05380 11774 fi
2abefe3d
PB
11775else
11776 ok=yes
11777 case " ${configdirs} " in
11778 *" binutils "*) ;;
11779 *) ok=no ;;
11780 esac
1c710c3c 11781
2abefe3d
PB
11782 if test $ok = yes; then
11783 # An in-tree tool is available and we can use it
11784 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11785 echo "$as_me:$LINENO: result: just compiled" >&5
11786echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11787 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11788 # We already found the complete path
172e41aa 11789 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11790 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11791echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11792 elif test "x$target" = "x$host"; then
11793 # We can use an host tool
11794 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11795 echo "$as_me:$LINENO: result: host tool" >&5
11796echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11797 else
11798 # We need a cross tool
2aeb72e9
DD
11799 echo "$as_me:$LINENO: result: pre-installed" >&5
11800echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11801 fi
11802fi
0b0dc272 11803
2aeb72e9
DD
11804echo "$as_me:$LINENO: checking where to find the target windres" >&5
11805echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11806if test "x${build}" != "x${host}" ; then
e8b05380
PB
11807 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11808 # We already found the complete path
172e41aa 11809 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11810 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11811echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11812 else
11813 # Canadian cross, just use what we found
2aeb72e9
DD
11814 echo "$as_me:$LINENO: result: pre-installed" >&5
11815echo "${ECHO_T}pre-installed" >&6
e8b05380 11816 fi
2abefe3d
PB
11817else
11818 ok=yes
11819 case " ${configdirs} " in
11820 *" binutils "*) ;;
11821 *) ok=no ;;
11822 esac
1c710c3c 11823
2abefe3d
PB
11824 if test $ok = yes; then
11825 # An in-tree tool is available and we can use it
11826 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11827 echo "$as_me:$LINENO: result: just compiled" >&5
11828echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11829 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11830 # We already found the complete path
172e41aa 11831 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11832 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11833echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11834 elif test "x$target" = "x$host"; then
11835 # We can use an host tool
11836 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11837 echo "$as_me:$LINENO: result: host tool" >&5
11838echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11839 else
11840 # We need a cross tool
2aeb72e9
DD
11841 echo "$as_me:$LINENO: result: pre-installed" >&5
11842echo "${ECHO_T}pre-installed" >&6
2abefe3d 11843 fi
671aa708 11844fi
be912515 11845
901119ae
KT
11846echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11847echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11848if test "x${build}" != "x${host}" ; then
11849 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11850 # We already found the complete path
11851 ac_dir=`dirname $WINDMC_FOR_TARGET`
11852 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11853echo "${ECHO_T}pre-installed in $ac_dir" >&6
11854 else
11855 # Canadian cross, just use what we found
11856 echo "$as_me:$LINENO: result: pre-installed" >&5
11857echo "${ECHO_T}pre-installed" >&6
11858 fi
11859else
11860 ok=yes
11861 case " ${configdirs} " in
11862 *" binutils "*) ;;
11863 *) ok=no ;;
11864 esac
11865
11866 if test $ok = yes; then
11867 # An in-tree tool is available and we can use it
11868 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11869 echo "$as_me:$LINENO: result: just compiled" >&5
11870echo "${ECHO_T}just compiled" >&6
11871 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11872 # We already found the complete path
11873 ac_dir=`dirname $WINDMC_FOR_TARGET`
11874 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11875echo "${ECHO_T}pre-installed in $ac_dir" >&6
11876 elif test "x$target" = "x$host"; then
11877 # We can use an host tool
11878 WINDMC_FOR_TARGET='$(WINDMC)'
11879 echo "$as_me:$LINENO: result: host tool" >&5
11880echo "${ECHO_T}host tool" >&6
11881 else
11882 # We need a cross tool
11883 echo "$as_me:$LINENO: result: pre-installed" >&5
11884echo "${ECHO_T}pre-installed" >&6
11885 fi
11886fi
11887
be912515
NN
11888
11889
2abefe3d 11890
0b0dc272 11891
671aa708
NN
11892# Certain tools may need extra flags.
11893AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11894RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11895NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11896
2abefe3d
PB
11897# When building target libraries, except in a Canadian cross, we use
11898# the same toolchain as the compiler we just built.
11899COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11900COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11901COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11902if test $host = $build; then
11903 case " $configdirs " in
11904 *" gcc "*)
11905 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11906 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11907 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11908 ;;
11909 esac
11910fi
11911
11912
11913
11914
11915
2aeb72e9
DD
11916echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11917echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11918# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11919if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11920 enableval="$enable_maintainer_mode"
11921 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11922else
11923 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11924fi;
11925echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11926echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11927
11928
11929if test "$USE_MAINTAINER_MODE" = yes; then
11930 MAINTAINER_MODE_TRUE=
11931 MAINTAINER_MODE_FALSE='#'
11932else
11933 MAINTAINER_MODE_TRUE='#'
11934 MAINTAINER_MODE_FALSE=
1c710c3c 11935fi
ee03dc5e
AO
11936MAINT=$MAINTAINER_MODE_TRUE
11937
2805b53a
NN
11938# ---------------------
11939# GCC bootstrap support
11940# ---------------------
11941
11942# Stage specific cflags for build.
11943stage1_cflags="-g"
11944case $build in
11945 vax-*-*)
11946 case ${GCC} in
11947 yes) stage1_cflags="-g -Wa,-J" ;;
11948 *) stage1_cflags="-g -J" ;;
11949 esac ;;
2805b53a
NN
11950esac
11951
0b50988a
EB
11952# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11953if test "$GCC" = yes; then
11954 saved_CFLAGS="$CFLAGS"
11955
11956 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11957 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
11958 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11959echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
11960 cat >conftest.$ac_ext <<_ACEOF
11961/* confdefs.h. */
11962_ACEOF
11963cat confdefs.h >>conftest.$ac_ext
11964cat >>conftest.$ac_ext <<_ACEOF
11965/* end confdefs.h. */
11966
9cc1244e
JJ
11967#if (__GNUC__ < 3) \
11968 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11969 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11970#error http://gcc.gnu.org/PR29382
11971#endif
11972
1c710c3c
DJ
11973int
11974main ()
11975{
11976
11977 ;
11978 return 0;
11979}
11980_ACEOF
11981rm -f conftest.$ac_objext
2aeb72e9
DD
11982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11983 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag"
11991 || test ! -s conftest.err'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; } &&
11997 { ac_try='test -s conftest.$ac_objext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 echo "$as_me:$LINENO: result: yes" >&5
12004echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
2aeb72e9
DD
12009echo "$as_me:$LINENO: result: no" >&5
12010echo "${ECHO_T}no" >&6
1c710c3c 12011fi
2aeb72e9 12012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12013
12014 CFLAGS="$saved_CFLAGS"
12015fi
12016
12017
2805b53a 12018
8efea775 12019# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12020# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12021if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12022 enableval="$enable_stage1_checking"
12023 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12024else
e643dc23 12025 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12026 stage1_checking=--enable-checking=yes,types
8efea775 12027else
e643dc23 12028 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12029fi
2aeb72e9 12030fi;
8efea775
PB
12031
12032
2805b53a 12033# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12034# Check whether --enable-werror or --disable-werror was given.
2805b53a 12035if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12036 enableval="$enable_werror"
12037
2805b53a 12038else
416cfb5e 12039 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12040 enable_werror=yes
88fceb68
PB
12041else
12042 enable_werror=no
12043fi
2aeb72e9 12044fi;
09a9c095
NN
12045case ${enable_werror} in
12046 yes) stage2_werror_flag="--enable-werror-always" ;;
12047 *) stage2_werror_flag="" ;;
2805b53a
NN
12048esac
12049
12050
32845532 12051# Flags needed to enable html installing and building
1c710c3c 12052
2aeb72e9 12053# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12054if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12055 withval="$with_datarootdir"
12056 datarootdir="\${prefix}/${withval}"
32845532
CD
12057else
12058 datarootdir="\${prefix}/share"
2aeb72e9 12059fi;
32845532
CD
12060
12061
2aeb72e9 12062# Check whether --with-docdir or --without-docdir was given.
32845532 12063if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12064 withval="$with_docdir"
12065 docdir="\${prefix}/${withval}"
32845532
CD
12066else
12067 docdir="\${datarootdir}/doc"
2aeb72e9 12068fi;
32845532
CD
12069
12070
2aeb72e9 12071# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12072if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12073 withval="$with_pdfdir"
12074 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12075else
12076 pdfdir="\${docdir}"
2aeb72e9 12077fi;
9c4d2493
BM
12078
12079
2aeb72e9 12080# Check whether --with-htmldir or --without-htmldir was given.
32845532 12081if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12082 withval="$with_htmldir"
12083 htmldir="\${prefix}/${withval}"
32845532
CD
12084else
12085 htmldir="\${docdir}"
2aeb72e9 12086fi;
32845532
CD
12087
12088
12089
12090
172e41aa 12091
11a67599 12092
2aeb72e9 12093 ac_config_files="$ac_config_files Makefile"
1c710c3c 12094cat >confcache <<\_ACEOF
671aa708
NN
12095# This file is a shell script that caches the results of configure
12096# tests run on this system so they can be shared between configure
1c710c3c
DJ
12097# scripts and configure runs, see configure's option --config-cache.
12098# It is not useful on other systems. If it contains results you don't
12099# want to keep, you may remove or edit it.
671aa708 12100#
1c710c3c
DJ
12101# config.status only pays attention to the cache file if you give it
12102# the --recheck option to rerun configure.
671aa708 12103#
1c710c3c
DJ
12104# `ac_cv_env_foo' variables (set or unset) will be overridden when
12105# loading this file, other *unset* `ac_cv_foo' will be assigned the
12106# following values.
12107
12108_ACEOF
12109
671aa708
NN
12110# The following way of writing the cache mishandles newlines in values,
12111# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12112# So, don't put newlines in cache variables' values.
671aa708
NN
12113# Ultrix sh set writes to stderr and can't be redirected directly,
12114# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12115{
1c710c3c 12116 (set) 2>&1 |
2aeb72e9
DD
12117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12118 *ac_space=\ *)
1c710c3c
DJ
12119 # `set' does not quote correctly, so add quotes (double-quote
12120 # substitution turns \\\\ into \\, and sed turns \\ into \).
12121 sed -n \
12122 "s/'/'\\\\''/g;
12123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12124 ;;
1c710c3c
DJ
12125 *)
12126 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12127 sed -n \
12128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12129 ;;
2aeb72e9
DD
12130 esac;
12131} |
1c710c3c
DJ
12132 sed '
12133 t clear
2aeb72e9 12134 : clear
1c710c3c
DJ
12135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12136 t end
2aeb72e9
DD
12137 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12138 : end' >>confcache
12139if diff $cache_file confcache >/dev/null 2>&1; then :; else
12140 if test -w $cache_file; then
12141 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12142 cat confcache >$cache_file
671aa708 12143 else
2aeb72e9 12144 echo "not updating unwritable cache $cache_file"
671aa708 12145 fi
4977bab6 12146fi
671aa708 12147rm -f confcache
79c06341 12148
671aa708
NN
12149test "x$prefix" = xNONE && prefix=$ac_default_prefix
12150# Let make expand exec_prefix.
12151test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12152
2aeb72e9
DD
12153# VPATH may cause trouble with some makes, so we remove $(srcdir),
12154# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12155# trailing colons and then remove the whole line if VPATH becomes empty
12156# (actually we leave an empty line to preserve line numbers).
12157if test "x$srcdir" = x.; then
12158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12159s/:*\$(srcdir):*/:/;
12160s/:*\${srcdir}:*/:/;
12161s/:*@srcdir@:*/:/;
12162s/^\([^=]*=[ ]*\):*/\1/;
12163s/:*$//;
12164s/^[^=]*=[ ]*$//;
12165}'
12166fi
12167
671aa708
NN
12168# Transform confdefs.h into DEFS.
12169# Protect against shell expansion while executing Makefile rules.
12170# Protect against Makefile macro expansion.
1c710c3c
DJ
12171#
12172# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12173# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12174# look for a macro that doesn't take arguments.
2aeb72e9 12175cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12176t clear
2aeb72e9
DD
12177: clear
12178s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12179t quote
2aeb72e9 12180s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12181t quote
2aeb72e9
DD
12182d
12183: quote
12184s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12185s,\[,\\&,g
12186s,\],\\&,g
12187s,\$,$$,g
12188p
12189_ACEOF
12190# We use echo to avoid assuming a particular line-breaking character.
12191# The extra dot is to prevent the shell from consuming trailing
12192# line-breaks from the sub-command output. A line-break within
12193# single-quotes doesn't work because, if this script is created in a
12194# platform that uses two characters for line-breaks (e.g., DOS), tr
12195# would break.
12196ac_LF_and_DOT=`echo; echo .`
12197DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12198rm -f confdef2opt.sed
1c710c3c
DJ
12199
12200
12201ac_libobjs=
12202ac_ltlibobjs=
12203for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12204 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12205 ac_i=`echo "$ac_i" |
12206 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12207 # 2. Add them.
12208 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12209 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12210done
12211LIBOBJS=$ac_libobjs
fb0103e5 12212
1c710c3c 12213LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12214
af71363e 12215
1c710c3c
DJ
12216
12217: ${CONFIG_STATUS=./config.status}
12218ac_clean_files_save=$ac_clean_files
12219ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12220{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12221echo "$as_me: creating $CONFIG_STATUS" >&6;}
12222cat >$CONFIG_STATUS <<_ACEOF
12223#! $SHELL
12224# Generated by $as_me.
671aa708 12225# Run this file to recreate the current configuration.
671aa708 12226# Compiler output produced by configure, useful for debugging
1c710c3c 12227# configure, is in config.log if it exists.
0b0dc272 12228
1c710c3c
DJ
12229debug=false
12230ac_cs_recheck=false
12231ac_cs_silent=false
12232SHELL=\${CONFIG_SHELL-$SHELL}
12233_ACEOF
12234
12235cat >>$CONFIG_STATUS <<\_ACEOF
12236## --------------------- ##
12237## M4sh Initialization. ##
12238## --------------------- ##
12239
2aeb72e9 12240# Be Bourne compatible
1c710c3c
DJ
12241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12242 emulate sh
12243 NULLCMD=:
12244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12245 # is contrary to our usage. Disable this feature.
12246 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12247elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12248 set -o posix
1c710c3c 12249fi
2aeb72e9 12250DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12251
12252# Support unset when possible.
12253if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12254 as_unset=unset
12255else
12256 as_unset=false
12257fi
12258
12259
12260# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12261$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12262PS1='$ '
12263PS2='> '
12264PS4='+ '
12265
12266# NLS nuisances.
12267for as_var in \
12268 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12269 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12270 LC_TELEPHONE LC_TIME
12271do
12272 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12273 eval $as_var=C; export $as_var
12274 else
2aeb72e9 12275 $as_unset $as_var
1c710c3c
DJ
12276 fi
12277done
12278
12279# Required to use basename.
2aeb72e9 12280if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12281 as_expr=expr
12282else
12283 as_expr=false
12284fi
12285
2aeb72e9 12286if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12287 as_basename=basename
12288else
12289 as_basename=false
12290fi
12291
12292
12293# Name of the executable.
2aeb72e9 12294as_me=`$as_basename "$0" ||
1c710c3c
DJ
12295$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12296 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12297 X"$0" : 'X\(/\)$' \| \
12298 . : '\(.\)' 2>/dev/null ||
1c710c3c 12299echo X/"$0" |
2aeb72e9
DD
12300 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12301 /^X\/\(\/\/\)$/{ s//\1/; q; }
12302 /^X\/\(\/\).*/{ s//\1/; q; }
12303 s/.*/./; q'`
1c710c3c 12304
2aeb72e9
DD
12305
12306# PATH needs CR, and LINENO needs CR and PATH.
12307# Avoid depending upon Character Ranges.
12308as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12309as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12310as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12311as_cr_digits='0123456789'
12312as_cr_alnum=$as_cr_Letters$as_cr_digits
12313
12314# The user is always right.
12315if test "${PATH_SEPARATOR+set}" != set; then
12316 echo "#! /bin/sh" >conf$$.sh
12317 echo "exit 0" >>conf$$.sh
12318 chmod +x conf$$.sh
12319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12320 PATH_SEPARATOR=';'
12321 else
12322 PATH_SEPARATOR=:
12323 fi
12324 rm -f conf$$.sh
12325fi
1c710c3c
DJ
12326
12327
2aeb72e9
DD
12328 as_lineno_1=$LINENO
12329 as_lineno_2=$LINENO
12330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12331 test "x$as_lineno_1" != "x$as_lineno_2" &&
12332 test "x$as_lineno_3" = "x$as_lineno_2" || {
12333 # Find who we are. Look in the path if we contain no path at all
12334 # relative or not.
12335 case $0 in
12336 *[\\/]* ) as_myself=$0 ;;
12337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
12339do
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12343done
1c710c3c 12344
2aeb72e9
DD
12345 ;;
12346 esac
12347 # We did not find ourselves, most probably we were run as `sh COMMAND'
12348 # in which case we are not to be found in the path.
12349 if test "x$as_myself" = x; then
12350 as_myself=$0
12351 fi
12352 if test ! -f "$as_myself"; then
12353 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12354echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12355 { (exit 1); exit 1; }; }
12356 fi
12357 case $CONFIG_SHELL in
12358 '')
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12361do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 for as_base in sh bash ksh sh5; do
12365 case $as_dir in
12366 /*)
12367 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12368 as_lineno_1=$LINENO
12369 as_lineno_2=$LINENO
2aeb72e9 12370 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12371 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12372 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12373 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12374 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12375 CONFIG_SHELL=$as_dir/$as_base
12376 export CONFIG_SHELL
12377 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12378 fi;;
12379 esac
12380 done
12381done
12382;;
12383 esac
1c710c3c
DJ
12384
12385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12386 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12387 # line-number line before each line; the second 'sed' does the real
12388 # work. The second script uses 'N' to pair each line-number line
12389 # with the numbered line, and appends trailing '-' during
12390 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12391 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12392 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12393 sed '=' <$as_myself |
1c710c3c
DJ
12394 sed '
12395 N
2aeb72e9
DD
12396 s,$,-,
12397 : loop
12398 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12399 t loop
2aeb72e9
DD
12400 s,-$,,
12401 s,^['$as_cr_digits']*\n,,
1c710c3c 12402 ' >$as_me.lineno &&
2aeb72e9
DD
12403 chmod +x $as_me.lineno ||
12404 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12405echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12406 { (exit 1); exit 1; }; }
12407
12408 # Don't try to exec as it changes $[0], causing all sort of problems
12409 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12410 # original and so on. Autoconf is especially sensible to this).
12411 . ./$as_me.lineno
1c710c3c
DJ
12412 # Exit status is that of the last command.
12413 exit
12414}
12415
12416
2aeb72e9
DD
12417case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12418 *c*,-n*) ECHO_N= ECHO_C='
12419' ECHO_T=' ' ;;
12420 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12421 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12422esac
12423
2aeb72e9 12424if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12425 as_expr=expr
12426else
12427 as_expr=false
12428fi
12429
12430rm -f conf$$ conf$$.exe conf$$.file
12431echo >conf$$.file
12432if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12433 # We could just check for DJGPP; but this test a) works b) is more generic
12434 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12435 if test -f conf$$.exe; then
12436 # Don't use ln at all; we don't have any links
1c710c3c 12437 as_ln_s='cp -p'
2aeb72e9
DD
12438 else
12439 as_ln_s='ln -s'
12440 fi
1c710c3c
DJ
12441elif ln conf$$.file conf$$ 2>/dev/null; then
12442 as_ln_s=ln
12443else
12444 as_ln_s='cp -p'
12445fi
2aeb72e9 12446rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12447
12448if mkdir -p . 2>/dev/null; then
12449 as_mkdir_p=:
12450else
12451 test -d ./-p && rmdir ./-p
12452 as_mkdir_p=false
12453fi
12454
2aeb72e9 12455as_executable_p="test -f"
1c710c3c
DJ
12456
12457# Sed expression to map a string onto a valid CPP name.
12458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12459
12460# Sed expression to map a string onto a valid variable name.
12461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12462
12463
2aeb72e9
DD
12464# IFS
12465# We need space, tab and new line, in precisely that order.
12466as_nl='
12467'
12468IFS=" $as_nl"
12469
12470# CDPATH.
12471$as_unset CDPATH
12472
1c710c3c
DJ
12473exec 6>&1
12474
2aeb72e9 12475# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12476# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12477# values after options handling. Logging --version etc. is OK.
12478exec 5>>config.log
12479{
12480 echo
12481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12482## Running $as_me. ##
12483_ASBOX
12484} >&5
12485cat >&5 <<_CSEOF
12486
1c710c3c 12487This file was extended by $as_me, which was
2aeb72e9 12488generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12489
12490 CONFIG_FILES = $CONFIG_FILES
12491 CONFIG_HEADERS = $CONFIG_HEADERS
12492 CONFIG_LINKS = $CONFIG_LINKS
12493 CONFIG_COMMANDS = $CONFIG_COMMANDS
12494 $ $0 $@
12495
2aeb72e9
DD
12496_CSEOF
12497echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12498echo >&5
1c710c3c
DJ
12499_ACEOF
12500
12501# Files that config.status was made for.
2aeb72e9
DD
12502if test -n "$ac_config_files"; then
12503 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12504fi
1c710c3c 12505
2aeb72e9
DD
12506if test -n "$ac_config_headers"; then
12507 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12508fi
12509
12510if test -n "$ac_config_links"; then
12511 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12512fi
12513
12514if test -n "$ac_config_commands"; then
12515 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12516fi
1c710c3c
DJ
12517
12518cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12519
1c710c3c
DJ
12520ac_cs_usage="\
12521\`$as_me' instantiates files from templates according to the
12522current configuration.
12523
12524Usage: $0 [OPTIONS] [FILE]...
12525
12526 -h, --help print this help, then exit
2aeb72e9 12527 -V, --version print version number, then exit
1c710c3c
DJ
12528 -q, --quiet do not print progress messages
12529 -d, --debug don't remove temporary files
12530 --recheck update $as_me by reconfiguring in the same conditions
12531 --file=FILE[:TEMPLATE]
12532 instantiate the configuration file FILE
12533
12534Configuration files:
12535$config_files
12536
12537Report bugs to <bug-autoconf@gnu.org>."
11a67599 12538_ACEOF
2aeb72e9 12539
1c710c3c
DJ
12540cat >>$CONFIG_STATUS <<_ACEOF
12541ac_cs_version="\\
12542config.status
2aeb72e9
DD
12543configured by $0, generated by GNU Autoconf 2.59,
12544 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12545
2aeb72e9 12546Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12547This config.status script is free software; the Free Software Foundation
12548gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12549srcdir=$srcdir
12550INSTALL="$INSTALL"
1c710c3c
DJ
12551_ACEOF
12552
12553cat >>$CONFIG_STATUS <<\_ACEOF
12554# If no file are specified by the user, then we need to provide default
12555# value. By we need to know if files were specified by the user.
12556ac_need_defaults=:
12557while test $# != 0
a4b9e93e 12558do
1c710c3c
DJ
12559 case $1 in
12560 --*=*)
2aeb72e9
DD
12561 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12562 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12563 ac_shift=:
12564 ;;
2aeb72e9 12565 -*)
1c710c3c
DJ
12566 ac_option=$1
12567 ac_optarg=$2
12568 ac_shift=shift
12569 ;;
2aeb72e9
DD
12570 *) # This is not an option, so the user has probably given explicit
12571 # arguments.
12572 ac_option=$1
12573 ac_need_defaults=false;;
1c710c3c
DJ
12574 esac
12575
12576 case $ac_option in
12577 # Handling of the options.
2aeb72e9
DD
12578_ACEOF
12579cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12581 ac_cs_recheck=: ;;
2aeb72e9
DD
12582 --version | --vers* | -V )
12583 echo "$ac_cs_version"; exit 0 ;;
12584 --he | --h)
12585 # Conflict between --help and --header
12586 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12587Try \`$0 --help' for more information." >&5
12588echo "$as_me: error: ambiguous option: $1
12589Try \`$0 --help' for more information." >&2;}
12590 { (exit 1); exit 1; }; };;
12591 --help | --hel | -h )
12592 echo "$ac_cs_usage"; exit 0 ;;
12593 --debug | --d* | -d )
1c710c3c
DJ
12594 debug=: ;;
12595 --file | --fil | --fi | --f )
12596 $ac_shift
12597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12598 ac_need_defaults=false;;
2aeb72e9
DD
12599 --header | --heade | --head | --hea )
12600 $ac_shift
12601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12602 ac_need_defaults=false;;
1c710c3c
DJ
12603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12605 ac_cs_silent=: ;;
12606
12607 # This is an error.
2aeb72e9
DD
12608 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12609Try \`$0 --help' for more information." >&5
12610echo "$as_me: error: unrecognized option: $1
12611Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12612 { (exit 1); exit 1; }; } ;;
12613
2aeb72e9 12614 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12615
0b0dc272 12616 esac
1c710c3c 12617 shift
0b0dc272
AM
12618done
12619
1c710c3c 12620ac_configure_extra_args=
0b0dc272 12621
1c710c3c
DJ
12622if $ac_cs_silent; then
12623 exec 6>/dev/null
12624 ac_configure_extra_args="$ac_configure_extra_args --silent"
12625fi
0b0dc272 12626
1c710c3c
DJ
12627_ACEOF
12628cat >>$CONFIG_STATUS <<_ACEOF
12629if \$ac_cs_recheck; then
2aeb72e9
DD
12630 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12631 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12632fi
12633
12634_ACEOF
12635
1c710c3c 12636
11a67599 12637
2aeb72e9
DD
12638
12639
12640cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12641for ac_config_target in $ac_config_targets
12642do
2aeb72e9
DD
12643 case "$ac_config_target" in
12644 # Handling of arguments.
12645 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12646 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12647echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12648 { (exit 1); exit 1; }; };;
12649 esac
12650done
12651
12652# If the user did not use the arguments to specify the items to instantiate,
12653# then the envvar interface is used. Set only those that are not.
12654# We use the long form for the default assignment because of an extremely
12655# bizarre bug on SunOS 4.1.3.
12656if $ac_need_defaults; then
12657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12658fi
12659
12660# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12661# simply because there is no reason to put it here, and in addition,
1c710c3c 12662# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12663# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12664$debug ||
12665{
2aeb72e9 12666 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12667 trap '{ (exit 1); exit 1; }' 1 2 13 15
12668}
2aeb72e9 12669
1c710c3c
DJ
12670# Create a (secure) tmp directory for tmp files.
12671
12672{
2aeb72e9 12673 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12674 test -n "$tmp" && test -d "$tmp"
12675} ||
12676{
2aeb72e9
DD
12677 tmp=./confstat$$-$RANDOM
12678 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12679} ||
12680{
12681 echo "$me: cannot create a temporary directory in ." >&2
12682 { (exit 1); exit 1; }
12683}
12684
2aeb72e9
DD
12685_ACEOF
12686
12687cat >>$CONFIG_STATUS <<_ACEOF
12688
1c710c3c 12689#
2aeb72e9 12690# CONFIG_FILES section.
1c710c3c
DJ
12691#
12692
12693# No need to generate the scripts if there are no CONFIG_FILES.
12694# This happens for instance when ./config.status config.h
2aeb72e9
DD
12695if test -n "\$CONFIG_FILES"; then
12696 # Protect against being on the right side of a sed subst in config.status.
12697 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12698 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12699s,@SHELL@,$SHELL,;t t
12700s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12701s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12702s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12703s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12704s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12705s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12706s,@exec_prefix@,$exec_prefix,;t t
12707s,@prefix@,$prefix,;t t
12708s,@program_transform_name@,$program_transform_name,;t t
12709s,@bindir@,$bindir,;t t
12710s,@sbindir@,$sbindir,;t t
12711s,@libexecdir@,$libexecdir,;t t
12712s,@datadir@,$datadir,;t t
12713s,@sysconfdir@,$sysconfdir,;t t
12714s,@sharedstatedir@,$sharedstatedir,;t t
12715s,@localstatedir@,$localstatedir,;t t
12716s,@libdir@,$libdir,;t t
12717s,@includedir@,$includedir,;t t
12718s,@oldincludedir@,$oldincludedir,;t t
12719s,@infodir@,$infodir,;t t
12720s,@mandir@,$mandir,;t t
12721s,@build_alias@,$build_alias,;t t
12722s,@host_alias@,$host_alias,;t t
12723s,@target_alias@,$target_alias,;t t
12724s,@DEFS@,$DEFS,;t t
12725s,@ECHO_C@,$ECHO_C,;t t
12726s,@ECHO_N@,$ECHO_N,;t t
12727s,@ECHO_T@,$ECHO_T,;t t
12728s,@LIBS@,$LIBS,;t t
12729s,@build@,$build,;t t
12730s,@build_cpu@,$build_cpu,;t t
12731s,@build_vendor@,$build_vendor,;t t
12732s,@build_os@,$build_os,;t t
12733s,@build_noncanonical@,$build_noncanonical,;t t
12734s,@host_noncanonical@,$host_noncanonical,;t t
12735s,@target_noncanonical@,$target_noncanonical,;t t
12736s,@host@,$host,;t t
12737s,@host_cpu@,$host_cpu,;t t
12738s,@host_vendor@,$host_vendor,;t t
12739s,@host_os@,$host_os,;t t
12740s,@target@,$target,;t t
12741s,@target_cpu@,$target_cpu,;t t
12742s,@target_vendor@,$target_vendor,;t t
12743s,@target_os@,$target_os,;t t
12744s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12745s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12746s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12747s,@LN@,$LN,;t t
12748s,@LN_S@,$LN_S,;t t
12749s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12750s,@build_libsubdir@,$build_libsubdir,;t t
12751s,@build_subdir@,$build_subdir,;t t
12752s,@host_subdir@,$host_subdir,;t t
12753s,@target_subdir@,$target_subdir,;t t
12754s,@CC@,$CC,;t t
12755s,@CFLAGS@,$CFLAGS,;t t
12756s,@LDFLAGS@,$LDFLAGS,;t t
12757s,@CPPFLAGS@,$CPPFLAGS,;t t
12758s,@ac_ct_CC@,$ac_ct_CC,;t t
12759s,@EXEEXT@,$EXEEXT,;t t
12760s,@OBJEXT@,$OBJEXT,;t t
12761s,@CXX@,$CXX,;t t
12762s,@CXXFLAGS@,$CXXFLAGS,;t t
12763s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12764s,@GNATBIND@,$GNATBIND,;t t
12765s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12766s,@GNATMAKE@,$GNATMAKE,;t t
12767s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12768s,@do_compare@,$do_compare,;t t
12769s,@gmplibs@,$gmplibs,;t t
12770s,@gmpinc@,$gmpinc,;t t
12771s,@stage1_languages@,$stage1_languages,;t t
12772s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 12773s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
2aeb72e9
DD
12774s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12775s,@tooldir@,$tooldir,;t t
12776s,@build_tooldir@,$build_tooldir,;t t
12777s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12778s,@GDB_TK@,$GDB_TK,;t t
12779s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12780s,@build_configargs@,$build_configargs,;t t
12781s,@build_configdirs@,$build_configdirs,;t t
12782s,@host_configargs@,$host_configargs,;t t
12783s,@configdirs@,$configdirs,;t t
12784s,@target_configargs@,$target_configargs,;t t
12785s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12786s,@config_shell@,$config_shell,;t t
12787s,@YACC@,$YACC,;t t
12788s,@BISON@,$BISON,;t t
12789s,@M4@,$M4,;t t
12790s,@LEX@,$LEX,;t t
12791s,@FLEX@,$FLEX,;t t
12792s,@MAKEINFO@,$MAKEINFO,;t t
12793s,@EXPECT@,$EXPECT,;t t
12794s,@RUNTEST@,$RUNTEST,;t t
12795s,@AR@,$AR,;t t
12796s,@AS@,$AS,;t t
12797s,@DLLTOOL@,$DLLTOOL,;t t
12798s,@LD@,$LD,;t t
12799s,@LIPO@,$LIPO,;t t
12800s,@NM@,$NM,;t t
12801s,@RANLIB@,$RANLIB,;t t
12802s,@STRIP@,$STRIP,;t t
12803s,@WINDRES@,$WINDRES,;t t
901119ae 12804s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12805s,@OBJCOPY@,$OBJCOPY,;t t
12806s,@OBJDUMP@,$OBJDUMP,;t t
12807s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12808s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12809s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12810s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12811s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12812s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12813s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12814s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12815s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12816s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12817s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12818s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12819s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12820s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12821s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12822s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12823s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12824s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12825s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12826s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12827s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12828s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12829s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12830s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12831s,@MAINT@,$MAINT,;t t
12832s,@stage1_cflags@,$stage1_cflags,;t t
12833s,@stage1_checking@,$stage1_checking,;t t
12834s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12835s,@datarootdir@,$datarootdir,;t t
12836s,@docdir@,$docdir,;t t
12837s,@pdfdir@,$pdfdir,;t t
12838s,@htmldir@,$htmldir,;t t
12839s,@LIBOBJS@,$LIBOBJS,;t t
12840s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12841/@serialization_dependencies@/r $serialization_dependencies
12842s,@serialization_dependencies@,,;t t
12843/@host_makefile_frag@/r $host_makefile_frag
12844s,@host_makefile_frag@,,;t t
12845/@target_makefile_frag@/r $target_makefile_frag
12846s,@target_makefile_frag@,,;t t
12847/@alphaieee_frag@/r $alphaieee_frag
12848s,@alphaieee_frag@,,;t t
12849/@ospace_frag@/r $ospace_frag
12850s,@ospace_frag@,,;t t
12851CEOF
79c06341 12852
1c710c3c
DJ
12853_ACEOF
12854
2aeb72e9
DD
12855 cat >>$CONFIG_STATUS <<\_ACEOF
12856 # Split the substitutions into bite-sized pieces for seds with
12857 # small command number limits, like on Digital OSF/1 and HP-UX.
12858 ac_max_sed_lines=48
12859 ac_sed_frag=1 # Number of current file.
12860 ac_beg=1 # First line for current file.
12861 ac_end=$ac_max_sed_lines # Line after last line for current file.
12862 ac_more_lines=:
12863 ac_sed_cmds=
12864 while $ac_more_lines; do
12865 if test $ac_beg -gt 1; then
12866 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12867 else
12868 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12869 fi
12870 if test ! -s $tmp/subs.frag; then
12871 ac_more_lines=false
12872 else
12873 # The purpose of the label and of the branching condition is to
12874 # speed up the sed processing (if there are no `@' at all, there
12875 # is no need to browse any of the substitutions).
12876 # These are the two extra sed commands mentioned above.
12877 (echo ':t
12878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12879 if test -z "$ac_sed_cmds"; then
12880 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12881 else
12882 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12883 fi
12884 ac_sed_frag=`expr $ac_sed_frag + 1`
12885 ac_beg=$ac_end
12886 ac_end=`expr $ac_end + $ac_max_sed_lines`
12887 fi
12888 done
12889 if test -z "$ac_sed_cmds"; then
12890 ac_sed_cmds=cat
11a67599 12891 fi
2aeb72e9 12892fi # test -n "$CONFIG_FILES"
11a67599 12893
11a67599 12894_ACEOF
1c710c3c 12895cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12896for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12898 case $ac_file in
12899 - | *:- | *:-:* ) # input from stdin
12900 cat >$tmp/stdin
12901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12905 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12906 esac
12907
2aeb72e9
DD
12908 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12909 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12910$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12911 X"$ac_file" : 'X\(//\)[^/]' \| \
12912 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12913 X"$ac_file" : 'X\(/\)' \| \
12914 . : '\(.\)' 2>/dev/null ||
1c710c3c 12915echo X"$ac_file" |
2aeb72e9
DD
12916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12917 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12918 /^X\(\/\/\)$/{ s//\1/; q; }
12919 /^X\(\/\).*/{ s//\1/; q; }
12920 s/.*/./; q'`
12921 { if $as_mkdir_p; then
12922 mkdir -p "$ac_dir"
12923 else
12924 as_dir="$ac_dir"
1c710c3c 12925 as_dirs=
2aeb72e9
DD
12926 while test ! -d "$as_dir"; do
12927 as_dirs="$as_dir $as_dirs"
12928 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12930 X"$as_dir" : 'X\(//\)[^/]' \| \
12931 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12932 X"$as_dir" : 'X\(/\)' \| \
12933 . : '\(.\)' 2>/dev/null ||
1c710c3c 12934echo X"$as_dir" |
2aeb72e9
DD
12935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12936 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12937 /^X\(\/\/\)$/{ s//\1/; q; }
12938 /^X\(\/\).*/{ s//\1/; q; }
12939 s/.*/./; q'`
1c710c3c 12940 done
2aeb72e9
DD
12941 test ! -n "$as_dirs" || mkdir $as_dirs
12942 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12943echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 12944 { (exit 1); exit 1; }; }; }
2aeb72e9 12945
1c710c3c 12946 ac_builddir=.
0b0dc272 12947
2aeb72e9 12948if test "$ac_dir" != .; then
1c710c3c 12949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
12950 # A "../" for each directory in $ac_dir_suffix.
12951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12952else
12953 ac_dir_suffix= ac_top_builddir=
12954fi
1c710c3c
DJ
12955
12956case $srcdir in
2aeb72e9 12957 .) # No --srcdir option. We are building in place.
1c710c3c 12958 ac_srcdir=.
2aeb72e9
DD
12959 if test -z "$ac_top_builddir"; then
12960 ac_top_srcdir=.
12961 else
12962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12963 fi ;;
12964 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 12965 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
12966 ac_top_srcdir=$srcdir ;;
12967 *) # Relative path.
12968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 12970esac
a4b9e93e 12971
2aeb72e9
DD
12972# Do not use `cd foo && pwd` to compute absolute paths, because
12973# the directories may not exist.
12974case `pwd` in
12975.) ac_abs_builddir="$ac_dir";;
12976*)
12977 case "$ac_dir" in
12978 .) ac_abs_builddir=`pwd`;;
12979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12981 esac;;
12982esac
12983case $ac_abs_builddir in
12984.) ac_abs_top_builddir=${ac_top_builddir}.;;
12985*)
12986 case ${ac_top_builddir}. in
12987 .) ac_abs_top_builddir=$ac_abs_builddir;;
12988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12990 esac;;
12991esac
12992case $ac_abs_builddir in
12993.) ac_abs_srcdir=$ac_srcdir;;
12994*)
12995 case $ac_srcdir in
12996 .) ac_abs_srcdir=$ac_abs_builddir;;
12997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12999 esac;;
13000esac
13001case $ac_abs_builddir in
13002.) ac_abs_top_srcdir=$ac_top_srcdir;;
13003*)
13004 case $ac_top_srcdir in
13005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13008 esac;;
13009esac
0b0dc272 13010
1c710c3c
DJ
13011
13012 case $INSTALL in
13013 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13014 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13015 esac
11a67599 13016
2aeb72e9
DD
13017 if test x"$ac_file" != x-; then
13018 { echo "$as_me:$LINENO: creating $ac_file" >&5
13019echo "$as_me: creating $ac_file" >&6;}
13020 rm -f "$ac_file"
13021 fi
13022 # Let's still pretend it is `configure' which instantiates (i.e., don't
13023 # use $as_me), people would be surprised to read:
13024 # /* config.h. Generated by config.status. */
13025 if test x"$ac_file" = x-; then
13026 configure_input=
13027 else
13028 configure_input="$ac_file. "
13029 fi
13030 configure_input=$configure_input"Generated from `echo $ac_file_in |
13031 sed 's,.*/,,'` by configure."
13032
13033 # First look for the input files in the build tree, otherwise in the
13034 # src tree.
13035 ac_file_inputs=`IFS=:
13036 for f in $ac_file_in; do
13037 case $f in
13038 -) echo $tmp/stdin ;;
13039 [\\/$]*)
13040 # Absolute (can't be DOS-style, as IFS=:)
13041 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13042echo "$as_me: error: cannot find input file: $f" >&2;}
13043 { (exit 1); exit 1; }; }
13044 echo "$f";;
13045 *) # Relative
13046 if test -f "$f"; then
13047 # Build tree
13048 echo "$f"
13049 elif test -f "$srcdir/$f"; then
13050 # Source tree
13051 echo "$srcdir/$f"
13052 else
13053 # /dev/null tree
13054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13055echo "$as_me: error: cannot find input file: $f" >&2;}
13056 { (exit 1); exit 1; }; }
13057 fi;;
13058 esac
13059 done` || { (exit 1); exit 1; }
11a67599 13060_ACEOF
1c710c3c
DJ
13061cat >>$CONFIG_STATUS <<_ACEOF
13062 sed "$ac_vpsub
13063$extrasub
13064_ACEOF
13065cat >>$CONFIG_STATUS <<\_ACEOF
13066:t
13067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13068s,@configure_input@,$configure_input,;t t
13069s,@srcdir@,$ac_srcdir,;t t
13070s,@abs_srcdir@,$ac_abs_srcdir,;t t
13071s,@top_srcdir@,$ac_top_srcdir,;t t
13072s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13073s,@builddir@,$ac_builddir,;t t
13074s,@abs_builddir@,$ac_abs_builddir,;t t
13075s,@top_builddir@,$ac_top_builddir,;t t
13076s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13077s,@INSTALL@,$ac_INSTALL,;t t
13078" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13079 rm -f $tmp/stdin
13080 if test x"$ac_file" != x-; then
13081 mv $tmp/out $ac_file
13082 else
13083 cat $tmp/out
13084 rm -f $tmp/out
13085 fi
11a67599 13086
2aeb72e9
DD
13087done
13088_ACEOF
11a67599 13089
2aeb72e9 13090cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13091
1c710c3c
DJ
13092{ (exit 0); exit 0; }
13093_ACEOF
671aa708 13094chmod +x $CONFIG_STATUS
1c710c3c
DJ
13095ac_clean_files=$ac_clean_files_save
13096
13097
13098# configure is writing to config.log, and then calls config.status.
13099# config.status does its own redirection, appending to config.log.
13100# Unfortunately, on DOS this fails, as config.log is still kept open
13101# by configure, so config.status won't be able to write to it; its
13102# output is simply discarded. So we exec the FD to /dev/null,
13103# effectively closing config.log, so it can be properly (re)opened and
13104# appended to by config.status. When coming back to configure, we
13105# need to make the FD available again.
13106if test "$no_create" != yes; then
13107 ac_cs_success=:
13108 ac_config_status_args=
13109 test "$silent" = yes &&
13110 ac_config_status_args="$ac_config_status_args --quiet"
13111 exec 5>/dev/null
13112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13113 exec 5>>config.log
13114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13115 # would make configure fail if this is the last instruction.
13116 $ac_cs_success || { (exit 1); exit 1; }
13117fi
79c06341 13118