]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR libfortran/33079 (Optional empty strings do not appear to be 'PRESENT')
[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"
901119ae 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 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
30b74385 968 --with-build-time-tools=PATH
1c710c3c 969 use given path to find target tools during the build
30b74385
RW
970 --with-datarootdir use datarootdir as the data root directory.
971 --with-docdir install documentation in this directory.
972 --with-pdfdir install pdf in this directory.
973 --with-htmldir install html in this directory.
1c710c3c
DJ
974
975Some influential environment variables:
976 CC C compiler command
977 CFLAGS C compiler flags
978 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
979 nonstandard directory <lib dir>
2aeb72e9
DD
980 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
981 headers in a nonstandard directory <include dir>
c3a86da9
DJ
982 CXX C++ compiler command
983 CXXFLAGS C++ compiler flags
278a7a38
AO
984 AR AR for the host
985 AS AS for the host
986 DLLTOOL DLLTOOL for the host
987 LD LD for the host
988 LIPO LIPO for the host
989 NM NM for the host
990 RANLIB RANLIB for the host
991 STRIP STRIP for the host
992 WINDRES WINDRES for the host
901119ae 993 WINDMC WINDMC for the host
278a7a38
AO
994 OBJCOPY OBJCOPY for the host
995 OBJDUMP OBJDUMP for the host
996 CC_FOR_TARGET
997 CC for the target
998 CXX_FOR_TARGET
999 CXX for the target
1000 GCC_FOR_TARGET
1001 GCC for the target
1002 GCJ_FOR_TARGET
1003 GCJ for the target
1004 GFORTRAN_FOR_TARGET
1005 GFORTRAN for the target
1006 AR_FOR_TARGET
1007 AR for the target
1008 AS_FOR_TARGET
1009 AS for the target
1010 DLLTOOL_FOR_TARGET
1011 DLLTOOL for the target
1012 LD_FOR_TARGET
1013 LD for the target
1014 LIPO_FOR_TARGET
1015 LIPO for the target
1016 NM_FOR_TARGET
1017 NM for the target
1018 OBJDUMP_FOR_TARGET
1019 OBJDUMP for the target
1020 RANLIB_FOR_TARGET
1021 RANLIB for the target
1022 STRIP_FOR_TARGET
1023 STRIP for the target
1024 WINDRES_FOR_TARGET
1025 WINDRES for the target
901119ae
KT
1026 WINDMC_FOR_TARGET
1027 WINDMC for the target
1c710c3c
DJ
1028
1029Use these variables to override the choices made by `configure' or to help
1030it to find libraries and programs with nonstandard names/locations.
1031
1032_ACEOF
1033fi
1034
1035if test "$ac_init_help" = "recursive"; then
1036 # If there are subdirs, report their specific --help.
2aeb72e9 1037 ac_popdir=`pwd`
1c710c3c 1038 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1039 test -d $ac_dir || continue
1c710c3c
DJ
1040 ac_builddir=.
1041
2aeb72e9 1042if test "$ac_dir" != .; then
1c710c3c 1043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1044 # A "../" for each directory in $ac_dir_suffix.
1045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1046else
1047 ac_dir_suffix= ac_top_builddir=
1048fi
1c710c3c
DJ
1049
1050case $srcdir in
2aeb72e9 1051 .) # No --srcdir option. We are building in place.
1c710c3c 1052 ac_srcdir=.
2aeb72e9
DD
1053 if test -z "$ac_top_builddir"; then
1054 ac_top_srcdir=.
1055 else
1056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1057 fi ;;
1058 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1059 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1060 ac_top_srcdir=$srcdir ;;
1061 *) # Relative path.
1062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1064esac
1065
1066# Do not use `cd foo && pwd` to compute absolute paths, because
1067# the directories may not exist.
1068case `pwd` in
1069.) ac_abs_builddir="$ac_dir";;
1070*)
1071 case "$ac_dir" in
1072 .) ac_abs_builddir=`pwd`;;
1073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1075 esac;;
1076esac
1077case $ac_abs_builddir in
1078.) ac_abs_top_builddir=${ac_top_builddir}.;;
1079*)
1080 case ${ac_top_builddir}. in
1081 .) ac_abs_top_builddir=$ac_abs_builddir;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1084 esac;;
1085esac
1086case $ac_abs_builddir in
1087.) ac_abs_srcdir=$ac_srcdir;;
1088*)
1089 case $ac_srcdir in
1090 .) ac_abs_srcdir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_srcdir=$ac_top_srcdir;;
1097*)
1098 case $ac_top_srcdir in
1099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1102 esac;;
1c710c3c 1103esac
2aeb72e9
DD
1104
1105 cd $ac_dir
1106 # Check for guested configure; otherwise get Cygnus style configure.
1107 if test -f $ac_srcdir/configure.gnu; then
1108 echo
1109 $SHELL $ac_srcdir/configure.gnu --help=recursive
1110 elif test -f $ac_srcdir/configure; then
1111 echo
1112 $SHELL $ac_srcdir/configure --help=recursive
1113 elif test -f $ac_srcdir/configure.ac ||
1114 test -f $ac_srcdir/configure.in; then
1115 echo
1116 $ac_configure --help
1c710c3c
DJ
1117 else
1118 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1119 fi
1120 cd $ac_popdir
1c710c3c
DJ
1121 done
1122fi
1123
2aeb72e9 1124test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1125if $ac_init_version; then
1126 cat <<\_ACEOF
1127
2aeb72e9 1128Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1129This configure script is free software; the Free Software Foundation
1130gives unlimited permission to copy, distribute and modify it.
1131_ACEOF
2aeb72e9 1132 exit 0
0b0dc272 1133fi
2aeb72e9
DD
1134exec 5>config.log
1135cat >&5 <<_ACEOF
1c710c3c
DJ
1136This file contains any messages produced by compilers while
1137running configure, to aid debugging if configure makes a mistake.
1138
1139It was created by $as_me, which was
2aeb72e9 1140generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1141
1142 $ $0 $@
1143
1144_ACEOF
1145{
1146cat <<_ASUNAME
1147## --------- ##
1148## Platform. ##
1149## --------- ##
1150
1151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1152uname -m = `(uname -m) 2>/dev/null || echo unknown`
1153uname -r = `(uname -r) 2>/dev/null || echo unknown`
1154uname -s = `(uname -s) 2>/dev/null || echo unknown`
1155uname -v = `(uname -v) 2>/dev/null || echo unknown`
1156
1157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1159
1160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1163hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1167
1168_ASUNAME
1169
1170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171for as_dir in $PATH
1172do
1173 IFS=$as_save_IFS
1174 test -z "$as_dir" && as_dir=.
1175 echo "PATH: $as_dir"
1176done
1177
1178} >&5
1179
1180cat >&5 <<_ACEOF
1181
1182
1183## ----------- ##
1184## Core tests. ##
1185## ----------- ##
1186
1187_ACEOF
1188
1189
1190# Keep a trace of the command line.
1191# Strip out --no-create and --no-recursion so they do not pile up.
1192# Strip out --silent because we don't want to record it for future runs.
1193# Also quote any args containing shell meta-characters.
1194# Make two passes to allow for proper duplicate-argument suppression.
1195ac_configure_args=
1196ac_configure_args0=
1197ac_configure_args1=
2aeb72e9 1198ac_sep=
1c710c3c
DJ
1199ac_must_keep_next=false
1200for ac_pass in 1 2
1201do
1202 for ac_arg
1203 do
1204 case $ac_arg in
1205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 continue ;;
2aeb72e9 1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211 esac
1212 case $ac_pass in
1213 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1214 2)
1215 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1216 if test $ac_must_keep_next = true; then
1217 ac_must_keep_next=false # Got value, back to normal.
1218 else
1219 case $ac_arg in
1220 *=* | --config-cache | -C | -disable-* | --disable-* \
1221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1223 | -with-* | --with-* | -without-* | --without-* | --x)
1224 case "$ac_configure_args0 " in
1225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1226 esac
1227 ;;
1228 -* ) ac_must_keep_next=true ;;
1229 esac
1230 fi
2aeb72e9
DD
1231 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1232 # Get rid of the leading space.
1233 ac_sep=" "
1c710c3c
DJ
1234 ;;
1235 esac
1236 done
1237done
1238$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1239$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1240
1241# When interrupted or exit'd, cleanup temporary files, and complete
1242# config.log. We remove comments because anyway the quotes in there
1243# would cause problems or look ugly.
2aeb72e9
DD
1244# WARNING: Be sure not to use single quotes in there, as some shells,
1245# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1246trap 'exit_status=$?
1247 # Save into config.log some information that might help in debugging.
1248 {
1249 echo
1250
1251 cat <<\_ASBOX
1252## ---------------- ##
1253## Cache variables. ##
1254## ---------------- ##
1255_ASBOX
1256 echo
1257 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1258{
1c710c3c 1259 (set) 2>&1 |
2aeb72e9
DD
1260 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261 *ac_space=\ *)
1c710c3c 1262 sed -n \
2aeb72e9
DD
1263 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265 ;;
1c710c3c 1266 *)
2aeb72e9
DD
1267 sed -n \
1268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1269 ;;
2aeb72e9
DD
1270 esac;
1271}
1c710c3c
DJ
1272 echo
1273
1274 cat <<\_ASBOX
1275## ----------------- ##
1276## Output variables. ##
1277## ----------------- ##
1278_ASBOX
1279 echo
1280 for ac_var in $ac_subst_vars
1281 do
2aeb72e9
DD
1282 eval ac_val=$`echo $ac_var`
1283 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1284 done | sort
1285 echo
1286
1287 if test -n "$ac_subst_files"; then
1288 cat <<\_ASBOX
2aeb72e9
DD
1289## ------------- ##
1290## Output files. ##
1291## ------------- ##
1c710c3c
DJ
1292_ASBOX
1293 echo
1294 for ac_var in $ac_subst_files
1295 do
2aeb72e9
DD
1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1298 done | sort
1299 echo
1300 fi
1301
1302 if test -s confdefs.h; then
1303 cat <<\_ASBOX
1304## ----------- ##
1305## confdefs.h. ##
1306## ----------- ##
1307_ASBOX
1308 echo
2aeb72e9 1309 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1310 echo
1311 fi
1312 test "$ac_signal" != 0 &&
1313 echo "$as_me: caught signal $ac_signal"
1314 echo "$as_me: exit $exit_status"
1315 } >&5
2aeb72e9
DD
1316 rm -f core *.core &&
1317 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1318 exit $exit_status
2aeb72e9 1319 ' 0
1c710c3c
DJ
1320for ac_signal in 1 2 13 15; do
1321 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322done
1323ac_signal=0
1324
1325# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1326rm -rf conftest* confdefs.h
1327# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1328echo >confdefs.h
1c710c3c
DJ
1329
1330# Predefined preprocessor variables.
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_NAME "$PACKAGE_NAME"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_VERSION "$PACKAGE_VERSION"
1344_ACEOF
0b0dc272 1345
1c710c3c
DJ
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_STRING "$PACKAGE_STRING"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354_ACEOF
1355
1356
1357# Let the site file select an alternate cache file if it wants to.
671aa708 1358# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1359if test -z "$CONFIG_SITE"; then
1360 if test "x$prefix" != xNONE; then
1361 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1362 else
1363 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1364 fi
671aa708 1365fi
2aeb72e9 1366for ac_site_file in $CONFIG_SITE; do
671aa708 1367 if test -r "$ac_site_file"; then
1c710c3c
DJ
1368 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1369echo "$as_me: loading site script $ac_site_file" >&6;}
1370 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1371 . "$ac_site_file"
1372 fi
1373done
1374
1375if test -r "$cache_file"; then
1c710c3c
DJ
1376 # Some versions of bash will fail to source /dev/null (special
1377 # files actually), so we avoid doing that.
1378 if test -f "$cache_file"; then
1379 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1380echo "$as_me: loading cache $cache_file" >&6;}
1381 case $cache_file in
2aeb72e9
DD
1382 [\\/]* | ?:[\\/]* ) . $cache_file;;
1383 *) . ./$cache_file;;
1c710c3c
DJ
1384 esac
1385 fi
671aa708 1386else
1c710c3c
DJ
1387 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1388echo "$as_me: creating cache $cache_file" >&6;}
1389 >$cache_file
1390fi
1391
1392# Check that the precious variables saved in the cache have kept the same
1393# value.
1394ac_cache_corrupted=false
2aeb72e9
DD
1395for ac_var in `(set) 2>&1 |
1396 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1398 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1399 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1400 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1401 case $ac_old_set,$ac_new_set in
1402 set,)
1403 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1404echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1405 ac_cache_corrupted=: ;;
1406 ,set)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,);;
1411 *)
1412 if test "x$ac_old_val" != "x$ac_new_val"; then
1413 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1416echo "$as_me: former value: $ac_old_val" >&2;}
1417 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1418echo "$as_me: current value: $ac_new_val" >&2;}
1419 ac_cache_corrupted=:
1420 fi;;
1421 esac
1422 # Pass precious variables to config.status.
1423 if test "$ac_new_set" = set; then
1424 case $ac_new_val in
2aeb72e9
DD
1425 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1427 *) ac_arg=$ac_var=$ac_new_val ;;
1428 esac
1429 case " $ac_configure_args " in
1430 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1431 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432 esac
1433 fi
1434done
1435if $ac_cache_corrupted; then
1436 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1437echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1438 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1439echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1440 { (exit 1); exit 1; }; }
671aa708
NN
1441fi
1442
2aeb72e9
DD
1443ac_ext=c
1444ac_cpp='$CPP $CPPFLAGS'
1445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1447ac_compiler_gnu=$ac_cv_c_compiler_gnu
1448
1c710c3c
DJ
1449
1450
1451
1452
671aa708
NN
1453
1454
d02c69be 1455
1c710c3c
DJ
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469# Find the build, host, and target systems.
671aa708 1470ac_aux_dir=
2aeb72e9
DD
1471for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1472 if test -f $ac_dir/install-sh; then
671aa708
NN
1473 ac_aux_dir=$ac_dir
1474 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 break
2aeb72e9 1476 elif test -f $ac_dir/install.sh; then
671aa708
NN
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 break
2aeb72e9 1480 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/shtool install -c"
1483 break
671aa708
NN
1484 fi
1485done
1486if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1487 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1488echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1489 { (exit 1); exit 1; }; }
671aa708 1490fi
2aeb72e9
DD
1491ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1492ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1493ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1494
1c710c3c 1495# Make sure we can run config.sub.
2aeb72e9
DD
1496$ac_config_sub sun4 >/dev/null 2>&1 ||
1497 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1499 { (exit 1); exit 1; }; }
1500
2aeb72e9
DD
1501echo "$as_me:$LINENO: checking build system type" >&5
1502echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1503if test "${ac_cv_build+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
2aeb72e9
DD
1506 ac_cv_build_alias=$build_alias
1507test -z "$ac_cv_build_alias" &&
1508 ac_cv_build_alias=`$ac_config_guess`
1509test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512 { (exit 1); exit 1; }; }
2aeb72e9
DD
1513ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1516 { (exit 1); exit 1; }; }
1517
1518fi
2aeb72e9
DD
1519echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1521build=$ac_cv_build
2aeb72e9
DD
1522build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1525
671aa708 1526
1c710c3c
DJ
1527 case ${build_alias} in
1528 "") build_noncanonical=${build} ;;
1529 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1530esac
1531
1532
af71363e 1533
1c710c3c
DJ
1534 case ${host_alias} in
1535 "") host_noncanonical=${build_noncanonical} ;;
1536 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1537esac
1538
af71363e 1539
1c710c3c
DJ
1540
1541 case ${target_alias} in
1542 "") target_noncanonical=${host_noncanonical} ;;
1543 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1544esac
1545
af71363e 1546
1c710c3c
DJ
1547
1548
1549test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
1c710c3c 1552 program_transform_name=s,y,y,
af71363e 1553
2aeb72e9
DD
1554echo "$as_me:$LINENO: checking host system type" >&5
1555echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1556if test "${ac_cv_host+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1558else
2aeb72e9
DD
1559 ac_cv_host_alias=$host_alias
1560test -z "$ac_cv_host_alias" &&
1561 ac_cv_host_alias=$ac_cv_build_alias
1562ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1563 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1564echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1565 { (exit 1); exit 1; }; }
1566
af71363e 1567fi
2aeb72e9
DD
1568echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1569echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1570host=$ac_cv_host
2aeb72e9
DD
1571host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574
1575
1576echo "$as_me:$LINENO: checking target system type" >&5
1577echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1578if test "${ac_cv_target+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
2aeb72e9
DD
1581 ac_cv_target_alias=$target_alias
1582test "x$ac_cv_target_alias" = "x" &&
1583 ac_cv_target_alias=$ac_cv_host_alias
1584ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1585 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1586echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1587 { (exit 1); exit 1; }; }
1588
1589fi
2aeb72e9
DD
1590echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1591echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1592target=$ac_cv_target
2aeb72e9
DD
1593target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1594target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1595target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1596
1597
1598# The aliases save the names the user supplied, while $host etc.
1599# will get canonicalized.
1600test -n "$target_alias" &&
1601 test "$program_prefix$program_suffix$program_transform_name" = \
1602 NONENONEs,x,x, &&
1603 program_prefix=${target_alias}-
671aa708 1604test "$program_prefix" != NONE &&
2aeb72e9 1605 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1606# Use a double $ so make ignores it.
1607test "$program_suffix" != NONE &&
2aeb72e9 1608 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1609# Double any \ or $. echo might interpret backslashes.
1610# By default was `s,x,x', remove it if useless.
1611cat <<\_ACEOF >conftest.sed
1612s/[\\$]/&&/g;s/;s,x,x,$//
1613_ACEOF
1614program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1615rm conftest.sed
af71363e 1616
671aa708
NN
1617
1618
775956d0
NN
1619# Get 'install' or 'install-sh' and its variants.
1620# Find a good install program. We prefer a C program (faster),
1621# so one script is as good as another. But avoid the broken or
1622# incompatible versions:
1623# SysV /etc/install, /usr/sbin/install
1624# SunOS /usr/etc/install
1625# IRIX /sbin/install
1626# AIX /bin/install
1c710c3c 1627# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1628# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1629# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1631# OS/2's system install, which has a completely different semantic
775956d0 1632# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1633echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1634echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1635if test -z "$INSTALL"; then
1c710c3c
DJ
1636if test "${ac_cv_path_install+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640for as_dir in $PATH
1641do
1642 IFS=$as_save_IFS
1643 test -z "$as_dir" && as_dir=.
1644 # Account for people who put trailing slashes in PATH elements.
1645case $as_dir/ in
1646 ./ | .// | /cC/* | \
1647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1648 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1649 /usr/ucb/* ) ;;
1650 *)
1651 # OSF1 and SCO ODT 3.0 have their own names for install.
1652 # Don't use installbsd from OSF since it installs stuff as root
1653 # by default.
1654 for ac_prog in ginstall scoinst install; do
1655 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1656 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1657 if test $ac_prog = install &&
1c710c3c 1658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1659 # AIX install. It has an incompatible calling convention.
1660 :
1c710c3c
DJ
1661 elif test $ac_prog = install &&
1662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1663 # program-specific install script used by HP pwplus--don't use.
1664 :
775956d0 1665 else
1c710c3c
DJ
1666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1667 break 3
775956d0
NN
1668 fi
1669 fi
1670 done
1c710c3c
DJ
1671 done
1672 ;;
1673esac
1674done
1675
775956d0
NN
1676
1677fi
1678 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1679 INSTALL=$ac_cv_path_install
775956d0 1680 else
2aeb72e9
DD
1681 # As a last resort, use the slow shell script. We don't cache a
1682 # path for INSTALL within a source directory, because that will
775956d0 1683 # break other packages using the cache if that directory is
2aeb72e9 1684 # removed, or if the path is relative.
1c710c3c 1685 INSTALL=$ac_install_sh
775956d0
NN
1686 fi
1687fi
2aeb72e9
DD
1688echo "$as_me:$LINENO: result: $INSTALL" >&5
1689echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1690
1691# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1692# It thinks the first close brace ends the variable substitution.
1693test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1694
1c710c3c 1695test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1696
1697test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1698
2aeb72e9
DD
1699echo "$as_me:$LINENO: checking whether ln works" >&5
1700echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1701if test "${acx_cv_prog_LN+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1703else
1704 rm -f conftestdata_t
1705echo >conftestdata_f
1706if ln conftestdata_f conftestdata_t 2>/dev/null
1707then
1708 acx_cv_prog_LN=ln
1709else
1710 acx_cv_prog_LN=no
1711fi
1712rm -f conftestdata_f conftestdata_t
1713
1714fi
1715if test $acx_cv_prog_LN = no; then
1716 LN="cp"
2aeb72e9
DD
1717 echo "$as_me:$LINENO: result: no, using $LN" >&5
1718echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1719else
1720 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1721 echo "$as_me:$LINENO: result: yes" >&5
1722echo "${ECHO_T}yes" >&6
ad6717df
PB
1723fi
1724
2aeb72e9
DD
1725echo "$as_me:$LINENO: checking whether ln -s works" >&5
1726echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1727LN_S=$as_ln_s
1728if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1729 echo "$as_me:$LINENO: result: yes" >&5
1730echo "${ECHO_T}yes" >&6
fb0103e5 1731else
2aeb72e9
DD
1732 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1733echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1734fi
1735
775956d0 1736
79c06341 1737### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1738### If we are on Windows, search for the shell. This will permit people
1739### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1740### without also having to set CONFIG_SHELL. This code will work when
1741### using bash, which sets OSTYPE.
1742case "${OSTYPE}" in
1743*win32*)
671aa708
NN
1744 if test x${CONFIG_SHELL} = x ; then
1745 if test ! -f /bin/sh ; then
1746 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1747 CONFIG_SHELL=${SHELL}
1748 export CONFIG_SHELL
1749 else
1750 for prog in sh sh.exe bash bash.exe; do
1751 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1752 for dir in $PATH; do
1753 test -z "$dir" && dir=.
1754 if test -f $dir/$prog; then
1755 CONFIG_SHELL=$dir/$prog
1756 export CONFIG_SHELL
1757 break
1758 fi
1759 done
1760 IFS="$save_ifs"
1761 test -n "${CONFIG_SHELL}" && break
1762 done
1763 fi
1764 fi
1765 fi
1766 ;;
1767esac
1768
1769config_shell=${CONFIG_SHELL-/bin/sh}
1770
79c06341
JL
1771progname=$0
1772# if PWD already has a value, it is probably wrong.
671aa708 1773if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1774
beeaf216
MM
1775# Export original configure arguments for use by sub-configures.
1776# Quote arguments with shell meta charatcers.
1777TOPLEVEL_CONFIGURE_ARGUMENTS=
1778set -- "$progname" "$@"
9f8c6739
JM
1779for ac_arg
1780do
beeaf216 1781 case "$ac_arg" in
8c79f3c4 1782 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1783 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1784 # if the argument is of the form -foo=baz, quote the baz part only
1785 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1786 *) ;;
1787 esac
1788 # Add the quoted argument to the list.
1789 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1790done
d9acb717
RW
1791if test "$silent" = yes; then
1792 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1793fi
beeaf216
MM
1794# Remove the initial space we just introduced and, as these will be
1795# expanded by make, quote '$'.
1796TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1797
cc1e60ea 1798
671aa708 1799moveifchange=${srcdir}/move-if-change
79c06341 1800
ee6a22df
L
1801srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1802
1803# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1804# a relative path.
1805if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1806 INSTALL="${srcpwd}/install-sh -c"
1807fi
1808
671aa708
NN
1809# Set srcdir to "." if that's what it is.
1810# This is important for multilib support.
1811pwd=`${PWDCMD-pwd}`
671aa708
NN
1812if test "${pwd}" = "${srcpwd}" ; then
1813 srcdir=.
79c06341
JL
1814fi
1815
671aa708 1816topsrcdir=$srcpwd
5d4a5ee6 1817
671aa708 1818extra_host_args=
afabd8e6 1819
671aa708
NN
1820### To add a new directory to the tree, first choose whether it is a target
1821### or a host dependent tool. Then put it into the appropriate list
1822### (library or tools, host or target), doing a dependency sort.
79c06341 1823
1c710c3c 1824# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1825# configdirs, or target_configdirs; see the serialization section below.
79c06341 1826
1c710c3c
DJ
1827# Dependency sorting is only needed when *configuration* must be done in
1828# a particular order. In all cases a dependency should be specified in
671aa708 1829# the Makefile, whether or not it's implicitly specified here.
79c06341 1830
671aa708
NN
1831# Double entries in build_configdirs, configdirs, or target_configdirs may
1832# cause circular dependencies and break everything horribly.
79c06341 1833
23f6b2f9
PB
1834# these library is used by various programs built for the build
1835# environment
1836#
1837build_libs="build-libiberty"
1838
1839# these tools are built for the build environment
71b5d516 1840build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1841
671aa708
NN
1842# these libraries are used by various programs built for the host environment
1843#
e69bf64b 1844host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1845
671aa708
NN
1846# these tools are built for the host environment
1847# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1848# know that we are building the simulator.
1849# binutils, gas and ld appear in that order because it makes sense to run
1850# "make check" in that particular order.
5395b47b 1851host_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
1852
1853# libgcj represents the runtime libraries only used by gcj.
1854libgcj="target-libffi \
671aa708
NN
1855 target-zlib \
1856 target-qthreads \
1857 target-libjava"
1858
1859# these libraries are built for the target environment, and are built after
1860# the host libraries and the host tools (which may be a cross compiler)
1861#
291f172e
DJ
1862target_libraries="target-libgcc \
1863 target-libiberty \
671aa708
NN
1864 target-libgloss \
1865 target-newlib \
cb543528 1866 target-libstdc++-v3 \
6de9cd9a 1867 target-libmudflap \
77008252 1868 target-libssp \
6de9cd9a 1869 target-libgfortran \
7cd0cf9c 1870 target-boehm-gc \
77d187bc 1871 ${libgcj} \
d9cdb878 1872 target-libobjc \
953ff289
DN
1873 target-libada \
1874 target-libgomp"
671aa708 1875
4dbda6f0
NN
1876# these tools are built using the target libraries, and are intended to
1877# run only in the target environment
671aa708 1878#
4dbda6f0 1879# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1880# list belongs in this list. those programs are also very likely
1881# candidates for the "native_only" list which follows
1882#
97286f7f 1883target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1884
671aa708 1885################################################################################
79c06341 1886
671aa708
NN
1887## All tools belong in one of the four categories, and are assigned above
1888## We assign ${configdirs} this way to remove all embedded newlines. This
1889## is important because configure will choke if they ever get through.
1890## ${configdirs} is directories we build using the host tools.
1891## ${target_configdirs} is directories we build using the target tools.
671aa708 1892configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1893target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1894build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1895
671aa708 1896################################################################################
79c06341 1897
671aa708 1898srcname="gnu development package"
79c06341 1899
671aa708
NN
1900# This gets set non-empty for some net releases of packages.
1901appdirs=""
79c06341 1902
671aa708
NN
1903# Define is_cross_compiler to save on calls to 'test'.
1904is_cross_compiler=
1905if test x"${host}" = x"${target}" ; then
1906 is_cross_compiler=no
79c06341 1907else
671aa708 1908 is_cross_compiler=yes
1c710c3c 1909fi
79c06341 1910
b4acb5ef 1911# Find the build and target subdir names.
8b87bb96 1912
2e9e6f68
DJ
1913# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1914# have matching libraries, they should use host libraries: Makefile.tpl
1915# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1916# However, they still use the build modules, because the corresponding
1917# host modules (e.g. bison) are only built for the host when bootstrap
1918# finishes. So:
1919# - build_subdir is where we find build modules, and never changes.
1920# - build_libsubdir is where we find build libraries, and can be overridden.
1921
1922# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1923build_subdir="build-${build_noncanonical}"
1c710c3c 1924
2aeb72e9 1925# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1926if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1927 withval="$with_build_libsubdir"
1928 build_libsubdir="$withval"
2e9e6f68
DJ
1929else
1930 build_libsubdir="$build_subdir"
2aeb72e9 1931fi;
215c351a
PB
1932# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1933if ( test $srcdir = . && test -d gcc ) \
1934 || test -d $srcdir/../host-${host_noncanonical}; then
1935 host_subdir="host-${host_noncanonical}"
1936else
1937 host_subdir=.
1938fi
8b87bb96
NN
1939# No prefix.
1940target_subdir=${target_noncanonical}
1c710c3c 1941
79c06341 1942
671aa708
NN
1943# Skipdirs are removed silently.
1944skipdirs=
1945# Noconfigdirs are removed loudly.
1946noconfigdirs=""
79c06341 1947
671aa708
NN
1948use_gnu_ld=
1949# Make sure we don't let GNU ld be added if we didn't want it.
1950if test x$with_gnu_ld = xno ; then
1951 use_gnu_ld=no
1952 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1953fi
1954
671aa708
NN
1955use_gnu_as=
1956# Make sure we don't let GNU as be added if we didn't want it.
1957if test x$with_gnu_as = xno ; then
1958 use_gnu_as=no
1959 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1960fi
1961
1c710c3c 1962# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1963# it's not even worth trying to configure, much less build, that tool.
79c06341 1964
671aa708
NN
1965case ${with_x} in
1966 yes | "") ;; # the default value for this tree is that X11 is available
1967 no)
b4f96efe 1968 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1969 # We won't be able to build gdbtk without X.
1c710c3c 1970 enable_gdbtk=no
671aa708
NN
1971 ;;
1972 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1973esac
79c06341 1974
671aa708 1975# Some tools are only suitable for building in a "native" situation.
1c710c3c 1976# Remove these if host!=target.
9e299237 1977native_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 1978
671aa708
NN
1979# Similarly, some are only suitable for cross toolchains.
1980# Remove these if host=target.
1981cross_only="target-libgloss target-newlib target-opcodes"
1982
1983case $is_cross_compiler in
1984 no) skipdirs="${skipdirs} ${cross_only}" ;;
1985 yes) skipdirs="${skipdirs} ${native_only}" ;;
1986esac
79c06341 1987
671aa708
NN
1988# If both --with-headers and --with-libs are specified, default to
1989# --without-newlib.
ee6a22df
L
1990if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1991 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1992 if test x"${with_newlib}" = x ; then
1993 with_newlib=no
1994 fi
79c06341
JL
1995fi
1996
671aa708
NN
1997# Recognize --with-newlib/--without-newlib.
1998case ${with_newlib} in
1999 no) skipdirs="${skipdirs} target-newlib" ;;
2000 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2001esac
79c06341 2002
671aa708 2003# Configure extra directories which are host specific
79c06341 2004
671aa708
NN
2005case "${host}" in
2006 *-cygwin*)
2007 configdirs="$configdirs libtermcap" ;;
2008esac
79c06341 2009
4fab7234
HPN
2010# A target can indicate whether a language isn't supported for some reason.
2011# Only spaces may be used in this macro; not newlines or tabs.
2012unsupported_languages=
2013
1c710c3c 2014# Remove more programs from consideration, based on the host or
671aa708
NN
2015# target this usually means that a port of the program doesn't
2016# exist yet.
ec8d6ddc 2017
671aa708
NN
2018case "${host}" in
2019 hppa*64*-*-*)
2020 noconfigdirs="$noconfigdirs byacc"
2021 ;;
f2a0e225 2022 i[3456789]86-*-vsta)
b4f96efe 2023 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2024 ;;
f2a0e225 2025 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2026 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2027 ;;
95af8923
KT
2028 x86_64-*-mingw*)
2029 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2030 ;;
f2a0e225 2031 i[3456789]86-*-mingw32*)
b4f96efe 2032 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2033 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2034 ;;
f2a0e225 2035 i[3456789]86-*-beos*)
b4f96efe 2036 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2037 ;;
671aa708 2038 *-*-cygwin*)
a22c2d8d 2039 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2040 ;;
2041 *-*-netbsd*)
a22c2d8d 2042 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2043 ;;
2044 ppc*-*-pe)
b4f96efe 2045 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2046 ;;
2047 powerpc-*-beos*)
b4f96efe 2048 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2049 ;;
671aa708 2050esac
ec8d6ddc 2051
6de9cd9a 2052
2aeb72e9 2053# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2054if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2055 enableval="$enable_libada"
2056 ENABLE_LIBADA=$enableval
d9cdb878
AC
2057else
2058 ENABLE_LIBADA=yes
2aeb72e9 2059fi;
d9cdb878 2060if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2061 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2062fi
2063
2aeb72e9 2064# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2065if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2066 enableval="$enable_libssp"
2067 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2068else
2069 ENABLE_LIBSSP=yes
2aeb72e9 2070fi;
ef0087a7 2071
671aa708
NN
2072# Save it here so that, even in case of --enable-libgcj, if the Java
2073# front-end isn't enabled, we still get libgcj disabled.
2074libgcj_saved=$libgcj
2075case $enable_libgcj in
2076yes)
2077 # If we reset it here, it won't get added to noconfigdirs in the
2078 # target-specific build rules, so it will be forcibly enabled
2079 # (unless the Java language itself isn't enabled).
2080 libgcj=
2081 ;;
2082no)
2083 # Make sure we get it printed in the list of not supported target libs.
2084 noconfigdirs="$noconfigdirs ${libgcj}"
2085 ;;
2086esac
ec8d6ddc 2087
6de9cd9a 2088
27079765
AH
2089# Disable libmudflap on some systems.
2090if test x$enable_libmudflap = x ; then
dfcada9a 2091 case "${target}" in
1c00b503 2092 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2093 # Enable libmudflap by default in GNU and friends.
dfcada9a 2094 ;;
a3e8d8b4
LR
2095 *-*-freebsd*)
2096 # Enable libmudflap by default in FreeBSD.
2097 ;;
dfcada9a
MM
2098 *)
2099 # Disable it by default everywhere else.
2100 noconfigdirs="$noconfigdirs target-libmudflap"
2101 ;;
2102 esac
27079765 2103fi
6de9cd9a 2104
27079765
AH
2105# Disable libgomp on non POSIX hosted systems.
2106if test x$enable_libgomp = x ; then
953ff289
DN
2107 # Enable libgomp by default on hosted POSIX systems.
2108 case "${target}" in
670cbfcf 2109 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2110 ;;
2111 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2112 ;;
04879af3 2113 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2114 ;;
cac90078 2115 *-*-darwin* | *-*-aix*)
953ff289
DN
2116 ;;
2117 *)
2118 noconfigdirs="$noconfigdirs target-libgomp"
2119 ;;
2120 esac
27079765 2121fi
953ff289 2122
6de9cd9a 2123
671aa708
NN
2124case "${target}" in
2125 *-*-chorusos)
cb253473 2126 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2127 ;;
42c1cd8a 2128 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2129 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2130 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2131 ;;
42c1cd8a
AT
2132 *-*-darwin*)
2133 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2134 noconfigdirs="$noconfigdirs sim target-rda"
2135 noconfigdirs="$noconfigdirs ${libgcj}"
2136 ;;
671aa708 2137 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2138 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2139 ;;
c3f84f61 2140 *-*-freebsd*)
6de9cd9a
DN
2141 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2142 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2143 && test -f /usr/local/include/gmp.h; then
2144 with_gmp=/usr/local
2145 fi
2146
2147 # Skip some stuff that's unsupported on some FreeBSD configurations.
2148 case "${target}" in
2149 i*86-*-*) ;;
2150 alpha*-*-*) ;;
2151 *)
cb253473 2152 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2153 ;;
2154 esac
2155 ;;
ef4e7569
US
2156 *-*-kaos*)
2157 # Remove unsupported stuff on all kaOS configurations.
cb253473 2158 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2159 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2160 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2161 noconfigdirs="$noconfigdirs target-libgloss"
2162 ;;
671aa708
NN
2163 *-*-netbsd*)
2164 # Skip some stuff on all NetBSD configurations.
2165 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2166
2167 # Skip some stuff that's unsupported on some NetBSD configurations.
2168 case "${target}" in
2169 i*86-*-netbsdelf*) ;;
0590b963 2170 arm*-*-netbsdelf*) ;;
671aa708 2171 *)
cb253473 2172 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2173 ;;
2174 esac
2175 ;;
61fec9ff 2176 *-*-netware*)
cb253473 2177 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2178 ;;
2179 *-*-rtems*)
cb253473 2180 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2181 ;;
a8ba31f2
EC
2182 # The tpf target doesn't support gdb yet.
2183 *-*-tpf*)
cb253473 2184 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2185 ;;
5785c0ed 2186 *-*-uclinux*)
cb253473 2187 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2188 ;;
671aa708 2189 *-*-vxworks*)
cb253473 2190 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2191 ;;
2192 alpha*-dec-osf*)
2193 # ld works, but does not support shared libraries.
2194 # newlib is not 64 bit ready. I'm not sure about fileutils.
2195 # gas doesn't generate exception information.
2196 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2197 ;;
2198 alpha*-*-*vms*)
cb253473 2199 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2200 ;;
2201 alpha*-*-linux*)
2202 # newlib is not 64 bit ready
2203 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2204 ;;
671aa708
NN
2205 alpha*-*-*)
2206 # newlib is not 64 bit ready
cb253473 2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2208 ;;
33952f6f 2209 am33_2.0-*-linux*)
cb253473 2210 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2211 ;;
671aa708 2212 sh-*-linux*)
cb253473 2213 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2214 ;;
671aa708 2215 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2216 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2217 noconfigdirs="$noconfigdirs target-examples"
2218 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2219 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2220 noconfigdirs="$noconfigdirs expect dejagnu"
2221 # the C++ libraries don't build on top of CE's C libraries
cb543528 2222 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2223 noconfigdirs="$noconfigdirs target-newlib"
2224 case "${host}" in
2225 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2226 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2227 ;;
2228 esac
2229 ;;
2230 arc-*-*)
cb253473 2231 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2232 ;;
ee6a22df 2233 arm-semi-aof )
ee6a22df 2234 ;;
671aa708 2235 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2236 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2237 ;;
b3f8d95d 2238 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2239 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2240 ;;
077fc835
KH
2241 arm*-*-linux-gnueabi)
2242 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2243 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
1c00b503
PB
2244 case ${with_newlib} in
2245 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2246 esac
077fc835 2247 ;;
972974fc 2248 arm*-*-symbianelf*)
cb253473 2249 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2250 ;;
671aa708 2251 arm-*-pe*)
cb253473 2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2253 ;;
671aa708 2254 thumb-*-coff)
cb253473 2255 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2256 ;;
2257 thumb-*-elf)
cb253473 2258 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2259 ;;
671aa708 2260 thumb-*-pe)
cb253473 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2262 ;;
2263 arm-*-riscix*)
cb253473 2264 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2265 ;;
2266 avr-*-*)
cb253473 2267 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2268 ;;
6b65a26d 2269 bfin-*-*)
8b3c6c5a 2270 noconfigdirs="$noconfigdirs gdb"
61efc800 2271 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2272 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2273 fi
2274 ;;
671aa708 2275 c4x-*-* | tic4x-*-*)
cb253473 2276 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2277 ;;
2278 c54x*-*-* | tic54x-*-*)
cb253473 2279 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2280 ;;
40d64b5a 2281 cris-*-* | crisv32-*-*)
4fab7234 2282 unsupported_languages="$unsupported_languages java"
40d64b5a 2283 case "${target}" in
c2e0d3a9 2284 *-*-aout)
7f26dfa3 2285 unsupported_languages="$unsupported_languages fortran"
4fab7234 2286 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2287 *-*-elf)
7f26dfa3 2288 unsupported_languages="$unsupported_languages fortran"
789ec619 2289 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2290 *-*-linux*)
789ec619 2291 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2292 *)
7f26dfa3 2293 unsupported_languages="$unsupported_languages fortran"
cb253473 2294 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2295 esac
671aa708 2296 ;;
25b656e7 2297 crx-*-*)
cb253473 2298 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2299 ;;
671aa708 2300 d10v-*-*)
cb253473 2301 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2302 ;;
2303 d30v-*-*)
cb253473 2304 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2305 ;;
2306 fr30-*-elf*)
cb253473 2307 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2308 ;;
2309 frv-*-*)
cb253473 2310 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2311 ;;
2312 h8300*-*-*)
cb253473 2313 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2314 ;;
2315 h8500-*-*)
cb253473 2316 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2317 ;;
ee6a22df 2318 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2319 ;;
671aa708
NN
2320 hppa*64*-*-linux* | parisc*64*-*-linux*)
2321 # In this case, it's because the hppa64-linux target is for
2322 # the kernel only at this point and has no libc, and thus no
2323 # headers, crt*.o, etc., all of which are needed by these.
2324 noconfigdirs="$noconfigdirs target-zlib"
2325 ;;
3e732ba0
JDA
2326 parisc*-*-linux* | hppa*-*-linux*)
2327 ;;
671aa708 2328 hppa*-*-*elf* | \
671aa708
NN
2329 hppa*-*-lites* | \
2330 hppa*-*-openbsd* | \
2331 hppa*64*-*-*)
cb253473 2332 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2333 ;;
2a332582
JDA
2334 hppa*-hp-hpux11*)
2335 noconfigdirs="$noconfigdirs ld shellutils"
2336 ;;
671aa708
NN
2337 hppa*-*-*)
2338 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2339 # build on HP-UX 10.20.
cb253473 2340 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2341 ;;
fb87ad5d 2342 i960-*-*)
cb253473 2343 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2344 ;;
671aa708
NN
2345 ia64*-*-elf*)
2346 # No gdb support yet.
b4f96efe 2347 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2348 ;;
2349 ia64*-**-hpux*)
2350 # No gdb or ld support yet.
cb253473 2351 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2352 ;;
ee6a22df 2353 i370-*-opened*)
ee6a22df 2354 ;;
f2a0e225 2355 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2356 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2357 ;;
f2a0e225 2358 i[3456789]86-*-linux*)
671aa708
NN
2359 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2360 # not build java stuff by default.
2361 case "${target}" in
2362 *-*-*libc1*)
cb253473 2363 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2364 esac
2365
2366 # This section makes it possible to build newlib natively on linux.
2367 # If we are using a cross compiler then don't configure newlib.
2368 if test x${is_cross_compiler} != xno ; then
3aa83176 2369 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2370 fi
2371 noconfigdirs="$noconfigdirs target-libgloss"
2372 # If we are not using a cross compiler, do configure newlib.
2373 # Note however, that newlib will only be configured in this situation
2374 # if the --with-newlib option has been given, because otherwise
2375 # 'target-newlib' will appear in skipdirs.
2376 ;;
f2a0e225 2377 i[3456789]86-*-mingw32*)
b91f0a41
CV
2378 target_configdirs="$target_configdirs target-winsup"
2379 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2380 ;;
95af8923
KT
2381 x86_64-*-mingw*)
2382 target_configdirs="$target_configdirs target-winsup"
2383 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2384 ;;
671aa708
NN
2385 *-*-cygwin*)
2386 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2387 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2388 # always build newlib if winsup directory is present.
b91f0a41 2389 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2390 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2391 elif test -d "$srcdir/newlib"; then
b91f0a41 2392 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2393 fi
1c710c3c 2394 ;;
ee6a22df
L
2395 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2396 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2397 ;;
f2a0e225 2398 i[3456789]86-*-pe)
cb253473 2399 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2400 ;;
f2a0e225 2401 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2402 # The linker does not yet know about weak symbols in COFF,
2403 # and is not configured to handle mixed ELF and COFF.
cb253473 2404 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2405 ;;
f2a0e225 2406 i[3456789]86-*-sco*)
cb253473 2407 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2408 ;;
f2a0e225 2409 i[3456789]86-*-solaris2*)
671aa708
NN
2410 noconfigdirs="$noconfigdirs target-libgloss"
2411 ;;
f2a0e225 2412 i[3456789]86-*-sysv4*)
cb253473 2413 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2414 ;;
f2a0e225 2415 i[3456789]86-*-beos*)
cb253473 2416 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2417 ;;
d1f8db0c
PB
2418 i[3456789]86-*-rdos*)
2419 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2420 ;;
fb87ad5d 2421 m32r-*-*)
cb253473 2422 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2423 ;;
671aa708 2424 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2425 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2426 ;;
2427 m68k-*-elf*)
cb253473 2428 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2429 ;;
2430 m68k-*-coff*)
cb253473 2431 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2432 ;;
2433 mcore-*-pe*)
2434 # The EPOC C++ environment does not support exceptions or rtti,
2435 # and so building libstdc++-v3 tends not to always work.
2436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2437 ;;
2438 mmix-*-*)
4fab7234 2439 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2440 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2441 ;;
2442 mn10200-*-*)
cb253473 2443 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2444 ;;
2445 mn10300-*-*)
cb253473 2446 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2447 ;;
ab34901f 2448 mt-*-*)
79dd769c
AH
2449 noconfigdirs="$noconfigdirs sim"
2450 ;;
671aa708
NN
2451 powerpc-*-aix*)
2452 # copied from rs6000-*-* entry
cb253473 2453 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2454 ;;
2455 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2456 target_configdirs="$target_configdirs target-winsup"
cb253473 2457 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2458 # always build newlib.
2459 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2460 ;;
2461 # This is temporary until we can link against shared libraries
2462 powerpcle-*-solaris*)
cb253473 2463 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2464 ;;
2465 powerpc-*-beos*)
cb253473 2466 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2467 ;;
671aa708 2468 powerpc-*-eabi)
cb253473 2469 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2470 ;;
2471 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2472 ;;
671aa708 2473 rs6000-*-lynxos*)
cb253473 2474 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2475 ;;
2476 rs6000-*-aix*)
cb253473 2477 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2478 ;;
2479 rs6000-*-*)
cb253473 2480 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2481 ;;
2482 m68k-apollo-*)
cb253473 2483 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2484 ;;
2485 mips*-*-irix5*)
cb253473 2486 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2487 ;;
2488 mips*-*-irix6*)
671aa708
NN
2489 # Linking libjava exceeds command-line length limits on at least
2490 # IRIX 6.2, but not on IRIX 6.5.
2491 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2492 # <oldham@codesourcery.com>
cb253473 2493 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2494 ;;
671aa708 2495 mips*-*-bsd*)
cb253473 2496 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2497 ;;
d0fe5ad3 2498 mips64*-*-linux*)
1ee4c5a0 2499 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2500 ;;
671aa708
NN
2501 mips*-*-linux*)
2502 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2503 ;;
2504 mips*-*-*)
cb253473 2505 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2506 ;;
2507 romp-*-*)
cb253473 2508 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2509 ;;
669f01d8 2510 sh-*-* | sh64-*-*)
671aa708 2511 case "${host}" in
f2a0e225
KC
2512 i[3456789]86-*-vsta) ;; # don't add gprof back in
2513 i[3456789]86-*-go32*) ;; # don't add gprof back in
2514 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2515 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2516 esac
cb253473 2517 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2518 ;;
671aa708 2519 sparc-*-elf*)
cb253473 2520 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2521 ;;
2522 sparc64-*-elf*)
cb253473 2523 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2524 ;;
2525 sparclite-*-*)
cb253473 2526 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2527 ;;
2528 sparc-*-sunos4*)
cb253473 2529 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2530 if test x${is_cross_compiler} != xno ; then
2531 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2532 else
2533 use_gnu_ld=no
2534 fi
2535 ;;
bba5e0ca 2536 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2537 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2538 ;;
671aa708
NN
2539 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2540 ;;
85d9c13c 2541 spu-*-*)
ea6f5c57 2542 skipdirs="target-libssp"
85d9c13c 2543 ;;
671aa708 2544 v810-*-*)
cb253473 2545 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2546 ;;
2547 v850-*-*)
cb253473 2548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2549 ;;
2550 v850e-*-*)
cb253473 2551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2552 ;;
2553 v850ea-*-*)
cb253473 2554 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2555 ;;
2556 vax-*-vms)
cb253473 2557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2558 ;;
2559 vax-*-*)
cb253473 2560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2561 ;;
0d4f1b4e 2562 xtensa-*-*)
cb253473 2563 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2564 ;;
671aa708 2565 ip2k-*-*)
cb253473 2566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2567 ;;
c3f84f61 2568 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2570 ;;
2571 *-*-lynxos*)
cb253473 2572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2573 ;;
671aa708 2574 *-*-*)
cb253473 2575 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2576 ;;
2577esac
79c06341 2578
671aa708
NN
2579# If we aren't building newlib, then don't build libgloss, since libgloss
2580# depends upon some newlib header files.
2581case "${noconfigdirs}" in
2582 *target-libgloss*) ;;
2583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2584esac
2585
671aa708
NN
2586# Work in distributions that contain no compiler tools, like Autoconf.
2587tentative_cc=""
2588host_makefile_frag=/dev/null
2589if test -d ${srcdir}/config ; then
2590case "${host}" in
2591 m68k-hp-hpux*)
2592 # Avoid "too much defining" errors from HPUX compiler.
2593 tentative_cc="cc -Wp,-H256000"
2594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2595 # If it's HP/UX ar, this should be harmless.
2596 RANLIB="ar ts"
2597 ;;
2598 m68k-apollo-sysv*)
2599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2600 ;;
2601 m68k-apollo-bsd*)
2602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2603 # chokes on bfd, the compiler won't let you assign integers to enums, and
2604 # other problems. Defining CC to gcc is a questionable way to say "don't use
2605 # the apollo compiler" (the preferred version of GCC could be called cc,
2606 # or whatever), but I'm not sure leaving CC as cc is any better...
2607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2608 # Used to have BISON=yacc.
2609 tentative_cc=gcc
2610 ;;
2611 m88k-dg-dgux*)
2612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2613 ;;
2614 m88k-harris-cxux*)
2615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2616 tentative_cc="cc -Xa"
2617 host_makefile_frag="config/mh-cxux"
2618 ;;
2619 m88k-motorola-sysv*)
2620 ;;
2621 mips*-dec-ultrix*)
2622 tentative_cc="cc -Wf,-XNg1000"
2623 host_makefile_frag="config/mh-decstation"
2624 ;;
2625 mips*-nec-sysv4*)
2626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2628 host_makefile_frag="config/mh-necv4"
2629 ;;
2630 mips*-sgi-irix4*)
2631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2632 # environment. Also bump switch table size so that cp-parse will
2633 # compile. Bump string length limit so linker builds.
2634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2635 ;;
2636 mips*-*-sysv4*)
2637 host_makefile_frag="config/mh-sysv4"
2638 ;;
2639 mips*-*-sysv*)
2640 # This is for a MIPS running RISC/os 4.52C.
2641
2642 # This is needed for GDB, but needs to be in the top-level make because
2643 # if a library is compiled with the bsd headers and gets linked with the
2644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2645 # a different size).
2646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2647 # known except to select the sysv environment. Could we use /proc instead?
2648 # These "sysv environments" and "bsd environments" often end up being a pain.
2649 #
2650 # This is not part of CFLAGS because perhaps not all C compilers have this
2651 # option.
2652 tentative_cc="cc -systype sysv"
2653 ;;
2654 i370-ibm-opened*)
2655 tentative_cc="c89"
2656 ;;
f2a0e225 2657 i[3456789]86-*-sysv5*)
671aa708
NN
2658 host_makefile_frag="config/mh-sysv5"
2659 ;;
f2a0e225 2660 i[3456789]86-*-dgux*)
671aa708
NN
2661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2662 host_makefile_frag="config/mh-dgux386"
2663 ;;
f2a0e225 2664 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2665 # The MetaWare compiler will generate a copyright message unless you
2666 # turn it off by adding the -Hnocopyr flag.
2667 tentative_cc="cc -Hnocopyr"
2668 ;;
f2a0e225 2669 i[3456789]86-ncr-sysv4*)
671aa708
NN
2670 # for an NCR 3000 (i486/SVR4) system.
2671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2672 # This compiler not only emits obnoxious copyright messages every time
2673 # you run it, but it chokes and dies on a whole bunch of GNU source
2674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2675 tentative_cc="/usr/ccs/ATT/cc"
2676 host_makefile_frag="config/mh-ncr3000"
2677 ;;
f2a0e225 2678 i[3456789]86-*-sco3.2v5*)
671aa708 2679 ;;
f2a0e225 2680 i[3456789]86-*-sco*)
671aa708
NN
2681 # The native C compiler botches some simple uses of const. Unfortunately,
2682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2683 tentative_cc="cc -Dconst="
2684 host_makefile_frag="config/mh-sco"
2685 ;;
f2a0e225 2686 i[3456789]86-*-udk*)
671aa708
NN
2687 host_makefile_frag="config/mh-sysv5"
2688 ;;
f2a0e225 2689 i[3456789]86-*-solaris2*)
671aa708
NN
2690 host_makefile_frag="config/mh-sysv4"
2691 ;;
f2a0e225 2692 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2693 host_makefile_frag="config/mh-djgpp"
2694 ;;
2695 *-cygwin*)
2696 host_makefile_frag="config/mh-cygwin"
2697 ;;
2698 *-mingw32*)
671aa708 2699 ;;
95af8923
KT
2700 *-mingw64*)
2701 ;;
671aa708
NN
2702 *-interix*)
2703 host_makefile_frag="config/mh-interix"
2704 ;;
2705 vax-*-ultrix2*)
2706 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2707 tentative_cc=gcc
2708 ;;
2709 *-*-solaris2*)
2710 host_makefile_frag="config/mh-solaris"
2711 ;;
2712 m68k-sun-sunos*)
2713 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2714 # without overflowing the jump tables (-J says to use a 32 bit table)
2715 tentative_cc="cc -J"
2716 ;;
2717 *-hp-hpux*)
2718 tentative_cc="cc -Wp,-H256000"
2719 ;;
2720 *-*-hiux*)
2721 tentative_cc="cc -Wp,-H256000"
2722 ;;
2723 rs6000-*-lynxos*)
2724 # /bin/cc is less than useful for our purposes. Always use GCC
2725 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2726 host_makefile_frag="config/mh-lynxrs6k"
2727 ;;
45f366ab 2728 powerpc-*-darwin*)
be8fff81
RB
2729 host_makefile_frag="config/mh-ppc-darwin"
2730 ;;
d19bca38
PB
2731 powerpc-*-aix*)
2732 host_makefile_frag="config/mh-ppc-aix"
2733 ;;
2734 rs6000-*-aix*)
2735 host_makefile_frag="config/mh-ppc-aix"
2736 ;;
671aa708
NN
2737 *-*-lynxos*)
2738 # /bin/cc is less than useful for our purposes. Always use GCC
2739 tentative_cc="/bin/gcc"
2740 ;;
2741 *-*-sysv4*)
2742 host_makefile_frag="config/mh-sysv4"
2743 ;;
95c53c62
RS
2744 # This is placed last to prevent interfering with the cases above.
2745 i[3456789]86-*-*)
2746 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2747 host_makefile_frag="config/mh-x86omitfp"
2748 ;;
671aa708
NN
2749esac
2750fi
2751
55ffb5ed
NN
2752# If we aren't going to be using gcc, see if we can extract a definition
2753# of CC from the fragment.
2754# Actually, use the 'pre-extracted' version above.
2755if test -z "${CC}" && test "${build}" = "${host}" ; then
2756 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2757 found=
2758 for dir in $PATH; do
2759 test -z "$dir" && dir=.
2760 if test -f $dir/gcc; then
2761 found=yes
2762 break
2763 fi
2764 done
2765 IFS="$save_ifs"
2766 if test -z "${found}" && test -n "${tentative_cc}" ; then
2767 CC=$tentative_cc
2768 fi
2769fi
2770
2771if test "${build}" != "${host}" ; then
55ffb5ed 2772 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2773else
fb0103e5 2774 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2775fi
2776
2777ac_ext=c
1c710c3c
DJ
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782if test -n "$ac_tool_prefix"; then
2783 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2784set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2785echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2787if test "${ac_cv_prog_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2800 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805done
2806
2807fi
2808fi
2809CC=$ac_cv_prog_CC
2810if test -n "$CC"; then
2aeb72e9
DD
2811 echo "$as_me:$LINENO: result: $CC" >&5
2812echo "${ECHO_T}$CC" >&6
1c710c3c 2813else
2aeb72e9
DD
2814 echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6
1c710c3c
DJ
2816fi
2817
2818fi
2819if test -z "$ac_cv_prog_CC"; then
2820 ac_ct_CC=$CC
fb0103e5
RG
2821 # Extract the first word of "gcc", so it can be a program name with args.
2822set dummy gcc; ac_word=$2
2aeb72e9
DD
2823echo "$as_me:$LINENO: checking for $ac_word" >&5
2824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827else
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830else
2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832for as_dir in $PATH
2833do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2838 ac_cv_prog_ac_ct_CC="gcc"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842done
2843done
2844
2845fi
2846fi
2847ac_ct_CC=$ac_cv_prog_ac_ct_CC
2848if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2849 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2850echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2851else
2aeb72e9
DD
2852 echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6
1c710c3c
DJ
2854fi
2855
2aeb72e9 2856 CC=$ac_ct_CC
1c710c3c
DJ
2857else
2858 CC="$ac_cv_prog_CC"
2859fi
2860
2861if test -z "$CC"; then
2aeb72e9
DD
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2864set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2865echo "$as_me:$LINENO: checking for $ac_word" >&5
2866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2867if test "${ac_cv_prog_CC+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2869else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872else
1c710c3c
DJ
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2880 ac_cv_prog_CC="${ac_tool_prefix}cc"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884done
2885done
2886
0b0dc272 2887fi
0b0dc272 2888fi
1c710c3c 2889CC=$ac_cv_prog_CC
af71363e 2890if test -n "$CC"; then
2aeb72e9
DD
2891 echo "$as_me:$LINENO: result: $CC" >&5
2892echo "${ECHO_T}$CC" >&6
0b0dc272 2893else
2aeb72e9
DD
2894 echo "$as_me:$LINENO: result: no" >&5
2895echo "${ECHO_T}no" >&6
0b0dc272
AM
2896fi
2897
2aeb72e9
DD
2898fi
2899if test -z "$ac_cv_prog_CC"; then
2900 ac_ct_CC=$CC
2901 # Extract the first word of "cc", so it can be a program name with args.
2902set dummy cc; ac_word=$2
2903echo "$as_me:$LINENO: checking for $ac_word" >&5
2904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918 ac_cv_prog_ac_ct_CC="cc"
2919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
11a67599 2921 fi
2aeb72e9
DD
2922done
2923done
2924
2925fi
2926fi
2927ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928if test -n "$ac_ct_CC"; then
2929 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930echo "${ECHO_T}$ac_ct_CC" >&6
2931else
2932 echo "$as_me:$LINENO: result: no" >&5
2933echo "${ECHO_T}no" >&6
2934fi
2935
2936 CC=$ac_ct_CC
2937else
2938 CC="$ac_cv_prog_CC"
2939fi
2940
1c710c3c 2941fi
55ffb5ed
NN
2942if test -z "$CC"; then
2943 # Extract the first word of "cc", so it can be a program name with args.
2944set dummy cc; ac_word=$2
2aeb72e9
DD
2945echo "$as_me:$LINENO: checking for $ac_word" >&5
2946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2947if test "${ac_cv_prog_CC+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2949else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
0b0dc272 2953 ac_prog_rejected=no
1c710c3c
DJ
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962 ac_prog_rejected=yes
2963 continue
2964 fi
2965 ac_cv_prog_CC="cc"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2968 fi
2969done
2970done
2971
55ffb5ed
NN
2972if test $ac_prog_rejected = yes; then
2973 # We found a bogon in the path, so make sure we never use it.
2974 set dummy $ac_cv_prog_CC
2975 shift
1c710c3c 2976 if test $# != 0; then
55ffb5ed
NN
2977 # We chose a different compiler from the bogus one.
2978 # However, it has the same basename, so the bogon will be chosen
2979 # first if we set CC to just the basename; use the full file name.
2980 shift
1c710c3c 2981 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2982 fi
2983fi
2984fi
2985fi
1c710c3c 2986CC=$ac_cv_prog_CC
55ffb5ed 2987if test -n "$CC"; then
2aeb72e9
DD
2988 echo "$as_me:$LINENO: result: $CC" >&5
2989echo "${ECHO_T}$CC" >&6
55ffb5ed 2990else
2aeb72e9
DD
2991 echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
55ffb5ed
NN
2993fi
2994
1c710c3c
DJ
2995fi
2996if test -z "$CC"; then
2997 if test -n "$ac_tool_prefix"; then
2aeb72e9 2998 for ac_prog in cl
1c710c3c
DJ
2999 do
3000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3002echo "$as_me:$LINENO: checking for $ac_word" >&5
3003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3004if test "${ac_cv_prog_CC+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3006else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
1c710c3c
DJ
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3017 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
3022done
3023
55ffb5ed
NN
3024fi
3025fi
1c710c3c 3026CC=$ac_cv_prog_CC
55ffb5ed 3027if test -n "$CC"; then
2aeb72e9
DD
3028 echo "$as_me:$LINENO: result: $CC" >&5
3029echo "${ECHO_T}$CC" >&6
a4b9e93e 3030else
2aeb72e9
DD
3031 echo "$as_me:$LINENO: result: no" >&5
3032echo "${ECHO_T}no" >&6
fb0103e5 3033fi
af71363e 3034
1c710c3c
DJ
3035 test -n "$CC" && break
3036 done
af71363e 3037fi
1c710c3c
DJ
3038if test -z "$CC"; then
3039 ac_ct_CC=$CC
2aeb72e9 3040 for ac_prog in cl
1c710c3c
DJ
3041do
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3044echo "$as_me:$LINENO: checking for $ac_word" >&5
3045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3048else
1c710c3c
DJ
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3051else
1c710c3c
DJ
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063done
3064done
3065
af71363e
AS
3066fi
3067fi
1c710c3c
DJ
3068ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3070 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3071echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3072else
2aeb72e9
DD
3073 echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
af71363e 3075fi
0b0dc272 3076
1c710c3c
DJ
3077 test -n "$ac_ct_CC" && break
3078done
3079
2aeb72e9 3080 CC=$ac_ct_CC
1c710c3c
DJ
3081fi
3082
3083fi
3084
3085
3086test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3087See \`config.log' for more details." >&5
3088echo "$as_me: error: no acceptable C compiler found in \$PATH
3089See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3091
3092# Provide some information about the compiler.
2aeb72e9
DD
3093echo "$as_me:$LINENO:" \
3094 "checking for C compiler version" >&5
1c710c3c 3095ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3096{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3097 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }
2aeb72e9
DD
3101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3102 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }
2aeb72e9
DD
3106{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3107 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }
3111
3112cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127ac_clean_files_save=$ac_clean_files
3128ac_clean_files="$ac_clean_files a.out a.exe b.out"
3129# Try to create an executable without -o first, disregard a.out.
3130# It will help us diagnose broken compilers, and finding out an intuition
3131# of exeext.
2aeb72e9
DD
3132echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3133echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3134ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3135if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3136 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; then
2aeb72e9
DD
3140 # Find the output, starting from the most likely. This scheme is
3141# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3142# resort.
3143
3144# Be careful to initialize this variable, since it used to be cached.
3145# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3146ac_cv_exeext=
3147# b.out is created by i960 compilers.
3148for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3149do
3150 test -f "$ac_file" || continue
3151 case $ac_file in
2aeb72e9
DD
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3153 ;;
3154 conftest.$ac_ext )
3155 # This is the source file.
1c710c3c
DJ
3156 ;;
3157 [ab].out )
3158 # We found the default executable, but exeext='' is most
3159 # certainly right.
3160 break;;
3161 *.* )
2aeb72e9
DD
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 # FIXME: I believe we export ac_cv_exeext for Libtool,
3164 # but it would be cool to find out if it's true. Does anybody
3165 # maintain Libtool? --akim.
3166 export ac_cv_exeext
1c710c3c
DJ
3167 break;;
3168 * )
3169 break;;
3170 esac
3171done
3172else
3173 echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3177See \`config.log' for more details." >&5
3178echo "$as_me: error: C compiler cannot create executables
3179See \`config.log' for more details." >&2;}
3180 { (exit 77); exit 77; }; }
3181fi
3182
3183ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3184echo "$as_me:$LINENO: result: $ac_file" >&5
3185echo "${ECHO_T}$ac_file" >&6
1c710c3c 3186
2aeb72e9 3187# Check the compiler produces executables we can run. If not, either
1c710c3c 3188# the compiler is broken, or we cross compile.
2aeb72e9
DD
3189echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3190echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3191# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3192# If not cross compiling, check that we can run a simple program.
3193if test "$cross_compiling" != yes; then
3194 if { ac_try='./$ac_file'
2aeb72e9
DD
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
1c710c3c
DJ
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 cross_compiling=no
3201 else
3202 if test "$cross_compiling" = maybe; then
3203 cross_compiling=yes
3204 else
3205 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3206If you meant to cross compile, use \`--host'.
3207See \`config.log' for more details." >&5
3208echo "$as_me: error: cannot run C compiled programs.
3209If you meant to cross compile, use \`--host'.
3210See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3212 fi
3213 fi
3214fi
2aeb72e9
DD
3215echo "$as_me:$LINENO: result: yes" >&5
3216echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3217
3218rm -f a.out a.exe conftest$ac_cv_exeext b.out
3219ac_clean_files=$ac_clean_files_save
2aeb72e9 3220# Check the compiler produces executables we can run. If not, either
1c710c3c 3221# the compiler is broken, or we cross compile.
2aeb72e9
DD
3222echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3223echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3224echo "$as_me:$LINENO: result: $cross_compiling" >&5
3225echo "${ECHO_T}$cross_compiling" >&6
3226
3227echo "$as_me:$LINENO: checking for suffix of executables" >&5
3228echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230 (eval $ac_link) 2>&5
1c710c3c
DJ
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; then
3234 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3235# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3236# work properly (i.e., refer to `conftest.exe'), while it won't with
3237# `rm'.
3238for ac_file in conftest.exe conftest conftest.*; do
3239 test -f "$ac_file" || continue
3240 case $ac_file in
2aeb72e9 3241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3242 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3243 export ac_cv_exeext
1c710c3c
DJ
3244 break;;
3245 * ) break;;
3246 esac
3247done
af71363e 3248else
1c710c3c
DJ
3249 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3250See \`config.log' for more details." >&5
3251echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3252See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3254fi
3255
3256rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3257echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3258echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3259
3260rm -f conftest.$ac_ext
3261EXEEXT=$ac_cv_exeext
3262ac_exeext=$EXEEXT
2aeb72e9
DD
3263echo "$as_me:$LINENO: checking for suffix of object files" >&5
3264echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3265if test "${ac_cv_objext+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268 cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h. */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h. */
3274
3275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283rm -f conftest.o conftest.obj
2aeb72e9
DD
3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>&5
1c710c3c
DJ
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; then
2aeb72e9 3289 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3290 case $ac_file in
2aeb72e9 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3293 break;;
3294 esac
3295done
3296else
3297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3301See \`config.log' for more details." >&5
3302echo "$as_me: error: cannot compute suffix of object files: cannot compile
3303See \`config.log' for more details." >&2;}
3304 { (exit 1); exit 1; }; }
3305fi
3306
3307rm -f conftest.$ac_cv_objext conftest.$ac_ext
3308fi
2aeb72e9
DD
3309echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3310echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3311OBJEXT=$ac_cv_objext
3312ac_objext=$OBJEXT
2aeb72e9
DD
3313echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3314echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3315if test "${ac_cv_c_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324
3325int
3326main ()
3327{
3328#ifndef __GNUC__
3329 choke me
3330#endif
3331
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext
2aeb72e9
DD
3337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3344 (exit $ac_status); } &&
3345 { ac_try='test -z "$ac_c_werror_flag"
3346 || test ! -s conftest.err'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
1c710c3c
DJ
3358 ac_compiler_gnu=yes
3359else
3360 echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
2aeb72e9 3363ac_compiler_gnu=no
1c710c3c 3364fi
2aeb72e9 3365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3366ac_cv_c_compiler_gnu=$ac_compiler_gnu
3367
3368fi
2aeb72e9
DD
3369echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3370echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3371GCC=`test $ac_compiler_gnu = yes && echo yes`
3372ac_test_CFLAGS=${CFLAGS+set}
3373ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3374CFLAGS="-g"
3375echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3376echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3377if test "${ac_cv_prog_cc_g+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
2aeb72e9 3380 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3381/* confdefs.h. */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h. */
3386
3387int
3388main ()
3389{
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
2aeb72e9
DD
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
1c710c3c
DJ
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
1c710c3c
DJ
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3416 (exit $ac_status); }; }; then
55ffb5ed
NN
3417 ac_cv_prog_cc_g=yes
3418else
1c710c3c
DJ
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3421
2aeb72e9 3422ac_cv_prog_cc_g=no
0b0dc272 3423fi
2aeb72e9 3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3425fi
2aeb72e9
DD
3426echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3427echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3428if test "$ac_test_CFLAGS" = set; then
1c710c3c 3429 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3430elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3432 CFLAGS="-g -O2"
3433 else
3434 CFLAGS="-g"
3435 fi
3436else
3437 if test "$GCC" = yes; then
3438 CFLAGS="-O2"
3439 else
3440 CFLAGS=
3441 fi
3442fi
2aeb72e9
DD
3443echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3444echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3445if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
2aeb72e9 3448 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3449ac_save_CC=$CC
3450cat >conftest.$ac_ext <<_ACEOF
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456#include <stdarg.h>
3457#include <stdio.h>
3458#include <sys/types.h>
3459#include <sys/stat.h>
3460/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3461struct buf { int x; };
3462FILE * (*rcsopen) (struct buf *, struct stat *, int);
3463static char *e (p, i)
3464 char **p;
3465 int i;
3466{
3467 return p[i];
3468}
3469static char *f (char * (*g) (char **, int), char **p, ...)
3470{
3471 char *s;
3472 va_list v;
3473 va_start (v,p);
3474 s = g (p, va_arg (v,int));
3475 va_end (v);
3476 return s;
3477}
3478
3479/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3480 function prototypes and stuff, but not '\xHH' hex character constants.
3481 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3482 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3484 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3485 that's true only with -std1. */
1c710c3c
DJ
3486int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3487
3488int test (int i, double x);
3489struct s1 {int (*f) (int a);};
3490struct s2 {int (*f) (double a);};
3491int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3492int argc;
3493char **argv;
3494int
3495main ()
3496{
3497return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3498 ;
3499 return 0;
3500}
3501_ACEOF
2aeb72e9
DD
3502# Don't try gcc -ansi; that turns off useful extensions and
3503# breaks some systems' header files.
3504# AIX -qlanglvl=ansi
3505# Ultrix and OSF/1 -std1
3506# HP-UX 10.20 and later -Ae
3507# HP-UX older versions -Aa -D_HPUX_SOURCE
3508# SVR4 -Xc -D__EXTENSIONS__
3509for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3510do
3511 CC="$ac_save_CC $ac_arg"
3512 rm -f conftest.$ac_objext
2aeb72e9
DD
3513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3520 (exit $ac_status); } &&
3521 { ac_try='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_prog_cc_stdc=$ac_arg
3535break
1c710c3c
DJ
3536else
3537 echo "$as_me: failed program was:" >&5
3538sed 's/^/| /' conftest.$ac_ext >&5
3539
3540fi
2aeb72e9 3541rm -f conftest.err conftest.$ac_objext
1c710c3c 3542done
2aeb72e9 3543rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3544CC=$ac_save_CC
3545
3546fi
2aeb72e9
DD
3547
3548case "x$ac_cv_prog_cc_stdc" in
3549 x|xno)
3550 echo "$as_me:$LINENO: result: none needed" >&5
3551echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3552 *)
2aeb72e9
DD
3553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3554echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3555 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3556esac
3557
2aeb72e9
DD
3558# Some people use a C++ compiler to compile C. Since we use `exit',
3559# in C++ we need to declare it. In case someone uses the same compiler
3560# for both compiling C and C++ we need to have the C++ compiler decide
3561# the declaration of exit, since it's the most demanding environment.
3562cat >conftest.$ac_ext <<_ACEOF
3563#ifndef __cplusplus
3564 choke me
3565#endif
3566_ACEOF
3567rm -f conftest.$ac_objext
3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag"
3577 || test ! -s conftest.err'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; } &&
3583 { ac_try='test -s conftest.$ac_objext'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; }; then
3589 for ac_declaration in \
3590 '' \
3591 'extern "C" void std::exit (int) throw (); using std::exit;' \
3592 'extern "C" void std::exit (int); using std::exit;' \
3593 'extern "C" void exit (int) throw ();' \
3594 'extern "C" void exit (int);' \
3595 'void exit (int);'
3596do
3597 cat >conftest.$ac_ext <<_ACEOF
3598/* confdefs.h. */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h. */
3603$ac_declaration
3604#include <stdlib.h>
3605int
3606main ()
3607{
3608exit (42);
3609 ;
3610 return 0;
3611}
3612_ACEOF
3613rm -f conftest.$ac_objext
3614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 :
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640continue
3641fi
3642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3643 cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649$ac_declaration
3650int
3651main ()
3652{
3653exit (42);
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658rm -f conftest.$ac_objext
3659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670 (eval $ac_try) 2>&5
3671 ac_status=$?
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 break
3681else
3682 echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687done
3688rm -f conftest*
3689if test -n "$ac_declaration"; then
3690 echo '#ifdef __cplusplus' >>confdefs.h
3691 echo $ac_declaration >>confdefs.h
3692 echo '#endif' >>confdefs.h
3693fi
3694
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699fi
3700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701ac_ext=c
3702ac_cpp='$CPP $CPPFLAGS'
3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706
3707ac_ext=cc
3708ac_cpp='$CXXCPP $CPPFLAGS'
3709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3712if test -n "$ac_tool_prefix"; then
3713 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3714 do
3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3717echo "$as_me:$LINENO: checking for $ac_word" >&5
3718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3719if test "${ac_cv_prog_CXX+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 if test -n "$CXX"; then
3723 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736done
3737done
55ffb5ed 3738
c3a86da9
DJ
3739fi
3740fi
3741CXX=$ac_cv_prog_CXX
3742if test -n "$CXX"; then
2aeb72e9
DD
3743 echo "$as_me:$LINENO: result: $CXX" >&5
3744echo "${ECHO_T}$CXX" >&6
c3a86da9 3745else
2aeb72e9
DD
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
c3a86da9
DJ
3748fi
3749
3750 test -n "$CXX" && break
3751 done
3752fi
3753if test -z "$CXX"; then
3754 ac_ct_CXX=$CXX
2aeb72e9 3755 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3756do
3757 # Extract the first word of "$ac_prog", so it can be a program name with args.
3758set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3761if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 if test -n "$ac_ct_CXX"; then
3765 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3774 ac_cv_prog_ac_ct_CXX="$ac_prog"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779done
3780
3781fi
3782fi
3783ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3784if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3785 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3786echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3787else
2aeb72e9
DD
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
c3a86da9
DJ
3790fi
3791
3792 test -n "$ac_ct_CXX" && break
3793done
2aeb72e9 3794test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3795
2aeb72e9 3796 CXX=$ac_ct_CXX
c3a86da9
DJ
3797fi
3798
2aeb72e9 3799
c3a86da9 3800# Provide some information about the compiler.
2aeb72e9
DD
3801echo "$as_me:$LINENO:" \
3802 "checking for C++ compiler version" >&5
c3a86da9 3803ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3804{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3805 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }
2aeb72e9
DD
3809{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3810 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }
2aeb72e9
DD
3814{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3815 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3816 ac_status=$?
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }
3819
2aeb72e9
DD
3820echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3821echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3822if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
3831
3832int
3833main ()
3834{
3835#ifndef __GNUC__
3836 choke me
3837#endif
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843rm -f conftest.$ac_objext
2aeb72e9
DD
3844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_cxx_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
c3a86da9
DJ
3865 ac_compiler_gnu=yes
3866else
3867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
2aeb72e9 3870ac_compiler_gnu=no
c3a86da9 3871fi
2aeb72e9 3872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3873ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3874
3875fi
2aeb72e9
DD
3876echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3877echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3878GXX=`test $ac_compiler_gnu = yes && echo yes`
3879ac_test_CXXFLAGS=${CXXFLAGS+set}
3880ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3881CXXFLAGS="-g"
3882echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3883echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3884if test "${ac_cv_prog_cxx_g+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886else
2aeb72e9 3887 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */
3893
3894int
3895main ()
3896{
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
2aeb72e9
DD
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_cxx_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
c3a86da9
DJ
3924 ac_cv_prog_cxx_g=yes
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
2aeb72e9
DD
3929ac_cv_prog_cxx_g=no
3930fi
3931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3932fi
3933echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3934echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3935if test "$ac_test_CXXFLAGS" = set; then
3936 CXXFLAGS=$ac_save_CXXFLAGS
3937elif test $ac_cv_prog_cxx_g = yes; then
3938 if test "$GXX" = yes; then
3939 CXXFLAGS="-g -O2"
3940 else
3941 CXXFLAGS="-g"
3942 fi
3943else
3944 if test "$GXX" = yes; then
3945 CXXFLAGS="-O2"
3946 else
3947 CXXFLAGS=
3948 fi
3949fi
3950for ac_declaration in \
3951 '' \
3952 'extern "C" void std::exit (int) throw (); using std::exit;' \
3953 'extern "C" void std::exit (int); using std::exit;' \
3954 'extern "C" void exit (int) throw ();' \
3955 'extern "C" void exit (int);' \
3956 'void exit (int);'
3957do
3958 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
2aeb72e9
DD
3964$ac_declaration
3965#include <stdlib.h>
c3a86da9
DJ
3966int
3967main ()
3968{
2aeb72e9 3969exit (42);
c3a86da9
DJ
3970 ;
3971 return 0;
3972}
3973_ACEOF
3974rm -f conftest.$ac_objext
2aeb72e9
DD
3975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3977 ac_status=$?
3978 grep -v '^ *+' conftest.er1 >conftest.err
3979 rm -f conftest.er1
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3982 (exit $ac_status); } &&
3983 { ac_try='test -z "$ac_cxx_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
c3a86da9
DJ
3996 :
3997else
3998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4000
2aeb72e9
DD
4001continue
4002fi
4003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4005/* confdefs.h. */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h. */
2aeb72e9 4010$ac_declaration
c3a86da9
DJ
4011int
4012main ()
4013{
2aeb72e9 4014exit (42);
c3a86da9
DJ
4015 ;
4016 return 0;
4017}
4018_ACEOF
4019rm -f conftest.$ac_objext
2aeb72e9
DD
4020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4027 (exit $ac_status); } &&
4028 { ac_try='test -z "$ac_cxx_werror_flag"
4029 || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest.$ac_objext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 break
c3a86da9
DJ
4042else
4043 echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
11a67599 4046fi
2aeb72e9
DD
4047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4048done
4049rm -f conftest*
4050if test -n "$ac_declaration"; then
4051 echo '#ifdef __cplusplus' >>confdefs.h
4052 echo $ac_declaration >>confdefs.h
4053 echo '#endif' >>confdefs.h
c3a86da9
DJ
4054fi
4055
4056ac_ext=c
4057ac_cpp='$CPP $CPPFLAGS'
4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062
4063# We must set the default linker to the linker used by gcc for the correct
4064# operation of libtool. If LD is not defined and we are using gcc, try to
4065# set the LD default to the ld used by gcc.
4066if test -z "$LD"; then
4067 if test "$GCC" = yes; then
4068 case $build in
4069 *-*-mingw*)
4070 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4071 *)
4072 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4073 esac
4074 case $gcc_prog_ld in
4075 # Accept absolute paths.
4076 [\\/]* | [A-Za-z]:[\\/]*)
4077 LD="$gcc_prog_ld" ;;
4078 esac
4079 fi
23f6b2f9
PB
4080fi
4081
23f6b2f9
PB
4082
4083
55ffb5ed 4084
1c710c3c
DJ
4085if test -n "$ac_tool_prefix"; then
4086 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4087set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4088echo "$as_me:$LINENO: checking for $ac_word" >&5
4089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4090if test "${ac_cv_prog_GNATBIND+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4092else
4093 if test -n "$GNATBIND"; then
4094 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4095else
1c710c3c
DJ
4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4103 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107done
4108done
4109
55ffb5ed
NN
4110fi
4111fi
1c710c3c 4112GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4113if test -n "$GNATBIND"; then
2aeb72e9
DD
4114 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4115echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4116else
2aeb72e9
DD
4117 echo "$as_me:$LINENO: result: no" >&5
4118echo "${ECHO_T}no" >&6
55ffb5ed
NN
4119fi
4120
1c710c3c 4121fi
55ffb5ed 4122if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4123 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4124 # Extract the first word of "gnatbind", so it can be a program name with args.
4125set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4126echo "$as_me:$LINENO: checking for $ac_word" >&5
4127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4128if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4130else
1c710c3c
DJ
4131 if test -n "$ac_ct_GNATBIND"; then
4132 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4133else
1c710c3c
DJ
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4141 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145done
4146done
4147
2aeb72e9 4148 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4149fi
4150fi
1c710c3c
DJ
4151ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4152if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4153 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4154echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4155else
2aeb72e9
DD
4156 echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
55ffb5ed
NN
4158fi
4159
2aeb72e9 4160 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4161else
1c710c3c 4162 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4163fi
4164
1c710c3c
DJ
4165if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4167set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4168echo "$as_me:$LINENO: checking for $ac_word" >&5
4169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4170if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4172else
4173 if test -n "$GNATMAKE"; then
4174 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4175else
1c710c3c
DJ
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4183 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188done
4189
5305be7e
RG
4190fi
4191fi
1c710c3c 4192GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4193if test -n "$GNATMAKE"; then
2aeb72e9
DD
4194 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4195echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4196else
2aeb72e9
DD
4197 echo "$as_me:$LINENO: result: no" >&5
4198echo "${ECHO_T}no" >&6
5305be7e
RG
4199fi
4200
1c710c3c 4201fi
5305be7e 4202if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4203 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4204 # Extract the first word of "gnatmake", so it can be a program name with args.
4205set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4206echo "$as_me:$LINENO: checking for $ac_word" >&5
4207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4208if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4210else
1c710c3c
DJ
4211 if test -n "$ac_ct_GNATMAKE"; then
4212 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4213else
1c710c3c
DJ
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4221 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4224 fi
4225done
4226done
4227
2aeb72e9 4228 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4229fi
4230fi
1c710c3c
DJ
4231ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4232if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4233 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4234echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4235else
2aeb72e9
DD
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
5305be7e
RG
4238fi
4239
2aeb72e9 4240 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4241else
1c710c3c 4242 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4243fi
4244
2aeb72e9
DD
4245echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4246echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4247if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4249else
4250 cat >conftest.adb <<EOF
4251procedure conftest is begin null; end conftest;
4252EOF
4253acx_cv_cc_gcc_supports_ada=no
4254# There is a bug in old released versions of GCC which causes the
4255# driver to exit successfully when the appropriate language module
4256# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4257# Therefore we must check for the error message as well as an
4258# unsuccessful exit.
1db673ca
RO
4259# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4260# given a .adb file, but produce no object file. So we must check
4261# if an object file was really produced to guard against this.
55ffb5ed 4262errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4263if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4264 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4265fi
4266rm -f conftest.*
4267fi
2aeb72e9
DD
4268echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4269echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4270
5305be7e 4271if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4272 have_gnat=yes
4273else
4274 have_gnat=no
4275fi
4276
2aeb72e9
DD
4277echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4278echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4279if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4281else
4282 echo abfoo >t1
4283 echo cdfoo >t2
4284 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4285 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4286 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4287 :
4288 else
4289 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4290 fi
4291 fi
a76494aa
PB
4292 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4293 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4294 :
a76494aa
PB
4295 else
4296 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4297 fi
4298 fi
4299 rm t1 t2
4300
4301fi
2aeb72e9
DD
4302echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4303echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4304do_compare="$gcc_cv_prog_cmp_skip"
4305
4306
55ffb5ed 4307
bebf829d 4308# Check for GMP and MPFR
e69bf64b 4309gmplibs="-lmpfr -lgmp"
6de9cd9a 4310gmpinc=
e69bf64b
PB
4311have_gmp=no
4312
bebf829d
PB
4313# Specify a location for mpfr
4314# check for this first so it ends up on the link line before gmp.
1c710c3c 4315
2aeb72e9 4316# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4317if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4318 withval="$with_mpfr_dir"
4319 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4320Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4321echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4322Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4323 { (exit 1); exit 1; }; }
2aeb72e9 4324fi;
bebf829d
PB
4325
4326
2aeb72e9 4327# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4328if test "${with_mpfr+set}" = set; then
2aeb72e9 4329 withval="$with_mpfr"
1c710c3c 4330
2aeb72e9 4331fi;
bebf829d 4332
2aeb72e9 4333# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4334if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4335 withval="$with_mpfr_include"
1c710c3c 4336
2aeb72e9 4337fi;
8a877c9c 4338
2aeb72e9 4339# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4340if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4341 withval="$with_mpfr_lib"
8a877c9c 4342
2aeb72e9 4343fi;
bebf829d
PB
4344
4345if test "x$with_mpfr" != x; then
4346 gmplibs="-L$with_mpfr/lib $gmplibs"
4347 gmpinc="-I$with_mpfr/include"
4348fi
8a877c9c
KG
4349if test "x$with_mpfr_include" != x; then
4350 gmpinc="-I$with_mpfr_include"
4351fi
4352if test "x$with_mpfr_lib" != x; then
4353 gmplibs="-L$with_mpfr_lib $gmplibs"
4354fi
e69bf64b
PB
4355if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4356 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4357 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4358 # Do not test the mpfr version. Assume that it is sufficient, since
4359 # it is in the source tree, and the library has not been built yet
4360 # but it would be included on the link line in the version check below
4361 # hence making the test fail.
4362 have_gmp=yes
4363fi
bebf829d 4364
6de9cd9a 4365# Specify a location for gmp
1c710c3c 4366
2aeb72e9 4367# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4368if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4369 withval="$with_gmp_dir"
4370 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4371Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4372echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4373Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4374 { (exit 1); exit 1; }; }
2aeb72e9 4375fi;
6de9cd9a 4376
6de9cd9a 4377
2aeb72e9 4378# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4379if test "${with_gmp+set}" = set; then
2aeb72e9 4380 withval="$with_gmp"
1c710c3c 4381
2aeb72e9 4382fi;
6de9cd9a 4383
2aeb72e9 4384# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4385if test "${with_gmp_include+set}" = set; then
2aeb72e9 4386 withval="$with_gmp_include"
1c710c3c 4387
2aeb72e9 4388fi;
8a877c9c 4389
2aeb72e9 4390# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4391if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4392 withval="$with_gmp_lib"
8a877c9c 4393
2aeb72e9 4394fi;
8a877c9c 4395
6de9cd9a 4396
bebf829d
PB
4397if test "x$with_gmp" != x; then
4398 gmplibs="-L$with_gmp/lib $gmplibs"
4399 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4400fi
8a877c9c
KG
4401if test "x$with_gmp_include" != x; then
4402 gmpinc="-I$with_gmp_include $gmpinc"
4403fi
4404if test "x$with_gmp_lib" != x; then
4405 gmplibs="-L$with_gmp_lib $gmplibs"
4406fi
e69bf64b
PB
4407if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4408 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4409 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4410 # Do not test the gmp version. Assume that it is sufficient, since
4411 # it is in the source tree, and the library has not been built yet
4412 # but it would be included on the link line in the version check below
4413 # hence making the test fail.
4414 have_gmp=yes
4415fi
6de9cd9a 4416
d943d7c4 4417if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4418 have_gmp=yes
4419 saved_CFLAGS="$CFLAGS"
4420 CFLAGS="$CFLAGS $gmpinc"
4421 # Check GMP actually works
2aeb72e9
DD
4422 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4423echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4424
4425cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
6de9cd9a 4431#include "gmp.h"
1c710c3c
DJ
4432int
4433main ()
4434{
6de9cd9a 4435
e69bf64b
PB
4436 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4437 choke me
4438 #endif
1c710c3c
DJ
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444rm -f conftest.$ac_objext
2aeb72e9
DD
4445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 echo "$as_me:$LINENO: result: yes" >&5
4467echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4468else
4469 echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
2aeb72e9
DD
4472echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4474fi
2aeb72e9 4475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4476
e69bf64b
PB
4477 if test x"$have_gmp" = xyes; then
4478 saved_LIBS="$LIBS"
4479 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4480 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4481echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4482 cat >conftest.$ac_ext <<_ACEOF
4483/* confdefs.h. */
4484_ACEOF
4485cat confdefs.h >>conftest.$ac_ext
4486cat >>conftest.$ac_ext <<_ACEOF
4487/* end confdefs.h. */
70ec446f 4488#include <gmp.h>
e69bf64b 4489 #include <mpfr.h>
1c710c3c
DJ
4490int
4491main ()
4492{
e48d66a9 4493
e69bf64b
PB
4494 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4495 choke me
4496 #endif
54e433bc
MK
4497 mpfr_t n;
4498 mpfr_t x;
e69bf64b 4499 int t;
54e433bc
MK
4500 mpfr_init (n);
4501 mpfr_init (x);
e69bf64b
PB
4502 mpfr_atan2 (n, n, x, GMP_RNDN);
4503 mpfr_erfc (n, x, GMP_RNDN);
4504 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4518 (exit $ac_status); } &&
4519 { ac_try='test -z "$ac_c_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest$ac_exeext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
1c710c3c
DJ
4532 cat >conftest.$ac_ext <<_ACEOF
4533/* confdefs.h. */
4534_ACEOF
4535cat confdefs.h >>conftest.$ac_ext
4536cat >>conftest.$ac_ext <<_ACEOF
4537/* end confdefs.h. */
a3993f33 4538#include <gmp.h>
e69bf64b 4539 #include <mpfr.h>
1c710c3c
DJ
4540int
4541main ()
4542{
a3993f33 4543
e69bf64b
PB
4544 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4545 choke me
4546 #endif
4547 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4548
4549 ;
4550 return 0;
4551}
4552_ACEOF
4553rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4555 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4556 ac_status=$?
4557 grep -v '^ *+' conftest.er1 >conftest.err
4558 rm -f conftest.er1
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4561 (exit $ac_status); } &&
4562 { ac_try='test -z "$ac_c_werror_flag"
4563 || test ! -s conftest.err'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest$ac_exeext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
4575 echo "$as_me:$LINENO: result: yes" >&5
4576echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
2aeb72e9
DD
4581echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4582echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4583fi
2aeb72e9 4584rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4585 conftest$ac_exeext conftest.$ac_ext
4586else
4587 echo "$as_me: failed program was:" >&5
4588sed 's/^/| /' conftest.$ac_ext >&5
4589
2aeb72e9
DD
4590echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4592fi
2aeb72e9 4593rm -f conftest.err conftest.$ac_objext \
1c710c3c 4594 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4595 LIBS="$saved_LIBS"
4596 fi
4597 CFLAGS="$saved_CFLAGS"
6de9cd9a 4598
e69bf64b 4599 if test x$have_gmp != xyes; then
1c710c3c
DJ
4600 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4601Try the --with-gmp and/or --with-mpfr options to specify their locations.
4602Copies of these libraries' source code can be found at their respective
4603hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4604See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4605If you obtained GMP and/or MPFR from a vendor distribution package, make
4606sure that you have installed both the libraries and the header files.
4607They may be located in separate packages." >&5
4608echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4609Try the --with-gmp and/or --with-mpfr options to specify their locations.
4610Copies of these libraries' source code can be found at their respective
4611hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4612See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4613If you obtained GMP and/or MPFR from a vendor distribution package, make
4614sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4615They may be located in separate packages." >&2;}
4616 { (exit 1); exit 1; }; }
e69bf64b 4617 fi
70ec446f
KG
4618fi
4619
bebf829d 4620# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4621
4622
4623
1e0f07d3 4624# By default, C is the only stage 1 language.
e1888513 4625stage1_languages=,c,
2805b53a 4626
55ffb5ed
NN
4627# Figure out what language subdirectories are present.
4628# Look if the user specified --enable-languages="..."; if not, use
4629# the environment variable $LANGUAGES if defined. $LANGUAGES might
4630# go away some day.
4631# NB: embedded tabs in this IF block -- do not untabify
4632if test -d ${srcdir}/gcc; then
4633 if test x"${enable_languages+set}" != xset; then
4634 if test x"${LANGUAGES+set}" = xset; then
4635 enable_languages="${LANGUAGES}"
4636 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4637 else
4638 enable_languages=all
4639 fi
4640 else
4641 if test x"${enable_languages}" = x ||
4642 test x"${enable_languages}" = xyes;
4643 then
4644 echo configure.in: --enable-languages needs at least one language argument 1>&2
4645 exit 1
4646 fi
4647 fi
4648 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4649
7f26dfa3
FXC
4650 # 'f95' is the old name for the 'fortran' language. We issue a warning
4651 # and make the substitution.
4652 case ,${enable_languages}, in
4653 *,f95,*)
4654 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4655 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4656 ;;
4657 esac
4658
55ffb5ed
NN
4659 # First scan to see if an enabled language requires some other language.
4660 # We assume that a given config-lang.in will list all the language
4661 # front ends it requires, even if some are required indirectly.
4662 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4663 case ${lang_frag} in
4664 ..) ;;
4665 # The odd quoting in the next line works around
4666 # an apparent bug in bash 1.12 on linux.
4667 ${srcdir}/gcc/[*]/config-lang.in) ;;
4668 *)
4669 # From the config-lang.in, get $language, $lang_requires
4670 language=
4671 lang_requires=
4672 . ${lang_frag}
4673 for other in ${lang_requires} ; do
4674 case ,${enable_languages}, in
4675 *,$other,*) ;;
4676 *,all,*) ;;
4677 *,$language,*)
4678 echo " \`$other' language required by \`$language'; enabling" 1>&2
4679 enable_languages="${enable_languages},${other}"
4680 ;;
4681 esac
4682 done
4683 ;;
4684 esac
4685 done
4686
e1888513 4687 new_enable_languages=,c,
55ffb5ed 4688 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4689 potential_languages=,c,
55ffb5ed
NN
4690
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 *)
1c710c3c 4698 # From the config-lang.in, get $language, $target_libs,
2805b53a 4699 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4700 language=
4701 target_libs=
4702 lang_dirs=
1546bb64 4703 subdir_requires=
e1888513
PB
4704 boot_language=no
4705 build_by_default=yes
55ffb5ed 4706 . ${lang_frag}
e1888513
PB
4707 if test x${language} = x; then
4708 echo "${lang_frag} doesn't set \$language." 1>&2
4709 exit 1
4710 fi
4711
4712 case ,${enable_languages}, in
4713 *,${language},*)
55ffb5ed
NN
4714 # Language was explicitly selected; include it.
4715 add_this_lang=yes
4716 ;;
e1888513
PB
4717 *,all,*)
4718 # 'all' was selected, select it if it is a default language
4719 add_this_lang=${build_by_default}
55ffb5ed
NN
4720 ;;
4721 *)
4722 add_this_lang=no
4723 ;;
4724 esac
6de9cd9a 4725
1546bb64 4726 # Disable languages that need other directories if these aren't available.
95695ad3 4727 for i in $subdir_requires; do
b6348cb3 4728 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4729 case ,${enable_languages}, in
4730 *,${language},*)
4731 # Specifically requested language; tell them.
1c710c3c
DJ
4732 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4733echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4734 { (exit 1); exit 1; }; }
1546bb64
PB
4735 ;;
4736 *)
4737 # Silently disable.
e1888513 4738 add_this_lang=unsupported
1546bb64
PB
4739 ;;
4740 esac
4741 done
4742
e1888513
PB
4743 # Disable Ada if no preexisting GNAT is available.
4744 case ,${enable_languages},:${language}:${have_gnat} in
4745 *,${language},*:ada:no)
4746 # Specifically requested language; tell them.
1c710c3c
DJ
4747 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4748echo "$as_me: error: GNAT is required to build $language" >&2;}
4749 { (exit 1); exit 1; }; }
e1888513
PB
4750 ;;
4751 *:ada:no)
4752 # Silently disable.
4753 add_this_lang=unsupported
4754 ;;
4755 esac
4756
4fab7234
HPN
4757 # Disable a language that is unsupported by the target.
4758 case " $unsupported_languages " in
4759 *" $language "*)
e1888513 4760 add_this_lang=unsupported
4fab7234
HPN
4761 ;;
4762 esac
4763
6de9cd9a 4764 case $add_this_lang in
e1888513 4765 unsupported)
55ffb5ed 4766 # Remove language-dependent dirs.
2805b53a
NN
4767 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4768 ;;
e1888513
PB
4769 no)
4770 # Remove language-dependent dirs; still show language as supported.
4771 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4772 potential_languages="${potential_languages}${language},"
4773 ;;
4774 yes)
4775 new_enable_languages="${new_enable_languages}${language},"
4776 potential_languages="${potential_languages}${language},"
2805b53a
NN
4777 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4778 case ${boot_language} in
4779 yes)
340de83f 4780 # Add to (comma-separated) list of stage 1 languages.
e1888513 4781 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4782 ;;
4783 esac
4784 ;;
55ffb5ed
NN
4785 esac
4786 ;;
4787 esac
4788 done
4789
2aeb72e9 4790 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4791if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4792 enableval="$enable_stage1_languages"
4793 case ,${enable_stage1_languages}, in
e1888513
PB
4794 ,no,|,,)
4795 # Set it to something that will have no effect in the loop below
4796 enable_stage1_languages=c ;;
4797 ,yes,)
4798 enable_stage1_languages=`echo $new_enable_languages | \
4799 sed -e "s/^,//" -e "s/,$//" ` ;;
4800 *,all,*)
4801 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4802 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4803 esac
4804
4805 # Add "good" languages from enable_stage1_languages to stage1_languages,
4806 # while "bad" languages go in missing_languages. Leave no duplicates.
4807 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4808 case $potential_languages in
4809 *,$i,*)
4810 case $stage1_languages in
4811 *,$i,*) ;;
4812 *) stage1_languages="$stage1_languages$i," ;;
4813 esac ;;
4814 *)
4815 case $missing_languages in
4816 *,$i,*) ;;
4817 *) missing_languages="$missing_languages$i," ;;
4818 esac ;;
4819 esac
4820 done
2aeb72e9 4821fi;
e1888513
PB
4822
4823 # Remove leading/trailing commas that were added for simplicity
4824 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4825 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4826 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4827 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4828
55ffb5ed 4829 if test "x$missing_languages" != x; then
1c710c3c 4830 { { echo "$as_me:$LINENO: error:
0cf085e4 4831The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4832Supported languages are: ${potential_languages}" >&5
4833echo "$as_me: error:
4834The following requested languages could not be built: ${missing_languages}
4835Supported languages are: ${potential_languages}" >&2;}
4836 { (exit 1); exit 1; }; }
55ffb5ed 4837 fi
55ffb5ed
NN
4838 if test "x$new_enable_languages" != "x$enable_languages"; then
4839 echo The following languages will be built: ${new_enable_languages}
e1888513 4840 enable_languages="$new_enable_languages"
55ffb5ed 4841 fi
e1888513 4842
1c710c3c 4843
b2eaac4a 4844 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4845fi
4846
27079765
AH
4847# Handle --disable-<component> generically.
4848for dir in $configdirs $build_configdirs $target_configdirs ; do
4849 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4850 if eval test x\${enable_${dirname}} "=" xno ; then
4851 noconfigdirs="$noconfigdirs $dir"
4852 fi
4853done
4854
7cd0cf9c 4855# Check for Boehm's garbage collector
2aeb72e9 4856# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4857if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4858 enableval="$enable_objc_gc"
4859 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4860 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4861 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4862echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4863 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4864 ;;
4865esac
2aeb72e9 4866fi;
7cd0cf9c
DA
4867
4868# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4869case ,${enable_languages},:${enable_objc_gc} in
4870 *,objc,*:yes)
7cd0cf9c
DA
4871 # Keep target-boehm-gc if requested for Objective-C.
4872 ;;
7cd0cf9c 4873 *)
2a79fd67
DA
4874 # Otherwise remove target-boehm-gc depending on target-libjava.
4875 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4876 noconfigdirs="$noconfigdirs target-boehm-gc"
4877 fi
7cd0cf9c
DA
4878 ;;
4879esac
4880
ee6a22df
L
4881# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4882# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4883# If we have the source for $noconfigdirs entries, add them to $notsupp.
4884
4885notsupp=""
4886for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4887 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4888 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4889 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4890 if test -r $srcdir/$dirname/configure ; then
4891 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4892 true
4893 else
4894 notsupp="$notsupp $dir"
4895 fi
4896 fi
4897 fi
ee6a22df
L
4898 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4899 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4900 if test -r $srcdir/$dirname/configure ; then
4901 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4902 true
4903 else
4904 notsupp="$notsupp $dir"
4905 fi
4906 fi
4907 fi
55ffb5ed
NN
4908 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4909 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4910 if test -r $srcdir/$dirname/configure ; then
4911 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4912 true
4913 else
4914 notsupp="$notsupp $dir"
4915 fi
4916 fi
4917 fi
4918done
4919
4920# Sometimes the tools are distributed with libiberty but with no other
4921# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4922# Don't let libgcc imply libiberty either.
55ffb5ed 4923if test -n "${target_configdirs}" ; then
54fdc474 4924 libgcc=
55ffb5ed
NN
4925 others=
4926 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4927 if test "$i" = "libgcc"; then
4928 libgcc=target-libgcc
4929 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4930 if test -r $srcdir/$i/configure ; then
4931 others=yes;
4932 break;
4933 fi
4934 fi
4935 done
4936 if test -z "${others}" ; then
54fdc474 4937 target_configdirs=$libgcc
55ffb5ed
NN
4938 fi
4939fi
4940
4941# Quietly strip out all directories which aren't configurable in this tree.
4942# This relies on all configurable subdirectories being autoconfiscated, which
4943# is now the case.
23f6b2f9
PB
4944build_configdirs_all="$build_configdirs"
4945build_configdirs=
4946for i in ${build_configdirs_all} ; do
1c710c3c 4947 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4948 if test -f ${srcdir}/$j/configure ; then
4949 build_configdirs="${build_configdirs} $i"
4950 fi
4951done
4952
55ffb5ed
NN
4953configdirs_all="$configdirs"
4954configdirs=
4955for i in ${configdirs_all} ; do
4956 if test -f ${srcdir}/$i/configure ; then
4957 configdirs="${configdirs} $i"
4958 fi
4959done
23f6b2f9 4960
55ffb5ed
NN
4961target_configdirs_all="$target_configdirs"
4962target_configdirs=
4963for i in ${target_configdirs_all} ; do
1c710c3c 4964 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4965 if test -f ${srcdir}/$j/configure ; then
4966 target_configdirs="${target_configdirs} $i"
4967 fi
4968done
4969
4970# Produce a warning message for the subdirs we can't configure.
4971# This isn't especially interesting in the Cygnus tree, but in the individual
4972# FSF releases, it's important to let people know when their machine isn't
4973# supported by the one or two programs in a package.
4974
4975if test -n "${notsupp}" && test -z "${norecursion}" ; then
4976 # If $appdirs is non-empty, at least one of those directories must still
4977 # be configured, or we error out. (E.g., if the gas release supports a
4978 # specified target in some subdirs but not the gas subdir, we shouldn't
4979 # pretend that all is well.)
4980 if test -n "$appdirs" ; then
4981 for dir in $appdirs ; do
4982 if test -r $dir/Makefile.in ; then
4983 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4984 appdirs=""
4985 break
4986 fi
23f6b2f9 4987 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4988 appdirs=""
4989 break
4990 fi
4991 fi
4992 done
4993 if test -n "$appdirs" ; then
4994 echo "*** This configuration is not supported by this package." 1>&2
4995 exit 1
4996 fi
4997 fi
4998 # Okay, some application will build, or we don't care to check. Still
4999 # notify of subdirs not getting built.
5000 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5001 echo " ${notsupp}" 1>&2
5002 echo " (Any other directories should still work fine.)" 1>&2
5003fi
5004
5005case "$host" in
5006 *msdosdjgpp*)
5007 enable_gdbtk=no ;;
5008esac
5009
c3a86da9
DJ
5010# To find our prefix, in gcc_cv_tool_prefix.
5011
5012# The user is always right.
5013if test "${PATH_SEPARATOR+set}" != set; then
5014 echo "#! /bin/sh" >conf$$.sh
5015 echo "exit 0" >>conf$$.sh
5016 chmod +x conf$$.sh
5017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5018 PATH_SEPARATOR=';'
5019 else
5020 PATH_SEPARATOR=:
5021 fi
5022 rm -f conf$$.sh
5023fi
5024
5025
5026
5027if test "x$exec_prefix" = xNONE; then
5028 if test "x$prefix" = xNONE; then
5029 gcc_cv_tool_prefix=$ac_default_prefix
5030 else
5031 gcc_cv_tool_prefix=$prefix
5032 fi
5033else
5034 gcc_cv_tool_prefix=$exec_prefix
5035fi
5036
5037# If there is no compiler in the tree, use the PATH only. In any
5038# case, if there is no compiler in the tree nobody should use
5039# AS_FOR_TARGET and LD_FOR_TARGET.
5040if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5041 gcc_version=`cat $srcdir/gcc/BASE-VER`
5042 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5043 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5044 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5045 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5046 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5048else
5049 gcc_cv_tool_dirs=
5050fi
5051
5052if test x$build = x$target && test -n "$md_exec_prefix"; then
5053 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5054fi
5055
5056
5057
55ffb5ed
NN
5058copy_dirs=
5059
1c710c3c 5060
2aeb72e9 5061# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5062if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5063 withval="$with_build_sysroot"
5064 if test x"$withval" != x ; then
526635cb
MM
5065 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5066 fi
5067else
5068 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5069fi;
526635cb
MM
5070
5071
55ffb5ed
NN
5072# Handle --with-headers=XXX. If the value is not "yes", the contents of
5073# the named directory are copied to $(tooldir)/sys-include.
5074if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5075 if test x${is_cross_compiler} = xno ; then
5076 echo 1>&2 '***' --with-headers is only supported when cross compiling
5077 exit 1
5078 fi
5079 if test x"${with_headers}" != xyes ; then
c3a86da9 5080 x=${gcc_cv_tool_prefix}
1c710c3c 5081 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5082 fi
5083fi
5084
5085# Handle --with-libs=XXX. If the value is not "yes", the contents of
5086# the name directories are copied to $(tooldir)/lib. Multiple directories
5087# are permitted.
5088if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5089 if test x${is_cross_compiler} = xno ; then
5090 echo 1>&2 '***' --with-libs is only supported when cross compiling
5091 exit 1
5092 fi
5093 if test x"${with_libs}" != xyes ; then
5094 # Copy the libraries in reverse order, so that files in the first named
5095 # library override files in subsequent libraries.
c3a86da9 5096 x=${gcc_cv_tool_prefix}
55ffb5ed 5097 for l in ${with_libs}; do
1c710c3c 5098 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5099 done
5100 fi
5101fi
5102
e8b05380
PB
5103# Set with_gnu_as and with_gnu_ld as appropriate.
5104#
5105# This is done by determining whether or not the appropriate directory
5106# is available, and by checking whether or not specific configurations
5107# have requested that this magic not happen.
1c710c3c
DJ
5108#
5109# The command line options always override the explicit settings in
e8b05380
PB
5110# configure.in, and the settings in configure.in override this magic.
5111#
1c710c3c 5112# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5113# want to do that, then you should use the --without-gnu-as and
5114# --without-gnu-ld options for the configure script.
5115
5116if test x${use_gnu_as} = x &&
5117 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5118 with_gnu_as=yes
5119 extra_host_args="$extra_host_args --with-gnu-as"
5120fi
5121
5122if test x${use_gnu_ld} = x &&
5123 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5124 with_gnu_ld=yes
5125 extra_host_args="$extra_host_args --with-gnu-ld"
5126fi
5127
5128# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5129# can detect this case.
5130
5131if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5132 with_newlib=yes
5133 extra_host_args="$extra_host_args --with-newlib"
5134fi
5135
55ffb5ed
NN
5136# Handle ${copy_dirs}
5137set fnord ${copy_dirs}
5138shift
5139while test $# != 0 ; do
5140 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5141 :
5142 else
5143 echo Copying $1 to $2
5144
5145 # Use the install script to create the directory and all required
5146 # parent directories.
5147 if test -d $2 ; then
5148 :
5149 else
5150 echo >config.temp
5151 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5152 fi
5153
5154 # Copy the directory, assuming we have tar.
5155 # FIXME: Should we use B in the second tar? Not all systems support it.
5156 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5157
5158 # It is the responsibility of the user to correctly adjust all
5159 # symlinks. If somebody can figure out how to handle them correctly
5160 # here, feel free to add the code.
5161
5162 echo $1 > $2/COPIED
5163 fi
5164 shift; shift
5165done
5166
e8b05380
PB
5167# Determine a target-dependent exec_prefix that the installed
5168# gcc will search in. Keep this list sorted by triplet, with
5169# the *-*-osname triplets last.
5170md_exec_prefix=
5171case "${target}" in
5172 alpha*-*-*vms*)
5173 md_exec_prefix=/gnu/lib/gcc-lib
5174 ;;
30b74385 5175 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5176 md_exec_prefix=/dev/env/DJDIR/bin
5177 ;;
30b74385 5178 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5179 if test $with_gnu_as = yes; then
5180 md_exec_prefix=/usr/gnu/bin
5181 else
5182 md_exec_prefix=/usr/ccs/bin/elf
5183 fi
5184 ;;
5185
5186 mn10300-*-* | \
5187 powerpc-*-chorusos* | \
5188 powerpc*-*-eabi* | \
5189 powerpc*-*-sysv* | \
5190 powerpc*-*-kaos* | \
5191 s390x-ibm-tpf*)
5192 md_exec_prefix=/usr/ccs/bin
5193 ;;
5194 sparc64-*-elf*)
5195 ;;
5196 v850*-*-*)
5197 md_exec_prefix=/usr/ccs/bin
5198 ;;
5199 xtensa-*-elf*)
5200 ;;
5201
5202 *-*-beos* | \
5203 *-*-elf* | \
5204 *-*-hpux* | \
5205 *-*-netware* | \
5206 *-*-nto-qnx* | \
5207 *-*-rtems* | \
5208 *-*-solaris2* | \
30b74385 5209 *-*-sysv[45]* | \
e8b05380
PB
5210 *-*-vxworks* | \
5211 *-wrs-windiss)
5212 md_exec_prefix=/usr/ccs/bin
5213 ;;
5214esac
5215
671aa708
NN
5216extra_arflags_for_target=
5217extra_nmflags_for_target=
5218extra_ranlibflags_for_target=
5219target_makefile_frag=/dev/null
5220case "${target}" in
3e19841a
PB
5221 mep*-*-*)
5222 target_makefile_frag="config/mt-mep"
5223 ;;
58e24147
AM
5224 spu-*-*)
5225 target_makefile_frag="config/mt-spu"
5226 ;;
61fec9ff 5227 *-*-netware*)
671aa708
NN
5228 target_makefile_frag="config/mt-netware"
5229 ;;
98a5bb3b
RM
5230 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5231 target_makefile_frag="config/mt-gnu"
671aa708
NN
5232 ;;
5233 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5234 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5235 # commands to handle both 32-bit and 64-bit objects. These flags are
5236 # harmless if we're using GNU nm or ar.
5237 extra_arflags_for_target=" -X32_64"
5238 extra_nmflags_for_target=" -B -X32_64"
5239 ;;
5240 *-*-darwin*)
5241 # ranlib from Darwin requires the -c flag to look at common symbols.
5242 extra_ranlibflags_for_target=" -c"
5243 ;;
5244 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5245 target_makefile_frag="config/mt-wince"
5246 ;;
5247esac
5248
5249alphaieee_frag=/dev/null
5250case $target in
5251 alpha*-*-*)
5252 # This just makes sure to use the -mieee option to build target libs.
5253 # This should probably be set individually by each library.
5254 alphaieee_frag="config/mt-alphaieee"
5255 ;;
5256esac
5257
5258# If --enable-target-optspace always use -Os instead of -O2 to build
5259# the target libraries, similarly if it is not specified, use -Os
5260# on selected platforms.
5261ospace_frag=/dev/null
5262case "${enable_target_optspace}:${target}" in
5263 yes:*)
5264 ospace_frag="config/mt-ospace"
5265 ;;
5266 :d30v-*)
5267 ospace_frag="config/mt-d30v"
5268 ;;
5269 :m32r-* | :d10v-* | :fr30-*)
5270 ospace_frag="config/mt-ospace"
5271 ;;
5272 no:* | :*)
5273 ;;
5274 *)
5275 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5276 ;;
5277esac
5278
671aa708
NN
5279# Default to using --with-stabs for certain targets.
5280if test x${with_stabs} = x ; then
5281 case "${target}" in
89a95129 5282 mips*-*-irix[56]*)
671aa708
NN
5283 ;;
5284 mips*-*-* | alpha*-*-osf*)
5285 with_stabs=yes;
5286 extra_host_args="${extra_host_args} --with-stabs"
5287 ;;
5288 esac
5289fi
5290
5291# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5292# them automatically.
5293case "${host}" in
1c710c3c 5294 hppa*64*-*-hpux11*)
671aa708
NN
5295 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5296 ;;
5297esac
5298
671aa708
NN
5299# Some systems (e.g., one of the i386-aix systems the gas testers are
5300# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5301tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5302build_tooldir=${tooldir}
5303
671aa708
NN
5304# Create a .gdbinit file which runs the one in srcdir
5305# and tells GDB to look there for source files.
5306
5307if test -r ${srcdir}/.gdbinit ; then
5308 case ${srcdir} in
5309 .) ;;
5310 *) cat > ./.gdbinit <<EOF
5311# ${NO_EDIT}
5312dir ${srcdir}
5313dir .
5314source ${srcdir}/.gdbinit
5315EOF
5316 ;;
5317 esac
5318fi
5319
671aa708
NN
5320# Make sure that the compiler is able to generate an executable. If it
5321# can't, we are probably in trouble. We don't care whether we can run the
5322# executable--we might be using a cross compiler--we only care whether it
5323# can be created. At this point the main configure script has set CC.
5324we_are_ok=no
5325echo "int main () { return 0; }" > conftest.c
5326${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5327if test $? = 0 ; then
5328 if test -s conftest || test -s conftest.exe ; then
5329 we_are_ok=yes
5330 fi
1c710c3c 5331fi
671aa708
NN
5332case $we_are_ok in
5333 no)
5334 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5335 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5336 rm -f conftest*
5337 exit 1
5338 ;;
5339esac
5340rm -f conftest*
5341
5342# The Solaris /usr/ucb/cc compiler does not appear to work.
5343case "${host}" in
5344 sparc-sun-solaris2*)
5345 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5346 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5347 could_use=
5348 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5349 if test -d /opt/cygnus/bin ; then
5350 if test "$could_use" = "" ; then
5351 could_use="/opt/cygnus/bin"
5352 else
5353 could_use="$could_use or /opt/cygnus/bin"
5354 fi
5355 fi
5356 if test "$could_use" = "" ; then
5357 echo "Warning: compilation may fail because you're using"
5358 echo "/usr/ucb/cc. You should change your PATH or CC "
5359 echo "variable and rerun configure."
5360 else
5361 echo "Warning: compilation may fail because you're using"
5362 echo "/usr/ucb/cc, when you should use the C compiler from"
5363 echo "$could_use. You should change your"
5364 echo "PATH or CC variable and rerun configure."
5365 fi
5366 fi
5367 ;;
5368esac
5369
671aa708
NN
5370case "${host}" in
5371 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5372 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5373 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5374esac
5375
5376# Record target_configdirs and the configure arguments for target and
5377# build configuration in Makefile.
5378target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5379build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5380
671aa708
NN
5381# Determine whether gdb needs tk/tcl or not.
5382# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5383# and in that case we want gdb to be built without tk. Ugh!
5384# In fact I believe gdb is the *only* package directly dependent on tk,
5385# so we should be able to put the 'maybe's in unconditionally and
5386# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5387# 100% sure that that's safe though.
e914a571 5388
b4f96efe 5389gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5390case "$enable_gdbtk" in
5391 no)
5392 GDB_TK="" ;;
e914a571
AC
5393 yes)
5394 GDB_TK="${gdb_tk}" ;;
671aa708 5395 *)
e914a571
AC
5396 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5397 # distro. Eventually someone will fix this and move Insight, nee
5398 # gdbtk to a separate directory.
5399 if test -d ${srcdir}/gdb/gdbtk ; then
5400 GDB_TK="${gdb_tk}"
5401 else
5402 GDB_TK=""
5403 fi
5404 ;;
671aa708 5405esac
ef9db8d5
DJ
5406CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5407INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5408
60975492 5409# Strip out unwanted targets.
8b87bb96
NN
5410
5411# While at that, we remove Makefiles if we were started for recursive
5412# configuration, so that the top-level Makefile reconfigures them,
5413# like we used to do when configure itself was recursive.
8b87bb96 5414
60975492
PB
5415# Loop over modules. $extrasub must be used with care, limiting as
5416# much as possible the usage of range addresses. That's because autoconf
5417# splits the sed script to overcome limits in the number of commands,
5418# and relying on carefully-timed sed passes may turn out to be very hard
5419# to maintain later. In this particular case, you just have to be careful
5420# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5421
2aeb72e9 5422# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5423if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5424 enableval="$enable_bootstrap"
5425
f516a7da 5426else
ce521a9c 5427 enable_bootstrap=default
2aeb72e9 5428fi;
f516a7da 5429
ce521a9c
PB
5430# Issue errors and warnings for invalid/strange bootstrap combinations.
5431case "$configdirs" in
5432 *gcc*) have_compiler=yes ;;
5433 *) have_compiler=no ;;
5434esac
5435
5436case "$have_compiler:$host:$target:$enable_bootstrap" in
5437 *:*:*:no) ;;
5438
1ca26cd2 5439 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5440 # and we are in a native configuration.
5441 yes:$build:$build:default)
1ca26cd2 5442 enable_bootstrap=yes ;;
ce521a9c
PB
5443
5444 *:*:*:default)
5445 enable_bootstrap=no ;;
5446
5447 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5448 yes:$build:$build:yes)
ce521a9c
PB
5449 ;;
5450
5451 # Other configurations, but we have a compiler. Assume the user knows
5452 # what he's doing.
2d309510 5453 yes:*:*:yes)
1c710c3c
DJ
5454 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5455echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5456 ;;
5457
5458 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5459 no:*:*:yes)
1c710c3c
DJ
5460 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5461echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5462 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5463
5464 # Fail if wrong command line
5465 *)
1c710c3c
DJ
5466 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5467echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5468 { (exit 1); exit 1; }; }
ce521a9c
PB
5469 ;;
5470esac
5471
5472# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5473case "$enable_bootstrap" in
5474 yes)
5607edfd 5475 bootstrap_suffix=bootstrap ;;
f516a7da 5476 no)
5607edfd 5477 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5478esac
5479
23f6b2f9 5480for module in ${build_configdirs} ; do
5607edfd
PB
5481 if test -z "${no_recursion}" \
5482 && test -f ${build_subdir}/${module}/Makefile; then
5483 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5484 rm -f ${build_subdir}/${module}/Makefile
5485 fi
5486 extrasub="$extrasub
5487/^@if build-$module\$/d
5488/^@endif build-$module\$/d
5489/^@if build-$module-$bootstrap_suffix\$/d
5490/^@endif build-$module-$bootstrap_suffix\$/d"
5491done
5492for module in ${configdirs} ; do
a6fbc1e2 5493 if test -z "${no_recursion}"; then
f063a9ed 5494 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5495 if test -f ${file}; then
5496 echo 1>&2 "*** removing ${file} to force reconfigure"
5497 rm -f ${file}
5498 fi
5499 done
5607edfd
PB
5500 fi
5501 extrasub="$extrasub
5502/^@if $module\$/d
5503/^@endif $module\$/d
5504/^@if $module-$bootstrap_suffix\$/d
5505/^@endif $module-$bootstrap_suffix\$/d"
5506done
5507for module in ${target_configdirs} ; do
5508 if test -z "${no_recursion}" \
5509 && test -f ${target_subdir}/${module}/Makefile; then
5510 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5511 rm -f ${target_subdir}/${module}/Makefile
5512 fi
5513 extrasub="$extrasub
5514/^@if target-$module\$/d
5515/^@endif target-$module\$/d
5516/^@if target-$module-$bootstrap_suffix\$/d
5517/^@endif target-$module-$bootstrap_suffix\$/d"
5518done
5519
60975492
PB
5520extrasub="$extrasub
5521/^@if /,/^@endif /d"
671aa708
NN
5522
5523# Create the serialization dependencies. This uses a temporary file.
5524
2aeb72e9 5525# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5526if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5527 enableval="$enable_serial_configure"
ade82b16 5528
2aeb72e9 5529fi;
ade82b16 5530
bf1d3e81
NN
5531case ${enable_serial_configure} in
5532 yes)
5533 enable_serial_build_configure=yes
5534 enable_serial_host_configure=yes
5535 enable_serial_target_configure=yes
5536 ;;
5537esac
5538
671aa708
NN
5539# These force 'configure's to be done one at a time, to avoid problems
5540# with contention over a shared config.cache.
5541rm -f serdep.tmp
ade82b16 5542echo '# serdep.tmp' > serdep.tmp
671aa708 5543olditem=
bf1d3e81 5544test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5545for item in ${build_configdirs} ; do
5546 case ${olditem} in
5547 "") ;;
ade82b16 5548 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5549 esac
5550 olditem=${item}
5551done
5552olditem=
bf1d3e81 5553test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5554for item in ${configdirs} ; do
5555 case ${olditem} in
5556 "") ;;
ade82b16 5557 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5558 esac
5559 olditem=${item}
5560done
5561olditem=
bf1d3e81 5562test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5563for item in ${target_configdirs} ; do
5564 case ${olditem} in
5565 "") ;;
ade82b16 5566 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5567 esac
5568 olditem=${item}
5569done
5570serialization_dependencies=serdep.tmp
5571
5572
ade82b16 5573# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5574# target, nonopt, and variable assignments. These are the ones we
5575# might not want to pass down to subconfigures. Also strip
5576# program-prefix, program-suffix, and program-transform-name, so that
5577# we can pass down a consistent program-transform-name.
5578baseargs=
5579keep_next=no
5580skip_next=no
5581eval "set -- $ac_configure_args"
44bfc3ac
DJ
5582for ac_arg
5583do
1c710c3c
DJ
5584 if test X"$skip_next" = X"yes"; then
5585 skip_next=no
5586 continue
5587 fi
5588 if test X"$keep_next" = X"yes"; then
5589 case $ac_arg in
5590 *\'*)
5591 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5592 esac
5593 baseargs="$baseargs '$ac_arg'"
5594 keep_next=no
5595 continue
5596 fi
5597
5598 # Handle separated arguments. Based on the logic generated by
5599 # autoconf 2.59.
5600 case $ac_arg in
5601 *=* | --config-cache | -C | -disable-* | --disable-* \
5602 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5603 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5604 | -with-* | --with-* | -without-* | --without-* | --x)
5605 separate_arg=no
5606 ;;
5607 -*)
5608 separate_arg=yes
5609 ;;
5610 *)
5611 separate_arg=no
5612 ;;
5613 esac
5614
5615 case "$ac_arg" in
5616 --no*)
5617 continue
5618 ;;
5619 --c* | \
5620 --sr* | \
5621 --ho* | \
5622 --bu* | \
5623 --t* | \
5624 --program-* | \
5625 -cache_file* | \
5626 -srcdir* | \
5627 -host* | \
5628 -build* | \
5629 -target* | \
5630 -program-prefix* | \
5631 -program-suffix* | \
5632 -program-transform-name* )
5633 skip_next=$separate_arg
5634 continue
5635 ;;
5636 -*)
5637 # An option. Add it.
5638 case $ac_arg in
5639 *\'*)
5640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5641 esac
5642 baseargs="$baseargs '$ac_arg'"
5643 keep_next=$separate_arg
5644 ;;
5645 *)
5646 # Either a variable assignment, or a nonopt (triplet). Don't
5647 # pass it down; let the Makefile handle this.
5648 continue
5649 ;;
5650 esac
5651done
5652# Remove the initial space we just introduced and, as these will be
5653# expanded by make, quote '$'.
5654baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5655
43bb47c2
DJ
5656# Add in --program-transform-name, after --program-prefix and
5657# --program-suffix have been applied to it. Autoconf has already
5658# doubled dollar signs and backslashes in program_transform_name; we want
5659# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5660# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5661# Also, because we want to override the logic in subdir configure scripts to
5662# choose program_transform_name, replace any s,x,x, with s,y,y,.
5663sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5664${program_transform_name}
5665EOF_SED
5666gcc_transform_name=`cat conftestsed.out`
5667rm -f conftestsed.out
5668baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5669if test "$silent" = yes; then
5670 baseargs="$baseargs --silent"
5671fi
43bb47c2 5672
671aa708
NN
5673# For the build-side libraries, we just need to pretend we're native,
5674# and not use the same cache file. Multilibs are neither needed nor
5675# desired.
e69bf64b 5676build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5677
5678# For host modules, accept cache file option, or specification as blank.
5679case "${cache_file}" in
5680"") # empty
5681 cache_file_option="" ;;
5682/* | [A-Za-z]:[\\/]* ) # absolute path
5683 cache_file_option="--cache-file=${cache_file}" ;;
5684*) # relative path
5685 cache_file_option="--cache-file=../${cache_file}" ;;
5686esac
5687
09438bde
NN
5688# Host dirs don't like to share a cache file either, horribly enough.
5689# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5690host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5691
5692target_configargs=${baseargs}
5693
5694# Passing a --with-cross-host argument lets the target libraries know
5695# whether they are being built with a cross-compiler or being built
5696# native. However, it would be better to use other mechanisms to make the
5697# sorts of decisions they want to make on this basis. Please consider
5698# this option to be deprecated. FIXME.
5699if test x${is_cross_compiler} = xyes ; then
1c710c3c 5700 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5701fi
5702
5703# Default to --enable-multilib.
5704if test x${enable_multilib} = x ; then
5705 target_configargs="--enable-multilib ${target_configargs}"
5706fi
5707
5708# Pass --with-newlib if appropriate. Note that target_configdirs has
5709# changed from the earlier setting of with_newlib.
5710if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5711 target_configargs="--with-newlib ${target_configargs}"
5712fi
5713
6b9eb62c
NN
5714# Different target subdirs use different values of certain variables
5715# (notably CXX). Worse, multilibs use *lots* of different values.
5716# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5717# it doesn't automatically accept command-line overrides of them.
5718# This means it's not safe for target subdirs to share a cache file,
5719# which is disgusting, but there you have it. Hopefully this can be
5720# fixed in future. It's still worthwhile to use a cache file for each
5721# directory. I think.
5722
bebcd931
MS
5723# Pass the appropriate --build, --host, --target and --cache-file arguments.
5724# We need to pass --target, as newer autoconf's requires consistency
5725# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5726target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5727
671aa708
NN
5728FLAGS_FOR_TARGET=
5729case " $target_configdirs " in
5730 *" newlib "*)
5731 case " $target_configargs " in
5732 *" --with-newlib "*)
5733 case "$target" in
5734 *-cygwin*)
aa8f1f57 5735 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
5736 esac
5737
5738 # If we're not building GCC, don't discard standard headers.
5739 if test -d ${srcdir}/gcc; then
5740 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5741
5742 if test "${build}" != "${host}"; then
5743 # On Canadian crosses, CC_FOR_TARGET will have already been set
5744 # by `configure', so we won't have an opportunity to add -Bgcc/
5745 # to it. This is right: we don't want to search that directory
5746 # for binaries, but we want the header files in there, so add
5747 # them explicitly.
215c351a 5748 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5749
5750 # Someone might think of using the pre-installed headers on
5751 # Canadian crosses, in case the installed compiler is not fully
5752 # compatible with the compiler being built. In this case, it
5753 # would be better to flag an error than risking having
5754 # incompatible object files being constructed. We can't
5755 # guarantee that an error will be flagged, but let's hope the
5756 # compiler will do it, when presented with incompatible header
5757 # files.
5758 fi
5759 fi
5760
5761 case "${target}-${is_cross_compiler}" in
f2a0e225 5762 i[3456789]86-*-linux*-no)
671aa708
NN
5763 # Here host == target, so we don't need to build gcc,
5764 # so we don't want to discard standard headers.
5765 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5766 ;;
5767 *)
5768 # If we're building newlib, use its generic headers last, but search
5769 # for any libc-related directories first (so make it the last -B
5770 # switch).
5771 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5772 ;;
5773 esac
5774 ;;
5775 esac
5776 ;;
5777esac
b91f0a41
CV
5778case "$target" in
5779*-mingw*)
5780 # Can't be handled as Cygwin above since Mingw does not use newlib.
5781 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' ;;
5782esac
671aa708 5783
6691a79e
ME
5784# Allow the user to override the flags for
5785# our build compiler if desired.
5786CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5787
671aa708
NN
5788# On Canadian crosses, we'll be searching the right directories for
5789# the previously-installed cross compiler, so don't bother to add
5790# flags for directories within the install tree of the compiler
5791# being built; programs in there won't even run.
5792if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5793 # Search for pre-installed headers if nothing else fits.
9124bc53 5794 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
5795fi
5796
5797if test "x${use_gnu_ld}" = x &&
5798 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5799 # Arrange for us to find uninstalled linker scripts.
215c351a 5800 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5801fi
5802
e88a2c09
DD
5803# Search for other target-specific linker scripts and such.
5804case "${target}" in
5805 m32c-*-* )
5806 if test -d ${srcdir}/libgloss/m32c; then
5807 # This is for crt0.o
5808 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5809 # This is for r8c.ld
5810 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5811 # This is for libnosys.a
5812 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5813 fi
5814 ;;
3e19841a
PB
5815 mep*)
5816 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5817 ;;
e88a2c09
DD
5818esac
5819
671aa708 5820# Makefile fragments.
7b61653a
PE
5821for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5822do
5823 eval fragval=\$$frag
5824 if test $fragval != /dev/null; then
5825 eval $frag=${srcdir}/$fragval
5826 fi
5827done
671aa708
NN
5828
5829
5830
5831
5832
5833# Miscellanea: directories, flags, etc.
5834
5835
5836
5837
5838
5839
5840
23f6b2f9 5841# Build module lists & subconfigure args.
671aa708
NN
5842
5843
5844
2abefe3d
PB
5845# Host module lists & subconfigure args.
5846
5847
5848
5849# Target module lists & subconfigure args.
5850
5851
5852
5853# Build tools.
5854
5855
5856
5857# Generate default definitions for YACC, M4, LEX and other programs that run
5858# on the build machine. These are used if the Makefile can't locate these
5859# programs in objdir.
5860MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5861
5862for ac_prog in 'bison -y' byacc yacc
5863do
1c710c3c 5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5865set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5866echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5868if test "${ac_cv_prog_YACC+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5870else
5871 if test -n "$YACC"; then
5872 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5873else
1c710c3c
DJ
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5881 ac_cv_prog_YACC="$ac_prog"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886done
5887
2abefe3d
PB
5888fi
5889fi
1c710c3c 5890YACC=$ac_cv_prog_YACC
2abefe3d 5891if test -n "$YACC"; then
2aeb72e9
DD
5892 echo "$as_me:$LINENO: result: $YACC" >&5
5893echo "${ECHO_T}$YACC" >&6
2abefe3d 5894else
2aeb72e9
DD
5895 echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6
2abefe3d
PB
5897fi
5898
1c710c3c 5899 test -n "$YACC" && break
2abefe3d
PB
5900done
5901test -n "$YACC" || YACC="$MISSING bison -y"
5902
5903case " $build_configdirs " in
5904 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5905 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5906esac
5907
5908for ac_prog in bison
5909do
1c710c3c 5910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5911set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5914if test "${ac_cv_prog_BISON+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5916else
5917 if test -n "$BISON"; then
5918 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5919else
1c710c3c
DJ
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5927 ac_cv_prog_BISON="$ac_prog"
5928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5930 fi
5931done
5932done
5933
2abefe3d
PB
5934fi
5935fi
1c710c3c 5936BISON=$ac_cv_prog_BISON
2abefe3d 5937if test -n "$BISON"; then
2aeb72e9
DD
5938 echo "$as_me:$LINENO: result: $BISON" >&5
5939echo "${ECHO_T}$BISON" >&6
2abefe3d 5940else
2aeb72e9
DD
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
2abefe3d
PB
5943fi
5944
1c710c3c 5945 test -n "$BISON" && break
2abefe3d
PB
5946done
5947test -n "$BISON" || BISON="$MISSING bison"
5948
5949case " $build_configdirs " in
5950 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5951esac
5952
5953for ac_prog in gm4 gnum4 m4
5954do
1c710c3c 5955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5956set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5957echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5959if test "${ac_cv_prog_M4+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5961else
5962 if test -n "$M4"; then
5963 ac_cv_prog_M4="$M4" # Let the user override the test.
5964else
1c710c3c
DJ
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5972 ac_cv_prog_M4="$ac_prog"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976done
5977done
5978
2abefe3d
PB
5979fi
5980fi
1c710c3c 5981M4=$ac_cv_prog_M4
2abefe3d 5982if test -n "$M4"; then
2aeb72e9
DD
5983 echo "$as_me:$LINENO: result: $M4" >&5
5984echo "${ECHO_T}$M4" >&6
2abefe3d 5985else
2aeb72e9
DD
5986 echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6
2abefe3d
PB
5988fi
5989
1c710c3c 5990 test -n "$M4" && break
2abefe3d
PB
5991done
5992test -n "$M4" || M4="$MISSING m4"
5993
5994case " $build_configdirs " in
5995 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5996esac
5997
5998for ac_prog in flex lex
5999do
1c710c3c 6000 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6001set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6002echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6004if test "${ac_cv_prog_LEX+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6006else
6007 if test -n "$LEX"; then
6008 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6009else
1c710c3c
DJ
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6017 ac_cv_prog_LEX="$ac_prog"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022done
6023
2abefe3d
PB
6024fi
6025fi
1c710c3c 6026LEX=$ac_cv_prog_LEX
2abefe3d 6027if test -n "$LEX"; then
2aeb72e9
DD
6028 echo "$as_me:$LINENO: result: $LEX" >&5
6029echo "${ECHO_T}$LEX" >&6
2abefe3d 6030else
2aeb72e9
DD
6031 echo "$as_me:$LINENO: result: no" >&5
6032echo "${ECHO_T}no" >&6
2abefe3d
PB
6033fi
6034
1c710c3c 6035 test -n "$LEX" && break
2abefe3d
PB
6036done
6037test -n "$LEX" || LEX="$MISSING flex"
6038
6039case " $build_configdirs " in
6040 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6041 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6042esac
6043
6044for ac_prog in flex
6045do
1c710c3c 6046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6047set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6048echo "$as_me:$LINENO: checking for $ac_word" >&5
6049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6050if test "${ac_cv_prog_FLEX+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6052else
6053 if test -n "$FLEX"; then
6054 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6055else
1c710c3c
DJ
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6063 ac_cv_prog_FLEX="$ac_prog"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067done
6068done
6069
2abefe3d
PB
6070fi
6071fi
1c710c3c 6072FLEX=$ac_cv_prog_FLEX
2abefe3d 6073if test -n "$FLEX"; then
2aeb72e9
DD
6074 echo "$as_me:$LINENO: result: $FLEX" >&5
6075echo "${ECHO_T}$FLEX" >&6
2abefe3d 6076else
2aeb72e9
DD
6077 echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6
2abefe3d
PB
6079fi
6080
1c710c3c 6081 test -n "$FLEX" && break
2abefe3d
PB
6082done
6083test -n "$FLEX" || FLEX="$MISSING flex"
6084
6085case " $build_configdirs " in
6086 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6087esac
6088
6089for ac_prog in makeinfo
6090do
1c710c3c 6091 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6092set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6093echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6095if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6097else
6098 if test -n "$MAKEINFO"; then
6099 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6100else
1c710c3c
DJ
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6108 ac_cv_prog_MAKEINFO="$ac_prog"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112done
6113done
6114
2abefe3d
PB
6115fi
6116fi
1c710c3c 6117MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6118if test -n "$MAKEINFO"; then
2aeb72e9
DD
6119 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6120echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6121else
2aeb72e9
DD
6122 echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6
2abefe3d
PB
6124fi
6125
1c710c3c 6126 test -n "$MAKEINFO" && break
2abefe3d
PB
6127done
6128test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6129
6130case " $build_configdirs " in
6131 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6132 *)
6133
27b6c940 6134 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
6135 # higher, else we use the "missing" dummy.
6136 if ${MAKEINFO} --version \
27b6c940 6137 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
6138 :
6139 else
6140 MAKEINFO="$MISSING makeinfo"
6141 fi
6142 ;;
6143
6144esac
671aa708 6145
2abefe3d 6146# FIXME: expect and dejagnu may become build tools?
671aa708 6147
2abefe3d
PB
6148for ac_prog in expect
6149do
1c710c3c 6150 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6151set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6152echo "$as_me:$LINENO: checking for $ac_word" >&5
6153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6154if test "${ac_cv_prog_EXPECT+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6156else
6157 if test -n "$EXPECT"; then
6158 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6159else
1c710c3c
DJ
6160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161for as_dir in $PATH
6162do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6167 ac_cv_prog_EXPECT="$ac_prog"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6170 fi
6171done
6172done
6173
2abefe3d
PB
6174fi
6175fi
1c710c3c 6176EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6177if test -n "$EXPECT"; then
2aeb72e9
DD
6178 echo "$as_me:$LINENO: result: $EXPECT" >&5
6179echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6180else
2aeb72e9
DD
6181 echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6
2abefe3d 6183fi
671aa708 6184
1c710c3c 6185 test -n "$EXPECT" && break
2abefe3d
PB
6186done
6187test -n "$EXPECT" || EXPECT="expect"
671aa708 6188
2abefe3d
PB
6189case " $configdirs " in
6190 *" expect "*)
6191 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6192 ;;
6193esac
671aa708 6194
2abefe3d
PB
6195for ac_prog in runtest
6196do
1c710c3c 6197 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6198set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6199echo "$as_me:$LINENO: checking for $ac_word" >&5
6200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6201if test "${ac_cv_prog_RUNTEST+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6203else
6204 if test -n "$RUNTEST"; then
6205 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6206else
1c710c3c
DJ
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6214 ac_cv_prog_RUNTEST="$ac_prog"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6217 fi
6218done
6219done
6220
2abefe3d
PB
6221fi
6222fi
1c710c3c 6223RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6224if test -n "$RUNTEST"; then
2aeb72e9
DD
6225 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6226echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6227else
2aeb72e9
DD
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
2abefe3d 6230fi
671aa708 6231
1c710c3c 6232 test -n "$RUNTEST" && break
2abefe3d
PB
6233done
6234test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6235
2abefe3d
PB
6236case " $configdirs " in
6237 *" dejagnu "*)
c394e891 6238 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6239 ;;
6240esac
671aa708
NN
6241
6242
671aa708 6243# Host tools.
ca9f4b81
AO
6244ncn_tool_prefix=
6245test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6246ncn_target_tool_prefix=
6247test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6248
278a7a38
AO
6249
6250
6251if test -n "$AR"; then
6252 ac_cv_prog_AR=$AR
6253elif test -n "$ac_cv_prog_AR"; then
6254 AR=$ac_cv_prog_AR
6255fi
6256
6257if test -n "$ac_cv_prog_AR"; then
6258 for ncn_progname in ar; do
6259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6260set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6261echo "$as_me:$LINENO: checking for $ac_word" >&5
6262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6263if test "${ac_cv_prog_AR+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 if test -n "$AR"; then
6267 ac_cv_prog_AR="$AR" # Let the user override the test.
6268else
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6276 ac_cv_prog_AR="${ncn_progname}"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280done
6281done
6282
6283fi
6284fi
6285AR=$ac_cv_prog_AR
6286if test -n "$AR"; then
2aeb72e9
DD
6287 echo "$as_me:$LINENO: result: $AR" >&5
6288echo "${ECHO_T}$AR" >&6
278a7a38 6289else
2aeb72e9
DD
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
278a7a38
AO
6292fi
6293
6294 done
6295fi
6296
6297for ncn_progname in ar; do
2693c0b0
PB
6298 if test -n "$ncn_tool_prefix"; then
6299 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6300set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6301echo "$as_me:$LINENO: checking for $ac_word" >&5
6302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6303if test "${ac_cv_prog_AR+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6305else
6306 if test -n "$AR"; then
6307 ac_cv_prog_AR="$AR" # Let the user override the test.
6308else
1c710c3c
DJ
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6316 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321done
6322
ca9f4b81
AO
6323fi
6324fi
1c710c3c 6325AR=$ac_cv_prog_AR
ca9f4b81 6326if test -n "$AR"; then
2aeb72e9
DD
6327 echo "$as_me:$LINENO: result: $AR" >&5
6328echo "${ECHO_T}$AR" >&6
ca9f4b81 6329else
2aeb72e9
DD
6330 echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6
ca9f4b81
AO
6332fi
6333
2693c0b0
PB
6334 fi
6335 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6337set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6338echo "$as_me:$LINENO: checking for $ac_word" >&5
6339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6340if test "${ac_cv_prog_AR+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6342else
2693c0b0 6343 if test -n "$AR"; then
af71363e
AS
6344 ac_cv_prog_AR="$AR" # Let the user override the test.
6345else
1c710c3c
DJ
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6353 ac_cv_prog_AR="${ncn_progname}"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357done
6358done
6359
ca9f4b81
AO
6360fi
6361fi
1c710c3c 6362AR=$ac_cv_prog_AR
2693c0b0 6363if test -n "$AR"; then
2aeb72e9
DD
6364 echo "$as_me:$LINENO: result: $AR" >&5
6365echo "${ECHO_T}$AR" >&6
ca9f4b81 6366else
2aeb72e9
DD
6367 echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
ca9f4b81 6369fi
1c710c3c 6370
2693c0b0
PB
6371 fi
6372 test -n "$ac_cv_prog_AR" && break
6373done
6374
6375if test -z "$ac_cv_prog_AR" ; then
6376 set dummy ar
6377 if test $build = $host ; then
6378 AR="$2"
ca9f4b81 6379 else
2693c0b0 6380 AR="${ncn_tool_prefix}$2"
ca9f4b81 6381 fi
ca9f4b81
AO
6382fi
6383
278a7a38
AO
6384
6385
6386if test -n "$AS"; then
6387 ac_cv_prog_AS=$AS
6388elif test -n "$ac_cv_prog_AS"; then
6389 AS=$ac_cv_prog_AS
6390fi
6391
6392if test -n "$ac_cv_prog_AS"; then
6393 for ncn_progname in as; do
6394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6395set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6396echo "$as_me:$LINENO: checking for $ac_word" >&5
6397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6398if test "${ac_cv_prog_AS+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 if test -n "$AS"; then
6402 ac_cv_prog_AS="$AS" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6411 ac_cv_prog_AS="${ncn_progname}"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415done
6416done
6417
6418fi
6419fi
6420AS=$ac_cv_prog_AS
6421if test -n "$AS"; then
2aeb72e9
DD
6422 echo "$as_me:$LINENO: result: $AS" >&5
6423echo "${ECHO_T}$AS" >&6
278a7a38 6424else
2aeb72e9
DD
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
278a7a38
AO
6427fi
6428
6429 done
6430fi
6431
6432for ncn_progname in as; do
2693c0b0
PB
6433 if test -n "$ncn_tool_prefix"; then
6434 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6435set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6436echo "$as_me:$LINENO: checking for $ac_word" >&5
6437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6438if test "${ac_cv_prog_AS+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6440else
6441 if test -n "$AS"; then
6442 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6443else
1c710c3c
DJ
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6451 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455done
6456done
6457
ca9f4b81
AO
6458fi
6459fi
1c710c3c 6460AS=$ac_cv_prog_AS
ca9f4b81 6461if test -n "$AS"; then
2aeb72e9
DD
6462 echo "$as_me:$LINENO: result: $AS" >&5
6463echo "${ECHO_T}$AS" >&6
ca9f4b81 6464else
2aeb72e9
DD
6465 echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6
ca9f4b81
AO
6467fi
6468
2693c0b0
PB
6469 fi
6470 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6472set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6473echo "$as_me:$LINENO: checking for $ac_word" >&5
6474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6475if test "${ac_cv_prog_AS+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6477else
2693c0b0
PB
6478 if test -n "$AS"; then
6479 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6480else
1c710c3c
DJ
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6488 ac_cv_prog_AS="${ncn_progname}"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493done
6494
ca9f4b81
AO
6495fi
6496fi
1c710c3c 6497AS=$ac_cv_prog_AS
2693c0b0 6498if test -n "$AS"; then
2aeb72e9
DD
6499 echo "$as_me:$LINENO: result: $AS" >&5
6500echo "${ECHO_T}$AS" >&6
ca9f4b81 6501else
2aeb72e9
DD
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
ca9f4b81 6504fi
1c710c3c 6505
2693c0b0
PB
6506 fi
6507 test -n "$ac_cv_prog_AS" && break
6508done
6509
6510if test -z "$ac_cv_prog_AS" ; then
6511 set dummy as
6512 if test $build = $host ; then
6513 AS="$2"
ca9f4b81 6514 else
2693c0b0 6515 AS="${ncn_tool_prefix}$2"
ca9f4b81 6516 fi
ca9f4b81
AO
6517fi
6518
278a7a38
AO
6519
6520
6521if test -n "$DLLTOOL"; then
6522 ac_cv_prog_DLLTOOL=$DLLTOOL
6523elif test -n "$ac_cv_prog_DLLTOOL"; then
6524 DLLTOOL=$ac_cv_prog_DLLTOOL
6525fi
6526
6527if test -n "$ac_cv_prog_DLLTOOL"; then
6528 for ncn_progname in dlltool; do
6529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6530set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6531echo "$as_me:$LINENO: checking for $ac_word" >&5
6532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6533if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536 if test -n "$DLLTOOL"; then
6537 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6546 ac_cv_prog_DLLTOOL="${ncn_progname}"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551done
6552
6553fi
6554fi
6555DLLTOOL=$ac_cv_prog_DLLTOOL
6556if test -n "$DLLTOOL"; then
2aeb72e9
DD
6557 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6558echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6559else
2aeb72e9
DD
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
278a7a38
AO
6562fi
6563
6564 done
6565fi
6566
6567for ncn_progname in dlltool; do
2693c0b0
PB
6568 if test -n "$ncn_tool_prefix"; then
6569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6570set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6571echo "$as_me:$LINENO: checking for $ac_word" >&5
6572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6573if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6575else
6576 if test -n "$DLLTOOL"; then
6577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6578else
1c710c3c
DJ
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6586 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590done
6591done
6592
ca9f4b81
AO
6593fi
6594fi
1c710c3c 6595DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6596if test -n "$DLLTOOL"; then
2aeb72e9
DD
6597 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6598echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6599else
2aeb72e9
DD
6600 echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6
ca9f4b81
AO
6602fi
6603
2693c0b0
PB
6604 fi
6605 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6607set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6608echo "$as_me:$LINENO: checking for $ac_word" >&5
6609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6610if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6612else
2693c0b0
PB
6613 if test -n "$DLLTOOL"; then
6614 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6615else
1c710c3c
DJ
6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6623 ac_cv_prog_DLLTOOL="${ncn_progname}"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627done
6628done
6629
ca9f4b81
AO
6630fi
6631fi
1c710c3c 6632DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6633if test -n "$DLLTOOL"; then
2aeb72e9
DD
6634 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6635echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6636else
2aeb72e9
DD
6637 echo "$as_me:$LINENO: result: no" >&5
6638echo "${ECHO_T}no" >&6
ca9f4b81 6639fi
1c710c3c 6640
2693c0b0
PB
6641 fi
6642 test -n "$ac_cv_prog_DLLTOOL" && break
6643done
6644
6645if test -z "$ac_cv_prog_DLLTOOL" ; then
6646 set dummy dlltool
6647 if test $build = $host ; then
6648 DLLTOOL="$2"
ca9f4b81 6649 else
2693c0b0 6650 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6651 fi
ca9f4b81
AO
6652fi
6653
278a7a38
AO
6654
6655
6656if test -n "$LD"; then
6657 ac_cv_prog_LD=$LD
6658elif test -n "$ac_cv_prog_LD"; then
6659 LD=$ac_cv_prog_LD
6660fi
6661
6662if test -n "$ac_cv_prog_LD"; then
6663 for ncn_progname in ld; do
6664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6665set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6668if test "${ac_cv_prog_LD+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671 if test -n "$LD"; then
6672 ac_cv_prog_LD="$LD" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6681 ac_cv_prog_LD="${ncn_progname}"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687
6688fi
6689fi
6690LD=$ac_cv_prog_LD
6691if test -n "$LD"; then
2aeb72e9
DD
6692 echo "$as_me:$LINENO: result: $LD" >&5
6693echo "${ECHO_T}$LD" >&6
278a7a38 6694else
2aeb72e9
DD
6695 echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
278a7a38
AO
6697fi
6698
6699 done
6700fi
6701
6702for ncn_progname in ld; do
2693c0b0
PB
6703 if test -n "$ncn_tool_prefix"; then
6704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6705set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6706echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6708if test "${ac_cv_prog_LD+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6710else
6711 if test -n "$LD"; then
6712 ac_cv_prog_LD="$LD" # Let the user override the test.
6713else
1c710c3c
DJ
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6721 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725done
6726done
6727
ca9f4b81
AO
6728fi
6729fi
1c710c3c 6730LD=$ac_cv_prog_LD
ca9f4b81 6731if test -n "$LD"; then
2aeb72e9
DD
6732 echo "$as_me:$LINENO: result: $LD" >&5
6733echo "${ECHO_T}$LD" >&6
ca9f4b81 6734else
2aeb72e9
DD
6735 echo "$as_me:$LINENO: result: no" >&5
6736echo "${ECHO_T}no" >&6
ca9f4b81
AO
6737fi
6738
2693c0b0
PB
6739 fi
6740 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6742set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6743echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6745if test "${ac_cv_prog_LD+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6747else
2693c0b0
PB
6748 if test -n "$LD"; then
6749 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6750else
1c710c3c
DJ
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6758 ac_cv_prog_LD="${ncn_progname}"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763done
6764
ca9f4b81
AO
6765fi
6766fi
1c710c3c 6767LD=$ac_cv_prog_LD
2693c0b0 6768if test -n "$LD"; then
2aeb72e9
DD
6769 echo "$as_me:$LINENO: result: $LD" >&5
6770echo "${ECHO_T}$LD" >&6
ca9f4b81 6771else
2aeb72e9
DD
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
ca9f4b81 6774fi
1c710c3c 6775
2693c0b0
PB
6776 fi
6777 test -n "$ac_cv_prog_LD" && break
6778done
6779
6780if test -z "$ac_cv_prog_LD" ; then
6781 set dummy ld
6782 if test $build = $host ; then
6783 LD="$2"
ca9f4b81 6784 else
2693c0b0 6785 LD="${ncn_tool_prefix}$2"
ca9f4b81 6786 fi
ca9f4b81
AO
6787fi
6788
278a7a38
AO
6789
6790
6791if test -n "$LIPO"; then
6792 ac_cv_prog_LIPO=$LIPO
6793elif test -n "$ac_cv_prog_LIPO"; then
6794 LIPO=$ac_cv_prog_LIPO
6795fi
6796
6797if test -n "$ac_cv_prog_LIPO"; then
6798 for ncn_progname in lipo; do
6799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6800set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6801echo "$as_me:$LINENO: checking for $ac_word" >&5
6802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6803if test "${ac_cv_prog_LIPO+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805else
6806 if test -n "$LIPO"; then
6807 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6816 ac_cv_prog_LIPO="${ncn_progname}"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822
6823fi
6824fi
6825LIPO=$ac_cv_prog_LIPO
6826if test -n "$LIPO"; then
2aeb72e9
DD
6827 echo "$as_me:$LINENO: result: $LIPO" >&5
6828echo "${ECHO_T}$LIPO" >&6
278a7a38 6829else
2aeb72e9
DD
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
278a7a38
AO
6832fi
6833
6834 done
6835fi
6836
6837for ncn_progname in lipo; do
2abefe3d
PB
6838 if test -n "$ncn_tool_prefix"; then
6839 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6840set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6841echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6843if test "${ac_cv_prog_LIPO+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6845else
6846 if test -n "$LIPO"; then
6847 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6848else
1c710c3c
DJ
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6856 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861done
6862
2abefe3d
PB
6863fi
6864fi
1c710c3c 6865LIPO=$ac_cv_prog_LIPO
2abefe3d 6866if test -n "$LIPO"; then
2aeb72e9
DD
6867 echo "$as_me:$LINENO: result: $LIPO" >&5
6868echo "${ECHO_T}$LIPO" >&6
2abefe3d 6869else
2aeb72e9
DD
6870 echo "$as_me:$LINENO: result: no" >&5
6871echo "${ECHO_T}no" >&6
2abefe3d
PB
6872fi
6873
6874 fi
6875 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6877set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6878echo "$as_me:$LINENO: checking for $ac_word" >&5
6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6880if test "${ac_cv_prog_LIPO+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6882else
6883 if test -n "$LIPO"; then
6884 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6885else
1c710c3c
DJ
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6893 ac_cv_prog_LIPO="${ncn_progname}"
6894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897done
6898done
6899
2abefe3d
PB
6900fi
6901fi
1c710c3c 6902LIPO=$ac_cv_prog_LIPO
2abefe3d 6903if test -n "$LIPO"; then
2aeb72e9
DD
6904 echo "$as_me:$LINENO: result: $LIPO" >&5
6905echo "${ECHO_T}$LIPO" >&6
2abefe3d 6906else
2aeb72e9
DD
6907 echo "$as_me:$LINENO: result: no" >&5
6908echo "${ECHO_T}no" >&6
2abefe3d 6909fi
1c710c3c 6910
2abefe3d
PB
6911 fi
6912 test -n "$ac_cv_prog_LIPO" && break
6913done
6914
6915if test -z "$ac_cv_prog_LIPO" ; then
6916 set dummy lipo
6917 if test $build = $host ; then
6918 LIPO="$2"
6919 else
6920 LIPO="${ncn_tool_prefix}$2"
6921 fi
6922fi
6923
278a7a38
AO
6924
6925
6926if test -n "$NM"; then
6927 ac_cv_prog_NM=$NM
6928elif test -n "$ac_cv_prog_NM"; then
6929 NM=$ac_cv_prog_NM
6930fi
6931
6932if test -n "$ac_cv_prog_NM"; then
6933 for ncn_progname in nm; do
6934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6935set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6936echo "$as_me:$LINENO: checking for $ac_word" >&5
6937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6938if test "${ac_cv_prog_NM+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6940else
6941 if test -n "$NM"; then
6942 ac_cv_prog_NM="$NM" # Let the user override the test.
6943else
1c710c3c
DJ
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947 IFS=$as_save_IFS
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6951 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955done
6956done
6957
ca9f4b81
AO
6958fi
6959fi
1c710c3c 6960NM=$ac_cv_prog_NM
ca9f4b81 6961if test -n "$NM"; then
2aeb72e9
DD
6962 echo "$as_me:$LINENO: result: $NM" >&5
6963echo "${ECHO_T}$NM" >&6
ca9f4b81 6964else
2aeb72e9
DD
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
ca9f4b81
AO
6967fi
6968
278a7a38
AO
6969 done
6970fi
6971
6972for ncn_progname in nm; do
6973 if test -n "$ncn_tool_prefix"; then
6974 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6975set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6976echo "$as_me:$LINENO: checking for $ac_word" >&5
6977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6978if test "${ac_cv_prog_NM+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6980else
2693c0b0
PB
6981 if test -n "$NM"; then
6982 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 6983else
1c710c3c
DJ
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6991 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995done
6996done
6997
ca9f4b81
AO
6998fi
6999fi
1c710c3c 7000NM=$ac_cv_prog_NM
2693c0b0 7001if test -n "$NM"; then
2aeb72e9
DD
7002 echo "$as_me:$LINENO: result: $NM" >&5
7003echo "${ECHO_T}$NM" >&6
ca9f4b81 7004else
2aeb72e9
DD
7005 echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6
ca9f4b81 7007fi
1c710c3c 7008
2693c0b0 7009 fi
278a7a38
AO
7010 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7012set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7013echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7015if test "${ac_cv_prog_NM+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 if test -n "$NM"; then
7019 ac_cv_prog_NM="$NM" # Let the user override the test.
7020else
7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022for as_dir in $PATH
7023do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7028 ac_cv_prog_NM="${ncn_progname}"
7029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032done
7033done
7034
7035fi
7036fi
7037NM=$ac_cv_prog_NM
7038if test -n "$NM"; then
2aeb72e9
DD
7039 echo "$as_me:$LINENO: result: $NM" >&5
7040echo "${ECHO_T}$NM" >&6
278a7a38 7041else
2aeb72e9
DD
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
278a7a38
AO
7044fi
7045
7046 fi
7047 test -n "$ac_cv_prog_NM" && break
7048done
7049
7050if test -z "$ac_cv_prog_NM" ; then
7051 set dummy nm
7052 if test $build = $host ; then
7053 NM="$2"
7054 else
7055 NM="${ncn_tool_prefix}$2"
7056 fi
7057fi
7058
7059
7060
7061if test -n "$RANLIB"; then
7062 ac_cv_prog_RANLIB=$RANLIB
7063elif test -n "$ac_cv_prog_RANLIB"; then
7064 RANLIB=$ac_cv_prog_RANLIB
7065fi
7066
7067if test -n "$ac_cv_prog_RANLIB"; then
7068 for ncn_progname in ranlib; do
7069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7070set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7071echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7073if test "${ac_cv_prog_RANLIB+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 if test -n "$RANLIB"; then
7077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7078else
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7086 ac_cv_prog_RANLIB="${ncn_progname}"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091done
7092
7093fi
7094fi
7095RANLIB=$ac_cv_prog_RANLIB
7096if test -n "$RANLIB"; then
2aeb72e9
DD
7097 echo "$as_me:$LINENO: result: $RANLIB" >&5
7098echo "${ECHO_T}$RANLIB" >&6
278a7a38 7099else
2aeb72e9
DD
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
278a7a38
AO
7102fi
7103
7104 done
7105fi
ca9f4b81 7106
278a7a38 7107for ncn_progname in ranlib; do
2693c0b0
PB
7108 if test -n "$ncn_tool_prefix"; then
7109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7110set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7111echo "$as_me:$LINENO: checking for $ac_word" >&5
7112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7113if test "${ac_cv_prog_RANLIB+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7115else
7116 if test -n "$RANLIB"; then
7117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7118else
1c710c3c
DJ
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7126 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130done
7131done
7132
ca9f4b81
AO
7133fi
7134fi
1c710c3c 7135RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7136if test -n "$RANLIB"; then
2aeb72e9
DD
7137 echo "$as_me:$LINENO: result: $RANLIB" >&5
7138echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7139else
2aeb72e9
DD
7140 echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6
ca9f4b81
AO
7142fi
7143
2693c0b0
PB
7144 fi
7145 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7147set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7148echo "$as_me:$LINENO: checking for $ac_word" >&5
7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7150if test "${ac_cv_prog_RANLIB+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7152else
2693c0b0
PB
7153 if test -n "$RANLIB"; then
7154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7155else
1c710c3c
DJ
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7163 ac_cv_prog_RANLIB="${ncn_progname}"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7166 fi
7167done
7168done
7169
ca9f4b81
AO
7170fi
7171fi
1c710c3c 7172RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7173if test -n "$RANLIB"; then
2aeb72e9
DD
7174 echo "$as_me:$LINENO: result: $RANLIB" >&5
7175echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7176else
2aeb72e9
DD
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
ca9f4b81 7179fi
1c710c3c 7180
ca9f4b81 7181 fi
2693c0b0
PB
7182 test -n "$ac_cv_prog_RANLIB" && break
7183done
7184
7185if test -z "$ac_cv_prog_RANLIB" ; then
7186 RANLIB=":"
ca9f4b81
AO
7187fi
7188
278a7a38
AO
7189
7190
7191if test -n "$STRIP"; then
7192 ac_cv_prog_STRIP=$STRIP
7193elif test -n "$ac_cv_prog_STRIP"; then
7194 STRIP=$ac_cv_prog_STRIP
7195fi
7196
7197if test -n "$ac_cv_prog_STRIP"; then
7198 for ncn_progname in strip; do
7199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7200set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7203if test "${ac_cv_prog_STRIP+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205else
7206 if test -n "$STRIP"; then
7207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7216 ac_cv_prog_STRIP="${ncn_progname}"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221done
7222
7223fi
7224fi
7225STRIP=$ac_cv_prog_STRIP
7226if test -n "$STRIP"; then
2aeb72e9
DD
7227 echo "$as_me:$LINENO: result: $STRIP" >&5
7228echo "${ECHO_T}$STRIP" >&6
278a7a38 7229else
2aeb72e9
DD
7230 echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
278a7a38
AO
7232fi
7233
7234 done
7235fi
7236
7237for ncn_progname in strip; do
2abefe3d
PB
7238 if test -n "$ncn_tool_prefix"; then
7239 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7240set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7241echo "$as_me:$LINENO: checking for $ac_word" >&5
7242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7243if test "${ac_cv_prog_STRIP+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7245else
7246 if test -n "$STRIP"; then
7247 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7248else
1c710c3c
DJ
7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7256 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262
2abefe3d
PB
7263fi
7264fi
1c710c3c 7265STRIP=$ac_cv_prog_STRIP
2abefe3d 7266if test -n "$STRIP"; then
2aeb72e9
DD
7267 echo "$as_me:$LINENO: result: $STRIP" >&5
7268echo "${ECHO_T}$STRIP" >&6
2abefe3d 7269else
2aeb72e9
DD
7270 echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6
2abefe3d
PB
7272fi
7273
7274 fi
7275 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7277set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7278echo "$as_me:$LINENO: checking for $ac_word" >&5
7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7280if test "${ac_cv_prog_STRIP+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7282else
7283 if test -n "$STRIP"; then
7284 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7285else
1c710c3c
DJ
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7293 ac_cv_prog_STRIP="${ncn_progname}"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297done
7298done
7299
2abefe3d
PB
7300fi
7301fi
1c710c3c 7302STRIP=$ac_cv_prog_STRIP
2abefe3d 7303if test -n "$STRIP"; then
2aeb72e9
DD
7304 echo "$as_me:$LINENO: result: $STRIP" >&5
7305echo "${ECHO_T}$STRIP" >&6
2abefe3d 7306else
2aeb72e9
DD
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
2abefe3d 7309fi
1c710c3c 7310
2abefe3d
PB
7311 fi
7312 test -n "$ac_cv_prog_STRIP" && break
7313done
7314
7315if test -z "$ac_cv_prog_STRIP" ; then
7316 STRIP=":"
7317fi
7318
278a7a38
AO
7319
7320
7321if test -n "$WINDRES"; then
7322 ac_cv_prog_WINDRES=$WINDRES
7323elif test -n "$ac_cv_prog_WINDRES"; then
7324 WINDRES=$ac_cv_prog_WINDRES
7325fi
7326
7327if test -n "$ac_cv_prog_WINDRES"; then
7328 for ncn_progname in windres; do
7329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7330set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7331echo "$as_me:$LINENO: checking for $ac_word" >&5
7332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7333if test "${ac_cv_prog_WINDRES+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336 if test -n "$WINDRES"; then
7337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7338else
7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7346 ac_cv_prog_WINDRES="${ncn_progname}"
7347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350done
7351done
7352
7353fi
7354fi
7355WINDRES=$ac_cv_prog_WINDRES
7356if test -n "$WINDRES"; then
2aeb72e9
DD
7357 echo "$as_me:$LINENO: result: $WINDRES" >&5
7358echo "${ECHO_T}$WINDRES" >&6
278a7a38 7359else
2aeb72e9
DD
7360 echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6
278a7a38
AO
7362fi
7363
7364 done
7365fi
7366
7367for ncn_progname in windres; do
2693c0b0
PB
7368 if test -n "$ncn_tool_prefix"; then
7369 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7370set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7371echo "$as_me:$LINENO: checking for $ac_word" >&5
7372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7373if test "${ac_cv_prog_WINDRES+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7375else
7376 if test -n "$WINDRES"; then
7377 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7378else
1c710c3c
DJ
7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380for as_dir in $PATH
7381do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7386 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390done
7391done
7392
ca9f4b81
AO
7393fi
7394fi
1c710c3c 7395WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7396if test -n "$WINDRES"; then
2aeb72e9
DD
7397 echo "$as_me:$LINENO: result: $WINDRES" >&5
7398echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7399else
2aeb72e9
DD
7400 echo "$as_me:$LINENO: result: no" >&5
7401echo "${ECHO_T}no" >&6
ca9f4b81
AO
7402fi
7403
2693c0b0
PB
7404 fi
7405 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7407set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7408echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7410if test "${ac_cv_prog_WINDRES+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7412else
2693c0b0
PB
7413 if test -n "$WINDRES"; then
7414 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7415else
1c710c3c
DJ
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7423 ac_cv_prog_WINDRES="${ncn_progname}"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427done
7428done
7429
ca9f4b81
AO
7430fi
7431fi
1c710c3c 7432WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7433if test -n "$WINDRES"; then
2aeb72e9
DD
7434 echo "$as_me:$LINENO: result: $WINDRES" >&5
7435echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7436else
2aeb72e9
DD
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
ca9f4b81 7439fi
1c710c3c 7440
2693c0b0
PB
7441 fi
7442 test -n "$ac_cv_prog_WINDRES" && break
7443done
7444
7445if test -z "$ac_cv_prog_WINDRES" ; then
7446 set dummy windres
7447 if test $build = $host ; then
7448 WINDRES="$2"
ca9f4b81 7449 else
2693c0b0 7450 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7451 fi
ca9f4b81
AO
7452fi
7453
278a7a38
AO
7454
7455
901119ae
KT
7456if test -n "$WINDMC"; then
7457 ac_cv_prog_WINDMC=$WINDMC
7458elif test -n "$ac_cv_prog_WINDMC"; then
7459 WINDMC=$ac_cv_prog_WINDMC
7460fi
7461
7462if test -n "$ac_cv_prog_WINDMC"; then
7463 for ncn_progname in windmc; do
7464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7465set dummy ${ncn_progname}; ac_word=$2
7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7468if test "${ac_cv_prog_WINDMC+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 if test -n "$WINDMC"; then
7472 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_WINDMC="${ncn_progname}"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487
7488fi
7489fi
7490WINDMC=$ac_cv_prog_WINDMC
7491if test -n "$WINDMC"; then
7492 echo "$as_me:$LINENO: result: $WINDMC" >&5
7493echo "${ECHO_T}$WINDMC" >&6
7494else
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
7497fi
7498
7499 done
7500fi
7501
7502for ncn_progname in windmc; do
7503 if test -n "$ncn_tool_prefix"; then
7504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7505set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7506echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508if test "${ac_cv_prog_WINDMC+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 if test -n "$WINDMC"; then
7512 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525done
7526done
7527
7528fi
7529fi
7530WINDMC=$ac_cv_prog_WINDMC
7531if test -n "$WINDMC"; then
7532 echo "$as_me:$LINENO: result: $WINDMC" >&5
7533echo "${ECHO_T}$WINDMC" >&6
7534else
7535 echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6
7537fi
7538
7539 fi
7540 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7542set dummy ${ncn_progname}; ac_word=$2
7543echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545if test "${ac_cv_prog_WINDMC+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 if test -n "$WINDMC"; then
7549 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_WINDMC="${ncn_progname}"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
7563done
7564
7565fi
7566fi
7567WINDMC=$ac_cv_prog_WINDMC
7568if test -n "$WINDMC"; then
7569 echo "$as_me:$LINENO: result: $WINDMC" >&5
7570echo "${ECHO_T}$WINDMC" >&6
7571else
7572 echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574fi
7575
7576 fi
7577 test -n "$ac_cv_prog_WINDMC" && break
7578done
7579
7580if test -z "$ac_cv_prog_WINDMC" ; then
7581 set dummy windmc
7582 if test $build = $host ; then
7583 WINDMC="$2"
7584 else
7585 WINDMC="${ncn_tool_prefix}$2"
7586 fi
7587fi
7588
7589
7590
278a7a38
AO
7591if test -n "$OBJCOPY"; then
7592 ac_cv_prog_OBJCOPY=$OBJCOPY
7593elif test -n "$ac_cv_prog_OBJCOPY"; then
7594 OBJCOPY=$ac_cv_prog_OBJCOPY
7595fi
7596
7597if test -n "$ac_cv_prog_OBJCOPY"; then
7598 for ncn_progname in objcopy; do
7599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7600set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7601echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7603if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606 if test -n "$OBJCOPY"; then
7607 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7608else
7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7616 ac_cv_prog_OBJCOPY="${ncn_progname}"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622
7623fi
7624fi
7625OBJCOPY=$ac_cv_prog_OBJCOPY
7626if test -n "$OBJCOPY"; then
2aeb72e9
DD
7627 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7628echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7629else
2aeb72e9
DD
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
278a7a38
AO
7632fi
7633
7634 done
7635fi
7636
7637for ncn_progname in objcopy; do
2693c0b0
PB
7638 if test -n "$ncn_tool_prefix"; then
7639 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7640set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7641echo "$as_me:$LINENO: checking for $ac_word" >&5
7642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7643if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7645else
7646 if test -n "$OBJCOPY"; then
7647 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7648else
1c710c3c
DJ
7649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650for as_dir in $PATH
7651do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7656 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660done
7661done
7662
ca9f4b81
AO
7663fi
7664fi
1c710c3c 7665OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7666if test -n "$OBJCOPY"; then
2aeb72e9
DD
7667 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7668echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7669else
2aeb72e9
DD
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
ca9f4b81
AO
7672fi
7673
2693c0b0
PB
7674 fi
7675 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7677set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7678echo "$as_me:$LINENO: checking for $ac_word" >&5
7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7680if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7682else
2693c0b0
PB
7683 if test -n "$OBJCOPY"; then
7684 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7685else
1c710c3c
DJ
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7693 ac_cv_prog_OBJCOPY="${ncn_progname}"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697done
7698done
7699
ca9f4b81
AO
7700fi
7701fi
1c710c3c 7702OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7703if test -n "$OBJCOPY"; then
2aeb72e9
DD
7704 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7705echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7706else
2aeb72e9
DD
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
ca9f4b81 7709fi
1c710c3c 7710
2693c0b0
PB
7711 fi
7712 test -n "$ac_cv_prog_OBJCOPY" && break
7713done
7714
7715if test -z "$ac_cv_prog_OBJCOPY" ; then
7716 set dummy objcopy
7717 if test $build = $host ; then
7718 OBJCOPY="$2"
ca9f4b81 7719 else
2693c0b0 7720 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7721 fi
ca9f4b81
AO
7722fi
7723
278a7a38
AO
7724
7725
7726if test -n "$OBJDUMP"; then
7727 ac_cv_prog_OBJDUMP=$OBJDUMP
7728elif test -n "$ac_cv_prog_OBJDUMP"; then
7729 OBJDUMP=$ac_cv_prog_OBJDUMP
7730fi
7731
7732if test -n "$ac_cv_prog_OBJDUMP"; then
7733 for ncn_progname in objdump; do
7734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7735set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7736echo "$as_me:$LINENO: checking for $ac_word" >&5
7737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7738if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741 if test -n "$OBJDUMP"; then
7742 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7751 ac_cv_prog_OBJDUMP="${ncn_progname}"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757
7758fi
7759fi
7760OBJDUMP=$ac_cv_prog_OBJDUMP
7761if test -n "$OBJDUMP"; then
2aeb72e9
DD
7762 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7763echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7764else
2aeb72e9
DD
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
278a7a38
AO
7767fi
7768
7769 done
7770fi
7771
7772for ncn_progname in objdump; do
2693c0b0
PB
7773 if test -n "$ncn_tool_prefix"; then
7774 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7775set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7776echo "$as_me:$LINENO: checking for $ac_word" >&5
7777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7778if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7780else
7781 if test -n "$OBJDUMP"; then
7782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7783else
1c710c3c
DJ
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7791 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796done
7797
ca9f4b81
AO
7798fi
7799fi
1c710c3c 7800OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7801if test -n "$OBJDUMP"; then
2aeb72e9
DD
7802 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7803echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7804else
2aeb72e9
DD
7805 echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6
ca9f4b81
AO
7807fi
7808
2693c0b0
PB
7809 fi
7810 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7812set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7813echo "$as_me:$LINENO: checking for $ac_word" >&5
7814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7815if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7817else
2693c0b0
PB
7818 if test -n "$OBJDUMP"; then
7819 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7820else
1c710c3c
DJ
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7828 ac_cv_prog_OBJDUMP="${ncn_progname}"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832done
7833done
7834
ca9f4b81
AO
7835fi
7836fi
1c710c3c 7837OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7838if test -n "$OBJDUMP"; then
2aeb72e9
DD
7839 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7840echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7841else
2aeb72e9
DD
7842 echo "$as_me:$LINENO: result: no" >&5
7843echo "${ECHO_T}no" >&6
ca9f4b81 7844fi
1c710c3c 7845
2693c0b0
PB
7846 fi
7847 test -n "$ac_cv_prog_OBJDUMP" && break
7848done
7849
7850if test -z "$ac_cv_prog_OBJDUMP" ; then
7851 set dummy objdump
7852 if test $build = $host ; then
7853 OBJDUMP="$2"
ca9f4b81 7854 else
2693c0b0 7855 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7856 fi
ca9f4b81
AO
7857fi
7858
671aa708
NN
7859
7860
7861
7862
7863
7864
2abefe3d 7865# Target tools.
1c710c3c 7866
2aeb72e9 7867# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7868if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7869 withval="$with_build_time_tools"
7870 case x"$withval" in
e8b05380
PB
7871 x/*) ;;
7872 *)
7873 with_build_time_tools=
1c710c3c
DJ
7874 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7875echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7876 ;;
7877 esac
ca9f4b81 7878else
e8b05380 7879 with_build_time_tools=
2aeb72e9 7880fi;
ca9f4b81 7881
278a7a38
AO
7882
7883
7884if test -n "$CC_FOR_TARGET"; then
7885 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7886elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7887 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7888fi
7889
7890if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7891 for ncn_progname in cc gcc; do
7892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7893set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7894echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7896if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898else
7899 if test -n "$CC_FOR_TARGET"; then
7900 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7901else
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7909 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914done
7915
7916fi
7917fi
7918CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7919if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7920 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7921echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 7922else
2aeb72e9
DD
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
278a7a38
AO
7925fi
7926
7927 done
7928fi
7929
7930if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7931 for ncn_progname in cc gcc; do
2aeb72e9
DD
7932 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7933echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7934 if test -x $with_build_time_tools/${ncn_progname}; then
7935 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
7936 echo "$as_me:$LINENO: result: yes" >&5
7937echo "${ECHO_T}yes" >&6
72a7ab82 7938 break
e8b05380 7939 else
2aeb72e9
DD
7940 echo "$as_me:$LINENO: result: no" >&5
7941echo "${ECHO_T}no" >&6
72a7ab82
AP
7942 fi
7943 done
4de997d1
PB
7944fi
7945
e8b05380
PB
7946if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7947 for ncn_progname in cc gcc; do
7948 if test -n "$ncn_target_tool_prefix"; then
7949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7950set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7951echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7953if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7955else
7956 if test -n "$CC_FOR_TARGET"; then
7957 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7958else
1c710c3c
DJ
7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
7961do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7966 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970done
7971done
7972
4de997d1
PB
7973fi
7974fi
1c710c3c 7975CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 7976if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7977 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7978echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 7979else
2aeb72e9
DD
7980 echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
4de997d1
PB
7982fi
7983
e8b05380
PB
7984 fi
7985 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7987set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7988echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7990if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7992else
2693c0b0
PB
7993 if test -n "$CC_FOR_TARGET"; then
7994 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 7995else
1c710c3c
DJ
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8003 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007done
8008done
8009
4de997d1
PB
8010fi
8011fi
1c710c3c 8012CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8013if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8014 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8015echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8016else
2aeb72e9
DD
8017 echo "$as_me:$LINENO: result: no" >&5
8018echo "${ECHO_T}no" >&6
4de997d1 8019fi
1c710c3c 8020
e8b05380
PB
8021 fi
8022 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8023 done
8024fi
1c710c3c 8025
2693c0b0
PB
8026if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8027 set dummy cc gcc
8028 if test $build = $target ; then
8029 CC_FOR_TARGET="$2"
4de997d1 8030 else
2693c0b0 8031 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8032 fi
1c00b503
PB
8033else
8034 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8035fi
8036
278a7a38
AO
8037
8038
8039if test -n "$CXX_FOR_TARGET"; then
8040 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8041elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8042 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8043fi
8044
8045if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8046 for ncn_progname in c++ g++ cxx gxx; do
8047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8048set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8051if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 if test -n "$CXX_FOR_TARGET"; then
8055 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8056else
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8064 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
8071fi
8072fi
8073CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8074if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8075 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8076echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8077else
2aeb72e9
DD
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
278a7a38
AO
8080fi
8081
8082 done
8083fi
8084
8085if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8086 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8087 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8088echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8089 if test -x $with_build_time_tools/${ncn_progname}; then
8090 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8091 echo "$as_me:$LINENO: result: yes" >&5
8092echo "${ECHO_T}yes" >&6
e8b05380
PB
8093 break
8094 else
2aeb72e9
DD
8095 echo "$as_me:$LINENO: result: no" >&5
8096echo "${ECHO_T}no" >&6
e8b05380
PB
8097 fi
8098 done
8099fi
8100
8101if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8102 for ncn_progname in c++ g++ cxx gxx; do
8103 if test -n "$ncn_target_tool_prefix"; then
8104 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8105set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8106echo "$as_me:$LINENO: checking for $ac_word" >&5
8107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8108if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8110else
8111 if test -n "$CXX_FOR_TARGET"; then
8112 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8113else
1c710c3c
DJ
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8121 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125done
8126done
8127
4de997d1
PB
8128fi
8129fi
1c710c3c 8130CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8131if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8132 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8133echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8134else
2aeb72e9
DD
8135 echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
4de997d1
PB
8137fi
8138
e8b05380
PB
8139 fi
8140 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8142set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8143echo "$as_me:$LINENO: checking for $ac_word" >&5
8144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8145if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8147else
2693c0b0
PB
8148 if test -n "$CXX_FOR_TARGET"; then
8149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8150else
1c710c3c
DJ
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162done
8163done
8164
4de997d1
PB
8165fi
8166fi
1c710c3c 8167CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8168if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8169 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8170echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8171else
2aeb72e9
DD
8172 echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6
4de997d1 8174fi
1c710c3c 8175
e8b05380
PB
8176 fi
8177 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8178 done
8179fi
1c710c3c 8180
2693c0b0
PB
8181if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8182 set dummy c++ g++ cxx gxx
8183 if test $build = $target ; then
8184 CXX_FOR_TARGET="$2"
4de997d1 8185 else
2693c0b0 8186 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8187 fi
1c00b503
PB
8188else
8189 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8190fi
8191
278a7a38
AO
8192
8193
8194if test -n "$GCC_FOR_TARGET"; then
8195 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8196elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8197 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8198fi
8199
8200if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8201 for ncn_progname in gcc; do
8202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8203set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8204echo "$as_me:$LINENO: checking for $ac_word" >&5
8205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8206if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 if test -n "$GCC_FOR_TARGET"; then
8210 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8211else
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8219 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224done
8225
8226fi
8227fi
8228GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8229if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8230 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8231echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8232else
2aeb72e9
DD
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
278a7a38
AO
8235fi
8236
8237 done
8238fi
8239
8240if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8241 for ncn_progname in gcc; do
2aeb72e9
DD
8242 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8243echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8244 if test -x $with_build_time_tools/${ncn_progname}; then
8245 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8246 echo "$as_me:$LINENO: result: yes" >&5
8247echo "${ECHO_T}yes" >&6
e8b05380
PB
8248 break
8249 else
2aeb72e9
DD
8250 echo "$as_me:$LINENO: result: no" >&5
8251echo "${ECHO_T}no" >&6
e8b05380
PB
8252 fi
8253 done
8254fi
8255
8256if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8257 for ncn_progname in gcc; do
8258 if test -n "$ncn_target_tool_prefix"; then
8259 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8260set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8261echo "$as_me:$LINENO: checking for $ac_word" >&5
8262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8263if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8265else
e8b05380
PB
8266 if test -n "$GCC_FOR_TARGET"; then
8267 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8268else
1c710c3c
DJ
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8276 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280done
8281done
8282
ca9f4b81
AO
8283fi
8284fi
1c710c3c 8285GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8286if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8287 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8288echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8289else
2aeb72e9
DD
8290 echo "$as_me:$LINENO: result: no" >&5
8291echo "${ECHO_T}no" >&6
ca9f4b81
AO
8292fi
8293
e8b05380
PB
8294 fi
8295 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8297set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8298echo "$as_me:$LINENO: checking for $ac_word" >&5
8299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8300if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8302else
e8b05380
PB
8303 if test -n "$GCC_FOR_TARGET"; then
8304 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8305else
1c710c3c
DJ
8306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8313 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8316 fi
8317done
8318done
8319
ca9f4b81
AO
8320fi
8321fi
1c710c3c 8322GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8323if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8324 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8325echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8326else
2aeb72e9
DD
8327 echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6
ca9f4b81 8329fi
1c710c3c 8330
e8b05380
PB
8331 fi
8332 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8333 done
8334fi
1c710c3c 8335
e8b05380
PB
8336if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8337 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8338else
8339 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8340fi
8341
278a7a38
AO
8342
8343
8344if test -n "$GCJ_FOR_TARGET"; then
8345 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8346elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8347 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8348fi
8349
8350if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8351 for ncn_progname in gcj; do
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8354echo "$as_me:$LINENO: checking for $ac_word" >&5
8355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8356if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359 if test -n "$GCJ_FOR_TARGET"; then
8360 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8369 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373done
8374done
8375
8376fi
8377fi
8378GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8379if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8380 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8381echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8382else
2aeb72e9
DD
8383 echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6
278a7a38
AO
8385fi
8386
8387 done
8388fi
8389
8390if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8391 for ncn_progname in gcj; do
2aeb72e9
DD
8392 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8393echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8394 if test -x $with_build_time_tools/${ncn_progname}; then
8395 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
e8b05380
PB
8398 break
8399 else
2aeb72e9
DD
8400 echo "$as_me:$LINENO: result: no" >&5
8401echo "${ECHO_T}no" >&6
e8b05380
PB
8402 fi
8403 done
8404fi
8405
8406if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8407 for ncn_progname in gcj; do
8408 if test -n "$ncn_target_tool_prefix"; then
8409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8411echo "$as_me:$LINENO: checking for $ac_word" >&5
8412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8413if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8414 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8415else
fb0103e5
RG
8416 if test -n "$GCJ_FOR_TARGET"; then
8417 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8418else
1c710c3c
DJ
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8426 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8429 fi
8430done
8431done
8432
e8b05380
PB
8433fi
8434fi
278a7a38
AO
8435GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8436if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8437 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8438echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8439else
2aeb72e9
DD
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
278a7a38
AO
8442fi
8443
8444 fi
8445 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8447set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8448echo "$as_me:$LINENO: checking for $ac_word" >&5
8449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8450if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452else
8453 if test -n "$GCJ_FOR_TARGET"; then
8454 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8455else
8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457for as_dir in $PATH
8458do
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8463 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467done
8468done
8469
8470fi
8471fi
8472GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8473if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8474 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8475echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8476else
2aeb72e9
DD
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
278a7a38
AO
8479fi
8480
8481 fi
8482 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8483 done
8484fi
8485
8486if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8487 set dummy gcj
8488 if test $build = $target ; then
8489 GCJ_FOR_TARGET="$2"
8490 else
8491 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8492 fi
1c00b503
PB
8493else
8494 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8495fi
8496
8497
8498
8499if test -n "$GFORTRAN_FOR_TARGET"; then
8500 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8501elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8502 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8503fi
8504
278a7a38
AO
8505if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8506 for ncn_progname in gfortran; do
8507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8508set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8509echo "$as_me:$LINENO: checking for $ac_word" >&5
8510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8511if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8512 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8513else
278a7a38
AO
8514 if test -n "$GFORTRAN_FOR_TARGET"; then
8515 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8516else
1c710c3c
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8524 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529done
8530
e8b05380
PB
8531fi
8532fi
278a7a38
AO
8533GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8534if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8535 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8536echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8537else
2aeb72e9
DD
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
e8b05380 8540fi
1c710c3c 8541
e8b05380
PB
8542 done
8543fi
1c710c3c 8544
278a7a38 8545if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8546 for ncn_progname in gfortran; do
2aeb72e9
DD
8547 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8548echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8549 if test -x $with_build_time_tools/${ncn_progname}; then
8550 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8551 echo "$as_me:$LINENO: result: yes" >&5
8552echo "${ECHO_T}yes" >&6
e8b05380
PB
8553 break
8554 else
2aeb72e9
DD
8555 echo "$as_me:$LINENO: result: no" >&5
8556echo "${ECHO_T}no" >&6
e8b05380
PB
8557 fi
8558 done
8559fi
8560
8561if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8562 for ncn_progname in gfortran; do
8563 if test -n "$ncn_target_tool_prefix"; then
8564 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8565set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8566echo "$as_me:$LINENO: checking for $ac_word" >&5
8567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8568if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8570else
8571 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8572 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8573else
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8581 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585done
8586done
8587
e8b05380
PB
8588fi
8589fi
1c710c3c 8590GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8591if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8592 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8593echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8594else
2aeb72e9
DD
8595 echo "$as_me:$LINENO: result: no" >&5
8596echo "${ECHO_T}no" >&6
e8b05380
PB
8597fi
8598
8599 fi
8600 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8603echo "$as_me:$LINENO: checking for $ac_word" >&5
8604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8605if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8607else
8608 if test -n "$GFORTRAN_FOR_TARGET"; then
8609 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8610else
1c710c3c
DJ
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8618 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622done
8623done
8624
e8b05380
PB
8625fi
8626fi
1c710c3c 8627GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8628if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8629 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8630echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8631else
2aeb72e9
DD
8632 echo "$as_me:$LINENO: result: no" >&5
8633echo "${ECHO_T}no" >&6
e8b05380 8634fi
1c710c3c 8635
e8b05380
PB
8636 fi
8637 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8638 done
8639fi
1c710c3c 8640
e8b05380
PB
8641if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8642 set dummy gfortran
2693c0b0 8643 if test $build = $target ; then
e8b05380 8644 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8645 else
e8b05380
PB
8646 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8647 fi
1c00b503
PB
8648else
8649 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8650fi
8651
8652
8653
e8b05380
PB
8654cat > conftest.c << \EOF
8655#ifdef __GNUC__
8656 gcc_yay;
8657#endif
8658EOF
8659if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8660 have_gcc_for_target=yes
8661else
8662 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8663 have_gcc_for_target=no
8664fi
8665rm conftest.c
8666
8667
8668
8669
8670if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8671 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8672 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8673echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8674 if test -x $with_build_time_tools/ar; then
8675 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8676 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8677 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8678echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8679 else
2aeb72e9
DD
8680 echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
d1f8db0c 8682 fi
e8b05380
PB
8683 elif test $build != $host && test $have_gcc_for_target = yes; then
8684 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8685 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8686 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8687 fi
8688fi
3e19841a 8689if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8690 # Extract the first word of "ar", so it can be a program name with args.
8691set dummy ar; ac_word=$2
2aeb72e9
DD
8692echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8694if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8696else
1c710c3c
DJ
8697 case $AR_FOR_TARGET in
8698 [\\/]* | ?:[\\/]*)
e8b05380
PB
8699 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8700 ;;
e8b05380 8701 *)
1c710c3c
DJ
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $gcc_cv_tool_dirs
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8709 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713done
8714done
8715
e8b05380
PB
8716 ;;
8717esac
8718fi
1c710c3c 8719AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8720
e8b05380 8721if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8722 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8723echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8724else
2aeb72e9
DD
8725 echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6
4de997d1
PB
8727fi
8728
e8b05380
PB
8729fi
8730if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8731
8732
8733if test -n "$AR_FOR_TARGET"; then
8734 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8735elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8736 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8737fi
8738
8739if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8740 for ncn_progname in ar; do
8741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8742set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8743echo "$as_me:$LINENO: checking for $ac_word" >&5
8744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8745if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748 if test -n "$AR_FOR_TARGET"; then
8749 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8750else
8751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752for as_dir in $PATH
8753do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8758 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762done
8763done
8764
8765fi
8766fi
8767AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8768if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8769 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8770echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8771else
2aeb72e9
DD
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
278a7a38
AO
8774fi
8775
8776 done
8777fi
8778
8779if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8780 for ncn_progname in ar; do
2aeb72e9
DD
8781 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8782echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8783 if test -x $with_build_time_tools/${ncn_progname}; then
8784 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8785 echo "$as_me:$LINENO: result: yes" >&5
8786echo "${ECHO_T}yes" >&6
e8b05380
PB
8787 break
8788 else
2aeb72e9
DD
8789 echo "$as_me:$LINENO: result: no" >&5
8790echo "${ECHO_T}no" >&6
e8b05380
PB
8791 fi
8792 done
8793fi
8794
8795if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8796 for ncn_progname in ar; do
8797 if test -n "$ncn_target_tool_prefix"; then
8798 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8799set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8800echo "$as_me:$LINENO: checking for $ac_word" >&5
8801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8802if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8804else
e8b05380
PB
8805 if test -n "$AR_FOR_TARGET"; then
8806 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8807else
1c710c3c
DJ
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8815 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8818 fi
8819done
8820done
8821
4de997d1
PB
8822fi
8823fi
1c710c3c 8824AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8825if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8826 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8827echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8828else
2aeb72e9
DD
8829 echo "$as_me:$LINENO: result: no" >&5
8830echo "${ECHO_T}no" >&6
4de997d1
PB
8831fi
8832
e8b05380
PB
8833 fi
8834 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8837echo "$as_me:$LINENO: checking for $ac_word" >&5
8838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8839if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8841else
8842 if test -n "$AR_FOR_TARGET"; then
8843 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8844else
1c710c3c
DJ
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8852 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8855 fi
8856done
8857done
8858
e8b05380
PB
8859fi
8860fi
1c710c3c 8861AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8862if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8863 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8864echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8865else
2aeb72e9
DD
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
e8b05380 8868fi
1c710c3c 8869
e8b05380
PB
8870 fi
8871 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8872 done
8873fi
1c710c3c 8874
e8b05380
PB
8875if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8876 set dummy ar
8877 if test $build = $target ; then
8878 AR_FOR_TARGET="$2"
8879 else
8880 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8881 fi
1c00b503
PB
8882else
8883 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8884fi
8885
d1f8db0c
PB
8886else
8887 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8888fi
8889
8890
8891
8892
8893if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8894 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8895 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8896echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8897 if test -x $with_build_time_tools/as; then
8898 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8899 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
8900 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8901echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8902 else
2aeb72e9
DD
8903 echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
d1f8db0c 8905 fi
e8b05380
PB
8906 elif test $build != $host && test $have_gcc_for_target = yes; then
8907 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
8908 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8909 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
8910 fi
8911fi
3e19841a 8912if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8913 # Extract the first word of "as", so it can be a program name with args.
8914set dummy as; ac_word=$2
2aeb72e9
DD
8915echo "$as_me:$LINENO: checking for $ac_word" >&5
8916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8917if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8919else
1c710c3c
DJ
8920 case $AS_FOR_TARGET in
8921 [\\/]* | ?:[\\/]*)
e8b05380
PB
8922 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8923 ;;
e8b05380 8924 *)
1c710c3c
DJ
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926for as_dir in $gcc_cv_tool_dirs
8927do
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8932 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8935 fi
8936done
8937done
8938
e8b05380
PB
8939 ;;
8940esac
8941fi
1c710c3c 8942AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 8943
e8b05380 8944if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
8945 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8946echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8947else
2aeb72e9
DD
8948 echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
e8b05380
PB
8950fi
8951
8952fi
8953if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
8954
8955
8956if test -n "$AS_FOR_TARGET"; then
8957 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8958elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8959 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8960fi
8961
8962if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8963 for ncn_progname in as; do
8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8966echo "$as_me:$LINENO: checking for $ac_word" >&5
8967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8968if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970else
8971 if test -n "$AS_FOR_TARGET"; then
8972 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8973else
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8981 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
8982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985done
8986done
8987
8988fi
8989fi
8990AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8991if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
8992 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8993echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 8994else
2aeb72e9
DD
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
278a7a38
AO
8997fi
8998
8999 done
9000fi
9001
9002if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9003 for ncn_progname in as; do
2aeb72e9
DD
9004 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9005echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9006 if test -x $with_build_time_tools/${ncn_progname}; then
9007 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9008 echo "$as_me:$LINENO: result: yes" >&5
9009echo "${ECHO_T}yes" >&6
e8b05380
PB
9010 break
9011 else
2aeb72e9
DD
9012 echo "$as_me:$LINENO: result: no" >&5
9013echo "${ECHO_T}no" >&6
e8b05380
PB
9014 fi
9015 done
9016fi
9017
9018if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9019 for ncn_progname in as; do
9020 if test -n "$ncn_target_tool_prefix"; then
9021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9022set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9023echo "$as_me:$LINENO: checking for $ac_word" >&5
9024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9025if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9027else
9028 if test -n "$AS_FOR_TARGET"; then
9029 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9030else
1c710c3c
DJ
9031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in $PATH
9033do
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9038 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042done
9043done
9044
e8b05380
PB
9045fi
9046fi
1c710c3c 9047AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9048if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9049 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9050echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9051else
2aeb72e9
DD
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
e8b05380
PB
9054fi
9055
9056 fi
9057 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9059set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9060echo "$as_me:$LINENO: checking for $ac_word" >&5
9061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9062if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9064else
e8b05380
PB
9065 if test -n "$AS_FOR_TARGET"; then
9066 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9067else
1c710c3c
DJ
9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9075 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9078 fi
9079done
9080done
9081
4de997d1
PB
9082fi
9083fi
1c710c3c 9084AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9085if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9086 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9087echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9088else
2aeb72e9
DD
9089 echo "$as_me:$LINENO: result: no" >&5
9090echo "${ECHO_T}no" >&6
4de997d1 9091fi
1c710c3c 9092
e8b05380
PB
9093 fi
9094 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9095 done
9096fi
1c710c3c 9097
e8b05380
PB
9098if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9099 set dummy as
9100 if test $build = $target ; then
9101 AS_FOR_TARGET="$2"
9102 else
9103 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9104 fi
1c00b503
PB
9105else
9106 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9107fi
2693c0b0 9108
d1f8db0c
PB
9109else
9110 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9111fi
9112
e8b05380
PB
9113
9114
9115
9116if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9117 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9118 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9119echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9120 if test -x $with_build_time_tools/dlltool; then
9121 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9122 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9123 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9124echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9125 else
2aeb72e9
DD
9126 echo "$as_me:$LINENO: result: no" >&5
9127echo "${ECHO_T}no" >&6
d1f8db0c 9128 fi
e8b05380
PB
9129 elif test $build != $host && test $have_gcc_for_target = yes; then
9130 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9131 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9132 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9133 fi
9134fi
3e19841a 9135if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9136 # Extract the first word of "dlltool", so it can be a program name with args.
9137set dummy dlltool; ac_word=$2
2aeb72e9
DD
9138echo "$as_me:$LINENO: checking for $ac_word" >&5
9139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9140if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9141 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9142else
1c710c3c
DJ
9143 case $DLLTOOL_FOR_TARGET in
9144 [\\/]* | ?:[\\/]*)
e8b05380
PB
9145 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9146 ;;
e8b05380 9147 *)
1c710c3c
DJ
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149for as_dir in $gcc_cv_tool_dirs
9150do
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9155 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9158 fi
9159done
9160done
9161
e8b05380
PB
9162 ;;
9163esac
4de997d1 9164fi
1c710c3c 9165DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9166
e8b05380 9167if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9168 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9169echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9170else
2aeb72e9
DD
9171 echo "$as_me:$LINENO: result: no" >&5
9172echo "${ECHO_T}no" >&6
4de997d1
PB
9173fi
9174
e8b05380
PB
9175fi
9176if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9177
9178
9179if test -n "$DLLTOOL_FOR_TARGET"; then
9180 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9181elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9182 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9183fi
9184
9185if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9186 for ncn_progname in dlltool; do
9187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9188set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9189echo "$as_me:$LINENO: checking for $ac_word" >&5
9190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9191if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9193else
9194 if test -n "$DLLTOOL_FOR_TARGET"; then
9195 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9196else
9197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198for as_dir in $PATH
9199do
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9204 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9207 fi
9208done
9209done
9210
9211fi
9212fi
9213DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9214if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9215 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9216echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9217else
2aeb72e9
DD
9218 echo "$as_me:$LINENO: result: no" >&5
9219echo "${ECHO_T}no" >&6
278a7a38
AO
9220fi
9221
9222 done
9223fi
9224
9225if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9226 for ncn_progname in dlltool; do
2aeb72e9
DD
9227 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9228echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9229 if test -x $with_build_time_tools/${ncn_progname}; then
9230 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9231 echo "$as_me:$LINENO: result: yes" >&5
9232echo "${ECHO_T}yes" >&6
e8b05380
PB
9233 break
9234 else
2aeb72e9
DD
9235 echo "$as_me:$LINENO: result: no" >&5
9236echo "${ECHO_T}no" >&6
e8b05380
PB
9237 fi
9238 done
9239fi
9240
9241if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9242 for ncn_progname in dlltool; do
9243 if test -n "$ncn_target_tool_prefix"; then
9244 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9245set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9246echo "$as_me:$LINENO: checking for $ac_word" >&5
9247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9248if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9250else
e8b05380
PB
9251 if test -n "$DLLTOOL_FOR_TARGET"; then
9252 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9253else
1c710c3c
DJ
9254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255for as_dir in $PATH
9256do
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9261 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9263 break 2
9264 fi
9265done
9266done
9267
4de997d1
PB
9268fi
9269fi
1c710c3c 9270DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9271if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9272 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9273echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9274else
2aeb72e9
DD
9275 echo "$as_me:$LINENO: result: no" >&5
9276echo "${ECHO_T}no" >&6
4de997d1 9277fi
4de997d1 9278
e8b05380
PB
9279 fi
9280 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9282set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9283echo "$as_me:$LINENO: checking for $ac_word" >&5
9284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9285if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9287else
e8b05380
PB
9288 if test -n "$DLLTOOL_FOR_TARGET"; then
9289 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9290else
1c710c3c
DJ
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9298 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9301 fi
9302done
9303done
9304
4de997d1
PB
9305fi
9306fi
1c710c3c 9307DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9308if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9309 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9310echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9311else
2aeb72e9
DD
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
4de997d1 9314fi
1c710c3c 9315
e8b05380
PB
9316 fi
9317 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9318 done
9319fi
1c710c3c 9320
e8b05380
PB
9321if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9322 set dummy dlltool
9323 if test $build = $target ; then
9324 DLLTOOL_FOR_TARGET="$2"
9325 else
9326 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9327 fi
1c00b503
PB
9328else
9329 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9330fi
9331
d1f8db0c
PB
9332else
9333 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9334fi
9335
4de997d1 9336
e8b05380
PB
9337
9338
9339if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9340 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9341 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9342echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9343 if test -x $with_build_time_tools/ld; then
9344 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9345 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9346 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9347echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9348 else
2aeb72e9
DD
9349 echo "$as_me:$LINENO: result: no" >&5
9350echo "${ECHO_T}no" >&6
d1f8db0c 9351 fi
e8b05380
PB
9352 elif test $build != $host && test $have_gcc_for_target = yes; then
9353 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9354 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9355 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9356 fi
e8b05380 9357fi
3e19841a 9358if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9359 # Extract the first word of "ld", so it can be a program name with args.
9360set dummy ld; ac_word=$2
2aeb72e9
DD
9361echo "$as_me:$LINENO: checking for $ac_word" >&5
9362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9363if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9365else
1c710c3c
DJ
9366 case $LD_FOR_TARGET in
9367 [\\/]* | ?:[\\/]*)
e8b05380
PB
9368 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9369 ;;
e8b05380 9370 *)
1c710c3c
DJ
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372for as_dir in $gcc_cv_tool_dirs
9373do
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9378 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9381 fi
9382done
9383done
9384
e8b05380
PB
9385 ;;
9386esac
4de997d1 9387fi
1c710c3c 9388LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9389
e8b05380 9390if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9391 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9392echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9393else
2aeb72e9
DD
9394 echo "$as_me:$LINENO: result: no" >&5
9395echo "${ECHO_T}no" >&6
4de997d1 9396fi
2693c0b0 9397
e8b05380
PB
9398fi
9399if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9400
9401
9402if test -n "$LD_FOR_TARGET"; then
9403 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9404elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9405 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9406fi
9407
9408if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9409 for ncn_progname in ld; do
9410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9411set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9412echo "$as_me:$LINENO: checking for $ac_word" >&5
9413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9414if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416else
9417 if test -n "$LD_FOR_TARGET"; then
9418 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9419else
9420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421for as_dir in $PATH
9422do
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9427 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9430 fi
9431done
9432done
9433
9434fi
9435fi
9436LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9437if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9438 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9439echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9440else
2aeb72e9
DD
9441 echo "$as_me:$LINENO: result: no" >&5
9442echo "${ECHO_T}no" >&6
278a7a38
AO
9443fi
9444
9445 done
9446fi
9447
9448if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9449 for ncn_progname in ld; do
2aeb72e9
DD
9450 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9451echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9452 if test -x $with_build_time_tools/${ncn_progname}; then
9453 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9454 echo "$as_me:$LINENO: result: yes" >&5
9455echo "${ECHO_T}yes" >&6
e8b05380
PB
9456 break
9457 else
2aeb72e9
DD
9458 echo "$as_me:$LINENO: result: no" >&5
9459echo "${ECHO_T}no" >&6
e8b05380
PB
9460 fi
9461 done
ca9f4b81
AO
9462fi
9463
e8b05380
PB
9464if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9465 for ncn_progname in ld; do
9466 if test -n "$ncn_target_tool_prefix"; then
9467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9469echo "$as_me:$LINENO: checking for $ac_word" >&5
9470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9471if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9473else
4de997d1
PB
9474 if test -n "$LD_FOR_TARGET"; then
9475 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9476else
1c710c3c
DJ
9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9484 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9487 fi
9488done
9489done
9490
ca9f4b81
AO
9491fi
9492fi
1c710c3c 9493LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9494if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9495 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9496echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9497else
2aeb72e9
DD
9498 echo "$as_me:$LINENO: result: no" >&5
9499echo "${ECHO_T}no" >&6
ca9f4b81
AO
9500fi
9501
e8b05380
PB
9502 fi
9503 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9505set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9506echo "$as_me:$LINENO: checking for $ac_word" >&5
9507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9508if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9510else
2693c0b0
PB
9511 if test -n "$LD_FOR_TARGET"; then
9512 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9513else
1c710c3c
DJ
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9521 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9524 fi
9525done
9526done
9527
ca9f4b81
AO
9528fi
9529fi
1c710c3c 9530LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9531if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9532 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9533echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9534else
2aeb72e9
DD
9535 echo "$as_me:$LINENO: result: no" >&5
9536echo "${ECHO_T}no" >&6
ca9f4b81 9537fi
1c710c3c 9538
e8b05380
PB
9539 fi
9540 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9541 done
9542fi
1c710c3c 9543
2693c0b0
PB
9544if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9545 set dummy ld
9546 if test $build = $target ; then
9547 LD_FOR_TARGET="$2"
ca9f4b81 9548 else
2693c0b0 9549 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9550 fi
1c00b503
PB
9551else
9552 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9553fi
9554
d1f8db0c
PB
9555else
9556 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9557fi
9558
9559
9560
9561
9562if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9563 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9564 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9565echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9566 if test -x $with_build_time_tools/lipo; then
9567 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9568 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9569 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9570echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9571 else
2aeb72e9
DD
9572 echo "$as_me:$LINENO: result: no" >&5
9573echo "${ECHO_T}no" >&6
d1f8db0c 9574 fi
e8b05380
PB
9575 elif test $build != $host && test $have_gcc_for_target = yes; then
9576 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9577 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9578 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9579 fi
9580fi
278a7a38
AO
9581if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9582 # Extract the first word of "lipo", so it can be a program name with args.
9583set dummy lipo; ac_word=$2
2aeb72e9
DD
9584echo "$as_me:$LINENO: checking for $ac_word" >&5
9585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9586if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588else
9589 case $LIPO_FOR_TARGET in
9590 [\\/]* | ?:[\\/]*)
9591 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9592 ;;
9593 *)
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $gcc_cv_tool_dirs
9596do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9601 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9604 fi
9605done
9606done
9607
9608 ;;
9609esac
9610fi
9611LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9612
278a7a38 9613if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9614 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9615echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9616else
2aeb72e9
DD
9617 echo "$as_me:$LINENO: result: no" >&5
9618echo "${ECHO_T}no" >&6
278a7a38
AO
9619fi
9620
9621fi
9622if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9623
9624
9625if test -n "$LIPO_FOR_TARGET"; then
9626 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9627elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9628 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9629fi
9630
9631if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9632 for ncn_progname in lipo; do
9633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9634set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9635echo "$as_me:$LINENO: checking for $ac_word" >&5
9636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9637if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9638 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9639else
278a7a38
AO
9640 if test -n "$LIPO_FOR_TARGET"; then
9641 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9642else
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
1c710c3c
DJ
9645do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9650 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9653 fi
9654done
9655done
9656
e8b05380 9657fi
278a7a38
AO
9658fi
9659LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9660if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9661 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9662echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9663else
2aeb72e9
DD
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
e8b05380
PB
9666fi
9667
278a7a38 9668 done
e8b05380 9669fi
278a7a38
AO
9670
9671if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9672 for ncn_progname in lipo; do
2aeb72e9
DD
9673 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9674echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9675 if test -x $with_build_time_tools/${ncn_progname}; then
9676 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9677 echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6
e8b05380
PB
9679 break
9680 else
2aeb72e9
DD
9681 echo "$as_me:$LINENO: result: no" >&5
9682echo "${ECHO_T}no" >&6
e8b05380
PB
9683 fi
9684 done
9685fi
9686
9687if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9688 for ncn_progname in lipo; do
9689 if test -n "$ncn_target_tool_prefix"; then
9690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9691set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9692echo "$as_me:$LINENO: checking for $ac_word" >&5
9693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9694if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9696else
9697 if test -n "$LIPO_FOR_TARGET"; then
9698 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9699else
1c710c3c
DJ
9700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701for as_dir in $PATH
9702do
9703 IFS=$as_save_IFS
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9707 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 break 2
9710 fi
9711done
9712done
9713
040b1c5a
GK
9714fi
9715fi
1c710c3c 9716LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9717if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9718 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9719echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9720else
2aeb72e9
DD
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
040b1c5a
GK
9723fi
9724
e8b05380
PB
9725 fi
9726 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9728set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9729echo "$as_me:$LINENO: checking for $ac_word" >&5
9730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9731if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9733else
9734 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9735 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9736else
1c710c3c
DJ
9737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9738for as_dir in $PATH
9739do
9740 IFS=$as_save_IFS
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9744 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 break 2
9747 fi
9748done
9749done
9750
040b1c5a
GK
9751fi
9752fi
1c710c3c 9753LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9754if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9755 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9756echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9757else
2aeb72e9
DD
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
040b1c5a 9760fi
1c710c3c 9761
e8b05380
PB
9762 fi
9763 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9764 done
9765fi
1c710c3c 9766
040b1c5a
GK
9767if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9768 set dummy lipo
9769 if test $build = $target ; then
9770 LIPO_FOR_TARGET="$2"
9771 else
9772 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9773 fi
1c00b503
PB
9774else
9775 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9776fi
9777
d1f8db0c
PB
9778else
9779 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9780fi
9781
9782
9783
9784
9785if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9786 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9787 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9788echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9789 if test -x $with_build_time_tools/nm; then
9790 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9791 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9792 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9793echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9794 else
2aeb72e9
DD
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
d1f8db0c 9797 fi
e8b05380
PB
9798 elif test $build != $host && test $have_gcc_for_target = yes; then
9799 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9800 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9801 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9802 fi
9803fi
3e19841a 9804if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9805 # Extract the first word of "nm", so it can be a program name with args.
9806set dummy nm; ac_word=$2
2aeb72e9
DD
9807echo "$as_me:$LINENO: checking for $ac_word" >&5
9808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9809if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9811else
1c710c3c
DJ
9812 case $NM_FOR_TARGET in
9813 [\\/]* | ?:[\\/]*)
e8b05380
PB
9814 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9815 ;;
e8b05380 9816 *)
1c710c3c
DJ
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $gcc_cv_tool_dirs
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9824 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828done
9829done
9830
e8b05380
PB
9831 ;;
9832esac
9833fi
1c710c3c 9834NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9835
e8b05380 9836if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9837 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9838echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9839else
2aeb72e9
DD
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
e8b05380
PB
9842fi
9843
9844fi
9845if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9846
9847
9848if test -n "$NM_FOR_TARGET"; then
9849 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9850elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9851 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9852fi
9853
9854if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9855 for ncn_progname in nm; do
9856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9857set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9858echo "$as_me:$LINENO: checking for $ac_word" >&5
9859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9860if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 if test -n "$NM_FOR_TARGET"; then
9864 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9865else
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9873 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9875 break 2
9876 fi
9877done
9878done
9879
9880fi
9881fi
9882NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9883if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9884 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9885echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9886else
2aeb72e9
DD
9887 echo "$as_me:$LINENO: result: no" >&5
9888echo "${ECHO_T}no" >&6
278a7a38
AO
9889fi
9890
9891 done
9892fi
9893
9894if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9895 for ncn_progname in nm; do
2aeb72e9
DD
9896 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9897echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9898 if test -x $with_build_time_tools/${ncn_progname}; then
9899 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9900 echo "$as_me:$LINENO: result: yes" >&5
9901echo "${ECHO_T}yes" >&6
e8b05380
PB
9902 break
9903 else
2aeb72e9
DD
9904 echo "$as_me:$LINENO: result: no" >&5
9905echo "${ECHO_T}no" >&6
e8b05380
PB
9906 fi
9907 done
9908fi
9909
9910if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9911 for ncn_progname in nm; do
9912 if test -n "$ncn_target_tool_prefix"; then
9913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9914set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9915echo "$as_me:$LINENO: checking for $ac_word" >&5
9916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9917if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9919else
4de997d1
PB
9920 if test -n "$NM_FOR_TARGET"; then
9921 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9922else
1c710c3c
DJ
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9930 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2
9933 fi
9934done
9935done
9936
ca9f4b81
AO
9937fi
9938fi
1c710c3c 9939NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 9940if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9941 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9942echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9943else
2aeb72e9
DD
9944 echo "$as_me:$LINENO: result: no" >&5
9945echo "${ECHO_T}no" >&6
ca9f4b81
AO
9946fi
9947
e8b05380
PB
9948 fi
9949 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9951set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9952echo "$as_me:$LINENO: checking for $ac_word" >&5
9953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9954if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9956else
2693c0b0
PB
9957 if test -n "$NM_FOR_TARGET"; then
9958 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9959else
1c710c3c
DJ
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9967 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9970 fi
9971done
9972done
9973
ca9f4b81
AO
9974fi
9975fi
1c710c3c 9976NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 9977if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9978 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9979echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9980else
2aeb72e9
DD
9981 echo "$as_me:$LINENO: result: no" >&5
9982echo "${ECHO_T}no" >&6
ca9f4b81 9983fi
1c710c3c 9984
e8b05380
PB
9985 fi
9986 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
9987 done
9988fi
1c710c3c 9989
2693c0b0
PB
9990if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
9991 set dummy nm
9992 if test $build = $target ; then
9993 NM_FOR_TARGET="$2"
ca9f4b81 9994 else
2693c0b0 9995 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9996 fi
1c00b503
PB
9997else
9998 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
9999fi
10000
d1f8db0c
PB
10001else
10002 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10003fi
10004
10005
10006
10007
10008if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10009 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10010 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10011echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10012 if test -x $with_build_time_tools/objdump; then
10013 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10014 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10015 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10016echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10017 else
2aeb72e9
DD
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
d1f8db0c 10020 fi
e8b05380
PB
10021 elif test $build != $host && test $have_gcc_for_target = yes; then
10022 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10023 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10024 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10025 fi
10026fi
3e19841a 10027if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10028 # Extract the first word of "objdump", so it can be a program name with args.
10029set dummy objdump; ac_word=$2
2aeb72e9
DD
10030echo "$as_me:$LINENO: checking for $ac_word" >&5
10031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10032if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10034else
1c710c3c
DJ
10035 case $OBJDUMP_FOR_TARGET in
10036 [\\/]* | ?:[\\/]*)
e8b05380
PB
10037 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10038 ;;
e8b05380 10039 *)
1c710c3c
DJ
10040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041for as_dir in $gcc_cv_tool_dirs
10042do
10043 IFS=$as_save_IFS
10044 test -z "$as_dir" && as_dir=.
10045 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10047 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10049 break 2
10050 fi
10051done
10052done
10053
e8b05380
PB
10054 ;;
10055esac
10056fi
1c710c3c 10057OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10058
e8b05380 10059if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10060 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10061echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10062else
2aeb72e9
DD
10063 echo "$as_me:$LINENO: result: no" >&5
10064echo "${ECHO_T}no" >&6
e8b05380
PB
10065fi
10066
10067fi
10068if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10069
10070
10071if test -n "$OBJDUMP_FOR_TARGET"; then
10072 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10073elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10074 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10075fi
10076
10077if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10078 for ncn_progname in objdump; do
10079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10080set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10081echo "$as_me:$LINENO: checking for $ac_word" >&5
10082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10083if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
10086 if test -n "$OBJDUMP_FOR_TARGET"; then
10087 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10096 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10099 fi
10100done
10101done
10102
10103fi
10104fi
10105OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10106if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10107 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10108echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10109else
2aeb72e9
DD
10110 echo "$as_me:$LINENO: result: no" >&5
10111echo "${ECHO_T}no" >&6
278a7a38
AO
10112fi
10113
10114 done
10115fi
10116
10117if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10118 for ncn_progname in objdump; do
2aeb72e9
DD
10119 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10120echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10121 if test -x $with_build_time_tools/${ncn_progname}; then
10122 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10123 echo "$as_me:$LINENO: result: yes" >&5
10124echo "${ECHO_T}yes" >&6
e8b05380
PB
10125 break
10126 else
2aeb72e9
DD
10127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
e8b05380
PB
10129 fi
10130 done
10131fi
10132
10133if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10134 for ncn_progname in objdump; do
10135 if test -n "$ncn_target_tool_prefix"; then
10136 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10137set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10138echo "$as_me:$LINENO: checking for $ac_word" >&5
10139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10140if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10142else
10143 if test -n "$OBJDUMP_FOR_TARGET"; then
10144 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10145else
1c710c3c
DJ
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10153 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10156 fi
10157done
10158done
10159
d739199a
DJ
10160fi
10161fi
1c710c3c 10162OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10163if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10164 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10165echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10166else
2aeb72e9
DD
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
d739199a
DJ
10169fi
10170
e8b05380
PB
10171 fi
10172 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10174set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10175echo "$as_me:$LINENO: checking for $ac_word" >&5
10176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10177if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10179else
10180 if test -n "$OBJDUMP_FOR_TARGET"; then
10181 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10182else
1c710c3c
DJ
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10190 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195done
10196
d739199a
DJ
10197fi
10198fi
1c710c3c 10199OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10200if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10201 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10202echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10203else
2aeb72e9
DD
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
d739199a 10206fi
1c710c3c 10207
e8b05380
PB
10208 fi
10209 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10210 done
10211fi
1c710c3c 10212
d739199a
DJ
10213if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10214 set dummy objdump
10215 if test $build = $target ; then
10216 OBJDUMP_FOR_TARGET="$2"
10217 else
10218 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10219 fi
1c00b503
PB
10220else
10221 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10222fi
10223
d1f8db0c
PB
10224else
10225 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10226fi
10227
10228
10229
10230
10231if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10232 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10233 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10234echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10235 if test -x $with_build_time_tools/ranlib; then
10236 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10237 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10238 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10239echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10240 else
2aeb72e9
DD
10241 echo "$as_me:$LINENO: result: no" >&5
10242echo "${ECHO_T}no" >&6
d1f8db0c 10243 fi
e8b05380
PB
10244 elif test $build != $host && test $have_gcc_for_target = yes; then
10245 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10246 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10247 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10248 fi
10249fi
3e19841a 10250if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10251 # Extract the first word of "ranlib", so it can be a program name with args.
10252set dummy ranlib; ac_word=$2
2aeb72e9
DD
10253echo "$as_me:$LINENO: checking for $ac_word" >&5
10254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10255if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10257else
1c710c3c
DJ
10258 case $RANLIB_FOR_TARGET in
10259 [\\/]* | ?:[\\/]*)
e8b05380
PB
10260 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10261 ;;
e8b05380 10262 *)
1c710c3c
DJ
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $gcc_cv_tool_dirs
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10270 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10273 fi
10274done
10275done
10276
e8b05380
PB
10277 ;;
10278esac
10279fi
1c710c3c 10280RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10281
e8b05380 10282if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10283 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10284echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10285else
2aeb72e9
DD
10286 echo "$as_me:$LINENO: result: no" >&5
10287echo "${ECHO_T}no" >&6
e8b05380
PB
10288fi
10289
10290fi
10291if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10292
10293
10294if test -n "$RANLIB_FOR_TARGET"; then
10295 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10296elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10297 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10298fi
10299
10300if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10301 for ncn_progname in ranlib; do
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10303set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10304echo "$as_me:$LINENO: checking for $ac_word" >&5
10305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10306if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309 if test -n "$RANLIB_FOR_TARGET"; then
10310 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10311else
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10319 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323done
10324done
10325
10326fi
10327fi
10328RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10329if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10330 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10331echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10332else
2aeb72e9
DD
10333 echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6
278a7a38
AO
10335fi
10336
10337 done
10338fi
10339
10340if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10341 for ncn_progname in ranlib; do
2aeb72e9
DD
10342 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10343echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10344 if test -x $with_build_time_tools/${ncn_progname}; then
10345 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10346 echo "$as_me:$LINENO: result: yes" >&5
10347echo "${ECHO_T}yes" >&6
e8b05380
PB
10348 break
10349 else
2aeb72e9
DD
10350 echo "$as_me:$LINENO: result: no" >&5
10351echo "${ECHO_T}no" >&6
e8b05380
PB
10352 fi
10353 done
10354fi
10355
10356if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10357 for ncn_progname in ranlib; do
10358 if test -n "$ncn_target_tool_prefix"; then
10359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10361echo "$as_me:$LINENO: checking for $ac_word" >&5
10362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10363if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10365else
4de997d1
PB
10366 if test -n "$RANLIB_FOR_TARGET"; then
10367 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10368else
1c710c3c
DJ
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10376 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10379 fi
10380done
10381done
10382
ca9f4b81
AO
10383fi
10384fi
1c710c3c 10385RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10386if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10387 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10388echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10389else
2aeb72e9
DD
10390 echo "$as_me:$LINENO: result: no" >&5
10391echo "${ECHO_T}no" >&6
ca9f4b81
AO
10392fi
10393
e8b05380
PB
10394 fi
10395 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10397set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10398echo "$as_me:$LINENO: checking for $ac_word" >&5
10399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10400if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10402else
2693c0b0
PB
10403 if test -n "$RANLIB_FOR_TARGET"; then
10404 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10405else
1c710c3c
DJ
10406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407for as_dir in $PATH
10408do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10413 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10415 break 2
10416 fi
10417done
10418done
10419
ca9f4b81
AO
10420fi
10421fi
1c710c3c 10422RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10423if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10424 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10425echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10426else
2aeb72e9
DD
10427 echo "$as_me:$LINENO: result: no" >&5
10428echo "${ECHO_T}no" >&6
ca9f4b81 10429fi
1c710c3c 10430
e8b05380
PB
10431 fi
10432 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10433 done
10434fi
1c710c3c 10435
e8b05380
PB
10436if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10437 set dummy ranlib
10438 if test $build = $target ; then
10439 RANLIB_FOR_TARGET="$2"
10440 else
10441 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10442 fi
1c00b503
PB
10443else
10444 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10445fi
2693c0b0 10446
d1f8db0c
PB
10447else
10448 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10449fi
10450
e8b05380
PB
10451
10452
10453
10454if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10455 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10456 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10457echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10458 if test -x $with_build_time_tools/strip; then
10459 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10460 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10461 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10462echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10463 else
2aeb72e9
DD
10464 echo "$as_me:$LINENO: result: no" >&5
10465echo "${ECHO_T}no" >&6
d1f8db0c 10466 fi
e8b05380
PB
10467 elif test $build != $host && test $have_gcc_for_target = yes; then
10468 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10469 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10470 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10471 fi
10472fi
3e19841a 10473if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10474 # Extract the first word of "strip", so it can be a program name with args.
10475set dummy strip; ac_word=$2
2aeb72e9
DD
10476echo "$as_me:$LINENO: checking for $ac_word" >&5
10477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10478if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10480else
1c710c3c
DJ
10481 case $STRIP_FOR_TARGET in
10482 [\\/]* | ?:[\\/]*)
e8b05380
PB
10483 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10484 ;;
e8b05380 10485 *)
1c710c3c
DJ
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487for as_dir in $gcc_cv_tool_dirs
10488do
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10493 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10496 fi
10497done
10498done
10499
e8b05380
PB
10500 ;;
10501esac
10502fi
1c710c3c 10503STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10504
e8b05380 10505if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10506 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10507echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10508else
2aeb72e9
DD
10509 echo "$as_me:$LINENO: result: no" >&5
10510echo "${ECHO_T}no" >&6
e8b05380
PB
10511fi
10512
10513fi
10514if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10515
10516
10517if test -n "$STRIP_FOR_TARGET"; then
10518 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10519elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10520 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10521fi
10522
10523if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10524 for ncn_progname in strip; do
10525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10526set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10527echo "$as_me:$LINENO: checking for $ac_word" >&5
10528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10529if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531else
10532 if test -n "$STRIP_FOR_TARGET"; then
10533 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10534else
10535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536for as_dir in $PATH
10537do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10542 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10545 fi
10546done
10547done
10548
10549fi
10550fi
10551STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10552if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10553 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10554echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10555else
2aeb72e9
DD
10556 echo "$as_me:$LINENO: result: no" >&5
10557echo "${ECHO_T}no" >&6
278a7a38
AO
10558fi
10559
10560 done
10561fi
10562
10563if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10564 for ncn_progname in strip; do
2aeb72e9
DD
10565 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10566echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10567 if test -x $with_build_time_tools/${ncn_progname}; then
10568 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10569 echo "$as_me:$LINENO: result: yes" >&5
10570echo "${ECHO_T}yes" >&6
e8b05380
PB
10571 break
10572 else
2aeb72e9
DD
10573 echo "$as_me:$LINENO: result: no" >&5
10574echo "${ECHO_T}no" >&6
e8b05380
PB
10575 fi
10576 done
10577fi
10578
10579if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10580 for ncn_progname in strip; do
10581 if test -n "$ncn_target_tool_prefix"; then
10582 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10583set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10584echo "$as_me:$LINENO: checking for $ac_word" >&5
10585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10586if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10588else
10589 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10590 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10591else
10592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593for as_dir in $PATH
10594do
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10599 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10602 fi
10603done
10604done
10605
040b1c5a
GK
10606fi
10607fi
1c710c3c 10608STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10609if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10610 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10611echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10612else
2aeb72e9
DD
10613 echo "$as_me:$LINENO: result: no" >&5
10614echo "${ECHO_T}no" >&6
040b1c5a
GK
10615fi
10616
e8b05380
PB
10617 fi
10618 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10620set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10621echo "$as_me:$LINENO: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10623if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10625else
10626 if test -n "$STRIP_FOR_TARGET"; then
10627 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10628else
1c710c3c
DJ
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10636 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642
040b1c5a
GK
10643fi
10644fi
1c710c3c 10645STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10646if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10647 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10648echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10649else
2aeb72e9
DD
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
040b1c5a 10652fi
1c710c3c 10653
e8b05380
PB
10654 fi
10655 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10656 done
10657fi
1c710c3c 10658
040b1c5a
GK
10659if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10660 set dummy strip
10661 if test $build = $target ; then
10662 STRIP_FOR_TARGET="$2"
10663 else
10664 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10665 fi
1c00b503
PB
10666else
10667 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10668fi
10669
d1f8db0c
PB
10670else
10671 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10672fi
10673
10674
10675
10676
10677if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10678 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10679 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10680echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10681 if test -x $with_build_time_tools/windres; then
10682 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10683 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10684 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10685echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10686 else
2aeb72e9
DD
10687 echo "$as_me:$LINENO: result: no" >&5
10688echo "${ECHO_T}no" >&6
d1f8db0c 10689 fi
e8b05380
PB
10690 elif test $build != $host && test $have_gcc_for_target = yes; then
10691 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10692 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10693 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10694 fi
10695fi
3e19841a 10696if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10697 # Extract the first word of "windres", so it can be a program name with args.
10698set dummy windres; ac_word=$2
2aeb72e9
DD
10699echo "$as_me:$LINENO: checking for $ac_word" >&5
10700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10701if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10703else
1c710c3c
DJ
10704 case $WINDRES_FOR_TARGET in
10705 [\\/]* | ?:[\\/]*)
e8b05380
PB
10706 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10707 ;;
e8b05380 10708 *)
1c710c3c
DJ
10709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $gcc_cv_tool_dirs
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10716 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10719 fi
10720done
10721done
10722
e8b05380
PB
10723 ;;
10724esac
10725fi
1c710c3c 10726WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10727
e8b05380 10728if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10729 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10730echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10731else
2aeb72e9
DD
10732 echo "$as_me:$LINENO: result: no" >&5
10733echo "${ECHO_T}no" >&6
e8b05380
PB
10734fi
10735
10736fi
10737if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10738
10739
10740if test -n "$WINDRES_FOR_TARGET"; then
10741 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10742elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10743 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10744fi
10745
10746if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10747 for ncn_progname in windres; do
10748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10749set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10750echo "$as_me:$LINENO: checking for $ac_word" >&5
10751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10752if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754else
10755 if test -n "$WINDRES_FOR_TARGET"; then
10756 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10765 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769done
10770done
10771
10772fi
10773fi
10774WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10775if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10776 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10777echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10778else
2aeb72e9
DD
10779 echo "$as_me:$LINENO: result: no" >&5
10780echo "${ECHO_T}no" >&6
278a7a38
AO
10781fi
10782
10783 done
10784fi
10785
10786if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10787 for ncn_progname in windres; do
2aeb72e9
DD
10788 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10789echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10790 if test -x $with_build_time_tools/${ncn_progname}; then
10791 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10792 echo "$as_me:$LINENO: result: yes" >&5
10793echo "${ECHO_T}yes" >&6
e8b05380
PB
10794 break
10795 else
2aeb72e9
DD
10796 echo "$as_me:$LINENO: result: no" >&5
10797echo "${ECHO_T}no" >&6
e8b05380
PB
10798 fi
10799 done
10800fi
10801
10802if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10803 for ncn_progname in windres; do
10804 if test -n "$ncn_target_tool_prefix"; then
10805 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10806set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10807echo "$as_me:$LINENO: checking for $ac_word" >&5
10808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10809if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10811else
4de997d1
PB
10812 if test -n "$WINDRES_FOR_TARGET"; then
10813 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10814else
1c710c3c
DJ
10815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816for as_dir in $PATH
10817do
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10822 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10825 fi
10826done
10827done
10828
ca9f4b81
AO
10829fi
10830fi
1c710c3c 10831WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10832if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10833 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10834echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10835else
2aeb72e9
DD
10836 echo "$as_me:$LINENO: result: no" >&5
10837echo "${ECHO_T}no" >&6
ca9f4b81
AO
10838fi
10839
e8b05380
PB
10840 fi
10841 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10843set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10844echo "$as_me:$LINENO: checking for $ac_word" >&5
10845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10846if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10848else
2693c0b0
PB
10849 if test -n "$WINDRES_FOR_TARGET"; then
10850 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10851else
1c710c3c
DJ
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10859 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10862 fi
10863done
10864done
10865
ca9f4b81
AO
10866fi
10867fi
1c710c3c 10868WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10869if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10870 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10871echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10872else
2aeb72e9
DD
10873 echo "$as_me:$LINENO: result: no" >&5
10874echo "${ECHO_T}no" >&6
ca9f4b81 10875fi
1c710c3c 10876
e8b05380
PB
10877 fi
10878 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10879 done
10880fi
1c710c3c 10881
2693c0b0
PB
10882if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10883 set dummy windres
10884 if test $build = $target ; then
10885 WINDRES_FOR_TARGET="$2"
ca9f4b81 10886 else
2693c0b0 10887 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10888 fi
1c00b503
PB
10889else
10890 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10891fi
10892
d1f8db0c
PB
10893else
10894 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10895fi
10896
4977bab6 10897
901119ae
KT
10898
10899
10900if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10901 if test -n "$with_build_time_tools"; then
10902 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10903echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10904 if test -x $with_build_time_tools/windmc; then
10905 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10906 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10907 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10908echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10909 else
10910 echo "$as_me:$LINENO: result: no" >&5
10911echo "${ECHO_T}no" >&6
10912 fi
10913 elif test $build != $host && test $have_gcc_for_target = yes; then
10914 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
10915 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10916 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
10917 fi
10918fi
10919if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10920 # Extract the first word of "windmc", so it can be a program name with args.
10921set dummy windmc; ac_word=$2
10922echo "$as_me:$LINENO: checking for $ac_word" >&5
10923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10924if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else
10927 case $WINDMC_FOR_TARGET in
10928 [\\/]* | ?:[\\/]*)
10929 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10930 ;;
10931 *)
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933for as_dir in $gcc_cv_tool_dirs
10934do
10935 IFS=$as_save_IFS
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10941 break 2
10942 fi
10943done
10944done
10945
10946 ;;
10947esac
10948fi
10949WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10950
10951if test -n "$WINDMC_FOR_TARGET"; then
10952 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10953echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10954else
10955 echo "$as_me:$LINENO: result: no" >&5
10956echo "${ECHO_T}no" >&6
10957fi
10958
10959fi
10960if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10961
10962
10963if test -n "$WINDMC_FOR_TARGET"; then
10964 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10965elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10966 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10967fi
10968
10969if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10970 for ncn_progname in windmc; do
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972set dummy ${ncn_progname}; ac_word=$2
10973echo "$as_me:$LINENO: checking for $ac_word" >&5
10974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10975if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 if test -n "$WINDMC_FOR_TARGET"; then
10979 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
10989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992done
10993done
10994
10995fi
10996fi
10997WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10998if test -n "$WINDMC_FOR_TARGET"; then
10999 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11000echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11001else
11002 echo "$as_me:$LINENO: result: no" >&5
11003echo "${ECHO_T}no" >&6
11004fi
11005
11006 done
11007fi
11008
11009if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11010 for ncn_progname in windmc; do
11011 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11012echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11013 if test -x $with_build_time_tools/${ncn_progname}; then
11014 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11015 echo "$as_me:$LINENO: result: yes" >&5
11016echo "${ECHO_T}yes" >&6
11017 break
11018 else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021 fi
11022 done
11023fi
11024
11025if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11026 for ncn_progname in windmc; do
11027 if test -n "$ncn_target_tool_prefix"; then
11028 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11029set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11030echo "$as_me:$LINENO: checking for $ac_word" >&5
11031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11032if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 if test -n "$WINDMC_FOR_TARGET"; then
11036 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11037else
11038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039for as_dir in $PATH
11040do
11041 IFS=$as_save_IFS
11042 test -z "$as_dir" && as_dir=.
11043 for ac_exec_ext in '' $ac_executable_extensions; do
11044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11045 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 break 2
11048 fi
11049done
11050done
11051
11052fi
11053fi
11054WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11055if test -n "$WINDMC_FOR_TARGET"; then
11056 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11057echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11058else
11059 echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6
11061fi
11062
11063 fi
11064 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11066set dummy ${ncn_progname}; ac_word=$2
11067echo "$as_me:$LINENO: checking for $ac_word" >&5
11068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11069if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 if test -n "$WINDMC_FOR_TARGET"; then
11073 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078 IFS=$as_save_IFS
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11084 break 2
11085 fi
11086done
11087done
11088
11089fi
11090fi
11091WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11092if test -n "$WINDMC_FOR_TARGET"; then
11093 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11094echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11095else
11096 echo "$as_me:$LINENO: result: no" >&5
11097echo "${ECHO_T}no" >&6
11098fi
11099
11100 fi
11101 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11102 done
11103fi
11104
11105if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11106 set dummy windmc
11107 if test $build = $target ; then
11108 WINDMC_FOR_TARGET="$2"
11109 else
11110 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11111 fi
1c00b503
PB
11112else
11113 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11114fi
11115
11116else
11117 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11118fi
11119
11120
2abefe3d
PB
11121RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11122
2aeb72e9
DD
11123echo "$as_me:$LINENO: checking where to find the target ar" >&5
11124echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11125if test "x${build}" != "x${host}" ; then
e8b05380
PB
11126 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11127 # We already found the complete path
172e41aa 11128 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11129 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11130echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11131 else
11132 # Canadian cross, just use what we found
2aeb72e9
DD
11133 echo "$as_me:$LINENO: result: pre-installed" >&5
11134echo "${ECHO_T}pre-installed" >&6
e8b05380 11135 fi
2abefe3d
PB
11136else
11137 ok=yes
11138 case " ${configdirs} " in
11139 *" binutils "*) ;;
11140 *) ok=no ;;
11141 esac
1c710c3c 11142
2abefe3d
PB
11143 if test $ok = yes; then
11144 # An in-tree tool is available and we can use it
11145 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11146 echo "$as_me:$LINENO: result: just compiled" >&5
11147echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11148 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11149 # We already found the complete path
172e41aa 11150 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11151 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11152echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11153 elif test "x$target" = "x$host"; then
11154 # We can use an host tool
11155 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11156 echo "$as_me:$LINENO: result: host tool" >&5
11157echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11158 else
11159 # We need a cross tool
2aeb72e9
DD
11160 echo "$as_me:$LINENO: result: pre-installed" >&5
11161echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11162 fi
11163fi
0b0dc272 11164
2aeb72e9
DD
11165echo "$as_me:$LINENO: checking where to find the target as" >&5
11166echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11167if test "x${build}" != "x${host}" ; then
e8b05380
PB
11168 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11169 # We already found the complete path
172e41aa 11170 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11171 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11172echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11173 else
11174 # Canadian cross, just use what we found
2aeb72e9
DD
11175 echo "$as_me:$LINENO: result: pre-installed" >&5
11176echo "${ECHO_T}pre-installed" >&6
e8b05380 11177 fi
2abefe3d
PB
11178else
11179 ok=yes
11180 case " ${configdirs} " in
11181 *" gas "*) ;;
11182 *) ok=no ;;
11183 esac
1c710c3c 11184
2abefe3d
PB
11185 if test $ok = yes; then
11186 # An in-tree tool is available and we can use it
11187 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11188 echo "$as_me:$LINENO: result: just compiled" >&5
11189echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11190 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11191 # We already found the complete path
172e41aa 11192 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11193 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11194echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11195 elif test "x$target" = "x$host"; then
11196 # We can use an host tool
11197 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11198 echo "$as_me:$LINENO: result: host tool" >&5
11199echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11200 else
11201 # We need a cross tool
2aeb72e9
DD
11202 echo "$as_me:$LINENO: result: pre-installed" >&5
11203echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11204 fi
11205fi
0b0dc272 11206
2aeb72e9
DD
11207echo "$as_me:$LINENO: checking where to find the target cc" >&5
11208echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11209if test "x${build}" != "x${host}" ; then
e8b05380
PB
11210 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11211 # We already found the complete path
172e41aa 11212 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11213 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11214echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11215 else
11216 # Canadian cross, just use what we found
2aeb72e9
DD
11217 echo "$as_me:$LINENO: result: pre-installed" >&5
11218echo "${ECHO_T}pre-installed" >&6
e8b05380 11219 fi
2abefe3d
PB
11220else
11221 ok=yes
11222 case " ${configdirs} " in
11223 *" gcc "*) ;;
11224 *) ok=no ;;
11225 esac
1c710c3c 11226
2abefe3d
PB
11227 if test $ok = yes; then
11228 # An in-tree tool is available and we can use it
11229 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11230 echo "$as_me:$LINENO: result: just compiled" >&5
11231echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11232 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11233 # We already found the complete path
172e41aa 11234 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11235 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11236echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11237 elif test "x$target" = "x$host"; then
11238 # We can use an host tool
11239 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11240 echo "$as_me:$LINENO: result: host tool" >&5
11241echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11242 else
11243 # We need a cross tool
2aeb72e9
DD
11244 echo "$as_me:$LINENO: result: pre-installed" >&5
11245echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11246 fi
11247fi
0b0dc272 11248
2aeb72e9
DD
11249echo "$as_me:$LINENO: checking where to find the target c++" >&5
11250echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11251if test "x${build}" != "x${host}" ; then
e8b05380
PB
11252 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11253 # We already found the complete path
172e41aa 11254 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11255 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11256echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11257 else
11258 # Canadian cross, just use what we found
2aeb72e9
DD
11259 echo "$as_me:$LINENO: result: pre-installed" >&5
11260echo "${ECHO_T}pre-installed" >&6
e8b05380 11261 fi
2abefe3d
PB
11262else
11263 ok=yes
11264 case " ${configdirs} " in
11265 *" gcc "*) ;;
11266 *) ok=no ;;
11267 esac
11268 case ,${enable_languages}, in
11269 *,c++,*) ;;
11270 *) ok=no ;;
11271 esac
11272 if test $ok = yes; then
11273 # An in-tree tool is available and we can use it
11274 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
11275 echo "$as_me:$LINENO: result: just compiled" >&5
11276echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11277 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11278 # We already found the complete path
172e41aa 11279 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11280 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11281echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11282 elif test "x$target" = "x$host"; then
11283 # We can use an host tool
11284 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11285 echo "$as_me:$LINENO: result: host tool" >&5
11286echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11287 else
11288 # We need a cross tool
2aeb72e9
DD
11289 echo "$as_me:$LINENO: result: pre-installed" >&5
11290echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11291 fi
11292fi
0b0dc272 11293
2aeb72e9
DD
11294echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11295echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11296if test "x${build}" != "x${host}" ; then
e8b05380
PB
11297 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11298 # We already found the complete path
172e41aa 11299 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11300 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11301echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11302 else
11303 # Canadian cross, just use what we found
2aeb72e9
DD
11304 echo "$as_me:$LINENO: result: pre-installed" >&5
11305echo "${ECHO_T}pre-installed" >&6
e8b05380 11306 fi
2abefe3d
PB
11307else
11308 ok=yes
11309 case " ${configdirs} " in
11310 *" gcc "*) ;;
11311 *) ok=no ;;
11312 esac
11313 case ,${enable_languages}, in
11314 *,c++,*) ;;
11315 *) ok=no ;;
11316 esac
11317 if test $ok = yes; then
11318 # An in-tree tool is available and we can use it
11319 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
11320 echo "$as_me:$LINENO: result: just compiled" >&5
11321echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11322 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11323 # We already found the complete path
172e41aa 11324 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11325 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11326echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11327 elif test "x$target" = "x$host"; then
11328 # We can use an host tool
11329 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11330 echo "$as_me:$LINENO: result: host tool" >&5
11331echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11332 else
11333 # We need a cross tool
2aeb72e9
DD
11334 echo "$as_me:$LINENO: result: pre-installed" >&5
11335echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11336 fi
11337fi
0b0dc272 11338
2aeb72e9
DD
11339echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11340echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11341if test "x${build}" != "x${host}" ; then
e8b05380
PB
11342 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11343 # We already found the complete path
172e41aa 11344 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11345 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11346echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11347 else
11348 # Canadian cross, just use what we found
2aeb72e9
DD
11349 echo "$as_me:$LINENO: result: pre-installed" >&5
11350echo "${ECHO_T}pre-installed" >&6
e8b05380 11351 fi
2abefe3d
PB
11352else
11353 ok=yes
11354 case " ${configdirs} " in
11355 *" binutils "*) ;;
11356 *) ok=no ;;
11357 esac
1c710c3c 11358
2abefe3d
PB
11359 if test $ok = yes; then
11360 # An in-tree tool is available and we can use it
11361 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11362 echo "$as_me:$LINENO: result: just compiled" >&5
11363echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11364 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11365 # We already found the complete path
172e41aa 11366 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11367 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11368echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11369 elif test "x$target" = "x$host"; then
11370 # We can use an host tool
11371 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11372 echo "$as_me:$LINENO: result: host tool" >&5
11373echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11374 else
11375 # We need a cross tool
2aeb72e9
DD
11376 echo "$as_me:$LINENO: result: pre-installed" >&5
11377echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11378 fi
11379fi
0b0dc272 11380
2aeb72e9
DD
11381echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11382echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11383if test "x${build}" != "x${host}" ; then
e8b05380
PB
11384 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11385 # We already found the complete path
172e41aa 11386 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11387 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11388echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11389 else
11390 # Canadian cross, just use what we found
2aeb72e9
DD
11391 echo "$as_me:$LINENO: result: pre-installed" >&5
11392echo "${ECHO_T}pre-installed" >&6
e8b05380 11393 fi
2abefe3d
PB
11394else
11395 ok=yes
11396 case " ${configdirs} " in
11397 *" gcc "*) ;;
11398 *) ok=no ;;
11399 esac
1c710c3c 11400
2abefe3d
PB
11401 if test $ok = yes; then
11402 # An in-tree tool is available and we can use it
11403 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11404 echo "$as_me:$LINENO: result: just compiled" >&5
11405echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11406 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11407 # We already found the complete path
172e41aa 11408 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11409 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11410echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11411 elif test "x$target" = "x$host"; then
11412 # We can use an host tool
11413 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11414 echo "$as_me:$LINENO: result: host tool" >&5
11415echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11416 else
11417 # We need a cross tool
2aeb72e9
DD
11418 echo "$as_me:$LINENO: result: pre-installed" >&5
11419echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11420 fi
11421fi
0b0dc272 11422
2aeb72e9
DD
11423echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11424echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11425if test "x${build}" != "x${host}" ; then
e8b05380
PB
11426 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11427 # We already found the complete path
172e41aa 11428 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11429 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11430echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11431 else
11432 # Canadian cross, just use what we found
2aeb72e9
DD
11433 echo "$as_me:$LINENO: result: pre-installed" >&5
11434echo "${ECHO_T}pre-installed" >&6
e8b05380 11435 fi
2abefe3d
PB
11436else
11437 ok=yes
11438 case " ${configdirs} " in
11439 *" gcc "*) ;;
11440 *) ok=no ;;
11441 esac
11442 case ,${enable_languages}, in
11443 *,java,*) ;;
11444 *) ok=no ;;
11445 esac
11446 if test $ok = yes; then
11447 # An in-tree tool is available and we can use it
11448 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11449 echo "$as_me:$LINENO: result: just compiled" >&5
11450echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11451 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11452 # We already found the complete path
172e41aa 11453 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11454 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11455echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11456 elif test "x$target" = "x$host"; then
11457 # We can use an host tool
11458 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11459 echo "$as_me:$LINENO: result: host tool" >&5
11460echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11461 else
11462 # We need a cross tool
2aeb72e9
DD
11463 echo "$as_me:$LINENO: result: pre-installed" >&5
11464echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11465 fi
11466fi
0b0dc272 11467
2aeb72e9
DD
11468echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11469echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11470if test "x${build}" != "x${host}" ; then
e8b05380
PB
11471 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11472 # We already found the complete path
172e41aa 11473 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11474 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11475echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11476 else
11477 # Canadian cross, just use what we found
2aeb72e9
DD
11478 echo "$as_me:$LINENO: result: pre-installed" >&5
11479echo "${ECHO_T}pre-installed" >&6
e8b05380 11480 fi
2abefe3d
PB
11481else
11482 ok=yes
11483 case " ${configdirs} " in
11484 *" gcc "*) ;;
11485 *) ok=no ;;
11486 esac
11487 case ,${enable_languages}, in
11488 *,fortran,*) ;;
11489 *) ok=no ;;
11490 esac
11491 if test $ok = yes; then
11492 # An in-tree tool is available and we can use it
11493 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11494 echo "$as_me:$LINENO: result: just compiled" >&5
11495echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11496 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11497 # We already found the complete path
172e41aa 11498 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11499 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11500echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11501 elif test "x$target" = "x$host"; then
11502 # We can use an host tool
11503 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11504 echo "$as_me:$LINENO: result: host tool" >&5
11505echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11506 else
11507 # We need a cross tool
2aeb72e9
DD
11508 echo "$as_me:$LINENO: result: pre-installed" >&5
11509echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11510 fi
11511fi
0b0dc272 11512
2aeb72e9
DD
11513echo "$as_me:$LINENO: checking where to find the target ld" >&5
11514echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11515if test "x${build}" != "x${host}" ; then
e8b05380
PB
11516 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11517 # We already found the complete path
172e41aa 11518 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11519 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11520echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11521 else
11522 # Canadian cross, just use what we found
2aeb72e9
DD
11523 echo "$as_me:$LINENO: result: pre-installed" >&5
11524echo "${ECHO_T}pre-installed" >&6
e8b05380 11525 fi
2abefe3d
PB
11526else
11527 ok=yes
11528 case " ${configdirs} " in
11529 *" ld "*) ;;
11530 *) ok=no ;;
11531 esac
1c710c3c 11532
2abefe3d
PB
11533 if test $ok = yes; then
11534 # An in-tree tool is available and we can use it
11535 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11536 echo "$as_me:$LINENO: result: just compiled" >&5
11537echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11538 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11539 # We already found the complete path
172e41aa 11540 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11541 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11542echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11543 elif test "x$target" = "x$host"; then
11544 # We can use an host tool
11545 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11546 echo "$as_me:$LINENO: result: host tool" >&5
11547echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11548 else
11549 # We need a cross tool
2aeb72e9
DD
11550 echo "$as_me:$LINENO: result: pre-installed" >&5
11551echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11552 fi
11553fi
0b0dc272 11554
2aeb72e9
DD
11555echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11556echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11557if test "x${build}" != "x${host}" ; then
e8b05380
PB
11558 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11559 # We already found the complete path
172e41aa 11560 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11561 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11562echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11563 else
11564 # Canadian cross, just use what we found
2aeb72e9
DD
11565 echo "$as_me:$LINENO: result: pre-installed" >&5
11566echo "${ECHO_T}pre-installed" >&6
e8b05380 11567 fi
2abefe3d 11568else
e8b05380
PB
11569 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
172e41aa 11571 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11574 elif test "x$target" = "x$host"; then
2abefe3d
PB
11575 # We can use an host tool
11576 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11577 echo "$as_me:$LINENO: result: host tool" >&5
11578echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11579 else
11580 # We need a cross tool
2aeb72e9
DD
11581 echo "$as_me:$LINENO: result: pre-installed" >&5
11582echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11583 fi
11584fi
0b0dc272 11585
2aeb72e9
DD
11586echo "$as_me:$LINENO: checking where to find the target nm" >&5
11587echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11588if test "x${build}" != "x${host}" ; then
e8b05380
PB
11589 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11590 # We already found the complete path
172e41aa 11591 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11592 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11593echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11594 else
11595 # Canadian cross, just use what we found
2aeb72e9
DD
11596 echo "$as_me:$LINENO: result: pre-installed" >&5
11597echo "${ECHO_T}pre-installed" >&6
e8b05380 11598 fi
2abefe3d
PB
11599else
11600 ok=yes
11601 case " ${configdirs} " in
11602 *" binutils "*) ;;
11603 *) ok=no ;;
11604 esac
1c710c3c 11605
2abefe3d
PB
11606 if test $ok = yes; then
11607 # An in-tree tool is available and we can use it
11608 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11609 echo "$as_me:$LINENO: result: just compiled" >&5
11610echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11611 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
172e41aa 11613 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11616 elif test "x$target" = "x$host"; then
11617 # We can use an host tool
11618 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11619 echo "$as_me:$LINENO: result: host tool" >&5
11620echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11621 else
11622 # We need a cross tool
2aeb72e9
DD
11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11625 fi
11626fi
0b0dc272 11627
2aeb72e9
DD
11628echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11629echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11630if test "x${build}" != "x${host}" ; then
e8b05380
PB
11631 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11632 # We already found the complete path
172e41aa 11633 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11634 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11635echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11636 else
11637 # Canadian cross, just use what we found
2aeb72e9
DD
11638 echo "$as_me:$LINENO: result: pre-installed" >&5
11639echo "${ECHO_T}pre-installed" >&6
e8b05380 11640 fi
2abefe3d
PB
11641else
11642 ok=yes
11643 case " ${configdirs} " in
11644 *" binutils "*) ;;
11645 *) ok=no ;;
11646 esac
1c710c3c 11647
2abefe3d
PB
11648 if test $ok = yes; then
11649 # An in-tree tool is available and we can use it
11650 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11651 echo "$as_me:$LINENO: result: just compiled" >&5
11652echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11653 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11654 # We already found the complete path
172e41aa 11655 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11656 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11657echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11658 elif test "x$target" = "x$host"; then
11659 # We can use an host tool
11660 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11661 echo "$as_me:$LINENO: result: host tool" >&5
11662echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11663 else
11664 # We need a cross tool
2aeb72e9
DD
11665 echo "$as_me:$LINENO: result: pre-installed" >&5
11666echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11667 fi
11668fi
0b0dc272 11669
2aeb72e9
DD
11670echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11671echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11672if test "x${build}" != "x${host}" ; then
e8b05380
PB
11673 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11674 # We already found the complete path
172e41aa 11675 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11677echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11678 else
11679 # Canadian cross, just use what we found
2aeb72e9
DD
11680 echo "$as_me:$LINENO: result: pre-installed" >&5
11681echo "${ECHO_T}pre-installed" >&6
e8b05380 11682 fi
2abefe3d
PB
11683else
11684 ok=yes
11685 case " ${configdirs} " in
11686 *" binutils "*) ;;
11687 *) ok=no ;;
11688 esac
1c710c3c 11689
2abefe3d
PB
11690 if test $ok = yes; then
11691 # An in-tree tool is available and we can use it
11692 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11693 echo "$as_me:$LINENO: result: just compiled" >&5
11694echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11695 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11696 # We already found the complete path
172e41aa 11697 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11698 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11699echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11700 elif test "x$target" = "x$host"; then
11701 # We can use an host tool
11702 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11703 echo "$as_me:$LINENO: result: host tool" >&5
11704echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11705 else
11706 # We need a cross tool
2aeb72e9
DD
11707 echo "$as_me:$LINENO: result: pre-installed" >&5
11708echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11709 fi
11710fi
0b0dc272 11711
2aeb72e9
DD
11712echo "$as_me:$LINENO: checking where to find the target strip" >&5
11713echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11714if test "x${build}" != "x${host}" ; then
e8b05380
PB
11715 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11716 # We already found the complete path
172e41aa 11717 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11718 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11719echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11720 else
11721 # Canadian cross, just use what we found
2aeb72e9
DD
11722 echo "$as_me:$LINENO: result: pre-installed" >&5
11723echo "${ECHO_T}pre-installed" >&6
e8b05380 11724 fi
2abefe3d
PB
11725else
11726 ok=yes
11727 case " ${configdirs} " in
11728 *" binutils "*) ;;
11729 *) ok=no ;;
11730 esac
1c710c3c 11731
2abefe3d
PB
11732 if test $ok = yes; then
11733 # An in-tree tool is available and we can use it
11734 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11735 echo "$as_me:$LINENO: result: just compiled" >&5
11736echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11737 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11738 # We already found the complete path
172e41aa 11739 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11740 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11741echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11742 elif test "x$target" = "x$host"; then
11743 # We can use an host tool
11744 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11745 echo "$as_me:$LINENO: result: host tool" >&5
11746echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11747 else
11748 # We need a cross tool
2aeb72e9
DD
11749 echo "$as_me:$LINENO: result: pre-installed" >&5
11750echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11751 fi
11752fi
0b0dc272 11753
2aeb72e9
DD
11754echo "$as_me:$LINENO: checking where to find the target windres" >&5
11755echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11756if test "x${build}" != "x${host}" ; then
e8b05380
PB
11757 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11758 # We already found the complete path
172e41aa 11759 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11760 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11761echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11762 else
11763 # Canadian cross, just use what we found
2aeb72e9
DD
11764 echo "$as_me:$LINENO: result: pre-installed" >&5
11765echo "${ECHO_T}pre-installed" >&6
e8b05380 11766 fi
2abefe3d
PB
11767else
11768 ok=yes
11769 case " ${configdirs} " in
11770 *" binutils "*) ;;
11771 *) ok=no ;;
11772 esac
1c710c3c 11773
2abefe3d
PB
11774 if test $ok = yes; then
11775 # An in-tree tool is available and we can use it
11776 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11777 echo "$as_me:$LINENO: result: just compiled" >&5
11778echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11779 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11780 # We already found the complete path
172e41aa 11781 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11782 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11783echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11784 elif test "x$target" = "x$host"; then
11785 # We can use an host tool
11786 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11787 echo "$as_me:$LINENO: result: host tool" >&5
11788echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11789 else
11790 # We need a cross tool
2aeb72e9
DD
11791 echo "$as_me:$LINENO: result: pre-installed" >&5
11792echo "${ECHO_T}pre-installed" >&6
2abefe3d 11793 fi
671aa708 11794fi
be912515 11795
901119ae
KT
11796echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11797echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11798if test "x${build}" != "x${host}" ; then
11799 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11800 # We already found the complete path
11801 ac_dir=`dirname $WINDMC_FOR_TARGET`
11802 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11803echo "${ECHO_T}pre-installed in $ac_dir" >&6
11804 else
11805 # Canadian cross, just use what we found
11806 echo "$as_me:$LINENO: result: pre-installed" >&5
11807echo "${ECHO_T}pre-installed" >&6
11808 fi
11809else
11810 ok=yes
11811 case " ${configdirs} " in
11812 *" binutils "*) ;;
11813 *) ok=no ;;
11814 esac
11815
11816 if test $ok = yes; then
11817 # An in-tree tool is available and we can use it
11818 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11819 echo "$as_me:$LINENO: result: just compiled" >&5
11820echo "${ECHO_T}just compiled" >&6
11821 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11822 # We already found the complete path
11823 ac_dir=`dirname $WINDMC_FOR_TARGET`
11824 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11825echo "${ECHO_T}pre-installed in $ac_dir" >&6
11826 elif test "x$target" = "x$host"; then
11827 # We can use an host tool
11828 WINDMC_FOR_TARGET='$(WINDMC)'
11829 echo "$as_me:$LINENO: result: host tool" >&5
11830echo "${ECHO_T}host tool" >&6
11831 else
11832 # We need a cross tool
11833 echo "$as_me:$LINENO: result: pre-installed" >&5
11834echo "${ECHO_T}pre-installed" >&6
11835 fi
11836fi
11837
be912515
NN
11838
11839
2abefe3d 11840
0b0dc272 11841
671aa708
NN
11842# Certain tools may need extra flags.
11843AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11844RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11845NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11846
2abefe3d
PB
11847# When building target libraries, except in a Canadian cross, we use
11848# the same toolchain as the compiler we just built.
11849COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11850COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11851COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11852if test $host = $build; then
11853 case " $configdirs " in
11854 *" gcc "*)
11855 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11856 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11857 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11858 ;;
11859 esac
11860fi
11861
11862
11863
11864
11865
2aeb72e9
DD
11866echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11867echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11868# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11869if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11870 enableval="$enable_maintainer_mode"
11871 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11872else
11873 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11874fi;
11875echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11876echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11877
11878
11879if test "$USE_MAINTAINER_MODE" = yes; then
11880 MAINTAINER_MODE_TRUE=
11881 MAINTAINER_MODE_FALSE='#'
11882else
11883 MAINTAINER_MODE_TRUE='#'
11884 MAINTAINER_MODE_FALSE=
1c710c3c 11885fi
ee03dc5e
AO
11886MAINT=$MAINTAINER_MODE_TRUE
11887
2805b53a
NN
11888# ---------------------
11889# GCC bootstrap support
11890# ---------------------
11891
11892# Stage specific cflags for build.
11893stage1_cflags="-g"
11894case $build in
11895 vax-*-*)
11896 case ${GCC} in
11897 yes) stage1_cflags="-g -Wa,-J" ;;
11898 *) stage1_cflags="-g -J" ;;
11899 esac ;;
2805b53a
NN
11900esac
11901
0b50988a
EB
11902# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11903if test "$GCC" = yes; then
11904 saved_CFLAGS="$CFLAGS"
11905
11906 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11907 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
11908 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11909echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
11910 cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916
9cc1244e
JJ
11917#if (__GNUC__ < 3) \
11918 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11919 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11920#error http://gcc.gnu.org/PR29382
11921#endif
11922
1c710c3c
DJ
11923int
11924main ()
11925{
11926
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
2aeb72e9
DD
11932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag"
11941 || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 echo "$as_me:$LINENO: result: yes" >&5
11954echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
11955else
11956 echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
2aeb72e9
DD
11959echo "$as_me:$LINENO: result: no" >&5
11960echo "${ECHO_T}no" >&6
1c710c3c 11961fi
2aeb72e9 11962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
11963
11964 CFLAGS="$saved_CFLAGS"
11965fi
11966
11967
2805b53a 11968
8efea775 11969# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 11970# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 11971if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
11972 enableval="$enable_stage1_checking"
11973 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775
PB
11974else
11975 if test "x$enable_checking" = xno; then
7e98624c 11976 stage1_checking=--enable-checking=yes,types
8efea775 11977else
7e98624c 11978 stage1_checking=--enable-checking=types${enable_checking+,}$enable_checking
8efea775 11979fi
2aeb72e9 11980fi;
8efea775
PB
11981
11982
2805b53a 11983# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 11984# Check whether --enable-werror or --disable-werror was given.
2805b53a 11985if test "${enable_werror+set}" = set; then
2aeb72e9
DD
11986 enableval="$enable_werror"
11987
2805b53a 11988else
416cfb5e 11989 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 11990 enable_werror=yes
88fceb68
PB
11991else
11992 enable_werror=no
11993fi
2aeb72e9 11994fi;
09a9c095
NN
11995case ${enable_werror} in
11996 yes) stage2_werror_flag="--enable-werror-always" ;;
11997 *) stage2_werror_flag="" ;;
2805b53a
NN
11998esac
11999
12000
32845532 12001# Flags needed to enable html installing and building
1c710c3c 12002
2aeb72e9 12003# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12004if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12005 withval="$with_datarootdir"
12006 datarootdir="\${prefix}/${withval}"
32845532
CD
12007else
12008 datarootdir="\${prefix}/share"
2aeb72e9 12009fi;
32845532
CD
12010
12011
2aeb72e9 12012# Check whether --with-docdir or --without-docdir was given.
32845532 12013if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12014 withval="$with_docdir"
12015 docdir="\${prefix}/${withval}"
32845532
CD
12016else
12017 docdir="\${datarootdir}/doc"
2aeb72e9 12018fi;
32845532
CD
12019
12020
2aeb72e9 12021# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12022if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12023 withval="$with_pdfdir"
12024 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12025else
12026 pdfdir="\${docdir}"
2aeb72e9 12027fi;
9c4d2493
BM
12028
12029
2aeb72e9 12030# Check whether --with-htmldir or --without-htmldir was given.
32845532 12031if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12032 withval="$with_htmldir"
12033 htmldir="\${prefix}/${withval}"
32845532
CD
12034else
12035 htmldir="\${docdir}"
2aeb72e9 12036fi;
32845532
CD
12037
12038
12039
12040
172e41aa 12041
11a67599 12042
2aeb72e9 12043 ac_config_files="$ac_config_files Makefile"
1c710c3c 12044cat >confcache <<\_ACEOF
671aa708
NN
12045# This file is a shell script that caches the results of configure
12046# tests run on this system so they can be shared between configure
1c710c3c
DJ
12047# scripts and configure runs, see configure's option --config-cache.
12048# It is not useful on other systems. If it contains results you don't
12049# want to keep, you may remove or edit it.
671aa708 12050#
1c710c3c
DJ
12051# config.status only pays attention to the cache file if you give it
12052# the --recheck option to rerun configure.
671aa708 12053#
1c710c3c
DJ
12054# `ac_cv_env_foo' variables (set or unset) will be overridden when
12055# loading this file, other *unset* `ac_cv_foo' will be assigned the
12056# following values.
12057
12058_ACEOF
12059
671aa708
NN
12060# The following way of writing the cache mishandles newlines in values,
12061# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12062# So, don't put newlines in cache variables' values.
671aa708
NN
12063# Ultrix sh set writes to stderr and can't be redirected directly,
12064# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12065{
1c710c3c 12066 (set) 2>&1 |
2aeb72e9
DD
12067 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12068 *ac_space=\ *)
1c710c3c
DJ
12069 # `set' does not quote correctly, so add quotes (double-quote
12070 # substitution turns \\\\ into \\, and sed turns \\ into \).
12071 sed -n \
12072 "s/'/'\\\\''/g;
12073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12074 ;;
1c710c3c
DJ
12075 *)
12076 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12077 sed -n \
12078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12079 ;;
2aeb72e9
DD
12080 esac;
12081} |
1c710c3c
DJ
12082 sed '
12083 t clear
2aeb72e9 12084 : clear
1c710c3c
DJ
12085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12086 t end
2aeb72e9
DD
12087 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12088 : end' >>confcache
12089if diff $cache_file confcache >/dev/null 2>&1; then :; else
12090 if test -w $cache_file; then
12091 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12092 cat confcache >$cache_file
671aa708 12093 else
2aeb72e9 12094 echo "not updating unwritable cache $cache_file"
671aa708 12095 fi
4977bab6 12096fi
671aa708 12097rm -f confcache
79c06341 12098
671aa708
NN
12099test "x$prefix" = xNONE && prefix=$ac_default_prefix
12100# Let make expand exec_prefix.
12101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12102
2aeb72e9
DD
12103# VPATH may cause trouble with some makes, so we remove $(srcdir),
12104# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12105# trailing colons and then remove the whole line if VPATH becomes empty
12106# (actually we leave an empty line to preserve line numbers).
12107if test "x$srcdir" = x.; then
12108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12109s/:*\$(srcdir):*/:/;
12110s/:*\${srcdir}:*/:/;
12111s/:*@srcdir@:*/:/;
12112s/^\([^=]*=[ ]*\):*/\1/;
12113s/:*$//;
12114s/^[^=]*=[ ]*$//;
12115}'
12116fi
12117
671aa708
NN
12118# Transform confdefs.h into DEFS.
12119# Protect against shell expansion while executing Makefile rules.
12120# Protect against Makefile macro expansion.
1c710c3c
DJ
12121#
12122# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12123# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12124# look for a macro that doesn't take arguments.
2aeb72e9 12125cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12126t clear
2aeb72e9
DD
12127: clear
12128s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12129t quote
2aeb72e9 12130s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12131t quote
2aeb72e9
DD
12132d
12133: quote
12134s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12135s,\[,\\&,g
12136s,\],\\&,g
12137s,\$,$$,g
12138p
12139_ACEOF
12140# We use echo to avoid assuming a particular line-breaking character.
12141# The extra dot is to prevent the shell from consuming trailing
12142# line-breaks from the sub-command output. A line-break within
12143# single-quotes doesn't work because, if this script is created in a
12144# platform that uses two characters for line-breaks (e.g., DOS), tr
12145# would break.
12146ac_LF_and_DOT=`echo; echo .`
12147DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12148rm -f confdef2opt.sed
1c710c3c
DJ
12149
12150
12151ac_libobjs=
12152ac_ltlibobjs=
12153for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12154 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12155 ac_i=`echo "$ac_i" |
12156 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12157 # 2. Add them.
12158 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12159 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12160done
12161LIBOBJS=$ac_libobjs
fb0103e5 12162
1c710c3c 12163LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12164
af71363e 12165
1c710c3c
DJ
12166
12167: ${CONFIG_STATUS=./config.status}
12168ac_clean_files_save=$ac_clean_files
12169ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12170{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12171echo "$as_me: creating $CONFIG_STATUS" >&6;}
12172cat >$CONFIG_STATUS <<_ACEOF
12173#! $SHELL
12174# Generated by $as_me.
671aa708 12175# Run this file to recreate the current configuration.
671aa708 12176# Compiler output produced by configure, useful for debugging
1c710c3c 12177# configure, is in config.log if it exists.
0b0dc272 12178
1c710c3c
DJ
12179debug=false
12180ac_cs_recheck=false
12181ac_cs_silent=false
12182SHELL=\${CONFIG_SHELL-$SHELL}
12183_ACEOF
12184
12185cat >>$CONFIG_STATUS <<\_ACEOF
12186## --------------------- ##
12187## M4sh Initialization. ##
12188## --------------------- ##
12189
2aeb72e9 12190# Be Bourne compatible
1c710c3c
DJ
12191if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12192 emulate sh
12193 NULLCMD=:
12194 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12195 # is contrary to our usage. Disable this feature.
12196 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12197elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12198 set -o posix
1c710c3c 12199fi
2aeb72e9 12200DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12201
12202# Support unset when possible.
12203if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12204 as_unset=unset
12205else
12206 as_unset=false
12207fi
12208
12209
12210# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12211$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12212PS1='$ '
12213PS2='> '
12214PS4='+ '
12215
12216# NLS nuisances.
12217for as_var in \
12218 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12219 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12220 LC_TELEPHONE LC_TIME
12221do
12222 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12223 eval $as_var=C; export $as_var
12224 else
2aeb72e9 12225 $as_unset $as_var
1c710c3c
DJ
12226 fi
12227done
12228
12229# Required to use basename.
2aeb72e9 12230if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12231 as_expr=expr
12232else
12233 as_expr=false
12234fi
12235
2aeb72e9 12236if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12237 as_basename=basename
12238else
12239 as_basename=false
12240fi
12241
12242
12243# Name of the executable.
2aeb72e9 12244as_me=`$as_basename "$0" ||
1c710c3c
DJ
12245$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12246 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12247 X"$0" : 'X\(/\)$' \| \
12248 . : '\(.\)' 2>/dev/null ||
1c710c3c 12249echo X/"$0" |
2aeb72e9
DD
12250 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12251 /^X\/\(\/\/\)$/{ s//\1/; q; }
12252 /^X\/\(\/\).*/{ s//\1/; q; }
12253 s/.*/./; q'`
1c710c3c 12254
2aeb72e9
DD
12255
12256# PATH needs CR, and LINENO needs CR and PATH.
12257# Avoid depending upon Character Ranges.
12258as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12259as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12260as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12261as_cr_digits='0123456789'
12262as_cr_alnum=$as_cr_Letters$as_cr_digits
12263
12264# The user is always right.
12265if test "${PATH_SEPARATOR+set}" != set; then
12266 echo "#! /bin/sh" >conf$$.sh
12267 echo "exit 0" >>conf$$.sh
12268 chmod +x conf$$.sh
12269 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12270 PATH_SEPARATOR=';'
12271 else
12272 PATH_SEPARATOR=:
12273 fi
12274 rm -f conf$$.sh
12275fi
1c710c3c
DJ
12276
12277
2aeb72e9
DD
12278 as_lineno_1=$LINENO
12279 as_lineno_2=$LINENO
12280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12281 test "x$as_lineno_1" != "x$as_lineno_2" &&
12282 test "x$as_lineno_3" = "x$as_lineno_2" || {
12283 # Find who we are. Look in the path if we contain no path at all
12284 # relative or not.
12285 case $0 in
12286 *[\\/]* ) as_myself=$0 ;;
12287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288for as_dir in $PATH
12289do
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12293done
1c710c3c 12294
2aeb72e9
DD
12295 ;;
12296 esac
12297 # We did not find ourselves, most probably we were run as `sh COMMAND'
12298 # in which case we are not to be found in the path.
12299 if test "x$as_myself" = x; then
12300 as_myself=$0
12301 fi
12302 if test ! -f "$as_myself"; then
12303 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12304echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12305 { (exit 1); exit 1; }; }
12306 fi
12307 case $CONFIG_SHELL in
12308 '')
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12311do
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
12314 for as_base in sh bash ksh sh5; do
12315 case $as_dir in
12316 /*)
12317 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12318 as_lineno_1=$LINENO
12319 as_lineno_2=$LINENO
2aeb72e9 12320 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12321 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12322 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12323 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12324 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12325 CONFIG_SHELL=$as_dir/$as_base
12326 export CONFIG_SHELL
12327 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12328 fi;;
12329 esac
12330 done
12331done
12332;;
12333 esac
1c710c3c
DJ
12334
12335 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12336 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12337 # line-number line before each line; the second 'sed' does the real
12338 # work. The second script uses 'N' to pair each line-number line
12339 # with the numbered line, and appends trailing '-' during
12340 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12341 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12342 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12343 sed '=' <$as_myself |
1c710c3c
DJ
12344 sed '
12345 N
2aeb72e9
DD
12346 s,$,-,
12347 : loop
12348 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12349 t loop
2aeb72e9
DD
12350 s,-$,,
12351 s,^['$as_cr_digits']*\n,,
1c710c3c 12352 ' >$as_me.lineno &&
2aeb72e9
DD
12353 chmod +x $as_me.lineno ||
12354 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12355echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12356 { (exit 1); exit 1; }; }
12357
12358 # Don't try to exec as it changes $[0], causing all sort of problems
12359 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12360 # original and so on. Autoconf is especially sensible to this).
12361 . ./$as_me.lineno
1c710c3c
DJ
12362 # Exit status is that of the last command.
12363 exit
12364}
12365
12366
2aeb72e9
DD
12367case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12368 *c*,-n*) ECHO_N= ECHO_C='
12369' ECHO_T=' ' ;;
12370 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12371 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12372esac
12373
2aeb72e9 12374if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12375 as_expr=expr
12376else
12377 as_expr=false
12378fi
12379
12380rm -f conf$$ conf$$.exe conf$$.file
12381echo >conf$$.file
12382if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12383 # We could just check for DJGPP; but this test a) works b) is more generic
12384 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12385 if test -f conf$$.exe; then
12386 # Don't use ln at all; we don't have any links
1c710c3c 12387 as_ln_s='cp -p'
2aeb72e9
DD
12388 else
12389 as_ln_s='ln -s'
12390 fi
1c710c3c
DJ
12391elif ln conf$$.file conf$$ 2>/dev/null; then
12392 as_ln_s=ln
12393else
12394 as_ln_s='cp -p'
12395fi
2aeb72e9 12396rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12397
12398if mkdir -p . 2>/dev/null; then
12399 as_mkdir_p=:
12400else
12401 test -d ./-p && rmdir ./-p
12402 as_mkdir_p=false
12403fi
12404
2aeb72e9 12405as_executable_p="test -f"
1c710c3c
DJ
12406
12407# Sed expression to map a string onto a valid CPP name.
12408as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12409
12410# Sed expression to map a string onto a valid variable name.
12411as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12412
12413
2aeb72e9
DD
12414# IFS
12415# We need space, tab and new line, in precisely that order.
12416as_nl='
12417'
12418IFS=" $as_nl"
12419
12420# CDPATH.
12421$as_unset CDPATH
12422
1c710c3c
DJ
12423exec 6>&1
12424
2aeb72e9 12425# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12426# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12427# values after options handling. Logging --version etc. is OK.
12428exec 5>>config.log
12429{
12430 echo
12431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12432## Running $as_me. ##
12433_ASBOX
12434} >&5
12435cat >&5 <<_CSEOF
12436
1c710c3c 12437This file was extended by $as_me, which was
2aeb72e9 12438generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12439
12440 CONFIG_FILES = $CONFIG_FILES
12441 CONFIG_HEADERS = $CONFIG_HEADERS
12442 CONFIG_LINKS = $CONFIG_LINKS
12443 CONFIG_COMMANDS = $CONFIG_COMMANDS
12444 $ $0 $@
12445
2aeb72e9
DD
12446_CSEOF
12447echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12448echo >&5
1c710c3c
DJ
12449_ACEOF
12450
12451# Files that config.status was made for.
2aeb72e9
DD
12452if test -n "$ac_config_files"; then
12453 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12454fi
1c710c3c 12455
2aeb72e9
DD
12456if test -n "$ac_config_headers"; then
12457 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12458fi
12459
12460if test -n "$ac_config_links"; then
12461 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12462fi
12463
12464if test -n "$ac_config_commands"; then
12465 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12466fi
1c710c3c
DJ
12467
12468cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12469
1c710c3c
DJ
12470ac_cs_usage="\
12471\`$as_me' instantiates files from templates according to the
12472current configuration.
12473
12474Usage: $0 [OPTIONS] [FILE]...
12475
12476 -h, --help print this help, then exit
2aeb72e9 12477 -V, --version print version number, then exit
1c710c3c
DJ
12478 -q, --quiet do not print progress messages
12479 -d, --debug don't remove temporary files
12480 --recheck update $as_me by reconfiguring in the same conditions
12481 --file=FILE[:TEMPLATE]
12482 instantiate the configuration file FILE
12483
12484Configuration files:
12485$config_files
12486
12487Report bugs to <bug-autoconf@gnu.org>."
11a67599 12488_ACEOF
2aeb72e9 12489
1c710c3c
DJ
12490cat >>$CONFIG_STATUS <<_ACEOF
12491ac_cs_version="\\
12492config.status
2aeb72e9
DD
12493configured by $0, generated by GNU Autoconf 2.59,
12494 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12495
2aeb72e9 12496Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12497This config.status script is free software; the Free Software Foundation
12498gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12499srcdir=$srcdir
12500INSTALL="$INSTALL"
1c710c3c
DJ
12501_ACEOF
12502
12503cat >>$CONFIG_STATUS <<\_ACEOF
12504# If no file are specified by the user, then we need to provide default
12505# value. By we need to know if files were specified by the user.
12506ac_need_defaults=:
12507while test $# != 0
a4b9e93e 12508do
1c710c3c
DJ
12509 case $1 in
12510 --*=*)
2aeb72e9
DD
12511 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12512 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12513 ac_shift=:
12514 ;;
2aeb72e9 12515 -*)
1c710c3c
DJ
12516 ac_option=$1
12517 ac_optarg=$2
12518 ac_shift=shift
12519 ;;
2aeb72e9
DD
12520 *) # This is not an option, so the user has probably given explicit
12521 # arguments.
12522 ac_option=$1
12523 ac_need_defaults=false;;
1c710c3c
DJ
12524 esac
12525
12526 case $ac_option in
12527 # Handling of the options.
2aeb72e9
DD
12528_ACEOF
12529cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12531 ac_cs_recheck=: ;;
2aeb72e9
DD
12532 --version | --vers* | -V )
12533 echo "$ac_cs_version"; exit 0 ;;
12534 --he | --h)
12535 # Conflict between --help and --header
12536 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12537Try \`$0 --help' for more information." >&5
12538echo "$as_me: error: ambiguous option: $1
12539Try \`$0 --help' for more information." >&2;}
12540 { (exit 1); exit 1; }; };;
12541 --help | --hel | -h )
12542 echo "$ac_cs_usage"; exit 0 ;;
12543 --debug | --d* | -d )
1c710c3c
DJ
12544 debug=: ;;
12545 --file | --fil | --fi | --f )
12546 $ac_shift
12547 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12548 ac_need_defaults=false;;
2aeb72e9
DD
12549 --header | --heade | --head | --hea )
12550 $ac_shift
12551 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12552 ac_need_defaults=false;;
1c710c3c
DJ
12553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12555 ac_cs_silent=: ;;
12556
12557 # This is an error.
2aeb72e9
DD
12558 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12559Try \`$0 --help' for more information." >&5
12560echo "$as_me: error: unrecognized option: $1
12561Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12562 { (exit 1); exit 1; }; } ;;
12563
2aeb72e9 12564 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12565
0b0dc272 12566 esac
1c710c3c 12567 shift
0b0dc272
AM
12568done
12569
1c710c3c 12570ac_configure_extra_args=
0b0dc272 12571
1c710c3c
DJ
12572if $ac_cs_silent; then
12573 exec 6>/dev/null
12574 ac_configure_extra_args="$ac_configure_extra_args --silent"
12575fi
0b0dc272 12576
1c710c3c
DJ
12577_ACEOF
12578cat >>$CONFIG_STATUS <<_ACEOF
12579if \$ac_cs_recheck; then
2aeb72e9
DD
12580 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12581 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12582fi
12583
12584_ACEOF
12585
1c710c3c 12586
11a67599 12587
2aeb72e9
DD
12588
12589
12590cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12591for ac_config_target in $ac_config_targets
12592do
2aeb72e9
DD
12593 case "$ac_config_target" in
12594 # Handling of arguments.
12595 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12597echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12598 { (exit 1); exit 1; }; };;
12599 esac
12600done
12601
12602# If the user did not use the arguments to specify the items to instantiate,
12603# then the envvar interface is used. Set only those that are not.
12604# We use the long form for the default assignment because of an extremely
12605# bizarre bug on SunOS 4.1.3.
12606if $ac_need_defaults; then
12607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12608fi
12609
12610# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12611# simply because there is no reason to put it here, and in addition,
1c710c3c 12612# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12613# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12614$debug ||
12615{
2aeb72e9 12616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12617 trap '{ (exit 1); exit 1; }' 1 2 13 15
12618}
2aeb72e9 12619
1c710c3c
DJ
12620# Create a (secure) tmp directory for tmp files.
12621
12622{
2aeb72e9 12623 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12624 test -n "$tmp" && test -d "$tmp"
12625} ||
12626{
2aeb72e9
DD
12627 tmp=./confstat$$-$RANDOM
12628 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12629} ||
12630{
12631 echo "$me: cannot create a temporary directory in ." >&2
12632 { (exit 1); exit 1; }
12633}
12634
2aeb72e9
DD
12635_ACEOF
12636
12637cat >>$CONFIG_STATUS <<_ACEOF
12638
1c710c3c 12639#
2aeb72e9 12640# CONFIG_FILES section.
1c710c3c
DJ
12641#
12642
12643# No need to generate the scripts if there are no CONFIG_FILES.
12644# This happens for instance when ./config.status config.h
2aeb72e9
DD
12645if test -n "\$CONFIG_FILES"; then
12646 # Protect against being on the right side of a sed subst in config.status.
12647 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12648 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12649s,@SHELL@,$SHELL,;t t
12650s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12651s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12652s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12653s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12654s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12655s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12656s,@exec_prefix@,$exec_prefix,;t t
12657s,@prefix@,$prefix,;t t
12658s,@program_transform_name@,$program_transform_name,;t t
12659s,@bindir@,$bindir,;t t
12660s,@sbindir@,$sbindir,;t t
12661s,@libexecdir@,$libexecdir,;t t
12662s,@datadir@,$datadir,;t t
12663s,@sysconfdir@,$sysconfdir,;t t
12664s,@sharedstatedir@,$sharedstatedir,;t t
12665s,@localstatedir@,$localstatedir,;t t
12666s,@libdir@,$libdir,;t t
12667s,@includedir@,$includedir,;t t
12668s,@oldincludedir@,$oldincludedir,;t t
12669s,@infodir@,$infodir,;t t
12670s,@mandir@,$mandir,;t t
12671s,@build_alias@,$build_alias,;t t
12672s,@host_alias@,$host_alias,;t t
12673s,@target_alias@,$target_alias,;t t
12674s,@DEFS@,$DEFS,;t t
12675s,@ECHO_C@,$ECHO_C,;t t
12676s,@ECHO_N@,$ECHO_N,;t t
12677s,@ECHO_T@,$ECHO_T,;t t
12678s,@LIBS@,$LIBS,;t t
12679s,@build@,$build,;t t
12680s,@build_cpu@,$build_cpu,;t t
12681s,@build_vendor@,$build_vendor,;t t
12682s,@build_os@,$build_os,;t t
12683s,@build_noncanonical@,$build_noncanonical,;t t
12684s,@host_noncanonical@,$host_noncanonical,;t t
12685s,@target_noncanonical@,$target_noncanonical,;t t
12686s,@host@,$host,;t t
12687s,@host_cpu@,$host_cpu,;t t
12688s,@host_vendor@,$host_vendor,;t t
12689s,@host_os@,$host_os,;t t
12690s,@target@,$target,;t t
12691s,@target_cpu@,$target_cpu,;t t
12692s,@target_vendor@,$target_vendor,;t t
12693s,@target_os@,$target_os,;t t
12694s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12695s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12696s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12697s,@LN@,$LN,;t t
12698s,@LN_S@,$LN_S,;t t
12699s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12700s,@build_libsubdir@,$build_libsubdir,;t t
12701s,@build_subdir@,$build_subdir,;t t
12702s,@host_subdir@,$host_subdir,;t t
12703s,@target_subdir@,$target_subdir,;t t
12704s,@CC@,$CC,;t t
12705s,@CFLAGS@,$CFLAGS,;t t
12706s,@LDFLAGS@,$LDFLAGS,;t t
12707s,@CPPFLAGS@,$CPPFLAGS,;t t
12708s,@ac_ct_CC@,$ac_ct_CC,;t t
12709s,@EXEEXT@,$EXEEXT,;t t
12710s,@OBJEXT@,$OBJEXT,;t t
12711s,@CXX@,$CXX,;t t
12712s,@CXXFLAGS@,$CXXFLAGS,;t t
12713s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12714s,@GNATBIND@,$GNATBIND,;t t
12715s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12716s,@GNATMAKE@,$GNATMAKE,;t t
12717s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12718s,@do_compare@,$do_compare,;t t
12719s,@gmplibs@,$gmplibs,;t t
12720s,@gmpinc@,$gmpinc,;t t
12721s,@stage1_languages@,$stage1_languages,;t t
12722s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12723s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12724s,@tooldir@,$tooldir,;t t
12725s,@build_tooldir@,$build_tooldir,;t t
12726s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12727s,@GDB_TK@,$GDB_TK,;t t
12728s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12729s,@build_configargs@,$build_configargs,;t t
12730s,@build_configdirs@,$build_configdirs,;t t
12731s,@host_configargs@,$host_configargs,;t t
12732s,@configdirs@,$configdirs,;t t
12733s,@target_configargs@,$target_configargs,;t t
12734s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12735s,@config_shell@,$config_shell,;t t
12736s,@YACC@,$YACC,;t t
12737s,@BISON@,$BISON,;t t
12738s,@M4@,$M4,;t t
12739s,@LEX@,$LEX,;t t
12740s,@FLEX@,$FLEX,;t t
12741s,@MAKEINFO@,$MAKEINFO,;t t
12742s,@EXPECT@,$EXPECT,;t t
12743s,@RUNTEST@,$RUNTEST,;t t
12744s,@AR@,$AR,;t t
12745s,@AS@,$AS,;t t
12746s,@DLLTOOL@,$DLLTOOL,;t t
12747s,@LD@,$LD,;t t
12748s,@LIPO@,$LIPO,;t t
12749s,@NM@,$NM,;t t
12750s,@RANLIB@,$RANLIB,;t t
12751s,@STRIP@,$STRIP,;t t
12752s,@WINDRES@,$WINDRES,;t t
901119ae 12753s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12754s,@OBJCOPY@,$OBJCOPY,;t t
12755s,@OBJDUMP@,$OBJDUMP,;t t
12756s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12757s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12758s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12759s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12760s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12761s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12762s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12763s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12764s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12765s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12766s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12767s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12768s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12769s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12770s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12771s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12772s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12773s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12774s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12775s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12776s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12777s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12778s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12779s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12780s,@MAINT@,$MAINT,;t t
12781s,@stage1_cflags@,$stage1_cflags,;t t
12782s,@stage1_checking@,$stage1_checking,;t t
12783s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12784s,@datarootdir@,$datarootdir,;t t
12785s,@docdir@,$docdir,;t t
12786s,@pdfdir@,$pdfdir,;t t
12787s,@htmldir@,$htmldir,;t t
12788s,@LIBOBJS@,$LIBOBJS,;t t
12789s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12790/@serialization_dependencies@/r $serialization_dependencies
12791s,@serialization_dependencies@,,;t t
12792/@host_makefile_frag@/r $host_makefile_frag
12793s,@host_makefile_frag@,,;t t
12794/@target_makefile_frag@/r $target_makefile_frag
12795s,@target_makefile_frag@,,;t t
12796/@alphaieee_frag@/r $alphaieee_frag
12797s,@alphaieee_frag@,,;t t
12798/@ospace_frag@/r $ospace_frag
12799s,@ospace_frag@,,;t t
12800CEOF
79c06341 12801
1c710c3c
DJ
12802_ACEOF
12803
2aeb72e9
DD
12804 cat >>$CONFIG_STATUS <<\_ACEOF
12805 # Split the substitutions into bite-sized pieces for seds with
12806 # small command number limits, like on Digital OSF/1 and HP-UX.
12807 ac_max_sed_lines=48
12808 ac_sed_frag=1 # Number of current file.
12809 ac_beg=1 # First line for current file.
12810 ac_end=$ac_max_sed_lines # Line after last line for current file.
12811 ac_more_lines=:
12812 ac_sed_cmds=
12813 while $ac_more_lines; do
12814 if test $ac_beg -gt 1; then
12815 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12816 else
12817 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12818 fi
12819 if test ! -s $tmp/subs.frag; then
12820 ac_more_lines=false
12821 else
12822 # The purpose of the label and of the branching condition is to
12823 # speed up the sed processing (if there are no `@' at all, there
12824 # is no need to browse any of the substitutions).
12825 # These are the two extra sed commands mentioned above.
12826 (echo ':t
12827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12828 if test -z "$ac_sed_cmds"; then
12829 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12830 else
12831 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12832 fi
12833 ac_sed_frag=`expr $ac_sed_frag + 1`
12834 ac_beg=$ac_end
12835 ac_end=`expr $ac_end + $ac_max_sed_lines`
12836 fi
12837 done
12838 if test -z "$ac_sed_cmds"; then
12839 ac_sed_cmds=cat
11a67599 12840 fi
2aeb72e9 12841fi # test -n "$CONFIG_FILES"
11a67599 12842
11a67599 12843_ACEOF
1c710c3c 12844cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12845for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12847 case $ac_file in
12848 - | *:- | *:-:* ) # input from stdin
12849 cat >$tmp/stdin
12850 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12851 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12852 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12853 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12854 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12855 esac
12856
2aeb72e9
DD
12857 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12858 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12859$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12860 X"$ac_file" : 'X\(//\)[^/]' \| \
12861 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12862 X"$ac_file" : 'X\(/\)' \| \
12863 . : '\(.\)' 2>/dev/null ||
1c710c3c 12864echo X"$ac_file" |
2aeb72e9
DD
12865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12867 /^X\(\/\/\)$/{ s//\1/; q; }
12868 /^X\(\/\).*/{ s//\1/; q; }
12869 s/.*/./; q'`
12870 { if $as_mkdir_p; then
12871 mkdir -p "$ac_dir"
12872 else
12873 as_dir="$ac_dir"
1c710c3c 12874 as_dirs=
2aeb72e9
DD
12875 while test ! -d "$as_dir"; do
12876 as_dirs="$as_dir $as_dirs"
12877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12879 X"$as_dir" : 'X\(//\)[^/]' \| \
12880 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12881 X"$as_dir" : 'X\(/\)' \| \
12882 . : '\(.\)' 2>/dev/null ||
1c710c3c 12883echo X"$as_dir" |
2aeb72e9
DD
12884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12886 /^X\(\/\/\)$/{ s//\1/; q; }
12887 /^X\(\/\).*/{ s//\1/; q; }
12888 s/.*/./; q'`
1c710c3c 12889 done
2aeb72e9
DD
12890 test ! -n "$as_dirs" || mkdir $as_dirs
12891 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12892echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 12893 { (exit 1); exit 1; }; }; }
2aeb72e9 12894
1c710c3c 12895 ac_builddir=.
0b0dc272 12896
2aeb72e9 12897if test "$ac_dir" != .; then
1c710c3c 12898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
12899 # A "../" for each directory in $ac_dir_suffix.
12900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12901else
12902 ac_dir_suffix= ac_top_builddir=
12903fi
1c710c3c
DJ
12904
12905case $srcdir in
2aeb72e9 12906 .) # No --srcdir option. We are building in place.
1c710c3c 12907 ac_srcdir=.
2aeb72e9
DD
12908 if test -z "$ac_top_builddir"; then
12909 ac_top_srcdir=.
12910 else
12911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12912 fi ;;
12913 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 12914 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
12915 ac_top_srcdir=$srcdir ;;
12916 *) # Relative path.
12917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 12919esac
a4b9e93e 12920
2aeb72e9
DD
12921# Do not use `cd foo && pwd` to compute absolute paths, because
12922# the directories may not exist.
12923case `pwd` in
12924.) ac_abs_builddir="$ac_dir";;
12925*)
12926 case "$ac_dir" in
12927 .) ac_abs_builddir=`pwd`;;
12928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12930 esac;;
12931esac
12932case $ac_abs_builddir in
12933.) ac_abs_top_builddir=${ac_top_builddir}.;;
12934*)
12935 case ${ac_top_builddir}. in
12936 .) ac_abs_top_builddir=$ac_abs_builddir;;
12937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12939 esac;;
12940esac
12941case $ac_abs_builddir in
12942.) ac_abs_srcdir=$ac_srcdir;;
12943*)
12944 case $ac_srcdir in
12945 .) ac_abs_srcdir=$ac_abs_builddir;;
12946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12948 esac;;
12949esac
12950case $ac_abs_builddir in
12951.) ac_abs_top_srcdir=$ac_top_srcdir;;
12952*)
12953 case $ac_top_srcdir in
12954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12957 esac;;
12958esac
0b0dc272 12959
1c710c3c
DJ
12960
12961 case $INSTALL in
12962 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 12963 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 12964 esac
11a67599 12965
2aeb72e9
DD
12966 if test x"$ac_file" != x-; then
12967 { echo "$as_me:$LINENO: creating $ac_file" >&5
12968echo "$as_me: creating $ac_file" >&6;}
12969 rm -f "$ac_file"
12970 fi
12971 # Let's still pretend it is `configure' which instantiates (i.e., don't
12972 # use $as_me), people would be surprised to read:
12973 # /* config.h. Generated by config.status. */
12974 if test x"$ac_file" = x-; then
12975 configure_input=
12976 else
12977 configure_input="$ac_file. "
12978 fi
12979 configure_input=$configure_input"Generated from `echo $ac_file_in |
12980 sed 's,.*/,,'` by configure."
12981
12982 # First look for the input files in the build tree, otherwise in the
12983 # src tree.
12984 ac_file_inputs=`IFS=:
12985 for f in $ac_file_in; do
12986 case $f in
12987 -) echo $tmp/stdin ;;
12988 [\\/$]*)
12989 # Absolute (can't be DOS-style, as IFS=:)
12990 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12991echo "$as_me: error: cannot find input file: $f" >&2;}
12992 { (exit 1); exit 1; }; }
12993 echo "$f";;
12994 *) # Relative
12995 if test -f "$f"; then
12996 # Build tree
12997 echo "$f"
12998 elif test -f "$srcdir/$f"; then
12999 # Source tree
13000 echo "$srcdir/$f"
13001 else
13002 # /dev/null tree
13003 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13004echo "$as_me: error: cannot find input file: $f" >&2;}
13005 { (exit 1); exit 1; }; }
13006 fi;;
13007 esac
13008 done` || { (exit 1); exit 1; }
11a67599 13009_ACEOF
1c710c3c
DJ
13010cat >>$CONFIG_STATUS <<_ACEOF
13011 sed "$ac_vpsub
13012$extrasub
13013_ACEOF
13014cat >>$CONFIG_STATUS <<\_ACEOF
13015:t
13016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13017s,@configure_input@,$configure_input,;t t
13018s,@srcdir@,$ac_srcdir,;t t
13019s,@abs_srcdir@,$ac_abs_srcdir,;t t
13020s,@top_srcdir@,$ac_top_srcdir,;t t
13021s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13022s,@builddir@,$ac_builddir,;t t
13023s,@abs_builddir@,$ac_abs_builddir,;t t
13024s,@top_builddir@,$ac_top_builddir,;t t
13025s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13026s,@INSTALL@,$ac_INSTALL,;t t
13027" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13028 rm -f $tmp/stdin
13029 if test x"$ac_file" != x-; then
13030 mv $tmp/out $ac_file
13031 else
13032 cat $tmp/out
13033 rm -f $tmp/out
13034 fi
11a67599 13035
2aeb72e9
DD
13036done
13037_ACEOF
11a67599 13038
2aeb72e9 13039cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13040
1c710c3c
DJ
13041{ (exit 0); exit 0; }
13042_ACEOF
671aa708 13043chmod +x $CONFIG_STATUS
1c710c3c
DJ
13044ac_clean_files=$ac_clean_files_save
13045
13046
13047# configure is writing to config.log, and then calls config.status.
13048# config.status does its own redirection, appending to config.log.
13049# Unfortunately, on DOS this fails, as config.log is still kept open
13050# by configure, so config.status won't be able to write to it; its
13051# output is simply discarded. So we exec the FD to /dev/null,
13052# effectively closing config.log, so it can be properly (re)opened and
13053# appended to by config.status. When coming back to configure, we
13054# need to make the FD available again.
13055if test "$no_create" != yes; then
13056 ac_cs_success=:
13057 ac_config_status_args=
13058 test "$silent" = yes &&
13059 ac_config_status_args="$ac_config_status_args --quiet"
13060 exec 5>/dev/null
13061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13062 exec 5>>config.log
13063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13064 # would make configure fail if this is the last instruction.
13065 $ac_cs_success || { (exit 1); exit 1; }
13066fi
79c06341 13067