]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
io.c (resolve_tag_format): New function using code split out and simplified from ...
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
2aeb72e9 3# Generated by GNU Autoconf 2.59.
671aa708 4#
2aeb72e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
2aeb72e9 12# Be Bourne compatible
1c710c3c
DJ
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
1c710c3c 21fi
2aeb72e9 22DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 33$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
2aeb72e9 47 $as_unset $as_var
1c710c3c
DJ
48 fi
49done
50
51# Required to use basename.
2aeb72e9 52if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
53 as_expr=expr
54else
55 as_expr=false
56fi
57
2aeb72e9 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
2aeb72e9 66as_me=`$as_basename "$0" ||
1c710c3c
DJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
1c710c3c 71echo X/"$0" |
2aeb72e9
DD
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
1c710c3c 76
1c710c3c 77
2aeb72e9
DD
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 85
2aeb72e9
DD
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
11a67599
ZW
97fi
98
11a67599 99
2aeb72e9
DD
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
11a67599 116
2aeb72e9
DD
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
1c710c3c
DJ
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
2aeb72e9
DD
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
1c710c3c 137 /*)
2aeb72e9 138 if ("$as_dir/$as_base" -c '
11a67599
ZW
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
2aeb72e9 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11a67599 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
1c710c3c
DJ
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
1c710c3c 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
1c710c3c
DJ
165 sed '
166 N
2aeb72e9
DD
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 170 t loop
2aeb72e9
DD
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
1c710c3c 173 ' >$as_me.lineno &&
2aeb72e9 174 chmod +x $as_me.lineno ||
1c710c3c
DJ
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
1c710c3c
DJ
182 # Exit status is that of the last command.
183 exit
184}
185
186
2aeb72e9
DD
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
192esac
193
2aeb72e9 194if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
1c710c3c 207 as_ln_s='cp -p'
2aeb72e9
DD
208 else
209 as_ln_s='ln -s'
210 fi
1c710c3c
DJ
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
2aeb72e9 216rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
2aeb72e9 225as_executable_p="test -f"
0b0dc272 226
1c710c3c
DJ
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
2aeb72e9
DD
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
1c710c3c
DJ
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
2aeb72e9
DD
249exec 6>&1
250
1c710c3c
DJ
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
2aeb72e9
DD
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
1c710c3c
DJ
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
c8aea42c 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
2aeb72e9 306datadir='${prefix}/share'
671aa708
NN
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
2aeb72e9 310libdir='${exec_prefix}/lib'
671aa708
NN
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
2aeb72e9
DD
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
2aeb72e9 321 eval "$ac_prev=\$ac_option"
671aa708
NN
322 ac_prev=
323 continue
324 fi
79c06341 325
2aeb72e9 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
2aeb72e9 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708 351
2aeb72e9 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 353 ac_prev=datadir ;;
2aeb72e9
DD
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
2aeb72e9 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
2aeb72e9
DD
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
2aeb72e9 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
2aeb72e9
DD
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
2aeb72e9 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
2aeb72e9
DD
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
2aeb72e9 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
2aeb72e9
DD
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
2aeb72e9
DD
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
602 export $ac_envvar ;;
603
671aa708 604 *)
1c710c3c
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
af71363e 619fi
af71363e 620
2aeb72e9
DD
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
671aa708 623do
2aeb72e9 624 eval ac_val=$`echo $ac_var`
1c710c3c 625 case $ac_val in
2aeb72e9
DD
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
0b0dc272 650
1c710c3c
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
2aeb72e9
DD
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
1c710c3c 678echo X"$0" |
2aeb72e9
DD
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708 684 srcdir=$ac_confdir
2aeb72e9 685 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
2aeb72e9
DD
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 697 { (exit 1); exit 1; }; }
2aeb72e9 698 fi
1c710c3c 699fi
2aeb72e9
DD
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 702 { (exit 1); exit 1; }; }
2aeb72e9
DD
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
2aeb72e9
DD
880_ACEOF
881
882 cat <<_ACEOF
1c710c3c
DJ
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
923fi
924
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
30b74385
RW
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 935 stage1. Mostly useful for compiler development.
30b74385
RW
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
1c710c3c 941 sub-packages for the host, target or build
30b74385 942 machine, or all sub-packages
1c710c3c
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
30b74385
RW
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
1c710c3c
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
30b74385
RW
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
30b74385
RW
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
1c710c3c 967 use sysroot as the system root during the build
c8aea42c
PB
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
30b74385 970 --with-build-time-tools=PATH
1c710c3c 971 use given path to find target tools during the build
30b74385
RW
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
1c710c3c
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
2aeb72e9
DD
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
c3a86da9
DJ
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
278a7a38
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
901119ae 995 WINDMC WINDMC for the host
278a7a38
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
901119ae
KT
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
1c710c3c
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
2aeb72e9 1039 ac_popdir=`pwd`
1c710c3c 1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1041 test -d $ac_dir || continue
1c710c3c
DJ
1042 ac_builddir=.
1043
2aeb72e9 1044if test "$ac_dir" != .; then
1c710c3c 1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1c710c3c
DJ
1051
1052case $srcdir in
2aeb72e9 1053 .) # No --srcdir option. We are building in place.
1c710c3c 1054 ac_srcdir=.
2aeb72e9
DD
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1061 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1c710c3c 1105esac
2aeb72e9
DD
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1c710c3c
DJ
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1121 fi
1122 cd $ac_popdir
1c710c3c
DJ
1123 done
1124fi
1125
2aeb72e9 1126test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
2aeb72e9 1130Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
2aeb72e9 1134 exit 0
0b0dc272 1135fi
2aeb72e9
DD
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1c710c3c
DJ
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
2aeb72e9 1142generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
2aeb72e9 1200ac_sep=
1c710c3c
DJ
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
2aeb72e9 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
2aeb72e9
DD
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1c710c3c
DJ
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
2aeb72e9
DD
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1260{
1c710c3c 1261 (set) 2>&1 |
2aeb72e9
DD
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1c710c3c 1264 sed -n \
2aeb72e9
DD
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1c710c3c 1268 *)
2aeb72e9
DD
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1271 ;;
2aeb72e9
DD
1272 esac;
1273}
1c710c3c
DJ
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
2aeb72e9
DD
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
2aeb72e9
DD
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1c710c3c
DJ
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
2aeb72e9
DD
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
2aeb72e9 1311 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
2aeb72e9
DD
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1320 exit $exit_status
2aeb72e9 1321 ' 0
1c710c3c
DJ
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1c710c3c
DJ
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
0b0dc272 1347
1c710c3c
DJ
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
671aa708 1360# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
671aa708 1367fi
2aeb72e9 1368for ac_site_file in $CONFIG_SITE; do
671aa708 1369 if test -r "$ac_site_file"; then
1c710c3c
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
1c710c3c
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
2aeb72e9
DD
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1c710c3c
DJ
1386 esac
1387 fi
671aa708 1388else
1c710c3c
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
2aeb72e9
DD
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
2aeb72e9
DD
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
671aa708
NN
1443fi
1444
2aeb72e9
DD
1445ac_ext=c
1446ac_cpp='$CPP $CPPFLAGS'
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1c710c3c
DJ
1451
1452
1453
1454
671aa708
NN
1455
1456
d02c69be 1457
1c710c3c
DJ
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
671aa708 1472ac_aux_dir=
2aeb72e9
DD
1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
671aa708
NN
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
2aeb72e9 1478 elif test -f $ac_dir/install.sh; then
671aa708
NN
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
2aeb72e9 1482 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
671aa708
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1491 { (exit 1); exit 1; }; }
671aa708 1492fi
2aeb72e9
DD
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1496
1c710c3c 1497# Make sure we can run config.sub.
2aeb72e9
DD
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1501 { (exit 1); exit 1; }; }
1502
2aeb72e9
DD
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
2aeb72e9
DD
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
2aeb72e9
DD
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1518 { (exit 1); exit 1; }; }
1519
1520fi
2aeb72e9
DD
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1523build=$ac_cv_build
2aeb72e9
DD
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1527
671aa708 1528
1c710c3c
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1532esac
1533
1534
af71363e 1535
1c710c3c
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1539esac
1540
af71363e 1541
1c710c3c
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1546esac
1547
af71363e 1548
1c710c3c
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
1c710c3c 1554 program_transform_name=s,y,y,
af71363e 1555
2aeb72e9
DD
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1560else
2aeb72e9
DD
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1567 { (exit 1); exit 1; }; }
1568
af71363e 1569fi
2aeb72e9
DD
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1572host=$ac_cv_host
2aeb72e9
DD
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
2aeb72e9
DD
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1589 { (exit 1); exit 1; }; }
1590
1591fi
2aeb72e9
DD
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1594target=$ac_cv_target
2aeb72e9
DD
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
671aa708 1606test "$program_prefix" != NONE &&
2aeb72e9 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
2aeb72e9 1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1617rm conftest.sed
af71363e 1618
671aa708
NN
1619
1620
775956d0
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
1c710c3c 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1633# OS/2's system install, which has a completely different semantic
775956d0 1634# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1637if test -z "$INSTALL"; then
1c710c3c
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1659 if test $ac_prog = install &&
1c710c3c 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
1c710c3c
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
775956d0 1667 else
1c710c3c
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
775956d0
NN
1670 fi
1671 fi
1672 done
1c710c3c
DJ
1673 done
1674 ;;
1675esac
1676done
1677
775956d0
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1681 INSTALL=$ac_cv_path_install
775956d0 1682 else
2aeb72e9
DD
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
775956d0 1685 # break other packages using the cache if that directory is
2aeb72e9 1686 # removed, or if the path is relative.
1c710c3c 1687 INSTALL=$ac_install_sh
775956d0
NN
1688 fi
1689fi
2aeb72e9
DD
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1c710c3c 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
2aeb72e9
DD
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
2aeb72e9
DD
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1721else
1722 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
ad6717df
PB
1725fi
1726
2aeb72e9
DD
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
fb0103e5 1733else
2aeb72e9
DD
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1736fi
1737
775956d0 1738
79c06341 1739### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
671aa708
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
79c06341
JL
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
671aa708 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1776
beeaf216
MM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
9f8c6739
JM
1781for ac_arg
1782do
beeaf216 1783 case "$ac_arg" in
8c79f3c4 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
d9acb717
RW
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
beeaf216
MM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1799
cc1e60ea 1800
671aa708 1801moveifchange=${srcdir}/move-if-change
79c06341 1802
ee6a22df
L
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
671aa708
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
671aa708
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
79c06341
JL
1816fi
1817
671aa708 1818topsrcdir=$srcpwd
5d4a5ee6 1819
671aa708 1820extra_host_args=
afabd8e6 1821
671aa708
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
79c06341 1825
1c710c3c 1826# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1827# configdirs, or target_configdirs; see the serialization section below.
79c06341 1828
1c710c3c
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
671aa708 1831# the Makefile, whether or not it's implicitly specified here.
79c06341 1832
671aa708
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
79c06341 1835
23f6b2f9
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
71b5d516 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1843
671aa708
NN
1844# these libraries are used by various programs built for the host environment
1845#
e69bf64b 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1847
671aa708
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
5395b47b 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
671aa708
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
291f172e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
671aa708
NN
1866 target-libgloss \
1867 target-newlib \
6d3b5aea 1868 target-libgomp \
cb543528 1869 target-libstdc++-v3 \
6de9cd9a 1870 target-libmudflap \
77008252 1871 target-libssp \
6de9cd9a 1872 target-libgfortran \
7cd0cf9c 1873 target-boehm-gc \
77d187bc 1874 ${libgcj} \
d9cdb878 1875 target-libobjc \
6d3b5aea 1876 target-libada"
671aa708 1877
4dbda6f0
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
671aa708 1880#
4dbda6f0 1881# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
97286f7f 1885target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1886
671aa708 1887################################################################################
79c06341 1888
671aa708
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
671aa708 1894configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1896build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1897
671aa708 1898################################################################################
79c06341 1899
671aa708 1900srcname="gnu development package"
79c06341 1901
671aa708
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
79c06341 1904
671aa708
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
79c06341 1909else
671aa708 1910 is_cross_compiler=yes
1c710c3c 1911fi
79c06341 1912
b4acb5ef 1913# Find the build and target subdir names.
8b87bb96 1914
2e9e6f68
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1925build_subdir="build-${build_noncanonical}"
1c710c3c 1926
2aeb72e9 1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1928if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
2e9e6f68
DJ
1931else
1932 build_libsubdir="$build_subdir"
2aeb72e9 1933fi;
215c351a
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
8b87bb96
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
1c710c3c 1943
79c06341 1944
671aa708
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
79c06341 1949
671aa708
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1955fi
1956
671aa708
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1962fi
1963
1c710c3c 1964# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1965# it's not even worth trying to configure, much less build, that tool.
79c06341 1966
671aa708
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
b4f96efe 1970 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1971 # We won't be able to build gdbtk without X.
1c710c3c 1972 enable_gdbtk=no
671aa708
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
79c06341 1976
671aa708 1977# Some tools are only suitable for building in a "native" situation.
1c710c3c 1978# Remove these if host!=target.
9e299237 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1980
671aa708
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
79c06341 1989
671aa708
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
ee6a22df
L
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
79c06341
JL
1997fi
1998
671aa708
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
79c06341 2004
671aa708 2005# Configure extra directories which are host specific
79c06341 2006
671aa708
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
79c06341 2011
4fab7234
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
1c710c3c 2016# Remove more programs from consideration, based on the host or
671aa708
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
ec8d6ddc 2019
671aa708
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
f2a0e225 2024 i[3456789]86-*-vsta)
b4f96efe 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2026 ;;
f2a0e225 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2029 ;;
95af8923
KT
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
f2a0e225 2033 i[3456789]86-*-mingw32*)
b4f96efe 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2036 ;;
f2a0e225 2037 i[3456789]86-*-beos*)
b4f96efe 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2039 ;;
671aa708 2040 *-*-cygwin*)
a22c2d8d 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2042 ;;
2043 *-*-netbsd*)
a22c2d8d 2044 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2045 ;;
2046 ppc*-*-pe)
b4f96efe 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2048 ;;
2049 powerpc-*-beos*)
b4f96efe 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2051 ;;
671aa708 2052esac
ec8d6ddc 2053
6de9cd9a 2054
2aeb72e9 2055# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2056if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
d9cdb878
AC
2059else
2060 ENABLE_LIBADA=yes
2aeb72e9 2061fi;
d9cdb878 2062if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2063 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2064fi
2065
2aeb72e9 2066# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2067if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2070else
2071 ENABLE_LIBSSP=yes
2aeb72e9 2072fi;
ef0087a7 2073
671aa708
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
ec8d6ddc 2089
6de9cd9a 2090
27079765
AH
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
dfcada9a 2093 case "${target}" in
1c00b503 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2095 # Enable libmudflap by default in GNU and friends.
dfcada9a 2096 ;;
a3e8d8b4
LR
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
dfcada9a
MM
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
27079765 2105fi
6de9cd9a 2106
27079765
AH
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
953ff289
DN
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
670cbfcf 2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
04879af3 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2116 ;;
cac90078 2117 *-*-darwin* | *-*-aix*)
953ff289
DN
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
27079765 2123fi
953ff289 2124
c03353e2
RIL
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
6de9cd9a 2127
671aa708
NN
2128case "${target}" in
2129 *-*-chorusos)
cb253473 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2131 ;;
42c1cd8a 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2134 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2135 ;;
42c1cd8a
AT
2136 *-*-darwin*)
2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2138 noconfigdirs="$noconfigdirs sim target-rda"
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
671aa708 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2143 ;;
c3f84f61 2144 *-*-freebsd*)
6de9cd9a
DN
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
cb253473 2156 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2157 ;;
2158 esac
2159 ;;
ef4e7569
US
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
cb253473 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
671aa708
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
0590b963 2174 arm*-*-netbsdelf*) ;;
671aa708 2175 *)
cb253473 2176 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2177 ;;
2178 esac
2179 ;;
61fec9ff 2180 *-*-netware*)
cb253473 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2182 ;;
2183 *-*-rtems*)
cb253473 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2185 ;;
a8ba31f2
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
cb253473 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2189 ;;
5785c0ed 2190 *-*-uclinux*)
cb253473 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2192 ;;
671aa708 2193 *-*-vxworks*)
cb253473 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
cb253473 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
671aa708
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
cb253473 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2212 ;;
33952f6f 2213 am33_2.0-*-linux*)
cb253473 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2215 ;;
671aa708 2216 sh-*-linux*)
cb253473 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2218 ;;
671aa708 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2220 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
cb543528 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2230 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2231 ;;
2232 esac
c03353e2 2233 libgloss_dir=wince
671aa708
NN
2234 ;;
2235 arc-*-*)
cb253473 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2237 ;;
ee6a22df 2238 arm-semi-aof )
ee6a22df 2239 ;;
671aa708 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2241 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2242 libgloss_dir=arm
671aa708 2243 ;;
b3f8d95d 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2246 libgloss_dir=arm
671aa708 2247 ;;
077fc835 2248 arm*-*-linux-gnueabi)
c4e9bf2b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
1c00b503
PB
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
c03353e2 2254 libgloss_dir=arm
077fc835 2255 ;;
972974fc 2256 arm*-*-symbianelf*)
cb253473 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2258 libgloss_dir=arm
972974fc 2259 ;;
671aa708 2260 arm-*-pe*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2262 ;;
671aa708 2263 thumb-*-coff)
cb253473 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2265 ;;
2266 thumb-*-elf)
cb253473 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2268 ;;
671aa708 2269 thumb-*-pe)
cb253473 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2271 ;;
2272 arm-*-riscix*)
cb253473 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2274 ;;
2275 avr-*-*)
cb253473 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2277 ;;
6b65a26d 2278 bfin-*-*)
8b3c6c5a 2279 noconfigdirs="$noconfigdirs gdb"
61efc800 2280 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
671aa708 2284 c4x-*-* | tic4x-*-*)
cb253473 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
cb253473 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2289 ;;
40d64b5a 2290 cris-*-* | crisv32-*-*)
4fab7234 2291 unsupported_languages="$unsupported_languages java"
40d64b5a 2292 case "${target}" in
c2e0d3a9 2293 *-*-aout)
7f26dfa3 2294 unsupported_languages="$unsupported_languages fortran"
4fab7234 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2296 *-*-elf)
7f26dfa3 2297 unsupported_languages="$unsupported_languages fortran"
789ec619 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2299 *-*-linux*)
789ec619 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2301 *)
7f26dfa3 2302 unsupported_languages="$unsupported_languages fortran"
cb253473 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2304 esac
c03353e2 2305 libgloss_dir=cris
671aa708 2306 ;;
25b656e7 2307 crx-*-*)
cb253473 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2309 ;;
671aa708 2310 d10v-*-*)
cb253473 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2312 ;;
2313 d30v-*-*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2315 ;;
c03353e2
RIL
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
671aa708 2319 fr30-*-elf*)
cb253473 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2321 ;;
2322 frv-*-*)
cb253473 2323 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2324 ;;
2325 h8300*-*-*)
cb253473 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2327 ;;
2328 h8500-*-*)
cb253473 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2330 ;;
ee6a22df 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2332 ;;
671aa708
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
3e732ba0
JDA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
671aa708 2341 hppa*-*-*elf* | \
671aa708
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2346 ;;
2a332582
JDA
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
2349 ;;
c03353e2
RIL
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
671aa708
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
cb253473 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2357 ;;
fb87ad5d 2358 i960-*-*)
cb253473 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2360 ;;
671aa708
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
b4f96efe 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
cb253473 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2368 ;;
ee6a22df 2369 i370-*-opened*)
ee6a22df 2370 ;;
f2a0e225 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2372 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2373 libgloss_dir=i386
671aa708 2374 ;;
f2a0e225 2375 i[3456789]86-*-linux*)
671aa708
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
cb253473 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
3aa83176 2386 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
f2a0e225 2394 i[3456789]86-*-mingw32*)
b91f0a41
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2397 ;;
95af8923
KT
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2401 ;;
671aa708
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2405 # always build newlib if winsup directory is present.
b91f0a41 2406 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2408 elif test -d "$srcdir/newlib"; then
b91f0a41 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2410 fi
1c710c3c 2411 ;;
ee6a22df
L
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2414 ;;
f2a0e225 2415 i[3456789]86-*-pe)
cb253473 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2417 ;;
f2a0e225 2418 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
cb253473 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2422 ;;
f2a0e225 2423 i[3456789]86-*-sco*)
cb253473 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2425 ;;
f2a0e225 2426 i[3456789]86-*-solaris2*)
671aa708
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
f2a0e225 2429 i[3456789]86-*-sysv4*)
cb253473 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2431 ;;
f2a0e225 2432 i[3456789]86-*-beos*)
cb253473 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2434 ;;
d1f8db0c
PB
2435 i[3456789]86-*-rdos*)
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
fb87ad5d 2438 m32r-*-*)
cb253473 2439 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2440 ;;
671aa708 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2443 libgloss_dir=m68hc11
671aa708
NN
2444 ;;
2445 m68k-*-elf*)
cb253473 2446 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2447 ;;
2448 m68k-*-coff*)
cb253473 2449 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2450 ;;
c03353e2
RIL
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
671aa708
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
4fab7234 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2461 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2462 ;;
2463 mn10200-*-*)
cb253473 2464 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2465 ;;
2466 mn10300-*-*)
cb253473 2467 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2468 ;;
ab34901f 2469 mt-*-*)
79dd769c
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
671aa708
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
cb253473 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
cb253473 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
cb253473 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2485 libgloss_dir=rs6000
671aa708
NN
2486 ;;
2487 powerpc-*-beos*)
cb253473 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2489 ;;
671aa708 2490 powerpc-*-eabi)
cb253473 2491 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2492 libgloss_dir=rs6000
ee6a22df
L
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2495 libgloss_dir=rs6000
671aa708 2496 ;;
671aa708 2497 rs6000-*-lynxos*)
cb253473 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2499 ;;
2500 rs6000-*-aix*)
cb253473 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2502 ;;
2503 rs6000-*-*)
cb253473 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2505 ;;
2506 m68k-apollo-*)
cb253473 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2508 ;;
d9dced13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
671aa708 2517 mips*-*-irix5*)
cb253473 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2519 ;;
2520 mips*-*-irix6*)
671aa708
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
cb253473 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2526 ;;
671aa708 2527 mips*-*-bsd*)
cb253473 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2529 ;;
671aa708
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
cb253473 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2535 libgloss_dir=mips
671aa708
NN
2536 ;;
2537 romp-*-*)
cb253473 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2539 ;;
669f01d8 2540 sh-*-* | sh64-*-*)
671aa708 2541 case "${host}" in
f2a0e225
KC
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
cb253473 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2548 ;;
c03353e2
RIL
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
671aa708 2552 sparc-*-elf*)
cb253473 2553 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2554 ;;
2555 sparc64-*-elf*)
cb253473 2556 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2557 libgloss_dir=sparc
671aa708
NN
2558 ;;
2559 sparclite-*-*)
cb253473 2560 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2561 libgloss_dir=sparc
671aa708
NN
2562 ;;
2563 sparc-*-sunos4*)
cb253473 2564 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
bba5e0ca 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2572 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2573 ;;
671aa708
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
85d9c13c 2576 spu-*-*)
ea6f5c57 2577 skipdirs="target-libssp"
85d9c13c 2578 ;;
671aa708 2579 v810-*-*)
cb253473 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2581 ;;
2582 v850-*-*)
cb253473 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2584 ;;
2585 v850e-*-*)
cb253473 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2587 ;;
2588 v850ea-*-*)
cb253473 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2590 ;;
2591 vax-*-vms)
cb253473 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2593 ;;
2594 vax-*-*)
cb253473 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2596 ;;
0d4f1b4e 2597 xtensa-*-*)
cb253473 2598 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2599 ;;
671aa708 2600 ip2k-*-*)
cb253473 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2602 ;;
c3f84f61 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
cb253473 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2608 ;;
671aa708 2609 *-*-*)
cb253473 2610 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2611 ;;
2612esac
79c06341 2613
671aa708
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
671aa708
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
f2a0e225 2692 i[3456789]86-*-sysv5*)
671aa708
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
f2a0e225 2695 i[3456789]86-*-dgux*)
671aa708
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
f2a0e225 2699 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
f2a0e225 2704 i[3456789]86-ncr-sysv4*)
671aa708
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
f2a0e225 2713 i[3456789]86-*-sco3.2v5*)
671aa708 2714 ;;
f2a0e225 2715 i[3456789]86-*-sco*)
671aa708
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
f2a0e225 2721 i[3456789]86-*-udk*)
671aa708
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
f2a0e225 2724 i[3456789]86-*-solaris2*)
671aa708
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
f2a0e225 2727 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
1f5a6b84 2734 host_makefile_frag="config/mh-mingw"
671aa708 2735 ;;
95af8923 2736 *-mingw64*)
1f5a6b84 2737 host_makefile_frag="config/mh-mingw"
95af8923 2738 ;;
671aa708
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
45f366ab 2765 powerpc-*-darwin*)
be8fff81
RB
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
d19bca38
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
671aa708
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
95c53c62
RS
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
671aa708
NN
2786esac
2787fi
2788
55ffb5ed
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
55ffb5ed 2809 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2810else
fb0103e5 2811 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2812fi
2813
2814ac_ext=c
1c710c3c
DJ
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2822echo "$as_me:$LINENO: checking for $ac_word" >&5
2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2824if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841done
2842done
2843
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
2aeb72e9
DD
2848 echo "$as_me:$LINENO: result: $CC" >&5
2849echo "${ECHO_T}$CC" >&6
1c710c3c 2850else
2aeb72e9
DD
2851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
1c710c3c
DJ
2853fi
2854
2855fi
2856if test -z "$ac_cv_prog_CC"; then
2857 ac_ct_CC=$CC
fb0103e5
RG
2858 # Extract the first word of "gcc", so it can be a program name with args.
2859set dummy gcc; ac_word=$2
2aeb72e9
DD
2860echo "$as_me:$LINENO: checking for $ac_word" >&5
2861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2862if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864else
2865 if test -n "$ac_ct_CC"; then
2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2875 ac_cv_prog_ac_ct_CC="gcc"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879done
2880done
2881
2882fi
2883fi
2884ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2887echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2888else
2aeb72e9
DD
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
1c710c3c
DJ
2891fi
2892
2aeb72e9 2893 CC=$ac_ct_CC
1c710c3c
DJ
2894else
2895 CC="$ac_cv_prog_CC"
2896fi
2897
2898if test -z "$CC"; then
2aeb72e9
DD
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2901set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2902echo "$as_me:$LINENO: checking for $ac_word" >&5
2903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2904if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2906else
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2909else
1c710c3c
DJ
2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH
2912do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2917 ac_cv_prog_CC="${ac_tool_prefix}cc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921done
2922done
2923
0b0dc272 2924fi
0b0dc272 2925fi
1c710c3c 2926CC=$ac_cv_prog_CC
af71363e 2927if test -n "$CC"; then
2aeb72e9
DD
2928 echo "$as_me:$LINENO: result: $CC" >&5
2929echo "${ECHO_T}$CC" >&6
0b0dc272 2930else
2aeb72e9
DD
2931 echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
0b0dc272
AM
2933fi
2934
2aeb72e9
DD
2935fi
2936if test -z "$ac_cv_prog_CC"; then
2937 ac_ct_CC=$CC
2938 # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 if test -n "$ac_ct_CC"; then
2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_ac_ct_CC="cc"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
11a67599 2958 fi
2aeb72e9
DD
2959done
2960done
2961
2962fi
2963fi
2964ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965if test -n "$ac_ct_CC"; then
2966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2967echo "${ECHO_T}$ac_ct_CC" >&6
2968else
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
2971fi
2972
2973 CC=$ac_ct_CC
2974else
2975 CC="$ac_cv_prog_CC"
2976fi
2977
1c710c3c 2978fi
55ffb5ed
NN
2979if test -z "$CC"; then
2980 # Extract the first word of "cc", so it can be a program name with args.
2981set dummy cc; ac_word=$2
2aeb72e9
DD
2982echo "$as_me:$LINENO: checking for $ac_word" >&5
2983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2984if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2986else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
0b0dc272 2990 ac_prog_rejected=no
1c710c3c
DJ
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999 ac_prog_rejected=yes
3000 continue
3001 fi
3002 ac_cv_prog_CC="cc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006done
3007done
3008
55ffb5ed
NN
3009if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy $ac_cv_prog_CC
3012 shift
1c710c3c 3013 if test $# != 0; then
55ffb5ed
NN
3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3017 shift
1c710c3c 3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3019 fi
3020fi
3021fi
3022fi
1c710c3c 3023CC=$ac_cv_prog_CC
55ffb5ed 3024if test -n "$CC"; then
2aeb72e9
DD
3025 echo "$as_me:$LINENO: result: $CC" >&5
3026echo "${ECHO_T}$CC" >&6
55ffb5ed 3027else
2aeb72e9
DD
3028 echo "$as_me:$LINENO: result: no" >&5
3029echo "${ECHO_T}no" >&6
55ffb5ed
NN
3030fi
3031
1c710c3c
DJ
3032fi
3033if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
2aeb72e9 3035 for ac_prog in cl
1c710c3c
DJ
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3039echo "$as_me:$LINENO: checking for $ac_word" >&5
3040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3041if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
1c710c3c
DJ
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058done
3059done
3060
55ffb5ed
NN
3061fi
3062fi
1c710c3c 3063CC=$ac_cv_prog_CC
55ffb5ed 3064if test -n "$CC"; then
2aeb72e9
DD
3065 echo "$as_me:$LINENO: result: $CC" >&5
3066echo "${ECHO_T}$CC" >&6
a4b9e93e 3067else
2aeb72e9
DD
3068 echo "$as_me:$LINENO: result: no" >&5
3069echo "${ECHO_T}no" >&6
fb0103e5 3070fi
af71363e 3071
1c710c3c
DJ
3072 test -n "$CC" && break
3073 done
af71363e 3074fi
1c710c3c
DJ
3075if test -z "$CC"; then
3076 ac_ct_CC=$CC
2aeb72e9 3077 for ac_prog in cl
1c710c3c
DJ
3078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3085else
1c710c3c
DJ
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3088else
1c710c3c
DJ
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3096 ac_cv_prog_ac_ct_CC="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
af71363e
AS
3103fi
3104fi
1c710c3c
DJ
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3108echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3109else
2aeb72e9
DD
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
af71363e 3112fi
0b0dc272 3113
1c710c3c
DJ
3114 test -n "$ac_ct_CC" && break
3115done
3116
2aeb72e9 3117 CC=$ac_ct_CC
1c710c3c
DJ
3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3124See \`config.log' for more details." >&5
3125echo "$as_me: error: no acceptable C compiler found in \$PATH
3126See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3128
3129# Provide some information about the compiler.
2aeb72e9
DD
3130echo "$as_me:$LINENO:" \
3131 "checking for C compiler version" >&5
1c710c3c 3132ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3134 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }
2aeb72e9
DD
3138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3139 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
2aeb72e9
DD
3143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3144 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148
3149cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
3165ac_clean_files="$ac_clean_files a.out a.exe b.out"
3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
2aeb72e9
DD
3169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3173 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
2aeb72e9
DD
3177 # Find the output, starting from the most likely. This scheme is
3178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3179# resort.
3180
3181# Be careful to initialize this variable, since it used to be cached.
3182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3183ac_cv_exeext=
3184# b.out is created by i960 compilers.
3185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3186do
3187 test -f "$ac_file" || continue
3188 case $ac_file in
2aeb72e9
DD
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3190 ;;
3191 conftest.$ac_ext )
3192 # This is the source file.
1c710c3c
DJ
3193 ;;
3194 [ab].out )
3195 # We found the default executable, but exeext='' is most
3196 # certainly right.
3197 break;;
3198 *.* )
2aeb72e9
DD
3199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 # FIXME: I believe we export ac_cv_exeext for Libtool,
3201 # but it would be cool to find out if it's true. Does anybody
3202 # maintain Libtool? --akim.
3203 export ac_cv_exeext
1c710c3c
DJ
3204 break;;
3205 * )
3206 break;;
3207 esac
3208done
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3214See \`config.log' for more details." >&5
3215echo "$as_me: error: C compiler cannot create executables
3216See \`config.log' for more details." >&2;}
3217 { (exit 77); exit 77; }; }
3218fi
3219
3220ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3221echo "$as_me:$LINENO: result: $ac_file" >&5
3222echo "${ECHO_T}$ac_file" >&6
1c710c3c 3223
2aeb72e9 3224# Check the compiler produces executables we can run. If not, either
1c710c3c 3225# the compiler is broken, or we cross compile.
2aeb72e9
DD
3226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3229# If not cross compiling, check that we can run a simple program.
3230if test "$cross_compiling" != yes; then
3231 if { ac_try='./$ac_file'
2aeb72e9
DD
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
1c710c3c
DJ
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 cross_compiling=no
3238 else
3239 if test "$cross_compiling" = maybe; then
3240 cross_compiling=yes
3241 else
3242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3243If you meant to cross compile, use \`--host'.
3244See \`config.log' for more details." >&5
3245echo "$as_me: error: cannot run C compiled programs.
3246If you meant to cross compile, use \`--host'.
3247See \`config.log' for more details." >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250 fi
3251fi
2aeb72e9
DD
3252echo "$as_me:$LINENO: result: yes" >&5
3253echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3254
3255rm -f a.out a.exe conftest$ac_cv_exeext b.out
3256ac_clean_files=$ac_clean_files_save
2aeb72e9 3257# Check the compiler produces executables we can run. If not, either
1c710c3c 3258# the compiler is broken, or we cross compile.
2aeb72e9
DD
3259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3261echo "$as_me:$LINENO: result: $cross_compiling" >&5
3262echo "${ECHO_T}$cross_compiling" >&6
3263
3264echo "$as_me:$LINENO: checking for suffix of executables" >&5
3265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3267 (eval $ac_link) 2>&5
1c710c3c
DJ
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273# work properly (i.e., refer to `conftest.exe'), while it won't with
3274# `rm'.
3275for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
2aeb72e9 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3280 export ac_cv_exeext
1c710c3c
DJ
3281 break;;
3282 * ) break;;
3283 esac
3284done
af71363e 3285else
1c710c3c
DJ
3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3287See \`config.log' for more details." >&5
3288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3289See \`config.log' for more details." >&2;}
3290 { (exit 1); exit 1; }; }
3291fi
3292
3293rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3295echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3296
3297rm -f conftest.$ac_ext
3298EXEEXT=$ac_cv_exeext
3299ac_exeext=$EXEEXT
2aeb72e9
DD
3300echo "$as_me:$LINENO: checking for suffix of object files" >&5
3301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3302if test "${ac_cv_objext+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 cat >conftest.$ac_ext <<_ACEOF
3306/* confdefs.h. */
3307_ACEOF
3308cat confdefs.h >>conftest.$ac_ext
3309cat >>conftest.$ac_ext <<_ACEOF
3310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.o conftest.obj
2aeb72e9
DD
3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>&5
1c710c3c
DJ
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
2aeb72e9 3326 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3327 case $ac_file in
2aeb72e9 3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332done
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338See \`config.log' for more details." >&5
3339echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
2aeb72e9
DD
3346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
2aeb72e9
DD
3350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3352if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
2aeb72e9
DD
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
1c710c3c
DJ
3395 ac_compiler_gnu=yes
3396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
2aeb72e9 3400ac_compiler_gnu=no
1c710c3c 3401fi
2aeb72e9 3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3403ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405fi
2aeb72e9
DD
3406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3408GCC=`test $ac_compiler_gnu = yes && echo yes`
3409ac_test_CFLAGS=${CFLAGS+set}
3410ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3411CFLAGS="-g"
3412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3414if test "${ac_cv_prog_cc_g+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
2aeb72e9 3417 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
2aeb72e9
DD
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
1c710c3c
DJ
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
1c710c3c
DJ
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3453 (exit $ac_status); }; }; then
55ffb5ed
NN
3454 ac_cv_prog_cc_g=yes
3455else
1c710c3c
DJ
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3458
2aeb72e9 3459ac_cv_prog_cc_g=no
0b0dc272 3460fi
2aeb72e9 3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3462fi
2aeb72e9
DD
3463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3465if test "$ac_test_CFLAGS" = set; then
1c710c3c 3466 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3467elif test $ac_cv_prog_cc_g = yes; then
3468 if test "$GCC" = yes; then
3469 CFLAGS="-g -O2"
3470 else
3471 CFLAGS="-g"
3472 fi
3473else
3474 if test "$GCC" = yes; then
3475 CFLAGS="-O2"
3476 else
3477 CFLAGS=
3478 fi
3479fi
2aeb72e9
DD
3480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3482if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
2aeb72e9 3485 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3486ac_save_CC=$CC
3487cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493#include <stdarg.h>
3494#include <stdio.h>
3495#include <sys/types.h>
3496#include <sys/stat.h>
3497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3498struct buf { int x; };
3499FILE * (*rcsopen) (struct buf *, struct stat *, int);
3500static char *e (p, i)
3501 char **p;
3502 int i;
3503{
3504 return p[i];
3505}
3506static char *f (char * (*g) (char **, int), char **p, ...)
3507{
3508 char *s;
3509 va_list v;
3510 va_start (v,p);
3511 s = g (p, va_arg (v,int));
3512 va_end (v);
3513 return s;
3514}
3515
3516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3517 function prototypes and stuff, but not '\xHH' hex character constants.
3518 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3519 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3521 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3522 that's true only with -std1. */
1c710c3c
DJ
3523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3524
3525int test (int i, double x);
3526struct s1 {int (*f) (int a);};
3527struct s2 {int (*f) (double a);};
3528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3529int argc;
3530char **argv;
3531int
3532main ()
3533{
3534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3535 ;
3536 return 0;
3537}
3538_ACEOF
2aeb72e9
DD
3539# Don't try gcc -ansi; that turns off useful extensions and
3540# breaks some systems' header files.
3541# AIX -qlanglvl=ansi
3542# Ultrix and OSF/1 -std1
3543# HP-UX 10.20 and later -Ae
3544# HP-UX older versions -Aa -D_HPUX_SOURCE
3545# SVR4 -Xc -D__EXTENSIONS__
3546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3547do
3548 CC="$ac_save_CC $ac_arg"
3549 rm -f conftest.$ac_objext
2aeb72e9
DD
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_c_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 ac_cv_prog_cc_stdc=$ac_arg
3572break
1c710c3c
DJ
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577fi
2aeb72e9 3578rm -f conftest.err conftest.$ac_objext
1c710c3c 3579done
2aeb72e9 3580rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3581CC=$ac_save_CC
3582
3583fi
2aeb72e9
DD
3584
3585case "x$ac_cv_prog_cc_stdc" in
3586 x|xno)
3587 echo "$as_me:$LINENO: result: none needed" >&5
3588echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3589 *)
2aeb72e9
DD
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3592 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3593esac
3594
2aeb72e9
DD
3595# Some people use a C++ compiler to compile C. Since we use `exit',
3596# in C++ we need to declare it. In case someone uses the same compiler
3597# for both compiling C and C++ we need to have the C++ compiler decide
3598# the declaration of exit, since it's the most demanding environment.
3599cat >conftest.$ac_ext <<_ACEOF
3600#ifndef __cplusplus
3601 choke me
3602#endif
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 for ac_declaration in \
3627 '' \
3628 'extern "C" void std::exit (int) throw (); using std::exit;' \
3629 'extern "C" void std::exit (int); using std::exit;' \
3630 'extern "C" void exit (int) throw ();' \
3631 'extern "C" void exit (int);' \
3632 'void exit (int);'
3633do
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640$ac_declaration
3641#include <stdlib.h>
3642int
3643main ()
3644{
3645exit (42);
3646 ;
3647 return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652 (eval $ac_compile) 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } &&
3659 { ac_try='test -z "$ac_c_werror_flag"
3660 || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } &&
3666 { ac_try='test -s conftest.$ac_objext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 :
3673else
3674 echo "$as_me: failed program was:" >&5
3675sed 's/^/| /' conftest.$ac_ext >&5
3676
3677continue
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680 cat >conftest.$ac_ext <<_ACEOF
3681/* confdefs.h. */
3682_ACEOF
3683cat confdefs.h >>conftest.$ac_ext
3684cat >>conftest.$ac_ext <<_ACEOF
3685/* end confdefs.h. */
3686$ac_declaration
3687int
3688main ()
3689{
3690exit (42);
3691 ;
3692 return 0;
3693}
3694_ACEOF
3695rm -f conftest.$ac_objext
3696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -z "$ac_c_werror_flag"
3705 || test ! -s conftest.err'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 break
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3724done
3725rm -f conftest*
3726if test -n "$ac_declaration"; then
3727 echo '#ifdef __cplusplus' >>confdefs.h
3728 echo $ac_declaration >>confdefs.h
3729 echo '#endif' >>confdefs.h
3730fi
3731
3732else
3733 echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736fi
3737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744ac_ext=cc
3745ac_cpp='$CXXCPP $CPPFLAGS'
3746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749if test -n "$ac_tool_prefix"; then
3750 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3751 do
3752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754echo "$as_me:$LINENO: checking for $ac_word" >&5
3755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756if test "${ac_cv_prog_CXX+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 if test -n "$CXX"; then
3760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3761else
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773done
3774done
55ffb5ed 3775
c3a86da9
DJ
3776fi
3777fi
3778CXX=$ac_cv_prog_CXX
3779if test -n "$CXX"; then
2aeb72e9
DD
3780 echo "$as_me:$LINENO: result: $CXX" >&5
3781echo "${ECHO_T}$CXX" >&6
c3a86da9 3782else
2aeb72e9
DD
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
c3a86da9
DJ
3785fi
3786
3787 test -n "$CXX" && break
3788 done
3789fi
3790if test -z "$CXX"; then
3791 ac_ct_CXX=$CXX
2aeb72e9 3792 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3793do
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
3801 if test -n "$ac_ct_CXX"; then
3802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3811 ac_cv_prog_ac_ct_CXX="$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
3818fi
3819fi
3820ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3822 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3823echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3824else
2aeb72e9
DD
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
c3a86da9
DJ
3827fi
3828
3829 test -n "$ac_ct_CXX" && break
3830done
2aeb72e9 3831test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3832
2aeb72e9 3833 CXX=$ac_ct_CXX
c3a86da9
DJ
3834fi
3835
2aeb72e9 3836
c3a86da9 3837# Provide some information about the compiler.
2aeb72e9
DD
3838echo "$as_me:$LINENO:" \
3839 "checking for C++ compiler version" >&5
c3a86da9 3840ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3841{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3842 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }
2aeb72e9
DD
3846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3847 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }
2aeb72e9
DD
3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3852 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856
2aeb72e9
DD
3857echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3858echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3859if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h. */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h. */
3868
3869int
3870main ()
3871{
3872#ifndef __GNUC__
3873 choke me
3874#endif
3875
3876 ;
3877 return 0;
3878}
3879_ACEOF
3880rm -f conftest.$ac_objext
2aeb72e9
DD
3881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3888 (exit $ac_status); } &&
3889 { ac_try='test -z "$ac_cxx_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
c3a86da9
DJ
3902 ac_compiler_gnu=yes
3903else
3904 echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
2aeb72e9 3907ac_compiler_gnu=no
c3a86da9 3908fi
2aeb72e9 3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3910ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3911
3912fi
2aeb72e9
DD
3913echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3914echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3915GXX=`test $ac_compiler_gnu = yes && echo yes`
3916ac_test_CXXFLAGS=${CXXFLAGS+set}
3917ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3918CXXFLAGS="-g"
3919echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3920echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3921if test "${ac_cv_prog_cxx_g+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
2aeb72e9 3924 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
3930
3931int
3932main ()
3933{
3934
3935 ;
3936 return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext
2aeb72e9
DD
3940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3941 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_cxx_werror_flag"
3949 || test ! -s conftest.err'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 (eval $ac_try) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; } &&
3955 { ac_try='test -s conftest.$ac_objext'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; }; then
c3a86da9
DJ
3961 ac_cv_prog_cxx_g=yes
3962else
3963 echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
2aeb72e9
DD
3966ac_cv_prog_cxx_g=no
3967fi
3968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969fi
3970echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3971echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3972if test "$ac_test_CXXFLAGS" = set; then
3973 CXXFLAGS=$ac_save_CXXFLAGS
3974elif test $ac_cv_prog_cxx_g = yes; then
3975 if test "$GXX" = yes; then
3976 CXXFLAGS="-g -O2"
3977 else
3978 CXXFLAGS="-g"
3979 fi
3980else
3981 if test "$GXX" = yes; then
3982 CXXFLAGS="-O2"
3983 else
3984 CXXFLAGS=
3985 fi
3986fi
3987for ac_declaration in \
3988 '' \
3989 'extern "C" void std::exit (int) throw (); using std::exit;' \
3990 'extern "C" void std::exit (int); using std::exit;' \
3991 'extern "C" void exit (int) throw ();' \
3992 'extern "C" void exit (int);' \
3993 'void exit (int);'
3994do
3995 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
2aeb72e9
DD
4001$ac_declaration
4002#include <stdlib.h>
c3a86da9
DJ
4003int
4004main ()
4005{
2aeb72e9 4006exit (42);
c3a86da9
DJ
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
2aeb72e9
DD
4012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_cxx_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
c3a86da9
DJ
4033 :
4034else
4035 echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4037
2aeb72e9
DD
4038continue
4039fi
4040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
2aeb72e9 4047$ac_declaration
c3a86da9
DJ
4048int
4049main ()
4050{
2aeb72e9 4051exit (42);
c3a86da9
DJ
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext
2aeb72e9
DD
4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_cxx_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 break
c3a86da9
DJ
4079else
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
11a67599 4083fi
2aeb72e9
DD
4084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4085done
4086rm -f conftest*
4087if test -n "$ac_declaration"; then
4088 echo '#ifdef __cplusplus' >>confdefs.h
4089 echo $ac_declaration >>confdefs.h
4090 echo '#endif' >>confdefs.h
c3a86da9
DJ
4091fi
4092
4093ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100# We must set the default linker to the linker used by gcc for the correct
4101# operation of libtool. If LD is not defined and we are using gcc, try to
4102# set the LD default to the ld used by gcc.
4103if test -z "$LD"; then
4104 if test "$GCC" = yes; then
4105 case $build in
4106 *-*-mingw*)
4107 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4108 *)
4109 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4110 esac
4111 case $gcc_prog_ld in
4112 # Accept absolute paths.
4113 [\\/]* | [A-Za-z]:[\\/]*)
4114 LD="$gcc_prog_ld" ;;
4115 esac
4116 fi
23f6b2f9
PB
4117fi
4118
23f6b2f9
PB
4119
4120
55ffb5ed 4121
1c710c3c
DJ
4122if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4124set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4125echo "$as_me:$LINENO: checking for $ac_word" >&5
4126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4127if test "${ac_cv_prog_GNATBIND+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4129else
4130 if test -n "$GNATBIND"; then
4131 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4132else
1c710c3c
DJ
4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134for as_dir in $PATH
4135do
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4140 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144done
4145done
4146
55ffb5ed
NN
4147fi
4148fi
1c710c3c 4149GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4150if test -n "$GNATBIND"; then
2aeb72e9
DD
4151 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4152echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4153else
2aeb72e9
DD
4154 echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6
55ffb5ed
NN
4156fi
4157
1c710c3c 4158fi
55ffb5ed 4159if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4160 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4161 # Extract the first word of "gnatbind", so it can be a program name with args.
4162set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4165if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4167else
1c710c3c
DJ
4168 if test -n "$ac_ct_GNATBIND"; then
4169 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4170else
1c710c3c
DJ
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4178 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183done
4184
2aeb72e9 4185 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4186fi
4187fi
1c710c3c
DJ
4188ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4189if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4190 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4191echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4192else
2aeb72e9
DD
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
55ffb5ed
NN
4195fi
4196
2aeb72e9 4197 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4198else
1c710c3c 4199 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4200fi
4201
1c710c3c
DJ
4202if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4204set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4207if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4209else
4210 if test -n "$GNATMAKE"; then
4211 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4212else
1c710c3c
DJ
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4220 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4223 fi
4224done
4225done
4226
5305be7e
RG
4227fi
4228fi
1c710c3c 4229GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4230if test -n "$GNATMAKE"; then
2aeb72e9
DD
4231 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4232echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4233else
2aeb72e9
DD
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
5305be7e
RG
4236fi
4237
1c710c3c 4238fi
5305be7e 4239if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4240 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4241 # Extract the first word of "gnatmake", so it can be a program name with args.
4242set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4243echo "$as_me:$LINENO: checking for $ac_word" >&5
4244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4245if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4247else
1c710c3c
DJ
4248 if test -n "$ac_ct_GNATMAKE"; then
4249 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4250else
1c710c3c
DJ
4251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4258 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262done
4263done
4264
2aeb72e9 4265 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4266fi
4267fi
1c710c3c
DJ
4268ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4269if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4270 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4271echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4272else
2aeb72e9
DD
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
5305be7e
RG
4275fi
4276
2aeb72e9 4277 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4278else
1c710c3c 4279 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4280fi
4281
2aeb72e9
DD
4282echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4283echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4284if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4286else
4287 cat >conftest.adb <<EOF
4288procedure conftest is begin null; end conftest;
4289EOF
4290acx_cv_cc_gcc_supports_ada=no
4291# There is a bug in old released versions of GCC which causes the
4292# driver to exit successfully when the appropriate language module
4293# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4294# Therefore we must check for the error message as well as an
4295# unsuccessful exit.
1db673ca
RO
4296# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4297# given a .adb file, but produce no object file. So we must check
4298# if an object file was really produced to guard against this.
55ffb5ed 4299errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4300if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4301 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4302fi
4303rm -f conftest.*
4304fi
2aeb72e9
DD
4305echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4306echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4307
5305be7e 4308if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4309 have_gnat=yes
4310else
4311 have_gnat=no
4312fi
4313
2aeb72e9
DD
4314echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4315echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4316if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4318else
4319 echo abfoo >t1
4320 echo cdfoo >t2
4321 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4322 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4323 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4324 :
4325 else
4326 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4327 fi
4328 fi
a76494aa
PB
4329 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4330 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4331 :
a76494aa
PB
4332 else
4333 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4334 fi
4335 fi
4336 rm t1 t2
4337
4338fi
2aeb72e9
DD
4339echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4340echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4341do_compare="$gcc_cv_prog_cmp_skip"
4342
4343
55ffb5ed 4344
bebf829d 4345# Check for GMP and MPFR
e69bf64b 4346gmplibs="-lmpfr -lgmp"
6de9cd9a 4347gmpinc=
e69bf64b
PB
4348have_gmp=no
4349
bebf829d
PB
4350# Specify a location for mpfr
4351# check for this first so it ends up on the link line before gmp.
1c710c3c 4352
2aeb72e9 4353# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4354if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4355 withval="$with_mpfr_dir"
4356 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4357Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4358echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4359Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4360 { (exit 1); exit 1; }; }
2aeb72e9 4361fi;
bebf829d
PB
4362
4363
2aeb72e9 4364# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4365if test "${with_mpfr+set}" = set; then
2aeb72e9 4366 withval="$with_mpfr"
1c710c3c 4367
2aeb72e9 4368fi;
bebf829d 4369
2aeb72e9 4370# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4371if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4372 withval="$with_mpfr_include"
1c710c3c 4373
2aeb72e9 4374fi;
8a877c9c 4375
2aeb72e9 4376# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4377if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4378 withval="$with_mpfr_lib"
8a877c9c 4379
2aeb72e9 4380fi;
bebf829d
PB
4381
4382if test "x$with_mpfr" != x; then
4383 gmplibs="-L$with_mpfr/lib $gmplibs"
4384 gmpinc="-I$with_mpfr/include"
4385fi
8a877c9c
KG
4386if test "x$with_mpfr_include" != x; then
4387 gmpinc="-I$with_mpfr_include"
4388fi
4389if test "x$with_mpfr_lib" != x; then
4390 gmplibs="-L$with_mpfr_lib $gmplibs"
4391fi
e69bf64b
PB
4392if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4393 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4394 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4395 # Do not test the mpfr version. Assume that it is sufficient, since
4396 # it is in the source tree, and the library has not been built yet
4397 # but it would be included on the link line in the version check below
4398 # hence making the test fail.
4399 have_gmp=yes
4400fi
bebf829d 4401
6de9cd9a 4402# Specify a location for gmp
1c710c3c 4403
2aeb72e9 4404# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4405if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4406 withval="$with_gmp_dir"
4407 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4408Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4409echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4410Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4411 { (exit 1); exit 1; }; }
2aeb72e9 4412fi;
6de9cd9a 4413
6de9cd9a 4414
2aeb72e9 4415# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4416if test "${with_gmp+set}" = set; then
2aeb72e9 4417 withval="$with_gmp"
1c710c3c 4418
2aeb72e9 4419fi;
6de9cd9a 4420
2aeb72e9 4421# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4422if test "${with_gmp_include+set}" = set; then
2aeb72e9 4423 withval="$with_gmp_include"
1c710c3c 4424
2aeb72e9 4425fi;
8a877c9c 4426
2aeb72e9 4427# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4428if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4429 withval="$with_gmp_lib"
8a877c9c 4430
2aeb72e9 4431fi;
8a877c9c 4432
6de9cd9a 4433
bebf829d
PB
4434if test "x$with_gmp" != x; then
4435 gmplibs="-L$with_gmp/lib $gmplibs"
4436 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4437fi
8a877c9c
KG
4438if test "x$with_gmp_include" != x; then
4439 gmpinc="-I$with_gmp_include $gmpinc"
4440fi
4441if test "x$with_gmp_lib" != x; then
4442 gmplibs="-L$with_gmp_lib $gmplibs"
4443fi
e69bf64b
PB
4444if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4445 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4446 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4447 # Do not test the gmp version. Assume that it is sufficient, since
4448 # it is in the source tree, and the library has not been built yet
4449 # but it would be included on the link line in the version check below
4450 # hence making the test fail.
4451 have_gmp=yes
4452fi
6de9cd9a 4453
d943d7c4 4454if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4455 have_gmp=yes
4456 saved_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS $gmpinc"
4458 # Check GMP actually works
2aeb72e9
DD
4459 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4460echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4461
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
6de9cd9a 4468#include "gmp.h"
1c710c3c
DJ
4469int
4470main ()
4471{
6de9cd9a 4472
e69bf64b
PB
4473 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4474 choke me
4475 #endif
1c710c3c
DJ
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
2aeb72e9
DD
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4505else
4506 echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
2aeb72e9
DD
4509echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4511fi
2aeb72e9 4512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4513
e69bf64b
PB
4514 if test x"$have_gmp" = xyes; then
4515 saved_LIBS="$LIBS"
4516 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4517 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4518echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
70ec446f 4525#include <gmp.h>
e69bf64b 4526 #include <mpfr.h>
1c710c3c
DJ
4527int
4528main ()
4529{
e48d66a9 4530
e69bf64b
PB
4531 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4532 choke me
4533 #endif
54e433bc
MK
4534 mpfr_t n;
4535 mpfr_t x;
e69bf64b 4536 int t;
54e433bc
MK
4537 mpfr_init (n);
4538 mpfr_init (x);
e69bf64b
PB
4539 mpfr_atan2 (n, n, x, GMP_RNDN);
4540 mpfr_erfc (n, x, GMP_RNDN);
4541 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4542
4543 ;
4544 return 0;
4545}
4546_ACEOF
4547rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_c_werror_flag"
4557 || test ! -s conftest.err'
4558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 (eval $ac_try) 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; } &&
4563 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
1c710c3c
DJ
4569 cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
a3993f33 4575#include <gmp.h>
e69bf64b 4576 #include <mpfr.h>
1c710c3c
DJ
4577int
4578main ()
4579{
a3993f33 4580
e69bf64b
PB
4581 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4582 choke me
4583 #endif
4584 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4585
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag"
4600 || test ! -s conftest.err'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
2aeb72e9
DD
4618echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4619echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4620fi
2aeb72e9 4621rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4622 conftest$ac_exeext conftest.$ac_ext
4623else
4624 echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
2aeb72e9
DD
4627echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4629fi
2aeb72e9 4630rm -f conftest.err conftest.$ac_objext \
1c710c3c 4631 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4632 LIBS="$saved_LIBS"
4633 fi
4634 CFLAGS="$saved_CFLAGS"
6de9cd9a 4635
e69bf64b 4636 if test x$have_gmp != xyes; then
1c710c3c
DJ
4637 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4638Try the --with-gmp and/or --with-mpfr options to specify their locations.
4639Copies of these libraries' source code can be found at their respective
4640hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4641See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4642If you obtained GMP and/or MPFR from a vendor distribution package, make
4643sure that you have installed both the libraries and the header files.
4644They may be located in separate packages." >&5
4645echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4646Try the --with-gmp and/or --with-mpfr options to specify their locations.
4647Copies of these libraries' source code can be found at their respective
4648hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4649See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4650If you obtained GMP and/or MPFR from a vendor distribution package, make
4651sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4652They may be located in separate packages." >&2;}
4653 { (exit 1); exit 1; }; }
e69bf64b 4654 fi
70ec446f
KG
4655fi
4656
bebf829d 4657# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4658
4659
4660
1e0f07d3 4661# By default, C is the only stage 1 language.
e1888513 4662stage1_languages=,c,
2805b53a 4663
55ffb5ed
NN
4664# Figure out what language subdirectories are present.
4665# Look if the user specified --enable-languages="..."; if not, use
4666# the environment variable $LANGUAGES if defined. $LANGUAGES might
4667# go away some day.
4668# NB: embedded tabs in this IF block -- do not untabify
4669if test -d ${srcdir}/gcc; then
4670 if test x"${enable_languages+set}" != xset; then
4671 if test x"${LANGUAGES+set}" = xset; then
4672 enable_languages="${LANGUAGES}"
4673 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4674 else
4675 enable_languages=all
4676 fi
4677 else
4678 if test x"${enable_languages}" = x ||
4679 test x"${enable_languages}" = xyes;
4680 then
4681 echo configure.in: --enable-languages needs at least one language argument 1>&2
4682 exit 1
4683 fi
4684 fi
4685 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4686
7f26dfa3
FXC
4687 # 'f95' is the old name for the 'fortran' language. We issue a warning
4688 # and make the substitution.
4689 case ,${enable_languages}, in
4690 *,f95,*)
4691 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4692 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4693 ;;
4694 esac
4695
55ffb5ed
NN
4696 # First scan to see if an enabled language requires some other language.
4697 # We assume that a given config-lang.in will list all the language
4698 # front ends it requires, even if some are required indirectly.
4699 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4700 case ${lang_frag} in
4701 ..) ;;
4702 # The odd quoting in the next line works around
4703 # an apparent bug in bash 1.12 on linux.
4704 ${srcdir}/gcc/[*]/config-lang.in) ;;
4705 *)
4706 # From the config-lang.in, get $language, $lang_requires
4707 language=
4708 lang_requires=
4709 . ${lang_frag}
4710 for other in ${lang_requires} ; do
4711 case ,${enable_languages}, in
4712 *,$other,*) ;;
4713 *,all,*) ;;
4714 *,$language,*)
4715 echo " \`$other' language required by \`$language'; enabling" 1>&2
4716 enable_languages="${enable_languages},${other}"
4717 ;;
4718 esac
4719 done
4720 ;;
4721 esac
4722 done
4723
e1888513 4724 new_enable_languages=,c,
55ffb5ed 4725 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4726 potential_languages=,c,
55ffb5ed
NN
4727
4728 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4729 case ${lang_frag} in
4730 ..) ;;
4731 # The odd quoting in the next line works around
4732 # an apparent bug in bash 1.12 on linux.
4733 ${srcdir}/gcc/[*]/config-lang.in) ;;
4734 *)
1c710c3c 4735 # From the config-lang.in, get $language, $target_libs,
2805b53a 4736 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4737 language=
4738 target_libs=
4739 lang_dirs=
1546bb64 4740 subdir_requires=
e1888513
PB
4741 boot_language=no
4742 build_by_default=yes
55ffb5ed 4743 . ${lang_frag}
e1888513
PB
4744 if test x${language} = x; then
4745 echo "${lang_frag} doesn't set \$language." 1>&2
4746 exit 1
4747 fi
4748
4749 case ,${enable_languages}, in
4750 *,${language},*)
55ffb5ed
NN
4751 # Language was explicitly selected; include it.
4752 add_this_lang=yes
4753 ;;
e1888513
PB
4754 *,all,*)
4755 # 'all' was selected, select it if it is a default language
4756 add_this_lang=${build_by_default}
55ffb5ed
NN
4757 ;;
4758 *)
4759 add_this_lang=no
4760 ;;
4761 esac
6de9cd9a 4762
1546bb64 4763 # Disable languages that need other directories if these aren't available.
95695ad3 4764 for i in $subdir_requires; do
b6348cb3 4765 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4766 case ,${enable_languages}, in
4767 *,${language},*)
4768 # Specifically requested language; tell them.
1c710c3c
DJ
4769 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4770echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4771 { (exit 1); exit 1; }; }
1546bb64
PB
4772 ;;
4773 *)
4774 # Silently disable.
e1888513 4775 add_this_lang=unsupported
1546bb64
PB
4776 ;;
4777 esac
4778 done
4779
e1888513
PB
4780 # Disable Ada if no preexisting GNAT is available.
4781 case ,${enable_languages},:${language}:${have_gnat} in
4782 *,${language},*:ada:no)
4783 # Specifically requested language; tell them.
1c710c3c
DJ
4784 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4785echo "$as_me: error: GNAT is required to build $language" >&2;}
4786 { (exit 1); exit 1; }; }
e1888513
PB
4787 ;;
4788 *:ada:no)
4789 # Silently disable.
4790 add_this_lang=unsupported
4791 ;;
4792 esac
4793
4fab7234
HPN
4794 # Disable a language that is unsupported by the target.
4795 case " $unsupported_languages " in
4796 *" $language "*)
e1888513 4797 add_this_lang=unsupported
4fab7234
HPN
4798 ;;
4799 esac
4800
6de9cd9a 4801 case $add_this_lang in
e1888513 4802 unsupported)
55ffb5ed 4803 # Remove language-dependent dirs.
2805b53a
NN
4804 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4805 ;;
e1888513
PB
4806 no)
4807 # Remove language-dependent dirs; still show language as supported.
4808 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4809 potential_languages="${potential_languages}${language},"
4810 ;;
4811 yes)
4812 new_enable_languages="${new_enable_languages}${language},"
4813 potential_languages="${potential_languages}${language},"
2805b53a
NN
4814 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4815 case ${boot_language} in
4816 yes)
340de83f 4817 # Add to (comma-separated) list of stage 1 languages.
e1888513 4818 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4819 ;;
4820 esac
4821 ;;
55ffb5ed
NN
4822 esac
4823 ;;
4824 esac
4825 done
4826
2aeb72e9 4827 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4828if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4829 enableval="$enable_stage1_languages"
4830 case ,${enable_stage1_languages}, in
e1888513
PB
4831 ,no,|,,)
4832 # Set it to something that will have no effect in the loop below
4833 enable_stage1_languages=c ;;
4834 ,yes,)
4835 enable_stage1_languages=`echo $new_enable_languages | \
4836 sed -e "s/^,//" -e "s/,$//" ` ;;
4837 *,all,*)
4838 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4839 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4840 esac
4841
4842 # Add "good" languages from enable_stage1_languages to stage1_languages,
4843 # while "bad" languages go in missing_languages. Leave no duplicates.
4844 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4845 case $potential_languages in
4846 *,$i,*)
4847 case $stage1_languages in
4848 *,$i,*) ;;
4849 *) stage1_languages="$stage1_languages$i," ;;
4850 esac ;;
4851 *)
4852 case $missing_languages in
4853 *,$i,*) ;;
4854 *) missing_languages="$missing_languages$i," ;;
4855 esac ;;
4856 esac
4857 done
2aeb72e9 4858fi;
e1888513
PB
4859
4860 # Remove leading/trailing commas that were added for simplicity
4861 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4862 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4863 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4864 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4865
55ffb5ed 4866 if test "x$missing_languages" != x; then
1c710c3c 4867 { { echo "$as_me:$LINENO: error:
0cf085e4 4868The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4869Supported languages are: ${potential_languages}" >&5
4870echo "$as_me: error:
4871The following requested languages could not be built: ${missing_languages}
4872Supported languages are: ${potential_languages}" >&2;}
4873 { (exit 1); exit 1; }; }
55ffb5ed 4874 fi
55ffb5ed
NN
4875 if test "x$new_enable_languages" != "x$enable_languages"; then
4876 echo The following languages will be built: ${new_enable_languages}
e1888513 4877 enable_languages="$new_enable_languages"
55ffb5ed 4878 fi
e1888513 4879
1c710c3c 4880
b2eaac4a 4881 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4882fi
4883
27079765
AH
4884# Handle --disable-<component> generically.
4885for dir in $configdirs $build_configdirs $target_configdirs ; do
4886 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4887 if eval test x\${enable_${dirname}} "=" xno ; then
4888 noconfigdirs="$noconfigdirs $dir"
4889 fi
4890done
4891
7cd0cf9c 4892# Check for Boehm's garbage collector
2aeb72e9 4893# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4894if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4895 enableval="$enable_objc_gc"
4896 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4897 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4898 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4899echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4900 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4901 ;;
4902esac
2aeb72e9 4903fi;
7cd0cf9c
DA
4904
4905# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4906case ,${enable_languages},:${enable_objc_gc} in
4907 *,objc,*:yes)
7cd0cf9c
DA
4908 # Keep target-boehm-gc if requested for Objective-C.
4909 ;;
7cd0cf9c 4910 *)
2a79fd67
DA
4911 # Otherwise remove target-boehm-gc depending on target-libjava.
4912 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4913 noconfigdirs="$noconfigdirs target-boehm-gc"
4914 fi
7cd0cf9c
DA
4915 ;;
4916esac
4917
ee6a22df
L
4918# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4919# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4920# If we have the source for $noconfigdirs entries, add them to $notsupp.
4921
4922notsupp=""
4923for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4924 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4925 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4926 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4927 if test -r $srcdir/$dirname/configure ; then
4928 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4929 true
4930 else
4931 notsupp="$notsupp $dir"
4932 fi
4933 fi
4934 fi
ee6a22df
L
4935 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4936 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4937 if test -r $srcdir/$dirname/configure ; then
4938 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4939 true
4940 else
4941 notsupp="$notsupp $dir"
4942 fi
4943 fi
4944 fi
55ffb5ed
NN
4945 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4946 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4947 if test -r $srcdir/$dirname/configure ; then
4948 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4949 true
4950 else
4951 notsupp="$notsupp $dir"
4952 fi
4953 fi
4954 fi
4955done
4956
4957# Sometimes the tools are distributed with libiberty but with no other
4958# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4959# Don't let libgcc imply libiberty either.
55ffb5ed 4960if test -n "${target_configdirs}" ; then
54fdc474 4961 libgcc=
55ffb5ed
NN
4962 others=
4963 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4964 if test "$i" = "libgcc"; then
4965 libgcc=target-libgcc
4966 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4967 if test -r $srcdir/$i/configure ; then
4968 others=yes;
4969 break;
4970 fi
4971 fi
4972 done
4973 if test -z "${others}" ; then
54fdc474 4974 target_configdirs=$libgcc
55ffb5ed
NN
4975 fi
4976fi
4977
4978# Quietly strip out all directories which aren't configurable in this tree.
4979# This relies on all configurable subdirectories being autoconfiscated, which
4980# is now the case.
23f6b2f9
PB
4981build_configdirs_all="$build_configdirs"
4982build_configdirs=
4983for i in ${build_configdirs_all} ; do
1c710c3c 4984 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4985 if test -f ${srcdir}/$j/configure ; then
4986 build_configdirs="${build_configdirs} $i"
4987 fi
4988done
4989
55ffb5ed
NN
4990configdirs_all="$configdirs"
4991configdirs=
4992for i in ${configdirs_all} ; do
4993 if test -f ${srcdir}/$i/configure ; then
4994 configdirs="${configdirs} $i"
4995 fi
4996done
23f6b2f9 4997
55ffb5ed
NN
4998target_configdirs_all="$target_configdirs"
4999target_configdirs=
5000for i in ${target_configdirs_all} ; do
1c710c3c 5001 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5002 if test -f ${srcdir}/$j/configure ; then
5003 target_configdirs="${target_configdirs} $i"
5004 fi
5005done
5006
5007# Produce a warning message for the subdirs we can't configure.
5008# This isn't especially interesting in the Cygnus tree, but in the individual
5009# FSF releases, it's important to let people know when their machine isn't
5010# supported by the one or two programs in a package.
5011
5012if test -n "${notsupp}" && test -z "${norecursion}" ; then
5013 # If $appdirs is non-empty, at least one of those directories must still
5014 # be configured, or we error out. (E.g., if the gas release supports a
5015 # specified target in some subdirs but not the gas subdir, we shouldn't
5016 # pretend that all is well.)
5017 if test -n "$appdirs" ; then
5018 for dir in $appdirs ; do
5019 if test -r $dir/Makefile.in ; then
5020 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5021 appdirs=""
5022 break
5023 fi
23f6b2f9 5024 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5025 appdirs=""
5026 break
5027 fi
5028 fi
5029 done
5030 if test -n "$appdirs" ; then
5031 echo "*** This configuration is not supported by this package." 1>&2
5032 exit 1
5033 fi
5034 fi
5035 # Okay, some application will build, or we don't care to check. Still
5036 # notify of subdirs not getting built.
5037 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5038 echo " ${notsupp}" 1>&2
5039 echo " (Any other directories should still work fine.)" 1>&2
5040fi
5041
5042case "$host" in
5043 *msdosdjgpp*)
5044 enable_gdbtk=no ;;
5045esac
5046
c3a86da9
DJ
5047# To find our prefix, in gcc_cv_tool_prefix.
5048
5049# The user is always right.
5050if test "${PATH_SEPARATOR+set}" != set; then
5051 echo "#! /bin/sh" >conf$$.sh
5052 echo "exit 0" >>conf$$.sh
5053 chmod +x conf$$.sh
5054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055 PATH_SEPARATOR=';'
5056 else
5057 PATH_SEPARATOR=:
5058 fi
5059 rm -f conf$$.sh
5060fi
5061
5062
5063
5064if test "x$exec_prefix" = xNONE; then
5065 if test "x$prefix" = xNONE; then
5066 gcc_cv_tool_prefix=$ac_default_prefix
5067 else
5068 gcc_cv_tool_prefix=$prefix
5069 fi
5070else
5071 gcc_cv_tool_prefix=$exec_prefix
5072fi
5073
5074# If there is no compiler in the tree, use the PATH only. In any
5075# case, if there is no compiler in the tree nobody should use
5076# AS_FOR_TARGET and LD_FOR_TARGET.
5077if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5078 gcc_version=`cat $srcdir/gcc/BASE-VER`
5079 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5085else
5086 gcc_cv_tool_dirs=
5087fi
5088
5089if test x$build = x$target && test -n "$md_exec_prefix"; then
5090 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5091fi
5092
5093
5094
55ffb5ed
NN
5095copy_dirs=
5096
1c710c3c 5097
2aeb72e9 5098# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5099if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5100 withval="$with_build_sysroot"
5101 if test x"$withval" != x ; then
526635cb
MM
5102 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5103 fi
5104else
5105 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5106fi;
526635cb
MM
5107
5108
c8aea42c
PB
5109
5110# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5111if test "${with_debug_prefix_map+set}" = set; then
5112 withval="$with_debug_prefix_map"
5113 if test x"$withval" != x; then
5114 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5115 for debug_map in $withval; do
5116 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5117 done
5118 fi
5119else
5120 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5121fi;
5122
5123
55ffb5ed
NN
5124# Handle --with-headers=XXX. If the value is not "yes", the contents of
5125# the named directory are copied to $(tooldir)/sys-include.
5126if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5127 if test x${is_cross_compiler} = xno ; then
5128 echo 1>&2 '***' --with-headers is only supported when cross compiling
5129 exit 1
5130 fi
5131 if test x"${with_headers}" != xyes ; then
c3a86da9 5132 x=${gcc_cv_tool_prefix}
1c710c3c 5133 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5134 fi
5135fi
5136
5137# Handle --with-libs=XXX. If the value is not "yes", the contents of
5138# the name directories are copied to $(tooldir)/lib. Multiple directories
5139# are permitted.
5140if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5141 if test x${is_cross_compiler} = xno ; then
5142 echo 1>&2 '***' --with-libs is only supported when cross compiling
5143 exit 1
5144 fi
5145 if test x"${with_libs}" != xyes ; then
5146 # Copy the libraries in reverse order, so that files in the first named
5147 # library override files in subsequent libraries.
c3a86da9 5148 x=${gcc_cv_tool_prefix}
55ffb5ed 5149 for l in ${with_libs}; do
1c710c3c 5150 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5151 done
5152 fi
5153fi
5154
e8b05380
PB
5155# Set with_gnu_as and with_gnu_ld as appropriate.
5156#
5157# This is done by determining whether or not the appropriate directory
5158# is available, and by checking whether or not specific configurations
5159# have requested that this magic not happen.
1c710c3c
DJ
5160#
5161# The command line options always override the explicit settings in
e8b05380
PB
5162# configure.in, and the settings in configure.in override this magic.
5163#
1c710c3c 5164# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5165# want to do that, then you should use the --without-gnu-as and
5166# --without-gnu-ld options for the configure script.
5167
5168if test x${use_gnu_as} = x &&
5169 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5170 with_gnu_as=yes
5171 extra_host_args="$extra_host_args --with-gnu-as"
5172fi
5173
5174if test x${use_gnu_ld} = x &&
5175 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5176 with_gnu_ld=yes
5177 extra_host_args="$extra_host_args --with-gnu-ld"
5178fi
5179
5180# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5181# can detect this case.
5182
5183if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5184 with_newlib=yes
5185 extra_host_args="$extra_host_args --with-newlib"
5186fi
5187
55ffb5ed
NN
5188# Handle ${copy_dirs}
5189set fnord ${copy_dirs}
5190shift
5191while test $# != 0 ; do
5192 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5193 :
5194 else
5195 echo Copying $1 to $2
5196
5197 # Use the install script to create the directory and all required
5198 # parent directories.
5199 if test -d $2 ; then
5200 :
5201 else
5202 echo >config.temp
5203 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5204 fi
5205
5206 # Copy the directory, assuming we have tar.
5207 # FIXME: Should we use B in the second tar? Not all systems support it.
5208 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5209
5210 # It is the responsibility of the user to correctly adjust all
5211 # symlinks. If somebody can figure out how to handle them correctly
5212 # here, feel free to add the code.
5213
5214 echo $1 > $2/COPIED
5215 fi
5216 shift; shift
5217done
5218
e8b05380
PB
5219# Determine a target-dependent exec_prefix that the installed
5220# gcc will search in. Keep this list sorted by triplet, with
5221# the *-*-osname triplets last.
5222md_exec_prefix=
5223case "${target}" in
5224 alpha*-*-*vms*)
5225 md_exec_prefix=/gnu/lib/gcc-lib
5226 ;;
30b74385 5227 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5228 md_exec_prefix=/dev/env/DJDIR/bin
5229 ;;
30b74385 5230 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5231 if test $with_gnu_as = yes; then
5232 md_exec_prefix=/usr/gnu/bin
5233 else
5234 md_exec_prefix=/usr/ccs/bin/elf
5235 fi
5236 ;;
5237
5238 mn10300-*-* | \
5239 powerpc-*-chorusos* | \
5240 powerpc*-*-eabi* | \
5241 powerpc*-*-sysv* | \
5242 powerpc*-*-kaos* | \
5243 s390x-ibm-tpf*)
5244 md_exec_prefix=/usr/ccs/bin
5245 ;;
5246 sparc64-*-elf*)
5247 ;;
5248 v850*-*-*)
5249 md_exec_prefix=/usr/ccs/bin
5250 ;;
5251 xtensa-*-elf*)
5252 ;;
5253
5254 *-*-beos* | \
5255 *-*-elf* | \
5256 *-*-hpux* | \
5257 *-*-netware* | \
5258 *-*-nto-qnx* | \
5259 *-*-rtems* | \
5260 *-*-solaris2* | \
30b74385 5261 *-*-sysv[45]* | \
e8b05380
PB
5262 *-*-vxworks* | \
5263 *-wrs-windiss)
5264 md_exec_prefix=/usr/ccs/bin
5265 ;;
5266esac
5267
671aa708
NN
5268extra_arflags_for_target=
5269extra_nmflags_for_target=
5270extra_ranlibflags_for_target=
5271target_makefile_frag=/dev/null
5272case "${target}" in
3e19841a
PB
5273 mep*-*-*)
5274 target_makefile_frag="config/mt-mep"
5275 ;;
58e24147
AM
5276 spu-*-*)
5277 target_makefile_frag="config/mt-spu"
5278 ;;
4bf6c438
RS
5279 mips*-sde-elf*)
5280 target_makefile_frag="config/mt-sde"
5281 ;;
61fec9ff 5282 *-*-netware*)
671aa708
NN
5283 target_makefile_frag="config/mt-netware"
5284 ;;
98a5bb3b
RM
5285 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5286 target_makefile_frag="config/mt-gnu"
671aa708
NN
5287 ;;
5288 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5289 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5290 # commands to handle both 32-bit and 64-bit objects. These flags are
5291 # harmless if we're using GNU nm or ar.
5292 extra_arflags_for_target=" -X32_64"
5293 extra_nmflags_for_target=" -B -X32_64"
5294 ;;
5295 *-*-darwin*)
5296 # ranlib from Darwin requires the -c flag to look at common symbols.
5297 extra_ranlibflags_for_target=" -c"
5298 ;;
5299 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5300 target_makefile_frag="config/mt-wince"
5301 ;;
5302esac
5303
5304alphaieee_frag=/dev/null
5305case $target in
5306 alpha*-*-*)
5307 # This just makes sure to use the -mieee option to build target libs.
5308 # This should probably be set individually by each library.
5309 alphaieee_frag="config/mt-alphaieee"
5310 ;;
5311esac
5312
5313# If --enable-target-optspace always use -Os instead of -O2 to build
5314# the target libraries, similarly if it is not specified, use -Os
5315# on selected platforms.
5316ospace_frag=/dev/null
5317case "${enable_target_optspace}:${target}" in
5318 yes:*)
5319 ospace_frag="config/mt-ospace"
5320 ;;
5321 :d30v-*)
5322 ospace_frag="config/mt-d30v"
5323 ;;
5324 :m32r-* | :d10v-* | :fr30-*)
5325 ospace_frag="config/mt-ospace"
5326 ;;
5327 no:* | :*)
5328 ;;
5329 *)
5330 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5331 ;;
5332esac
5333
671aa708
NN
5334# Default to using --with-stabs for certain targets.
5335if test x${with_stabs} = x ; then
5336 case "${target}" in
89a95129 5337 mips*-*-irix[56]*)
671aa708
NN
5338 ;;
5339 mips*-*-* | alpha*-*-osf*)
5340 with_stabs=yes;
5341 extra_host_args="${extra_host_args} --with-stabs"
5342 ;;
5343 esac
5344fi
5345
5346# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5347# them automatically.
5348case "${host}" in
1c710c3c 5349 hppa*64*-*-hpux11*)
671aa708
NN
5350 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5351 ;;
5352esac
5353
671aa708
NN
5354# Some systems (e.g., one of the i386-aix systems the gas testers are
5355# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5356tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5357build_tooldir=${tooldir}
5358
671aa708
NN
5359# Create a .gdbinit file which runs the one in srcdir
5360# and tells GDB to look there for source files.
5361
5362if test -r ${srcdir}/.gdbinit ; then
5363 case ${srcdir} in
5364 .) ;;
5365 *) cat > ./.gdbinit <<EOF
5366# ${NO_EDIT}
5367dir ${srcdir}
5368dir .
5369source ${srcdir}/.gdbinit
5370EOF
5371 ;;
5372 esac
5373fi
5374
671aa708
NN
5375# Make sure that the compiler is able to generate an executable. If it
5376# can't, we are probably in trouble. We don't care whether we can run the
5377# executable--we might be using a cross compiler--we only care whether it
5378# can be created. At this point the main configure script has set CC.
5379we_are_ok=no
5380echo "int main () { return 0; }" > conftest.c
5381${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5382if test $? = 0 ; then
5383 if test -s conftest || test -s conftest.exe ; then
5384 we_are_ok=yes
5385 fi
1c710c3c 5386fi
671aa708
NN
5387case $we_are_ok in
5388 no)
5389 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5390 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5391 rm -f conftest*
5392 exit 1
5393 ;;
5394esac
5395rm -f conftest*
5396
5397# The Solaris /usr/ucb/cc compiler does not appear to work.
5398case "${host}" in
5399 sparc-sun-solaris2*)
5400 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5401 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5402 could_use=
5403 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5404 if test -d /opt/cygnus/bin ; then
5405 if test "$could_use" = "" ; then
5406 could_use="/opt/cygnus/bin"
5407 else
5408 could_use="$could_use or /opt/cygnus/bin"
5409 fi
5410 fi
5411 if test "$could_use" = "" ; then
5412 echo "Warning: compilation may fail because you're using"
5413 echo "/usr/ucb/cc. You should change your PATH or CC "
5414 echo "variable and rerun configure."
5415 else
5416 echo "Warning: compilation may fail because you're using"
5417 echo "/usr/ucb/cc, when you should use the C compiler from"
5418 echo "$could_use. You should change your"
5419 echo "PATH or CC variable and rerun configure."
5420 fi
5421 fi
5422 ;;
5423esac
5424
671aa708
NN
5425case "${host}" in
5426 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5427 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5428 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5429esac
5430
5431# Record target_configdirs and the configure arguments for target and
5432# build configuration in Makefile.
5433target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5434build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5435
671aa708
NN
5436# Determine whether gdb needs tk/tcl or not.
5437# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5438# and in that case we want gdb to be built without tk. Ugh!
5439# In fact I believe gdb is the *only* package directly dependent on tk,
5440# so we should be able to put the 'maybe's in unconditionally and
5441# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5442# 100% sure that that's safe though.
e914a571 5443
b4f96efe 5444gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5445case "$enable_gdbtk" in
5446 no)
5447 GDB_TK="" ;;
e914a571
AC
5448 yes)
5449 GDB_TK="${gdb_tk}" ;;
671aa708 5450 *)
e914a571
AC
5451 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5452 # distro. Eventually someone will fix this and move Insight, nee
5453 # gdbtk to a separate directory.
5454 if test -d ${srcdir}/gdb/gdbtk ; then
5455 GDB_TK="${gdb_tk}"
5456 else
5457 GDB_TK=""
5458 fi
5459 ;;
671aa708 5460esac
ef9db8d5
DJ
5461CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5462INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5463
60975492 5464# Strip out unwanted targets.
8b87bb96
NN
5465
5466# While at that, we remove Makefiles if we were started for recursive
5467# configuration, so that the top-level Makefile reconfigures them,
5468# like we used to do when configure itself was recursive.
8b87bb96 5469
60975492
PB
5470# Loop over modules. $extrasub must be used with care, limiting as
5471# much as possible the usage of range addresses. That's because autoconf
5472# splits the sed script to overcome limits in the number of commands,
5473# and relying on carefully-timed sed passes may turn out to be very hard
5474# to maintain later. In this particular case, you just have to be careful
5475# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5476
2aeb72e9 5477# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5478if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5479 enableval="$enable_bootstrap"
5480
f516a7da 5481else
ce521a9c 5482 enable_bootstrap=default
2aeb72e9 5483fi;
f516a7da 5484
ce521a9c
PB
5485# Issue errors and warnings for invalid/strange bootstrap combinations.
5486case "$configdirs" in
5487 *gcc*) have_compiler=yes ;;
5488 *) have_compiler=no ;;
5489esac
5490
5491case "$have_compiler:$host:$target:$enable_bootstrap" in
5492 *:*:*:no) ;;
5493
1ca26cd2 5494 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5495 # and we are in a native configuration.
5496 yes:$build:$build:default)
1ca26cd2 5497 enable_bootstrap=yes ;;
ce521a9c
PB
5498
5499 *:*:*:default)
5500 enable_bootstrap=no ;;
5501
5502 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5503 yes:$build:$build:yes)
ce521a9c
PB
5504 ;;
5505
5506 # Other configurations, but we have a compiler. Assume the user knows
5507 # what he's doing.
2d309510 5508 yes:*:*:yes)
1c710c3c
DJ
5509 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5510echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5511 ;;
5512
5513 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5514 no:*:*:yes)
1c710c3c
DJ
5515 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5516echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5517 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5518
5519 # Fail if wrong command line
5520 *)
1c710c3c
DJ
5521 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5522echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5523 { (exit 1); exit 1; }; }
ce521a9c
PB
5524 ;;
5525esac
5526
5527# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5528case "$enable_bootstrap" in
5529 yes)
5607edfd 5530 bootstrap_suffix=bootstrap ;;
f516a7da 5531 no)
5607edfd 5532 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5533esac
5534
23f6b2f9 5535for module in ${build_configdirs} ; do
5607edfd
PB
5536 if test -z "${no_recursion}" \
5537 && test -f ${build_subdir}/${module}/Makefile; then
5538 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5539 rm -f ${build_subdir}/${module}/Makefile
5540 fi
5541 extrasub="$extrasub
5542/^@if build-$module\$/d
5543/^@endif build-$module\$/d
5544/^@if build-$module-$bootstrap_suffix\$/d
5545/^@endif build-$module-$bootstrap_suffix\$/d"
5546done
5547for module in ${configdirs} ; do
a6fbc1e2 5548 if test -z "${no_recursion}"; then
f063a9ed 5549 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5550 if test -f ${file}; then
5551 echo 1>&2 "*** removing ${file} to force reconfigure"
5552 rm -f ${file}
5553 fi
5554 done
5607edfd
PB
5555 fi
5556 extrasub="$extrasub
5557/^@if $module\$/d
5558/^@endif $module\$/d
5559/^@if $module-$bootstrap_suffix\$/d
5560/^@endif $module-$bootstrap_suffix\$/d"
5561done
5562for module in ${target_configdirs} ; do
5563 if test -z "${no_recursion}" \
5564 && test -f ${target_subdir}/${module}/Makefile; then
5565 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5566 rm -f ${target_subdir}/${module}/Makefile
5567 fi
5568 extrasub="$extrasub
5569/^@if target-$module\$/d
5570/^@endif target-$module\$/d
5571/^@if target-$module-$bootstrap_suffix\$/d
5572/^@endif target-$module-$bootstrap_suffix\$/d"
5573done
5574
60975492
PB
5575extrasub="$extrasub
5576/^@if /,/^@endif /d"
671aa708
NN
5577
5578# Create the serialization dependencies. This uses a temporary file.
5579
2aeb72e9 5580# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5581if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5582 enableval="$enable_serial_configure"
ade82b16 5583
2aeb72e9 5584fi;
ade82b16 5585
bf1d3e81
NN
5586case ${enable_serial_configure} in
5587 yes)
5588 enable_serial_build_configure=yes
5589 enable_serial_host_configure=yes
5590 enable_serial_target_configure=yes
5591 ;;
5592esac
5593
671aa708
NN
5594# These force 'configure's to be done one at a time, to avoid problems
5595# with contention over a shared config.cache.
5596rm -f serdep.tmp
ade82b16 5597echo '# serdep.tmp' > serdep.tmp
671aa708 5598olditem=
bf1d3e81 5599test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5600for item in ${build_configdirs} ; do
5601 case ${olditem} in
5602 "") ;;
ade82b16 5603 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5604 esac
5605 olditem=${item}
5606done
5607olditem=
bf1d3e81 5608test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5609for item in ${configdirs} ; do
5610 case ${olditem} in
5611 "") ;;
ade82b16 5612 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5613 esac
5614 olditem=${item}
5615done
5616olditem=
bf1d3e81 5617test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5618for item in ${target_configdirs} ; do
5619 case ${olditem} in
5620 "") ;;
ade82b16 5621 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5622 esac
5623 olditem=${item}
5624done
5625serialization_dependencies=serdep.tmp
5626
5627
ade82b16 5628# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5629# target, nonopt, and variable assignments. These are the ones we
5630# might not want to pass down to subconfigures. Also strip
5631# program-prefix, program-suffix, and program-transform-name, so that
5632# we can pass down a consistent program-transform-name.
5633baseargs=
5634keep_next=no
5635skip_next=no
5636eval "set -- $ac_configure_args"
44bfc3ac
DJ
5637for ac_arg
5638do
1c710c3c
DJ
5639 if test X"$skip_next" = X"yes"; then
5640 skip_next=no
5641 continue
5642 fi
5643 if test X"$keep_next" = X"yes"; then
5644 case $ac_arg in
5645 *\'*)
5646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5647 esac
5648 baseargs="$baseargs '$ac_arg'"
5649 keep_next=no
5650 continue
5651 fi
5652
5653 # Handle separated arguments. Based on the logic generated by
5654 # autoconf 2.59.
5655 case $ac_arg in
5656 *=* | --config-cache | -C | -disable-* | --disable-* \
5657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5659 | -with-* | --with-* | -without-* | --without-* | --x)
5660 separate_arg=no
5661 ;;
5662 -*)
5663 separate_arg=yes
5664 ;;
5665 *)
5666 separate_arg=no
5667 ;;
5668 esac
5669
5670 case "$ac_arg" in
5671 --no*)
5672 continue
5673 ;;
5674 --c* | \
5675 --sr* | \
5676 --ho* | \
5677 --bu* | \
5678 --t* | \
5679 --program-* | \
5680 -cache_file* | \
5681 -srcdir* | \
5682 -host* | \
5683 -build* | \
5684 -target* | \
5685 -program-prefix* | \
5686 -program-suffix* | \
5687 -program-transform-name* )
5688 skip_next=$separate_arg
5689 continue
5690 ;;
5691 -*)
5692 # An option. Add it.
5693 case $ac_arg in
5694 *\'*)
5695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5696 esac
5697 baseargs="$baseargs '$ac_arg'"
5698 keep_next=$separate_arg
5699 ;;
5700 *)
5701 # Either a variable assignment, or a nonopt (triplet). Don't
5702 # pass it down; let the Makefile handle this.
5703 continue
5704 ;;
5705 esac
5706done
5707# Remove the initial space we just introduced and, as these will be
5708# expanded by make, quote '$'.
5709baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5710
43bb47c2
DJ
5711# Add in --program-transform-name, after --program-prefix and
5712# --program-suffix have been applied to it. Autoconf has already
5713# doubled dollar signs and backslashes in program_transform_name; we want
5714# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5715# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5716# Also, because we want to override the logic in subdir configure scripts to
5717# choose program_transform_name, replace any s,x,x, with s,y,y,.
5718sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5719${program_transform_name}
5720EOF_SED
5721gcc_transform_name=`cat conftestsed.out`
5722rm -f conftestsed.out
5723baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5724if test "$silent" = yes; then
5725 baseargs="$baseargs --silent"
5726fi
43bb47c2 5727
671aa708
NN
5728# For the build-side libraries, we just need to pretend we're native,
5729# and not use the same cache file. Multilibs are neither needed nor
5730# desired.
e69bf64b 5731build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5732
5733# For host modules, accept cache file option, or specification as blank.
5734case "${cache_file}" in
5735"") # empty
5736 cache_file_option="" ;;
5737/* | [A-Za-z]:[\\/]* ) # absolute path
5738 cache_file_option="--cache-file=${cache_file}" ;;
5739*) # relative path
5740 cache_file_option="--cache-file=../${cache_file}" ;;
5741esac
5742
09438bde
NN
5743# Host dirs don't like to share a cache file either, horribly enough.
5744# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5745host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5746
5747target_configargs=${baseargs}
5748
5749# Passing a --with-cross-host argument lets the target libraries know
5750# whether they are being built with a cross-compiler or being built
5751# native. However, it would be better to use other mechanisms to make the
5752# sorts of decisions they want to make on this basis. Please consider
5753# this option to be deprecated. FIXME.
5754if test x${is_cross_compiler} = xyes ; then
1c710c3c 5755 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5756fi
5757
5758# Default to --enable-multilib.
5759if test x${enable_multilib} = x ; then
5760 target_configargs="--enable-multilib ${target_configargs}"
5761fi
5762
5763# Pass --with-newlib if appropriate. Note that target_configdirs has
5764# changed from the earlier setting of with_newlib.
5765if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5766 target_configargs="--with-newlib ${target_configargs}"
5767fi
5768
6b9eb62c
NN
5769# Different target subdirs use different values of certain variables
5770# (notably CXX). Worse, multilibs use *lots* of different values.
5771# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5772# it doesn't automatically accept command-line overrides of them.
5773# This means it's not safe for target subdirs to share a cache file,
5774# which is disgusting, but there you have it. Hopefully this can be
5775# fixed in future. It's still worthwhile to use a cache file for each
5776# directory. I think.
5777
bebcd931
MS
5778# Pass the appropriate --build, --host, --target and --cache-file arguments.
5779# We need to pass --target, as newer autoconf's requires consistency
5780# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5781target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5782
671aa708
NN
5783FLAGS_FOR_TARGET=
5784case " $target_configdirs " in
5785 *" newlib "*)
5786 case " $target_configargs " in
5787 *" --with-newlib "*)
5788 case "$target" in
5789 *-cygwin*)
aa8f1f57 5790 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
5791 esac
5792
5793 # If we're not building GCC, don't discard standard headers.
5794 if test -d ${srcdir}/gcc; then
5795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5796
5797 if test "${build}" != "${host}"; then
5798 # On Canadian crosses, CC_FOR_TARGET will have already been set
5799 # by `configure', so we won't have an opportunity to add -Bgcc/
5800 # to it. This is right: we don't want to search that directory
5801 # for binaries, but we want the header files in there, so add
5802 # them explicitly.
215c351a 5803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5804
5805 # Someone might think of using the pre-installed headers on
5806 # Canadian crosses, in case the installed compiler is not fully
5807 # compatible with the compiler being built. In this case, it
5808 # would be better to flag an error than risking having
5809 # incompatible object files being constructed. We can't
5810 # guarantee that an error will be flagged, but let's hope the
5811 # compiler will do it, when presented with incompatible header
5812 # files.
5813 fi
5814 fi
5815
5816 case "${target}-${is_cross_compiler}" in
f2a0e225 5817 i[3456789]86-*-linux*-no)
671aa708
NN
5818 # Here host == target, so we don't need to build gcc,
5819 # so we don't want to discard standard headers.
5820 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5821 ;;
5822 *)
5823 # If we're building newlib, use its generic headers last, but search
5824 # for any libc-related directories first (so make it the last -B
5825 # switch).
5826 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
5827
5828 # If we're building libgloss, find the startup file, simulator library
5829 # and linker script.
5830 case " $target_configdirs " in
5831 *" libgloss "*)
5832 # Look for startup file, simulator library and maybe linker script.
5833 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5834 # Look for libnosys.a in case the target needs it.
5835 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5836 # Most targets have the linker script in the source directory.
5837 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5838 ;;
5839 esac
671aa708
NN
5840 ;;
5841 esac
5842 ;;
5843 esac
5844 ;;
5845esac
b91f0a41
CV
5846case "$target" in
5847*-mingw*)
5848 # Can't be handled as Cygwin above since Mingw does not use newlib.
5849 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' ;;
5850esac
671aa708 5851
6691a79e
ME
5852# Allow the user to override the flags for
5853# our build compiler if desired.
5854CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5855
671aa708
NN
5856# On Canadian crosses, we'll be searching the right directories for
5857# the previously-installed cross compiler, so don't bother to add
5858# flags for directories within the install tree of the compiler
5859# being built; programs in there won't even run.
5860if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5861 # Search for pre-installed headers if nothing else fits.
9124bc53 5862 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
5863fi
5864
5865if test "x${use_gnu_ld}" = x &&
5866 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5867 # Arrange for us to find uninstalled linker scripts.
215c351a 5868 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5869fi
5870
e88a2c09
DD
5871# Search for other target-specific linker scripts and such.
5872case "${target}" in
3e19841a
PB
5873 mep*)
5874 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5875 ;;
e88a2c09
DD
5876esac
5877
671aa708 5878# Makefile fragments.
7b61653a
PE
5879for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5880do
5881 eval fragval=\$$frag
5882 if test $fragval != /dev/null; then
5883 eval $frag=${srcdir}/$fragval
5884 fi
5885done
671aa708
NN
5886
5887
5888
5889
5890
5891# Miscellanea: directories, flags, etc.
5892
5893
5894
5895
5896
5897
5898
23f6b2f9 5899# Build module lists & subconfigure args.
671aa708
NN
5900
5901
5902
2abefe3d
PB
5903# Host module lists & subconfigure args.
5904
5905
5906
5907# Target module lists & subconfigure args.
5908
5909
5910
5911# Build tools.
5912
5913
5914
5915# Generate default definitions for YACC, M4, LEX and other programs that run
5916# on the build machine. These are used if the Makefile can't locate these
5917# programs in objdir.
5918MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5919
5920for ac_prog in 'bison -y' byacc yacc
5921do
1c710c3c 5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5923set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5926if test "${ac_cv_prog_YACC+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5928else
5929 if test -n "$YACC"; then
5930 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5931else
1c710c3c
DJ
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5939 ac_cv_prog_YACC="$ac_prog"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944done
5945
2abefe3d
PB
5946fi
5947fi
1c710c3c 5948YACC=$ac_cv_prog_YACC
2abefe3d 5949if test -n "$YACC"; then
2aeb72e9
DD
5950 echo "$as_me:$LINENO: result: $YACC" >&5
5951echo "${ECHO_T}$YACC" >&6
2abefe3d 5952else
2aeb72e9
DD
5953 echo "$as_me:$LINENO: result: no" >&5
5954echo "${ECHO_T}no" >&6
2abefe3d
PB
5955fi
5956
1c710c3c 5957 test -n "$YACC" && break
2abefe3d
PB
5958done
5959test -n "$YACC" || YACC="$MISSING bison -y"
5960
5961case " $build_configdirs " in
5962 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5963 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5964esac
5965
5966for ac_prog in bison
5967do
1c710c3c 5968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5969set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5970echo "$as_me:$LINENO: checking for $ac_word" >&5
5971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5972if test "${ac_cv_prog_BISON+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5974else
5975 if test -n "$BISON"; then
5976 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5977else
1c710c3c
DJ
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5985 ac_cv_prog_BISON="$ac_prog"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989done
5990done
5991
2abefe3d
PB
5992fi
5993fi
1c710c3c 5994BISON=$ac_cv_prog_BISON
2abefe3d 5995if test -n "$BISON"; then
2aeb72e9
DD
5996 echo "$as_me:$LINENO: result: $BISON" >&5
5997echo "${ECHO_T}$BISON" >&6
2abefe3d 5998else
2aeb72e9
DD
5999 echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6
2abefe3d
PB
6001fi
6002
1c710c3c 6003 test -n "$BISON" && break
2abefe3d
PB
6004done
6005test -n "$BISON" || BISON="$MISSING bison"
6006
6007case " $build_configdirs " in
6008 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6009esac
6010
6011for ac_prog in gm4 gnum4 m4
6012do
1c710c3c 6013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6014set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6015echo "$as_me:$LINENO: checking for $ac_word" >&5
6016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6017if test "${ac_cv_prog_M4+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6019else
6020 if test -n "$M4"; then
6021 ac_cv_prog_M4="$M4" # Let the user override the test.
6022else
1c710c3c
DJ
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6030 ac_cv_prog_M4="$ac_prog"
6031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035done
6036
2abefe3d
PB
6037fi
6038fi
1c710c3c 6039M4=$ac_cv_prog_M4
2abefe3d 6040if test -n "$M4"; then
2aeb72e9
DD
6041 echo "$as_me:$LINENO: result: $M4" >&5
6042echo "${ECHO_T}$M4" >&6
2abefe3d 6043else
2aeb72e9
DD
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
2abefe3d
PB
6046fi
6047
1c710c3c 6048 test -n "$M4" && break
2abefe3d
PB
6049done
6050test -n "$M4" || M4="$MISSING m4"
6051
6052case " $build_configdirs " in
6053 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6054esac
6055
6056for ac_prog in flex lex
6057do
1c710c3c 6058 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6059set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6060echo "$as_me:$LINENO: checking for $ac_word" >&5
6061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6062if test "${ac_cv_prog_LEX+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6064else
6065 if test -n "$LEX"; then
6066 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6067else
1c710c3c
DJ
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6075 ac_cv_prog_LEX="$ac_prog"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080done
6081
2abefe3d
PB
6082fi
6083fi
1c710c3c 6084LEX=$ac_cv_prog_LEX
2abefe3d 6085if test -n "$LEX"; then
2aeb72e9
DD
6086 echo "$as_me:$LINENO: result: $LEX" >&5
6087echo "${ECHO_T}$LEX" >&6
2abefe3d 6088else
2aeb72e9
DD
6089 echo "$as_me:$LINENO: result: no" >&5
6090echo "${ECHO_T}no" >&6
2abefe3d
PB
6091fi
6092
1c710c3c 6093 test -n "$LEX" && break
2abefe3d
PB
6094done
6095test -n "$LEX" || LEX="$MISSING flex"
6096
6097case " $build_configdirs " in
6098 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6099 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6100esac
6101
6102for ac_prog in flex
6103do
1c710c3c 6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6105set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6106echo "$as_me:$LINENO: checking for $ac_word" >&5
6107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6108if test "${ac_cv_prog_FLEX+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6110else
6111 if test -n "$FLEX"; then
6112 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6113else
1c710c3c
DJ
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6121 ac_cv_prog_FLEX="$ac_prog"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125done
6126done
6127
2abefe3d
PB
6128fi
6129fi
1c710c3c 6130FLEX=$ac_cv_prog_FLEX
2abefe3d 6131if test -n "$FLEX"; then
2aeb72e9
DD
6132 echo "$as_me:$LINENO: result: $FLEX" >&5
6133echo "${ECHO_T}$FLEX" >&6
2abefe3d 6134else
2aeb72e9
DD
6135 echo "$as_me:$LINENO: result: no" >&5
6136echo "${ECHO_T}no" >&6
2abefe3d
PB
6137fi
6138
1c710c3c 6139 test -n "$FLEX" && break
2abefe3d
PB
6140done
6141test -n "$FLEX" || FLEX="$MISSING flex"
6142
6143case " $build_configdirs " in
6144 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6145esac
6146
6147for ac_prog in makeinfo
6148do
1c710c3c 6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6150set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6151echo "$as_me:$LINENO: checking for $ac_word" >&5
6152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6153if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6155else
6156 if test -n "$MAKEINFO"; then
6157 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6158else
1c710c3c
DJ
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6166 ac_cv_prog_MAKEINFO="$ac_prog"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171done
6172
2abefe3d
PB
6173fi
6174fi
1c710c3c 6175MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6176if test -n "$MAKEINFO"; then
2aeb72e9
DD
6177 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6178echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6179else
2aeb72e9
DD
6180 echo "$as_me:$LINENO: result: no" >&5
6181echo "${ECHO_T}no" >&6
2abefe3d
PB
6182fi
6183
1c710c3c 6184 test -n "$MAKEINFO" && break
2abefe3d
PB
6185done
6186test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6187
6188case " $build_configdirs " in
6189 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6190 *)
6191
4fe7e755 6192 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6193 # higher, else we use the "missing" dummy.
6194 if ${MAKEINFO} --version \
4fe7e755 6195 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6196 :
6197 else
6198 MAKEINFO="$MISSING makeinfo"
6199 fi
6200 ;;
6201
6202esac
671aa708 6203
2abefe3d 6204# FIXME: expect and dejagnu may become build tools?
671aa708 6205
2abefe3d
PB
6206for ac_prog in expect
6207do
1c710c3c 6208 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6209set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6210echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6212if test "${ac_cv_prog_EXPECT+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6214else
6215 if test -n "$EXPECT"; then
6216 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6217else
1c710c3c
DJ
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6225 ac_cv_prog_EXPECT="$ac_prog"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230done
6231
2abefe3d
PB
6232fi
6233fi
1c710c3c 6234EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6235if test -n "$EXPECT"; then
2aeb72e9
DD
6236 echo "$as_me:$LINENO: result: $EXPECT" >&5
6237echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6238else
2aeb72e9
DD
6239 echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
2abefe3d 6241fi
671aa708 6242
1c710c3c 6243 test -n "$EXPECT" && break
2abefe3d
PB
6244done
6245test -n "$EXPECT" || EXPECT="expect"
671aa708 6246
2abefe3d
PB
6247case " $configdirs " in
6248 *" expect "*)
6249 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6250 ;;
6251esac
671aa708 6252
2abefe3d
PB
6253for ac_prog in runtest
6254do
1c710c3c 6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6256set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6257echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6259if test "${ac_cv_prog_RUNTEST+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6261else
6262 if test -n "$RUNTEST"; then
6263 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6264else
1c710c3c
DJ
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6272 ac_cv_prog_RUNTEST="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277done
6278
2abefe3d
PB
6279fi
6280fi
1c710c3c 6281RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6282if test -n "$RUNTEST"; then
2aeb72e9
DD
6283 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6284echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6285else
2aeb72e9
DD
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
2abefe3d 6288fi
671aa708 6289
1c710c3c 6290 test -n "$RUNTEST" && break
2abefe3d
PB
6291done
6292test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6293
2abefe3d
PB
6294case " $configdirs " in
6295 *" dejagnu "*)
c394e891 6296 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6297 ;;
6298esac
671aa708
NN
6299
6300
671aa708 6301# Host tools.
ca9f4b81
AO
6302ncn_tool_prefix=
6303test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6304ncn_target_tool_prefix=
6305test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6306
278a7a38
AO
6307
6308
6309if test -n "$AR"; then
6310 ac_cv_prog_AR=$AR
6311elif test -n "$ac_cv_prog_AR"; then
6312 AR=$ac_cv_prog_AR
6313fi
6314
6315if test -n "$ac_cv_prog_AR"; then
6316 for ncn_progname in ar; do
6317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6318set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6319echo "$as_me:$LINENO: checking for $ac_word" >&5
6320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6321if test "${ac_cv_prog_AR+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 if test -n "$AR"; then
6325 ac_cv_prog_AR="$AR" # Let the user override the test.
6326else
6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328for as_dir in $PATH
6329do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6334 ac_cv_prog_AR="${ncn_progname}"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338done
6339done
6340
6341fi
6342fi
6343AR=$ac_cv_prog_AR
6344if test -n "$AR"; then
2aeb72e9
DD
6345 echo "$as_me:$LINENO: result: $AR" >&5
6346echo "${ECHO_T}$AR" >&6
278a7a38 6347else
2aeb72e9
DD
6348 echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
278a7a38
AO
6350fi
6351
6352 done
6353fi
6354
6355for ncn_progname in ar; do
2693c0b0
PB
6356 if test -n "$ncn_tool_prefix"; then
6357 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6358set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6359echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6361if test "${ac_cv_prog_AR+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6363else
6364 if test -n "$AR"; then
6365 ac_cv_prog_AR="$AR" # Let the user override the test.
6366else
1c710c3c
DJ
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6374 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378done
6379done
6380
ca9f4b81
AO
6381fi
6382fi
1c710c3c 6383AR=$ac_cv_prog_AR
ca9f4b81 6384if test -n "$AR"; then
2aeb72e9
DD
6385 echo "$as_me:$LINENO: result: $AR" >&5
6386echo "${ECHO_T}$AR" >&6
ca9f4b81 6387else
2aeb72e9
DD
6388 echo "$as_me:$LINENO: result: no" >&5
6389echo "${ECHO_T}no" >&6
ca9f4b81
AO
6390fi
6391
2693c0b0
PB
6392 fi
6393 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
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
1c710c3c
DJ
6398if test "${ac_cv_prog_AR+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6400else
2693c0b0 6401 if test -n "$AR"; then
af71363e
AS
6402 ac_cv_prog_AR="$AR" # Let the user override the test.
6403else
1c710c3c
DJ
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
1c710c3c
DJ
6411 ac_cv_prog_AR="${ncn_progname}"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415done
6416done
6417
ca9f4b81
AO
6418fi
6419fi
1c710c3c 6420AR=$ac_cv_prog_AR
2693c0b0 6421if test -n "$AR"; then
2aeb72e9
DD
6422 echo "$as_me:$LINENO: result: $AR" >&5
6423echo "${ECHO_T}$AR" >&6
ca9f4b81 6424else
2aeb72e9
DD
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
ca9f4b81 6427fi
1c710c3c 6428
2693c0b0
PB
6429 fi
6430 test -n "$ac_cv_prog_AR" && break
6431done
6432
6433if test -z "$ac_cv_prog_AR" ; then
6434 set dummy ar
6435 if test $build = $host ; then
6436 AR="$2"
ca9f4b81 6437 else
2693c0b0 6438 AR="${ncn_tool_prefix}$2"
ca9f4b81 6439 fi
ca9f4b81
AO
6440fi
6441
278a7a38
AO
6442
6443
6444if test -n "$AS"; then
6445 ac_cv_prog_AS=$AS
6446elif test -n "$ac_cv_prog_AS"; then
6447 AS=$ac_cv_prog_AS
6448fi
6449
6450if test -n "$ac_cv_prog_AS"; then
6451 for ncn_progname in as; do
6452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6453set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6454echo "$as_me:$LINENO: checking for $ac_word" >&5
6455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6456if test "${ac_cv_prog_AS+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459 if test -n "$AS"; then
6460 ac_cv_prog_AS="$AS" # Let the user override the test.
6461else
6462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463for as_dir in $PATH
6464do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6469 ac_cv_prog_AS="${ncn_progname}"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473done
6474done
6475
6476fi
6477fi
6478AS=$ac_cv_prog_AS
6479if test -n "$AS"; then
2aeb72e9
DD
6480 echo "$as_me:$LINENO: result: $AS" >&5
6481echo "${ECHO_T}$AS" >&6
278a7a38 6482else
2aeb72e9
DD
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
278a7a38
AO
6485fi
6486
6487 done
6488fi
6489
6490for ncn_progname in as; do
2693c0b0
PB
6491 if test -n "$ncn_tool_prefix"; then
6492 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6493set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6494echo "$as_me:$LINENO: checking for $ac_word" >&5
6495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6496if test "${ac_cv_prog_AS+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6498else
6499 if test -n "$AS"; then
6500 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6501else
1c710c3c
DJ
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6509 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513done
6514done
6515
ca9f4b81
AO
6516fi
6517fi
1c710c3c 6518AS=$ac_cv_prog_AS
ca9f4b81 6519if test -n "$AS"; then
2aeb72e9
DD
6520 echo "$as_me:$LINENO: result: $AS" >&5
6521echo "${ECHO_T}$AS" >&6
ca9f4b81 6522else
2aeb72e9
DD
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
ca9f4b81
AO
6525fi
6526
2693c0b0
PB
6527 fi
6528 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
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
1c710c3c
DJ
6533if test "${ac_cv_prog_AS+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6535else
2693c0b0
PB
6536 if test -n "$AS"; then
6537 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6538else
1c710c3c
DJ
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
1c710c3c
DJ
6546 ac_cv_prog_AS="${ncn_progname}"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551done
6552
ca9f4b81
AO
6553fi
6554fi
1c710c3c 6555AS=$ac_cv_prog_AS
2693c0b0 6556if test -n "$AS"; then
2aeb72e9
DD
6557 echo "$as_me:$LINENO: result: $AS" >&5
6558echo "${ECHO_T}$AS" >&6
ca9f4b81 6559else
2aeb72e9
DD
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
ca9f4b81 6562fi
1c710c3c 6563
2693c0b0
PB
6564 fi
6565 test -n "$ac_cv_prog_AS" && break
6566done
6567
6568if test -z "$ac_cv_prog_AS" ; then
6569 set dummy as
6570 if test $build = $host ; then
6571 AS="$2"
ca9f4b81 6572 else
2693c0b0 6573 AS="${ncn_tool_prefix}$2"
ca9f4b81 6574 fi
ca9f4b81
AO
6575fi
6576
278a7a38
AO
6577
6578
6579if test -n "$DLLTOOL"; then
6580 ac_cv_prog_DLLTOOL=$DLLTOOL
6581elif test -n "$ac_cv_prog_DLLTOOL"; then
6582 DLLTOOL=$ac_cv_prog_DLLTOOL
6583fi
6584
6585if test -n "$ac_cv_prog_DLLTOOL"; then
6586 for ncn_progname in dlltool; do
6587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6588set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6589echo "$as_me:$LINENO: checking for $ac_word" >&5
6590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6591if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594 if test -n "$DLLTOOL"; then
6595 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6604 ac_cv_prog_DLLTOOL="${ncn_progname}"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608done
6609done
6610
6611fi
6612fi
6613DLLTOOL=$ac_cv_prog_DLLTOOL
6614if test -n "$DLLTOOL"; then
2aeb72e9
DD
6615 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6616echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6617else
2aeb72e9
DD
6618 echo "$as_me:$LINENO: result: no" >&5
6619echo "${ECHO_T}no" >&6
278a7a38
AO
6620fi
6621
6622 done
6623fi
6624
6625for ncn_progname in dlltool; do
2693c0b0
PB
6626 if test -n "$ncn_tool_prefix"; then
6627 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6628set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6629echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6631if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6633else
6634 if test -n "$DLLTOOL"; then
6635 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6636else
1c710c3c
DJ
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6644 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648done
6649done
6650
ca9f4b81
AO
6651fi
6652fi
1c710c3c 6653DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6654if test -n "$DLLTOOL"; then
2aeb72e9
DD
6655 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6656echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6657else
2aeb72e9
DD
6658 echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
ca9f4b81
AO
6660fi
6661
2693c0b0
PB
6662 fi
6663 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
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
1c710c3c
DJ
6668if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6670else
2693c0b0
PB
6671 if test -n "$DLLTOOL"; then
6672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6673else
1c710c3c
DJ
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
1c710c3c
DJ
6681 ac_cv_prog_DLLTOOL="${ncn_progname}"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687
ca9f4b81
AO
6688fi
6689fi
1c710c3c 6690DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6691if test -n "$DLLTOOL"; then
2aeb72e9
DD
6692 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6693echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6694else
2aeb72e9
DD
6695 echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
ca9f4b81 6697fi
1c710c3c 6698
2693c0b0
PB
6699 fi
6700 test -n "$ac_cv_prog_DLLTOOL" && break
6701done
6702
6703if test -z "$ac_cv_prog_DLLTOOL" ; then
6704 set dummy dlltool
6705 if test $build = $host ; then
6706 DLLTOOL="$2"
ca9f4b81 6707 else
2693c0b0 6708 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6709 fi
ca9f4b81
AO
6710fi
6711
278a7a38
AO
6712
6713
6714if test -n "$LD"; then
6715 ac_cv_prog_LD=$LD
6716elif test -n "$ac_cv_prog_LD"; then
6717 LD=$ac_cv_prog_LD
6718fi
6719
6720if test -n "$ac_cv_prog_LD"; then
6721 for ncn_progname in ld; do
6722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6723set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6724echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6726if test "${ac_cv_prog_LD+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729 if test -n "$LD"; then
6730 ac_cv_prog_LD="$LD" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6739 ac_cv_prog_LD="${ncn_progname}"
6740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744done
6745
6746fi
6747fi
6748LD=$ac_cv_prog_LD
6749if test -n "$LD"; then
2aeb72e9
DD
6750 echo "$as_me:$LINENO: result: $LD" >&5
6751echo "${ECHO_T}$LD" >&6
278a7a38 6752else
2aeb72e9
DD
6753 echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
278a7a38
AO
6755fi
6756
6757 done
6758fi
6759
6760for ncn_progname in ld; do
2693c0b0
PB
6761 if test -n "$ncn_tool_prefix"; then
6762 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6763set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6764echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6766if test "${ac_cv_prog_LD+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6768else
6769 if test -n "$LD"; then
6770 ac_cv_prog_LD="$LD" # Let the user override the test.
6771else
1c710c3c
DJ
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6779 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784done
6785
ca9f4b81
AO
6786fi
6787fi
1c710c3c 6788LD=$ac_cv_prog_LD
ca9f4b81 6789if test -n "$LD"; then
2aeb72e9
DD
6790 echo "$as_me:$LINENO: result: $LD" >&5
6791echo "${ECHO_T}$LD" >&6
ca9f4b81 6792else
2aeb72e9
DD
6793 echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6
ca9f4b81
AO
6795fi
6796
2693c0b0
PB
6797 fi
6798 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
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
1c710c3c
DJ
6803if test "${ac_cv_prog_LD+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6805else
2693c0b0
PB
6806 if test -n "$LD"; then
6807 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6808else
1c710c3c
DJ
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
1c710c3c
DJ
6816 ac_cv_prog_LD="${ncn_progname}"
6817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821done
6822
ca9f4b81
AO
6823fi
6824fi
1c710c3c 6825LD=$ac_cv_prog_LD
2693c0b0 6826if test -n "$LD"; then
2aeb72e9
DD
6827 echo "$as_me:$LINENO: result: $LD" >&5
6828echo "${ECHO_T}$LD" >&6
ca9f4b81 6829else
2aeb72e9
DD
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
ca9f4b81 6832fi
1c710c3c 6833
2693c0b0
PB
6834 fi
6835 test -n "$ac_cv_prog_LD" && break
6836done
6837
6838if test -z "$ac_cv_prog_LD" ; then
6839 set dummy ld
6840 if test $build = $host ; then
6841 LD="$2"
ca9f4b81 6842 else
2693c0b0 6843 LD="${ncn_tool_prefix}$2"
ca9f4b81 6844 fi
ca9f4b81
AO
6845fi
6846
278a7a38
AO
6847
6848
6849if test -n "$LIPO"; then
6850 ac_cv_prog_LIPO=$LIPO
6851elif test -n "$ac_cv_prog_LIPO"; then
6852 LIPO=$ac_cv_prog_LIPO
6853fi
6854
6855if test -n "$ac_cv_prog_LIPO"; then
6856 for ncn_progname in lipo; do
6857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6858set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6859echo "$as_me:$LINENO: checking for $ac_word" >&5
6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6861if test "${ac_cv_prog_LIPO+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864 if test -n "$LIPO"; then
6865 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6874 ac_cv_prog_LIPO="${ncn_progname}"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880
6881fi
6882fi
6883LIPO=$ac_cv_prog_LIPO
6884if test -n "$LIPO"; then
2aeb72e9
DD
6885 echo "$as_me:$LINENO: result: $LIPO" >&5
6886echo "${ECHO_T}$LIPO" >&6
278a7a38 6887else
2aeb72e9
DD
6888 echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6
278a7a38
AO
6890fi
6891
6892 done
6893fi
6894
6895for ncn_progname in lipo; do
2abefe3d
PB
6896 if test -n "$ncn_tool_prefix"; then
6897 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6898set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6899echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6901if test "${ac_cv_prog_LIPO+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6903else
6904 if test -n "$LIPO"; then
6905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6906else
1c710c3c
DJ
6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6914 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918done
6919done
6920
2abefe3d
PB
6921fi
6922fi
1c710c3c 6923LIPO=$ac_cv_prog_LIPO
2abefe3d 6924if test -n "$LIPO"; then
2aeb72e9
DD
6925 echo "$as_me:$LINENO: result: $LIPO" >&5
6926echo "${ECHO_T}$LIPO" >&6
2abefe3d 6927else
2aeb72e9
DD
6928 echo "$as_me:$LINENO: result: no" >&5
6929echo "${ECHO_T}no" >&6
2abefe3d
PB
6930fi
6931
6932 fi
6933 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
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_LIPO+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6940else
6941 if test -n "$LIPO"; then
6942 ac_cv_prog_LIPO="$LIPO" # 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
1c710c3c
DJ
6951 ac_cv_prog_LIPO="${ncn_progname}"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955done
6956done
6957
2abefe3d
PB
6958fi
6959fi
1c710c3c 6960LIPO=$ac_cv_prog_LIPO
2abefe3d 6961if test -n "$LIPO"; then
2aeb72e9
DD
6962 echo "$as_me:$LINENO: result: $LIPO" >&5
6963echo "${ECHO_T}$LIPO" >&6
2abefe3d 6964else
2aeb72e9
DD
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
2abefe3d 6967fi
1c710c3c 6968
2abefe3d
PB
6969 fi
6970 test -n "$ac_cv_prog_LIPO" && break
6971done
6972
6973if test -z "$ac_cv_prog_LIPO" ; then
6974 set dummy lipo
6975 if test $build = $host ; then
6976 LIPO="$2"
6977 else
6978 LIPO="${ncn_tool_prefix}$2"
6979 fi
6980fi
6981
278a7a38
AO
6982
6983
6984if test -n "$NM"; then
6985 ac_cv_prog_NM=$NM
6986elif test -n "$ac_cv_prog_NM"; then
6987 NM=$ac_cv_prog_NM
6988fi
6989
6990if test -n "$ac_cv_prog_NM"; then
6991 for ncn_progname in nm; do
6992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6993set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6994echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6996if test "${ac_cv_prog_NM+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6998else
6999 if test -n "$NM"; then
7000 ac_cv_prog_NM="$NM" # Let the user override the test.
7001else
1c710c3c
DJ
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7009 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014done
7015
ca9f4b81
AO
7016fi
7017fi
1c710c3c 7018NM=$ac_cv_prog_NM
ca9f4b81 7019if test -n "$NM"; then
2aeb72e9
DD
7020 echo "$as_me:$LINENO: result: $NM" >&5
7021echo "${ECHO_T}$NM" >&6
ca9f4b81 7022else
2aeb72e9
DD
7023 echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6
ca9f4b81
AO
7025fi
7026
278a7a38
AO
7027 done
7028fi
7029
7030for ncn_progname in nm; do
7031 if test -n "$ncn_tool_prefix"; then
7032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7033set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7034echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7036if test "${ac_cv_prog_NM+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7038else
2693c0b0
PB
7039 if test -n "$NM"; then
7040 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7041else
1c710c3c
DJ
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7049 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054done
7055
ca9f4b81
AO
7056fi
7057fi
1c710c3c 7058NM=$ac_cv_prog_NM
2693c0b0 7059if test -n "$NM"; then
2aeb72e9
DD
7060 echo "$as_me:$LINENO: result: $NM" >&5
7061echo "${ECHO_T}$NM" >&6
ca9f4b81 7062else
2aeb72e9
DD
7063 echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6
ca9f4b81 7065fi
1c710c3c 7066
2693c0b0 7067 fi
278a7a38
AO
7068 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
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_NM+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 if test -n "$NM"; then
7077 ac_cv_prog_NM="$NM" # 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_NM="${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
7095NM=$ac_cv_prog_NM
7096if test -n "$NM"; then
2aeb72e9
DD
7097 echo "$as_me:$LINENO: result: $NM" >&5
7098echo "${ECHO_T}$NM" >&6
278a7a38 7099else
2aeb72e9
DD
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
278a7a38
AO
7102fi
7103
7104 fi
7105 test -n "$ac_cv_prog_NM" && break
7106done
7107
7108if test -z "$ac_cv_prog_NM" ; then
7109 set dummy nm
7110 if test $build = $host ; then
7111 NM="$2"
7112 else
7113 NM="${ncn_tool_prefix}$2"
7114 fi
7115fi
7116
7117
7118
7119if test -n "$RANLIB"; then
7120 ac_cv_prog_RANLIB=$RANLIB
7121elif test -n "$ac_cv_prog_RANLIB"; then
7122 RANLIB=$ac_cv_prog_RANLIB
7123fi
7124
7125if test -n "$ac_cv_prog_RANLIB"; then
7126 for ncn_progname in ranlib; do
7127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7128set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7129echo "$as_me:$LINENO: checking for $ac_word" >&5
7130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7131if test "${ac_cv_prog_RANLIB+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 if test -n "$RANLIB"; then
7135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7144 ac_cv_prog_RANLIB="${ncn_progname}"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150
7151fi
7152fi
7153RANLIB=$ac_cv_prog_RANLIB
7154if test -n "$RANLIB"; then
2aeb72e9
DD
7155 echo "$as_me:$LINENO: result: $RANLIB" >&5
7156echo "${ECHO_T}$RANLIB" >&6
278a7a38 7157else
2aeb72e9
DD
7158 echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6
278a7a38
AO
7160fi
7161
7162 done
7163fi
ca9f4b81 7164
278a7a38 7165for ncn_progname in ranlib; do
2693c0b0
PB
7166 if test -n "$ncn_tool_prefix"; then
7167 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7168set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7169echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7171if test "${ac_cv_prog_RANLIB+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7173else
7174 if test -n "$RANLIB"; then
7175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7176else
1c710c3c
DJ
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7184 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189done
7190
ca9f4b81
AO
7191fi
7192fi
1c710c3c 7193RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7194if test -n "$RANLIB"; then
2aeb72e9
DD
7195 echo "$as_me:$LINENO: result: $RANLIB" >&5
7196echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7197else
2aeb72e9
DD
7198 echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6
ca9f4b81
AO
7200fi
7201
2693c0b0
PB
7202 fi
7203 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7205set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7206echo "$as_me:$LINENO: checking for $ac_word" >&5
7207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7208if test "${ac_cv_prog_RANLIB+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7210else
2693c0b0
PB
7211 if test -n "$RANLIB"; then
7212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7213else
1c710c3c
DJ
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7221 ac_cv_prog_RANLIB="${ncn_progname}"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227
ca9f4b81
AO
7228fi
7229fi
1c710c3c 7230RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7231if test -n "$RANLIB"; then
2aeb72e9
DD
7232 echo "$as_me:$LINENO: result: $RANLIB" >&5
7233echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7234else
2aeb72e9
DD
7235 echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6
ca9f4b81 7237fi
1c710c3c 7238
ca9f4b81 7239 fi
2693c0b0
PB
7240 test -n "$ac_cv_prog_RANLIB" && break
7241done
7242
7243if test -z "$ac_cv_prog_RANLIB" ; then
7244 RANLIB=":"
ca9f4b81
AO
7245fi
7246
278a7a38
AO
7247
7248
7249if test -n "$STRIP"; then
7250 ac_cv_prog_STRIP=$STRIP
7251elif test -n "$ac_cv_prog_STRIP"; then
7252 STRIP=$ac_cv_prog_STRIP
7253fi
7254
7255if test -n "$ac_cv_prog_STRIP"; then
7256 for ncn_progname in strip; do
7257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7258set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7259echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7261if test "${ac_cv_prog_STRIP+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264 if test -n "$STRIP"; then
7265 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7274 ac_cv_prog_STRIP="${ncn_progname}"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279done
7280
7281fi
7282fi
7283STRIP=$ac_cv_prog_STRIP
7284if test -n "$STRIP"; then
2aeb72e9
DD
7285 echo "$as_me:$LINENO: result: $STRIP" >&5
7286echo "${ECHO_T}$STRIP" >&6
278a7a38 7287else
2aeb72e9
DD
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
278a7a38
AO
7290fi
7291
7292 done
7293fi
7294
7295for ncn_progname in strip; do
2abefe3d
PB
7296 if test -n "$ncn_tool_prefix"; then
7297 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7298set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7299echo "$as_me:$LINENO: checking for $ac_word" >&5
7300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7301if test "${ac_cv_prog_STRIP+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7303else
7304 if test -n "$STRIP"; then
7305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7306else
1c710c3c
DJ
7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7314 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319done
7320
2abefe3d
PB
7321fi
7322fi
1c710c3c 7323STRIP=$ac_cv_prog_STRIP
2abefe3d 7324if test -n "$STRIP"; then
2aeb72e9
DD
7325 echo "$as_me:$LINENO: result: $STRIP" >&5
7326echo "${ECHO_T}$STRIP" >&6
2abefe3d 7327else
2aeb72e9
DD
7328 echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6
2abefe3d
PB
7330fi
7331
7332 fi
7333 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7335set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7336echo "$as_me:$LINENO: checking for $ac_word" >&5
7337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7338if test "${ac_cv_prog_STRIP+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7340else
7341 if test -n "$STRIP"; then
7342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7343else
1c710c3c
DJ
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7351 ac_cv_prog_STRIP="${ncn_progname}"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355done
7356done
7357
2abefe3d
PB
7358fi
7359fi
1c710c3c 7360STRIP=$ac_cv_prog_STRIP
2abefe3d 7361if test -n "$STRIP"; then
2aeb72e9
DD
7362 echo "$as_me:$LINENO: result: $STRIP" >&5
7363echo "${ECHO_T}$STRIP" >&6
2abefe3d 7364else
2aeb72e9
DD
7365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
2abefe3d 7367fi
1c710c3c 7368
2abefe3d
PB
7369 fi
7370 test -n "$ac_cv_prog_STRIP" && break
7371done
7372
7373if test -z "$ac_cv_prog_STRIP" ; then
7374 STRIP=":"
7375fi
7376
278a7a38
AO
7377
7378
7379if test -n "$WINDRES"; then
7380 ac_cv_prog_WINDRES=$WINDRES
7381elif test -n "$ac_cv_prog_WINDRES"; then
7382 WINDRES=$ac_cv_prog_WINDRES
7383fi
7384
7385if test -n "$ac_cv_prog_WINDRES"; then
7386 for ncn_progname in windres; do
7387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7388set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7389echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7391if test "${ac_cv_prog_WINDRES+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 if test -n "$WINDRES"; then
7395 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7404 ac_cv_prog_WINDRES="${ncn_progname}"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409done
7410
7411fi
7412fi
7413WINDRES=$ac_cv_prog_WINDRES
7414if test -n "$WINDRES"; then
2aeb72e9
DD
7415 echo "$as_me:$LINENO: result: $WINDRES" >&5
7416echo "${ECHO_T}$WINDRES" >&6
278a7a38 7417else
2aeb72e9
DD
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
278a7a38
AO
7420fi
7421
7422 done
7423fi
7424
7425for ncn_progname in windres; do
2693c0b0
PB
7426 if test -n "$ncn_tool_prefix"; then
7427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7428set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7429echo "$as_me:$LINENO: checking for $ac_word" >&5
7430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7431if test "${ac_cv_prog_WINDRES+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7433else
7434 if test -n "$WINDRES"; then
7435 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7436else
1c710c3c
DJ
7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438for as_dir in $PATH
7439do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7444 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448done
7449done
7450
ca9f4b81
AO
7451fi
7452fi
1c710c3c 7453WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7454if test -n "$WINDRES"; then
2aeb72e9
DD
7455 echo "$as_me:$LINENO: result: $WINDRES" >&5
7456echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7457else
2aeb72e9
DD
7458 echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6
ca9f4b81
AO
7460fi
7461
2693c0b0
PB
7462 fi
7463 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7465set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7466echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7468if test "${ac_cv_prog_WINDRES+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7470else
2693c0b0
PB
7471 if test -n "$WINDRES"; then
7472 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7473else
1c710c3c
DJ
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
2aeb72e9 7480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7481 ac_cv_prog_WINDRES="${ncn_progname}"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487
ca9f4b81
AO
7488fi
7489fi
1c710c3c 7490WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7491if test -n "$WINDRES"; then
2aeb72e9
DD
7492 echo "$as_me:$LINENO: result: $WINDRES" >&5
7493echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7494else
2aeb72e9
DD
7495 echo "$as_me:$LINENO: result: no" >&5
7496echo "${ECHO_T}no" >&6
ca9f4b81 7497fi
1c710c3c 7498
2693c0b0
PB
7499 fi
7500 test -n "$ac_cv_prog_WINDRES" && break
7501done
7502
7503if test -z "$ac_cv_prog_WINDRES" ; then
7504 set dummy windres
7505 if test $build = $host ; then
7506 WINDRES="$2"
ca9f4b81 7507 else
2693c0b0 7508 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7509 fi
ca9f4b81
AO
7510fi
7511
278a7a38
AO
7512
7513
901119ae
KT
7514if test -n "$WINDMC"; then
7515 ac_cv_prog_WINDMC=$WINDMC
7516elif test -n "$ac_cv_prog_WINDMC"; then
7517 WINDMC=$ac_cv_prog_WINDMC
7518fi
7519
7520if test -n "$ac_cv_prog_WINDMC"; then
7521 for ncn_progname in windmc; do
7522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7523set dummy ${ncn_progname}; ac_word=$2
7524echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526if test "${ac_cv_prog_WINDMC+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 if test -n "$WINDMC"; then
7530 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_WINDMC="${ncn_progname}"
7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543done
7544done
7545
7546fi
7547fi
7548WINDMC=$ac_cv_prog_WINDMC
7549if test -n "$WINDMC"; then
7550 echo "$as_me:$LINENO: result: $WINDMC" >&5
7551echo "${ECHO_T}$WINDMC" >&6
7552else
7553 echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555fi
7556
7557 done
7558fi
7559
7560for ncn_progname in windmc; do
7561 if test -n "$ncn_tool_prefix"; then
7562 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7563set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7564echo "$as_me:$LINENO: checking for $ac_word" >&5
7565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7566if test "${ac_cv_prog_WINDMC+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 if test -n "$WINDMC"; then
7570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583done
7584done
7585
7586fi
7587fi
7588WINDMC=$ac_cv_prog_WINDMC
7589if test -n "$WINDMC"; then
7590 echo "$as_me:$LINENO: result: $WINDMC" >&5
7591echo "${ECHO_T}$WINDMC" >&6
7592else
7593 echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6
7595fi
7596
7597 fi
7598 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7600set dummy ${ncn_progname}; ac_word=$2
7601echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603if test "${ac_cv_prog_WINDMC+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606 if test -n "$WINDMC"; then
7607 ac_cv_prog_WINDMC="$WINDMC" # 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
7615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_WINDMC="${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
7625WINDMC=$ac_cv_prog_WINDMC
7626if test -n "$WINDMC"; then
7627 echo "$as_me:$LINENO: result: $WINDMC" >&5
7628echo "${ECHO_T}$WINDMC" >&6
7629else
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
7632fi
7633
7634 fi
7635 test -n "$ac_cv_prog_WINDMC" && break
7636done
7637
7638if test -z "$ac_cv_prog_WINDMC" ; then
7639 set dummy windmc
7640 if test $build = $host ; then
7641 WINDMC="$2"
7642 else
7643 WINDMC="${ncn_tool_prefix}$2"
7644 fi
7645fi
7646
7647
7648
278a7a38
AO
7649if test -n "$OBJCOPY"; then
7650 ac_cv_prog_OBJCOPY=$OBJCOPY
7651elif test -n "$ac_cv_prog_OBJCOPY"; then
7652 OBJCOPY=$ac_cv_prog_OBJCOPY
7653fi
7654
7655if test -n "$ac_cv_prog_OBJCOPY"; then
7656 for ncn_progname in objcopy; do
7657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7658set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7659echo "$as_me:$LINENO: checking for $ac_word" >&5
7660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7661if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663else
7664 if test -n "$OBJCOPY"; then
7665 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7674 ac_cv_prog_OBJCOPY="${ncn_progname}"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679done
7680
7681fi
7682fi
7683OBJCOPY=$ac_cv_prog_OBJCOPY
7684if test -n "$OBJCOPY"; then
2aeb72e9
DD
7685 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7686echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7687else
2aeb72e9
DD
7688 echo "$as_me:$LINENO: result: no" >&5
7689echo "${ECHO_T}no" >&6
278a7a38
AO
7690fi
7691
7692 done
7693fi
7694
7695for ncn_progname in objcopy; do
2693c0b0
PB
7696 if test -n "$ncn_tool_prefix"; then
7697 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7698set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7699echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7701if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7703else
7704 if test -n "$OBJCOPY"; then
7705 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7706else
1c710c3c
DJ
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7714 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719done
7720
ca9f4b81
AO
7721fi
7722fi
1c710c3c 7723OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7724if test -n "$OBJCOPY"; then
2aeb72e9
DD
7725 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7726echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7727else
2aeb72e9
DD
7728 echo "$as_me:$LINENO: result: no" >&5
7729echo "${ECHO_T}no" >&6
ca9f4b81
AO
7730fi
7731
2693c0b0
PB
7732 fi
7733 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
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
1c710c3c
DJ
7738if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7740else
2693c0b0
PB
7741 if test -n "$OBJCOPY"; then
7742 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7743else
1c710c3c
DJ
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
1c710c3c
DJ
7751 ac_cv_prog_OBJCOPY="${ncn_progname}"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756done
7757
ca9f4b81
AO
7758fi
7759fi
1c710c3c 7760OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7761if test -n "$OBJCOPY"; then
2aeb72e9
DD
7762 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7763echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7764else
2aeb72e9
DD
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
ca9f4b81 7767fi
1c710c3c 7768
2693c0b0
PB
7769 fi
7770 test -n "$ac_cv_prog_OBJCOPY" && break
7771done
7772
7773if test -z "$ac_cv_prog_OBJCOPY" ; then
7774 set dummy objcopy
7775 if test $build = $host ; then
7776 OBJCOPY="$2"
ca9f4b81 7777 else
2693c0b0 7778 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7779 fi
ca9f4b81
AO
7780fi
7781
278a7a38
AO
7782
7783
7784if test -n "$OBJDUMP"; then
7785 ac_cv_prog_OBJDUMP=$OBJDUMP
7786elif test -n "$ac_cv_prog_OBJDUMP"; then
7787 OBJDUMP=$ac_cv_prog_OBJDUMP
7788fi
7789
7790if test -n "$ac_cv_prog_OBJDUMP"; then
7791 for ncn_progname in objdump; do
7792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7793set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7794echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7796if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799 if test -n "$OBJDUMP"; then
7800 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7801else
7802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803for as_dir in $PATH
7804do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7809 ac_cv_prog_OBJDUMP="${ncn_progname}"
7810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813done
7814done
7815
7816fi
7817fi
7818OBJDUMP=$ac_cv_prog_OBJDUMP
7819if test -n "$OBJDUMP"; then
2aeb72e9
DD
7820 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7821echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7822else
2aeb72e9
DD
7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
278a7a38
AO
7825fi
7826
7827 done
7828fi
7829
7830for ncn_progname in objdump; do
2693c0b0
PB
7831 if test -n "$ncn_tool_prefix"; then
7832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7833set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7834echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7836if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7838else
7839 if test -n "$OBJDUMP"; then
7840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7841else
1c710c3c
DJ
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7849 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853done
7854done
7855
ca9f4b81
AO
7856fi
7857fi
1c710c3c 7858OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7859if test -n "$OBJDUMP"; then
2aeb72e9
DD
7860 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7861echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7862else
2aeb72e9
DD
7863 echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
ca9f4b81
AO
7865fi
7866
2693c0b0
PB
7867 fi
7868 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7870set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7871echo "$as_me:$LINENO: checking for $ac_word" >&5
7872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7873if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7875else
2693c0b0
PB
7876 if test -n "$OBJDUMP"; then
7877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7878else
1c710c3c
DJ
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7886 ac_cv_prog_OBJDUMP="${ncn_progname}"
7887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890done
7891done
7892
ca9f4b81
AO
7893fi
7894fi
1c710c3c 7895OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7896if test -n "$OBJDUMP"; then
2aeb72e9
DD
7897 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7898echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7899else
2aeb72e9
DD
7900 echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
ca9f4b81 7902fi
1c710c3c 7903
2693c0b0
PB
7904 fi
7905 test -n "$ac_cv_prog_OBJDUMP" && break
7906done
7907
7908if test -z "$ac_cv_prog_OBJDUMP" ; then
7909 set dummy objdump
7910 if test $build = $host ; then
7911 OBJDUMP="$2"
ca9f4b81 7912 else
2693c0b0 7913 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7914 fi
ca9f4b81
AO
7915fi
7916
671aa708
NN
7917
7918
7919
7920
7921
7922
2abefe3d 7923# Target tools.
1c710c3c 7924
2aeb72e9 7925# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7926if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7927 withval="$with_build_time_tools"
7928 case x"$withval" in
e8b05380
PB
7929 x/*) ;;
7930 *)
7931 with_build_time_tools=
1c710c3c
DJ
7932 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7933echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7934 ;;
7935 esac
ca9f4b81 7936else
e8b05380 7937 with_build_time_tools=
2aeb72e9 7938fi;
ca9f4b81 7939
278a7a38
AO
7940
7941
7942if test -n "$CC_FOR_TARGET"; then
7943 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7944elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7945 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7946fi
7947
7948if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7949 for ncn_progname in cc gcc; do
7950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7951set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7952echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7954if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957 if test -n "$CC_FOR_TARGET"; then
7958 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7967 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973
7974fi
7975fi
7976CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7977if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7978 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7979echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 7980else
2aeb72e9
DD
7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
278a7a38
AO
7983fi
7984
7985 done
7986fi
7987
7988if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7989 for ncn_progname in cc gcc; do
2aeb72e9
DD
7990 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7991echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7992 if test -x $with_build_time_tools/${ncn_progname}; then
7993 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
72a7ab82 7996 break
e8b05380 7997 else
2aeb72e9
DD
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
72a7ab82
AP
8000 fi
8001 done
4de997d1
PB
8002fi
8003
e8b05380
PB
8004if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8005 for ncn_progname in cc gcc; do
8006 if test -n "$ncn_target_tool_prefix"; then
8007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8008set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8009echo "$as_me:$LINENO: checking for $ac_word" >&5
8010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8011if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8013else
8014 if test -n "$CC_FOR_TARGET"; then
8015 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8016else
1c710c3c
DJ
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8024 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029done
8030
4de997d1
PB
8031fi
8032fi
1c710c3c 8033CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8034if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8035 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8036echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8037else
2aeb72e9
DD
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
4de997d1
PB
8040fi
8041
e8b05380
PB
8042 fi
8043 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8045set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8046echo "$as_me:$LINENO: checking for $ac_word" >&5
8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8048if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8050else
2693c0b0
PB
8051 if test -n "$CC_FOR_TARGET"; then
8052 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8053else
1c710c3c
DJ
8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8061 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065done
8066done
8067
4de997d1
PB
8068fi
8069fi
1c710c3c 8070CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8071if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8072 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8073echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8074else
2aeb72e9
DD
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
4de997d1 8077fi
1c710c3c 8078
e8b05380
PB
8079 fi
8080 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8081 done
8082fi
1c710c3c 8083
2693c0b0
PB
8084if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8085 set dummy cc gcc
8086 if test $build = $target ; then
8087 CC_FOR_TARGET="$2"
4de997d1 8088 else
2693c0b0 8089 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8090 fi
1c00b503
PB
8091else
8092 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8093fi
8094
278a7a38
AO
8095
8096
8097if test -n "$CXX_FOR_TARGET"; then
8098 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8099elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8100 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8101fi
8102
8103if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8104 for ncn_progname in c++ g++ cxx gxx; do
8105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8106set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8107echo "$as_me:$LINENO: checking for $ac_word" >&5
8108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8109if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111else
8112 if test -n "$CXX_FOR_TARGET"; then
8113 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8122 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127done
8128
8129fi
8130fi
8131CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8132if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8133 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8134echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8135else
2aeb72e9
DD
8136 echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6
278a7a38
AO
8138fi
8139
8140 done
8141fi
8142
8143if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8144 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8145 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8146echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8147 if test -x $with_build_time_tools/${ncn_progname}; then
8148 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
e8b05380
PB
8151 break
8152 else
2aeb72e9
DD
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
e8b05380
PB
8155 fi
8156 done
8157fi
8158
8159if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8160 for ncn_progname in c++ g++ cxx gxx; do
8161 if test -n "$ncn_target_tool_prefix"; then
8162 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8163set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8164echo "$as_me:$LINENO: checking for $ac_word" >&5
8165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8166if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8167 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8168else
8169 if test -n "$CXX_FOR_TARGET"; then
8170 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8171else
1c710c3c
DJ
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8179 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184done
8185
4de997d1
PB
8186fi
8187fi
1c710c3c 8188CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8189if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8190 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8191echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8192else
2aeb72e9
DD
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
4de997d1
PB
8195fi
8196
e8b05380
PB
8197 fi
8198 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8200set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8201echo "$as_me:$LINENO: checking for $ac_word" >&5
8202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8203if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8205else
2693c0b0
PB
8206 if test -n "$CXX_FOR_TARGET"; then
8207 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8208else
1c710c3c
DJ
8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210for as_dir in $PATH
8211do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8216 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220done
8221done
8222
4de997d1
PB
8223fi
8224fi
1c710c3c 8225CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8226if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8227 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8228echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8229else
2aeb72e9
DD
8230 echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6
4de997d1 8232fi
1c710c3c 8233
e8b05380
PB
8234 fi
8235 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8236 done
8237fi
1c710c3c 8238
2693c0b0
PB
8239if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8240 set dummy c++ g++ cxx gxx
8241 if test $build = $target ; then
8242 CXX_FOR_TARGET="$2"
4de997d1 8243 else
2693c0b0 8244 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8245 fi
1c00b503
PB
8246else
8247 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8248fi
8249
278a7a38
AO
8250
8251
8252if test -n "$GCC_FOR_TARGET"; then
8253 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8254elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8255 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8256fi
8257
8258if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8259 for ncn_progname in gcc; do
8260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8261set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8262echo "$as_me:$LINENO: checking for $ac_word" >&5
8263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8264if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267 if test -n "$GCC_FOR_TARGET"; then
8268 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8277 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281done
8282done
8283
8284fi
8285fi
8286GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8287if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8288 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8289echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8290else
2aeb72e9
DD
8291 echo "$as_me:$LINENO: result: no" >&5
8292echo "${ECHO_T}no" >&6
278a7a38
AO
8293fi
8294
8295 done
8296fi
8297
8298if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8299 for ncn_progname in gcc; do
2aeb72e9
DD
8300 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8301echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8302 if test -x $with_build_time_tools/${ncn_progname}; then
8303 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8304 echo "$as_me:$LINENO: result: yes" >&5
8305echo "${ECHO_T}yes" >&6
e8b05380
PB
8306 break
8307 else
2aeb72e9
DD
8308 echo "$as_me:$LINENO: result: no" >&5
8309echo "${ECHO_T}no" >&6
e8b05380
PB
8310 fi
8311 done
8312fi
8313
8314if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8315 for ncn_progname in gcc; do
8316 if test -n "$ncn_target_tool_prefix"; then
8317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8318set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8319echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8321if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8323else
e8b05380
PB
8324 if test -n "$GCC_FOR_TARGET"; then
8325 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8326else
1c710c3c
DJ
8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8334 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338done
8339done
8340
ca9f4b81
AO
8341fi
8342fi
1c710c3c 8343GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8344if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8345 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8346echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8347else
2aeb72e9
DD
8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
ca9f4b81
AO
8350fi
8351
e8b05380
PB
8352 fi
8353 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8355set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8356echo "$as_me:$LINENO: checking for $ac_word" >&5
8357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8358if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8360else
e8b05380
PB
8361 if test -n "$GCC_FOR_TARGET"; then
8362 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8363else
1c710c3c
DJ
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8371 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376done
8377
ca9f4b81
AO
8378fi
8379fi
1c710c3c 8380GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8381if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8382 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8383echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8384else
2aeb72e9
DD
8385 echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6
ca9f4b81 8387fi
1c710c3c 8388
e8b05380
PB
8389 fi
8390 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8391 done
8392fi
1c710c3c 8393
e8b05380
PB
8394if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8395 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8396else
8397 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8398fi
8399
278a7a38
AO
8400
8401
8402if test -n "$GCJ_FOR_TARGET"; then
8403 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8404elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8405 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8406fi
8407
8408if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8409 for ncn_progname in gcj; do
8410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8411set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8412echo "$as_me:$LINENO: checking for $ac_word" >&5
8413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8414if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417 if test -n "$GCJ_FOR_TARGET"; then
8418 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8419else
8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421for as_dir in $PATH
8422do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8427 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431done
8432done
8433
8434fi
8435fi
8436GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8437if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8438 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8439echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8440else
2aeb72e9
DD
8441 echo "$as_me:$LINENO: result: no" >&5
8442echo "${ECHO_T}no" >&6
278a7a38
AO
8443fi
8444
8445 done
8446fi
8447
8448if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8449 for ncn_progname in gcj; do
2aeb72e9
DD
8450 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8451echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8452 if test -x $with_build_time_tools/${ncn_progname}; then
8453 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8454 echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
e8b05380
PB
8456 break
8457 else
2aeb72e9
DD
8458 echo "$as_me:$LINENO: result: no" >&5
8459echo "${ECHO_T}no" >&6
e8b05380
PB
8460 fi
8461 done
8462fi
8463
8464if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8465 for ncn_progname in gcj; do
8466 if test -n "$ncn_target_tool_prefix"; then
8467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8469echo "$as_me:$LINENO: checking for $ac_word" >&5
8470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8471if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8473else
fb0103e5
RG
8474 if test -n "$GCJ_FOR_TARGET"; then
8475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8476else
1c710c3c
DJ
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
8482 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488done
8489done
8490
e8b05380
PB
8491fi
8492fi
278a7a38
AO
8493GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8494if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8495 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8496echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8497else
2aeb72e9
DD
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
278a7a38
AO
8500fi
8501
8502 fi
8503 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8505set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8506echo "$as_me:$LINENO: checking for $ac_word" >&5
8507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8508if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511 if test -n "$GCJ_FOR_TARGET"; then
8512 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8513else
8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8521 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525done
8526done
8527
8528fi
8529fi
8530GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8531if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8532 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8533echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8534else
2aeb72e9
DD
8535 echo "$as_me:$LINENO: result: no" >&5
8536echo "${ECHO_T}no" >&6
278a7a38
AO
8537fi
8538
8539 fi
8540 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8541 done
8542fi
8543
8544if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8545 set dummy gcj
8546 if test $build = $target ; then
8547 GCJ_FOR_TARGET="$2"
8548 else
8549 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8550 fi
1c00b503
PB
8551else
8552 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8553fi
8554
8555
8556
8557if test -n "$GFORTRAN_FOR_TARGET"; then
8558 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8559elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8560 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8561fi
8562
278a7a38
AO
8563if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8564 for ncn_progname in gfortran; do
8565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8566set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8567echo "$as_me:$LINENO: checking for $ac_word" >&5
8568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8569if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8570 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8571else
278a7a38
AO
8572 if test -n "$GFORTRAN_FOR_TARGET"; then
8573 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8574else
1c710c3c
DJ
8575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576for as_dir in $PATH
8577do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8582 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586done
8587done
8588
e8b05380
PB
8589fi
8590fi
278a7a38
AO
8591GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8592if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8593 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8594echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8595else
2aeb72e9
DD
8596 echo "$as_me:$LINENO: result: no" >&5
8597echo "${ECHO_T}no" >&6
e8b05380 8598fi
1c710c3c 8599
e8b05380
PB
8600 done
8601fi
1c710c3c 8602
278a7a38 8603if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8604 for ncn_progname in gfortran; do
2aeb72e9
DD
8605 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8606echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8607 if test -x $with_build_time_tools/${ncn_progname}; then
8608 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8609 echo "$as_me:$LINENO: result: yes" >&5
8610echo "${ECHO_T}yes" >&6
e8b05380
PB
8611 break
8612 else
2aeb72e9
DD
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
e8b05380
PB
8615 fi
8616 done
8617fi
8618
8619if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8620 for ncn_progname in gfortran; do
8621 if test -n "$ncn_target_tool_prefix"; then
8622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8624echo "$as_me:$LINENO: checking for $ac_word" >&5
8625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8626if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8628else
8629 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8630 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8631else
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8639 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8642 fi
8643done
8644done
8645
e8b05380
PB
8646fi
8647fi
1c710c3c 8648GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8649if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8650 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8651echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8652else
2aeb72e9
DD
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
e8b05380
PB
8655fi
8656
8657 fi
8658 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8660set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8661echo "$as_me:$LINENO: checking for $ac_word" >&5
8662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8663if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8665else
8666 if test -n "$GFORTRAN_FOR_TARGET"; then
8667 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8668else
1c710c3c
DJ
8669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670for as_dir in $PATH
8671do
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8676 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8678 break 2
8679 fi
8680done
8681done
8682
e8b05380
PB
8683fi
8684fi
1c710c3c 8685GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8686if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8687 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8688echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8689else
2aeb72e9
DD
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
e8b05380 8692fi
1c710c3c 8693
e8b05380
PB
8694 fi
8695 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8696 done
8697fi
1c710c3c 8698
e8b05380
PB
8699if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8700 set dummy gfortran
2693c0b0 8701 if test $build = $target ; then
e8b05380 8702 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8703 else
e8b05380
PB
8704 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8705 fi
1c00b503
PB
8706else
8707 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8708fi
8709
8710
8711
e8b05380
PB
8712cat > conftest.c << \EOF
8713#ifdef __GNUC__
8714 gcc_yay;
8715#endif
8716EOF
8717if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8718 have_gcc_for_target=yes
8719else
8720 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8721 have_gcc_for_target=no
8722fi
8723rm conftest.c
8724
8725
8726
8727
8728if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8729 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8730 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8731echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8732 if test -x $with_build_time_tools/ar; then
8733 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8734 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8735 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8736echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8737 else
2aeb72e9
DD
8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
d1f8db0c 8740 fi
e8b05380
PB
8741 elif test $build != $host && test $have_gcc_for_target = yes; then
8742 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8743 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8744 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8745 fi
8746fi
3e19841a 8747if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8748 # Extract the first word of "ar", so it can be a program name with args.
8749set dummy ar; ac_word=$2
2aeb72e9
DD
8750echo "$as_me:$LINENO: checking for $ac_word" >&5
8751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8752if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8754else
1c710c3c
DJ
8755 case $AR_FOR_TARGET in
8756 [\\/]* | ?:[\\/]*)
e8b05380
PB
8757 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8758 ;;
e8b05380 8759 *)
1c710c3c
DJ
8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $gcc_cv_tool_dirs
8762do
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
8765 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8767 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8769 break 2
8770 fi
8771done
8772done
8773
e8b05380
PB
8774 ;;
8775esac
8776fi
1c710c3c 8777AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8778
e8b05380 8779if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8780 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8781echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8782else
2aeb72e9
DD
8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
4de997d1
PB
8785fi
8786
e8b05380
PB
8787fi
8788if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8789
8790
8791if test -n "$AR_FOR_TARGET"; then
8792 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8793elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8794 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8795fi
8796
8797if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8798 for ncn_progname in ar; do
8799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8800set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8801echo "$as_me:$LINENO: checking for $ac_word" >&5
8802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8803if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 if test -n "$AR_FOR_TARGET"; then
8807 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8808else
8809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810for as_dir in $PATH
8811do
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8816 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8819 fi
8820done
8821done
8822
8823fi
8824fi
8825AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8826if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8827 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8828echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8829else
2aeb72e9
DD
8830 echo "$as_me:$LINENO: result: no" >&5
8831echo "${ECHO_T}no" >&6
278a7a38
AO
8832fi
8833
8834 done
8835fi
8836
8837if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8838 for ncn_progname in ar; do
2aeb72e9
DD
8839 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8840echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8841 if test -x $with_build_time_tools/${ncn_progname}; then
8842 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8843 echo "$as_me:$LINENO: result: yes" >&5
8844echo "${ECHO_T}yes" >&6
e8b05380
PB
8845 break
8846 else
2aeb72e9
DD
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
e8b05380
PB
8849 fi
8850 done
8851fi
8852
8853if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8854 for ncn_progname in ar; do
8855 if test -n "$ncn_target_tool_prefix"; then
8856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8857set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8858echo "$as_me:$LINENO: checking for $ac_word" >&5
8859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8860if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8862else
e8b05380
PB
8863 if test -n "$AR_FOR_TARGET"; then
8864 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8865else
1c710c3c
DJ
8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8873 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8876 fi
8877done
8878done
8879
4de997d1
PB
8880fi
8881fi
1c710c3c 8882AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8883if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8884 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8885echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8886else
2aeb72e9
DD
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
4de997d1
PB
8889fi
8890
e8b05380
PB
8891 fi
8892 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8894set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8895echo "$as_me:$LINENO: checking for $ac_word" >&5
8896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8897if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8899else
8900 if test -n "$AR_FOR_TARGET"; then
8901 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8902else
1c710c3c
DJ
8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8910 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
e8b05380
PB
8917fi
8918fi
1c710c3c 8919AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8920if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8921 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8922echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8923else
2aeb72e9
DD
8924 echo "$as_me:$LINENO: result: no" >&5
8925echo "${ECHO_T}no" >&6
e8b05380 8926fi
1c710c3c 8927
e8b05380
PB
8928 fi
8929 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8930 done
8931fi
1c710c3c 8932
e8b05380
PB
8933if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8934 set dummy ar
8935 if test $build = $target ; then
8936 AR_FOR_TARGET="$2"
8937 else
8938 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8939 fi
1c00b503
PB
8940else
8941 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8942fi
8943
d1f8db0c
PB
8944else
8945 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8946fi
8947
8948
8949
8950
8951if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8952 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8953 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8954echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8955 if test -x $with_build_time_tools/as; then
8956 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8957 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
8958 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8959echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8960 else
2aeb72e9
DD
8961 echo "$as_me:$LINENO: result: no" >&5
8962echo "${ECHO_T}no" >&6
d1f8db0c 8963 fi
e8b05380
PB
8964 elif test $build != $host && test $have_gcc_for_target = yes; then
8965 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
8966 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8967 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
8968 fi
8969fi
3e19841a 8970if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8971 # Extract the first word of "as", so it can be a program name with args.
8972set dummy as; ac_word=$2
2aeb72e9
DD
8973echo "$as_me:$LINENO: checking for $ac_word" >&5
8974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8975if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8977else
1c710c3c
DJ
8978 case $AS_FOR_TARGET in
8979 [\\/]* | ?:[\\/]*)
e8b05380
PB
8980 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8981 ;;
e8b05380 8982 *)
1c710c3c
DJ
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984for as_dir in $gcc_cv_tool_dirs
8985do
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8990 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8993 fi
8994done
8995done
8996
e8b05380
PB
8997 ;;
8998esac
8999fi
1c710c3c 9000AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9001
e8b05380 9002if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9003 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9004echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9005else
2aeb72e9
DD
9006 echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
e8b05380
PB
9008fi
9009
9010fi
9011if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9012
9013
9014if test -n "$AS_FOR_TARGET"; then
9015 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9016elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9017 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9018fi
9019
9020if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9021 for ncn_progname in as; do
9022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9023set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9024echo "$as_me:$LINENO: checking for $ac_word" >&5
9025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9026if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
9029 if test -n "$AS_FOR_TARGET"; then
9030 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9031else
9032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9033for as_dir in $PATH
9034do
9035 IFS=$as_save_IFS
9036 test -z "$as_dir" && as_dir=.
9037 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9039 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9041 break 2
9042 fi
9043done
9044done
9045
9046fi
9047fi
9048AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9049if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9050 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9051echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9052else
2aeb72e9
DD
9053 echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
278a7a38
AO
9055fi
9056
9057 done
9058fi
9059
9060if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9061 for ncn_progname in as; do
2aeb72e9
DD
9062 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9063echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9064 if test -x $with_build_time_tools/${ncn_progname}; then
9065 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
e8b05380
PB
9068 break
9069 else
2aeb72e9
DD
9070 echo "$as_me:$LINENO: result: no" >&5
9071echo "${ECHO_T}no" >&6
e8b05380
PB
9072 fi
9073 done
9074fi
9075
9076if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9077 for ncn_progname in as; do
9078 if test -n "$ncn_target_tool_prefix"; then
9079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9080set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9081echo "$as_me:$LINENO: checking for $ac_word" >&5
9082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9083if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9085else
9086 if test -n "$AS_FOR_TARGET"; then
9087 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9088else
1c710c3c
DJ
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9096 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101done
9102
e8b05380
PB
9103fi
9104fi
1c710c3c 9105AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9106if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9107 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9108echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9109else
2aeb72e9
DD
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
e8b05380
PB
9112fi
9113
9114 fi
9115 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9117set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9118echo "$as_me:$LINENO: checking for $ac_word" >&5
9119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9120if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9122else
e8b05380
PB
9123 if test -n "$AS_FOR_TARGET"; then
9124 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9125else
1c710c3c
DJ
9126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127for as_dir in $PATH
9128do
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9133 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9136 fi
9137done
9138done
9139
4de997d1
PB
9140fi
9141fi
1c710c3c 9142AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9143if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9144 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9145echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9146else
2aeb72e9
DD
9147 echo "$as_me:$LINENO: result: no" >&5
9148echo "${ECHO_T}no" >&6
4de997d1 9149fi
1c710c3c 9150
e8b05380
PB
9151 fi
9152 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9153 done
9154fi
1c710c3c 9155
e8b05380
PB
9156if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9157 set dummy as
9158 if test $build = $target ; then
9159 AS_FOR_TARGET="$2"
9160 else
9161 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9162 fi
1c00b503
PB
9163else
9164 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9165fi
2693c0b0 9166
d1f8db0c
PB
9167else
9168 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9169fi
9170
e8b05380
PB
9171
9172
9173
9174if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9175 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9176 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9177echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9178 if test -x $with_build_time_tools/dlltool; then
9179 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9180 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9181 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9182echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9183 else
2aeb72e9
DD
9184 echo "$as_me:$LINENO: result: no" >&5
9185echo "${ECHO_T}no" >&6
d1f8db0c 9186 fi
e8b05380
PB
9187 elif test $build != $host && test $have_gcc_for_target = yes; then
9188 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9189 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9190 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9191 fi
9192fi
3e19841a 9193if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9194 # Extract the first word of "dlltool", so it can be a program name with args.
9195set dummy dlltool; ac_word=$2
2aeb72e9
DD
9196echo "$as_me:$LINENO: checking for $ac_word" >&5
9197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9198if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9200else
1c710c3c
DJ
9201 case $DLLTOOL_FOR_TARGET in
9202 [\\/]* | ?:[\\/]*)
e8b05380
PB
9203 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9204 ;;
e8b05380 9205 *)
1c710c3c
DJ
9206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $gcc_cv_tool_dirs
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
9211 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9213 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9215 break 2
9216 fi
9217done
9218done
9219
e8b05380
PB
9220 ;;
9221esac
4de997d1 9222fi
1c710c3c 9223DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9224
e8b05380 9225if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9226 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9227echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9228else
2aeb72e9
DD
9229 echo "$as_me:$LINENO: result: no" >&5
9230echo "${ECHO_T}no" >&6
4de997d1
PB
9231fi
9232
e8b05380
PB
9233fi
9234if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9235
9236
9237if test -n "$DLLTOOL_FOR_TARGET"; then
9238 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9239elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9240 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9241fi
9242
9243if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9244 for ncn_progname in dlltool; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9247echo "$as_me:$LINENO: checking for $ac_word" >&5
9248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9249if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251else
9252 if test -n "$DLLTOOL_FOR_TARGET"; then
9253 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9254else
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9262 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9265 fi
9266done
9267done
9268
9269fi
9270fi
9271DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9272if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9273 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9274echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9275else
2aeb72e9
DD
9276 echo "$as_me:$LINENO: result: no" >&5
9277echo "${ECHO_T}no" >&6
278a7a38
AO
9278fi
9279
9280 done
9281fi
9282
9283if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9284 for ncn_progname in dlltool; do
2aeb72e9
DD
9285 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9286echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9287 if test -x $with_build_time_tools/${ncn_progname}; then
9288 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9289 echo "$as_me:$LINENO: result: yes" >&5
9290echo "${ECHO_T}yes" >&6
e8b05380
PB
9291 break
9292 else
2aeb72e9
DD
9293 echo "$as_me:$LINENO: result: no" >&5
9294echo "${ECHO_T}no" >&6
e8b05380
PB
9295 fi
9296 done
9297fi
9298
9299if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9300 for ncn_progname in dlltool; do
9301 if test -n "$ncn_target_tool_prefix"; then
9302 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9303set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9304echo "$as_me:$LINENO: checking for $ac_word" >&5
9305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9306if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9308else
e8b05380
PB
9309 if test -n "$DLLTOOL_FOR_TARGET"; then
9310 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9311else
1c710c3c
DJ
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9319 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9322 fi
9323done
9324done
9325
4de997d1
PB
9326fi
9327fi
1c710c3c 9328DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9329if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9330 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9331echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9332else
2aeb72e9
DD
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
4de997d1 9335fi
4de997d1 9336
e8b05380
PB
9337 fi
9338 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9341echo "$as_me:$LINENO: checking for $ac_word" >&5
9342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9343if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9345else
e8b05380
PB
9346 if test -n "$DLLTOOL_FOR_TARGET"; then
9347 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9348else
1c710c3c
DJ
9349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350for as_dir in $PATH
9351do
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9356 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9359 fi
9360done
9361done
9362
4de997d1
PB
9363fi
9364fi
1c710c3c 9365DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9366if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9367 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9368echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9369else
2aeb72e9
DD
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
4de997d1 9372fi
1c710c3c 9373
e8b05380
PB
9374 fi
9375 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9376 done
9377fi
1c710c3c 9378
e8b05380
PB
9379if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9380 set dummy dlltool
9381 if test $build = $target ; then
9382 DLLTOOL_FOR_TARGET="$2"
9383 else
9384 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9385 fi
1c00b503
PB
9386else
9387 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9388fi
9389
d1f8db0c
PB
9390else
9391 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9392fi
9393
4de997d1 9394
e8b05380
PB
9395
9396
9397if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9398 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9399 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9400echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9401 if test -x $with_build_time_tools/ld; then
9402 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9403 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9404 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9405echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9406 else
2aeb72e9
DD
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
d1f8db0c 9409 fi
e8b05380
PB
9410 elif test $build != $host && test $have_gcc_for_target = yes; then
9411 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9412 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9413 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9414 fi
e8b05380 9415fi
3e19841a 9416if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9417 # Extract the first word of "ld", so it can be a program name with args.
9418set dummy ld; ac_word=$2
2aeb72e9
DD
9419echo "$as_me:$LINENO: checking for $ac_word" >&5
9420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9421if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9423else
1c710c3c
DJ
9424 case $LD_FOR_TARGET in
9425 [\\/]* | ?:[\\/]*)
e8b05380
PB
9426 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9427 ;;
e8b05380 9428 *)
1c710c3c
DJ
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430for as_dir in $gcc_cv_tool_dirs
9431do
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9436 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9438 break 2
9439 fi
9440done
9441done
9442
e8b05380
PB
9443 ;;
9444esac
4de997d1 9445fi
1c710c3c 9446LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9447
e8b05380 9448if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9449 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9450echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9451else
2aeb72e9
DD
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
4de997d1 9454fi
2693c0b0 9455
e8b05380
PB
9456fi
9457if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9458
9459
9460if test -n "$LD_FOR_TARGET"; then
9461 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9462elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9463 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9464fi
9465
9466if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9467 for ncn_progname in ld; do
9468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9469set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9470echo "$as_me:$LINENO: checking for $ac_word" >&5
9471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9472if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475 if test -n "$LD_FOR_TARGET"; then
9476 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9477else
9478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479for as_dir in $PATH
9480do
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9485 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9488 fi
9489done
9490done
9491
9492fi
9493fi
9494LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9495if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9496 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9497echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9498else
2aeb72e9
DD
9499 echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
278a7a38
AO
9501fi
9502
9503 done
9504fi
9505
9506if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9507 for ncn_progname in ld; do
2aeb72e9
DD
9508 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9509echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9510 if test -x $with_build_time_tools/${ncn_progname}; then
9511 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9512 echo "$as_me:$LINENO: result: yes" >&5
9513echo "${ECHO_T}yes" >&6
e8b05380
PB
9514 break
9515 else
2aeb72e9
DD
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
e8b05380
PB
9518 fi
9519 done
ca9f4b81
AO
9520fi
9521
e8b05380
PB
9522if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9523 for ncn_progname in ld; do
9524 if test -n "$ncn_target_tool_prefix"; then
9525 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9526set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9527echo "$as_me:$LINENO: checking for $ac_word" >&5
9528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9529if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9531else
4de997d1
PB
9532 if test -n "$LD_FOR_TARGET"; then
9533 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9534else
1c710c3c
DJ
9535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9542 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547done
9548
ca9f4b81
AO
9549fi
9550fi
1c710c3c 9551LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9552if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9553 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9554echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9555else
2aeb72e9
DD
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
ca9f4b81
AO
9558fi
9559
e8b05380
PB
9560 fi
9561 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9563set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9564echo "$as_me:$LINENO: checking for $ac_word" >&5
9565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9566if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9568else
2693c0b0
PB
9569 if test -n "$LD_FOR_TARGET"; then
9570 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9571else
1c710c3c
DJ
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575 IFS=$as_save_IFS
9576 test -z "$as_dir" && as_dir=.
9577 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9579 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 break 2
9582 fi
9583done
9584done
9585
ca9f4b81
AO
9586fi
9587fi
1c710c3c 9588LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9589if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9590 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9591echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9592else
2aeb72e9
DD
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
ca9f4b81 9595fi
1c710c3c 9596
e8b05380
PB
9597 fi
9598 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9599 done
9600fi
1c710c3c 9601
2693c0b0
PB
9602if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9603 set dummy ld
9604 if test $build = $target ; then
9605 LD_FOR_TARGET="$2"
ca9f4b81 9606 else
2693c0b0 9607 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9608 fi
1c00b503
PB
9609else
9610 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9611fi
9612
d1f8db0c
PB
9613else
9614 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9615fi
9616
9617
9618
9619
9620if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9621 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9622 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9623echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9624 if test -x $with_build_time_tools/lipo; then
9625 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9626 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9627 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9628echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9629 else
2aeb72e9
DD
9630 echo "$as_me:$LINENO: result: no" >&5
9631echo "${ECHO_T}no" >&6
d1f8db0c 9632 fi
e8b05380
PB
9633 elif test $build != $host && test $have_gcc_for_target = yes; then
9634 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9635 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9636 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9637 fi
9638fi
278a7a38
AO
9639if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9640 # Extract the first word of "lipo", so it can be a program name with args.
9641set dummy lipo; ac_word=$2
2aeb72e9
DD
9642echo "$as_me:$LINENO: checking for $ac_word" >&5
9643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9644if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646else
9647 case $LIPO_FOR_TARGET in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9650 ;;
9651 *)
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653for as_dir in $gcc_cv_tool_dirs
9654do
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9659 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9662 fi
9663done
9664done
9665
9666 ;;
9667esac
9668fi
9669LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9670
278a7a38 9671if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9672 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9673echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9674else
2aeb72e9
DD
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
278a7a38
AO
9677fi
9678
9679fi
9680if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9681
9682
9683if test -n "$LIPO_FOR_TARGET"; then
9684 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9685elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9686 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9687fi
9688
9689if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9690 for ncn_progname in lipo; do
9691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9692set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9693echo "$as_me:$LINENO: checking for $ac_word" >&5
9694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9695if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9696 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9697else
278a7a38
AO
9698 if test -n "$LIPO_FOR_TARGET"; then
9699 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9700else
9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
1c710c3c
DJ
9703do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9708 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9711 fi
9712done
9713done
9714
e8b05380 9715fi
278a7a38
AO
9716fi
9717LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9718if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9719 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9720echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9721else
2aeb72e9
DD
9722 echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
e8b05380
PB
9724fi
9725
278a7a38 9726 done
e8b05380 9727fi
278a7a38
AO
9728
9729if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9730 for ncn_progname in lipo; do
2aeb72e9
DD
9731 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9732echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9733 if test -x $with_build_time_tools/${ncn_progname}; then
9734 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9735 echo "$as_me:$LINENO: result: yes" >&5
9736echo "${ECHO_T}yes" >&6
e8b05380
PB
9737 break
9738 else
2aeb72e9
DD
9739 echo "$as_me:$LINENO: result: no" >&5
9740echo "${ECHO_T}no" >&6
e8b05380
PB
9741 fi
9742 done
9743fi
9744
9745if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9746 for ncn_progname in lipo; do
9747 if test -n "$ncn_target_tool_prefix"; then
9748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9749set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9750echo "$as_me:$LINENO: checking for $ac_word" >&5
9751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9752if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9754else
9755 if test -n "$LIPO_FOR_TARGET"; then
9756 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9757else
1c710c3c
DJ
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9765 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9767 break 2
9768 fi
9769done
9770done
9771
040b1c5a
GK
9772fi
9773fi
1c710c3c 9774LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9775if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9776 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9777echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9778else
2aeb72e9
DD
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
040b1c5a
GK
9781fi
9782
e8b05380
PB
9783 fi
9784 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9786set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9787echo "$as_me:$LINENO: checking for $ac_word" >&5
9788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9789if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9791else
9792 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9793 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9794else
1c710c3c
DJ
9795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
9800 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9802 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9804 break 2
9805 fi
9806done
9807done
9808
040b1c5a
GK
9809fi
9810fi
1c710c3c 9811LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9812if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9813 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9814echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9815else
2aeb72e9
DD
9816 echo "$as_me:$LINENO: result: no" >&5
9817echo "${ECHO_T}no" >&6
040b1c5a 9818fi
1c710c3c 9819
e8b05380
PB
9820 fi
9821 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9822 done
9823fi
1c710c3c 9824
040b1c5a
GK
9825if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9826 set dummy lipo
9827 if test $build = $target ; then
9828 LIPO_FOR_TARGET="$2"
9829 else
9830 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9831 fi
1c00b503
PB
9832else
9833 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9834fi
9835
d1f8db0c
PB
9836else
9837 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9838fi
9839
9840
9841
9842
9843if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9844 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9845 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9846echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9847 if test -x $with_build_time_tools/nm; then
9848 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9849 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9850 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9851echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9852 else
2aeb72e9
DD
9853 echo "$as_me:$LINENO: result: no" >&5
9854echo "${ECHO_T}no" >&6
d1f8db0c 9855 fi
e8b05380
PB
9856 elif test $build != $host && test $have_gcc_for_target = yes; then
9857 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9858 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9859 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9860 fi
9861fi
3e19841a 9862if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9863 # Extract the first word of "nm", so it can be a program name with args.
9864set dummy nm; ac_word=$2
2aeb72e9
DD
9865echo "$as_me:$LINENO: checking for $ac_word" >&5
9866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9867if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9869else
1c710c3c
DJ
9870 case $NM_FOR_TARGET in
9871 [\\/]* | ?:[\\/]*)
e8b05380
PB
9872 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9873 ;;
e8b05380 9874 *)
1c710c3c
DJ
9875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $gcc_cv_tool_dirs
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9882 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887done
9888
e8b05380
PB
9889 ;;
9890esac
9891fi
1c710c3c 9892NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9893
e8b05380 9894if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9895 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9896echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9897else
2aeb72e9
DD
9898 echo "$as_me:$LINENO: result: no" >&5
9899echo "${ECHO_T}no" >&6
e8b05380
PB
9900fi
9901
9902fi
9903if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9904
9905
9906if test -n "$NM_FOR_TARGET"; then
9907 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9908elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9909 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9910fi
9911
9912if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9913 for ncn_progname in nm; do
9914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9915set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9916echo "$as_me:$LINENO: checking for $ac_word" >&5
9917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9918if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920else
9921 if test -n "$NM_FOR_TARGET"; then
9922 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9923else
9924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9925for as_dir in $PATH
9926do
9927 IFS=$as_save_IFS
9928 test -z "$as_dir" && as_dir=.
9929 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9931 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 break 2
9934 fi
9935done
9936done
9937
9938fi
9939fi
9940NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9941if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9942 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9943echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9944else
2aeb72e9
DD
9945 echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6
278a7a38
AO
9947fi
9948
9949 done
9950fi
9951
9952if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9953 for ncn_progname in nm; do
2aeb72e9
DD
9954 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9955echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9956 if test -x $with_build_time_tools/${ncn_progname}; then
9957 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
e8b05380
PB
9960 break
9961 else
2aeb72e9
DD
9962 echo "$as_me:$LINENO: result: no" >&5
9963echo "${ECHO_T}no" >&6
e8b05380
PB
9964 fi
9965 done
9966fi
9967
9968if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9969 for ncn_progname in nm; do
9970 if test -n "$ncn_target_tool_prefix"; then
9971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9973echo "$as_me:$LINENO: checking for $ac_word" >&5
9974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9975if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9977else
4de997d1
PB
9978 if test -n "$NM_FOR_TARGET"; then
9979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9980else
1c710c3c
DJ
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9991 fi
9992done
9993done
9994
ca9f4b81
AO
9995fi
9996fi
1c710c3c 9997NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 9998if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9999 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10000echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10001else
2aeb72e9
DD
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
ca9f4b81
AO
10004fi
10005
e8b05380
PB
10006 fi
10007 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10009set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10010echo "$as_me:$LINENO: checking for $ac_word" >&5
10011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10012if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10014else
2693c0b0
PB
10015 if test -n "$NM_FOR_TARGET"; then
10016 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10017else
1c710c3c
DJ
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10025 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029done
10030done
10031
ca9f4b81
AO
10032fi
10033fi
1c710c3c 10034NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10035if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10036 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10037echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10038else
2aeb72e9
DD
10039 echo "$as_me:$LINENO: result: no" >&5
10040echo "${ECHO_T}no" >&6
ca9f4b81 10041fi
1c710c3c 10042
e8b05380
PB
10043 fi
10044 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10045 done
10046fi
1c710c3c 10047
2693c0b0
PB
10048if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10049 set dummy nm
10050 if test $build = $target ; then
10051 NM_FOR_TARGET="$2"
ca9f4b81 10052 else
2693c0b0 10053 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10054 fi
1c00b503
PB
10055else
10056 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10057fi
10058
d1f8db0c
PB
10059else
10060 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10061fi
10062
10063
10064
10065
10066if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10067 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10068 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10069echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10070 if test -x $with_build_time_tools/objdump; then
10071 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10072 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10073 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10074echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10075 else
2aeb72e9
DD
10076 echo "$as_me:$LINENO: result: no" >&5
10077echo "${ECHO_T}no" >&6
d1f8db0c 10078 fi
e8b05380
PB
10079 elif test $build != $host && test $have_gcc_for_target = yes; then
10080 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10081 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10082 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10083 fi
10084fi
3e19841a 10085if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10086 # Extract the first word of "objdump", so it can be a program name with args.
10087set dummy objdump; ac_word=$2
2aeb72e9
DD
10088echo "$as_me:$LINENO: checking for $ac_word" >&5
10089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10090if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10092else
1c710c3c
DJ
10093 case $OBJDUMP_FOR_TARGET in
10094 [\\/]* | ?:[\\/]*)
e8b05380
PB
10095 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10096 ;;
e8b05380 10097 *)
1c710c3c
DJ
10098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $gcc_cv_tool_dirs
10100do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
10103 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10105 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10107 break 2
10108 fi
10109done
10110done
10111
e8b05380
PB
10112 ;;
10113esac
10114fi
1c710c3c 10115OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10116
e8b05380 10117if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10118 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10119echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10120else
2aeb72e9
DD
10121 echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6
e8b05380
PB
10123fi
10124
10125fi
10126if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10127
10128
10129if test -n "$OBJDUMP_FOR_TARGET"; then
10130 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10131elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10132 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10133fi
10134
10135if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10136 for ncn_progname in objdump; do
10137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10139echo "$as_me:$LINENO: checking for $ac_word" >&5
10140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10141if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144 if test -n "$OBJDUMP_FOR_TARGET"; then
10145 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10154 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158done
10159done
10160
10161fi
10162fi
10163OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10164if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10165 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10166echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10167else
2aeb72e9
DD
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
278a7a38
AO
10170fi
10171
10172 done
10173fi
10174
10175if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10176 for ncn_progname in objdump; do
2aeb72e9
DD
10177 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10178echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10179 if test -x $with_build_time_tools/${ncn_progname}; then
10180 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10181 echo "$as_me:$LINENO: result: yes" >&5
10182echo "${ECHO_T}yes" >&6
e8b05380
PB
10183 break
10184 else
2aeb72e9
DD
10185 echo "$as_me:$LINENO: result: no" >&5
10186echo "${ECHO_T}no" >&6
e8b05380
PB
10187 fi
10188 done
10189fi
10190
10191if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10192 for ncn_progname in objdump; do
10193 if test -n "$ncn_target_tool_prefix"; then
10194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10195set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10196echo "$as_me:$LINENO: checking for $ac_word" >&5
10197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10198if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10200else
10201 if test -n "$OBJDUMP_FOR_TARGET"; then
10202 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10203else
1c710c3c
DJ
10204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10211 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10214 fi
10215done
10216done
10217
d739199a
DJ
10218fi
10219fi
1c710c3c 10220OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10221if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10222 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10223echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10224else
2aeb72e9
DD
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
d739199a
DJ
10227fi
10228
e8b05380
PB
10229 fi
10230 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10232set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10233echo "$as_me:$LINENO: checking for $ac_word" >&5
10234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10235if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10237else
10238 if test -n "$OBJDUMP_FOR_TARGET"; then
10239 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10240else
1c710c3c
DJ
10241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242for as_dir in $PATH
10243do
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10248 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10251 fi
10252done
10253done
10254
d739199a
DJ
10255fi
10256fi
1c710c3c 10257OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10258if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10259 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10260echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10261else
2aeb72e9
DD
10262 echo "$as_me:$LINENO: result: no" >&5
10263echo "${ECHO_T}no" >&6
d739199a 10264fi
1c710c3c 10265
e8b05380
PB
10266 fi
10267 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10268 done
10269fi
1c710c3c 10270
d739199a
DJ
10271if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10272 set dummy objdump
10273 if test $build = $target ; then
10274 OBJDUMP_FOR_TARGET="$2"
10275 else
10276 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10277 fi
1c00b503
PB
10278else
10279 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10280fi
10281
d1f8db0c
PB
10282else
10283 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10284fi
10285
10286
10287
10288
10289if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10290 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10291 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10292echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10293 if test -x $with_build_time_tools/ranlib; then
10294 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10295 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10296 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10297echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10298 else
2aeb72e9
DD
10299 echo "$as_me:$LINENO: result: no" >&5
10300echo "${ECHO_T}no" >&6
d1f8db0c 10301 fi
e8b05380
PB
10302 elif test $build != $host && test $have_gcc_for_target = yes; then
10303 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10304 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10305 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10306 fi
10307fi
3e19841a 10308if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10309 # Extract the first word of "ranlib", so it can be a program name with args.
10310set dummy ranlib; ac_word=$2
2aeb72e9
DD
10311echo "$as_me:$LINENO: checking for $ac_word" >&5
10312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10313if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10315else
1c710c3c
DJ
10316 case $RANLIB_FOR_TARGET in
10317 [\\/]* | ?:[\\/]*)
e8b05380
PB
10318 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10319 ;;
e8b05380 10320 *)
1c710c3c
DJ
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $gcc_cv_tool_dirs
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10328 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 break 2
10331 fi
10332done
10333done
10334
e8b05380
PB
10335 ;;
10336esac
10337fi
1c710c3c 10338RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10339
e8b05380 10340if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10341 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10342echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10343else
2aeb72e9
DD
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
e8b05380
PB
10346fi
10347
10348fi
10349if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10350
10351
10352if test -n "$RANLIB_FOR_TARGET"; then
10353 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10354elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10355 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10356fi
10357
10358if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10359 for ncn_progname in ranlib; do
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10361set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10362echo "$as_me:$LINENO: checking for $ac_word" >&5
10363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10364if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366else
10367 if test -n "$RANLIB_FOR_TARGET"; then
10368 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10369else
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10377 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381done
10382done
10383
10384fi
10385fi
10386RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10387if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10388 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10389echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10390else
2aeb72e9
DD
10391 echo "$as_me:$LINENO: result: no" >&5
10392echo "${ECHO_T}no" >&6
278a7a38
AO
10393fi
10394
10395 done
10396fi
10397
10398if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10399 for ncn_progname in ranlib; do
2aeb72e9
DD
10400 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10401echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10402 if test -x $with_build_time_tools/${ncn_progname}; then
10403 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10404 echo "$as_me:$LINENO: result: yes" >&5
10405echo "${ECHO_T}yes" >&6
e8b05380
PB
10406 break
10407 else
2aeb72e9
DD
10408 echo "$as_me:$LINENO: result: no" >&5
10409echo "${ECHO_T}no" >&6
e8b05380
PB
10410 fi
10411 done
10412fi
10413
10414if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10415 for ncn_progname in ranlib; do
10416 if test -n "$ncn_target_tool_prefix"; then
10417 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10418set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10419echo "$as_me:$LINENO: checking for $ac_word" >&5
10420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10421if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10423else
4de997d1
PB
10424 if test -n "$RANLIB_FOR_TARGET"; then
10425 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10426else
1c710c3c
DJ
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
10432 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10434 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 break 2
10437 fi
10438done
10439done
10440
ca9f4b81
AO
10441fi
10442fi
1c710c3c 10443RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10444if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10445 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10446echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10447else
2aeb72e9
DD
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
ca9f4b81
AO
10450fi
10451
e8b05380
PB
10452 fi
10453 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10455set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10456echo "$as_me:$LINENO: checking for $ac_word" >&5
10457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10458if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10460else
2693c0b0
PB
10461 if test -n "$RANLIB_FOR_TARGET"; then
10462 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10463else
1c710c3c
DJ
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10471 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476done
10477
ca9f4b81
AO
10478fi
10479fi
1c710c3c 10480RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10481if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10482 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10483echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10484else
2aeb72e9
DD
10485 echo "$as_me:$LINENO: result: no" >&5
10486echo "${ECHO_T}no" >&6
ca9f4b81 10487fi
1c710c3c 10488
e8b05380
PB
10489 fi
10490 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10491 done
10492fi
1c710c3c 10493
e8b05380
PB
10494if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10495 set dummy ranlib
10496 if test $build = $target ; then
10497 RANLIB_FOR_TARGET="$2"
10498 else
10499 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10500 fi
1c00b503
PB
10501else
10502 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10503fi
2693c0b0 10504
d1f8db0c
PB
10505else
10506 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10507fi
10508
e8b05380
PB
10509
10510
10511
10512if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10513 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10514 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10515echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10516 if test -x $with_build_time_tools/strip; then
10517 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10518 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10519 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10520echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10521 else
2aeb72e9
DD
10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
d1f8db0c 10524 fi
e8b05380
PB
10525 elif test $build != $host && test $have_gcc_for_target = yes; then
10526 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10527 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10528 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10529 fi
10530fi
3e19841a 10531if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10532 # Extract the first word of "strip", so it can be a program name with args.
10533set dummy strip; ac_word=$2
2aeb72e9
DD
10534echo "$as_me:$LINENO: checking for $ac_word" >&5
10535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10536if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10538else
1c710c3c
DJ
10539 case $STRIP_FOR_TARGET in
10540 [\\/]* | ?:[\\/]*)
e8b05380
PB
10541 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10542 ;;
e8b05380 10543 *)
1c710c3c
DJ
10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545for as_dir in $gcc_cv_tool_dirs
10546do
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10551 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10554 fi
10555done
10556done
10557
e8b05380
PB
10558 ;;
10559esac
10560fi
1c710c3c 10561STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10562
e8b05380 10563if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10564 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10565echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10566else
2aeb72e9
DD
10567 echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6
e8b05380
PB
10569fi
10570
10571fi
10572if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10573
10574
10575if test -n "$STRIP_FOR_TARGET"; then
10576 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10577elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10578 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10579fi
10580
10581if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10582 for ncn_progname in strip; do
10583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10584set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10585echo "$as_me:$LINENO: checking for $ac_word" >&5
10586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10587if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10589else
10590 if test -n "$STRIP_FOR_TARGET"; then
10591 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10592else
10593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594for as_dir in $PATH
10595do
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10600 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10603 fi
10604done
10605done
10606
10607fi
10608fi
10609STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10610if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10611 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10612echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10613else
2aeb72e9
DD
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
278a7a38
AO
10616fi
10617
10618 done
10619fi
10620
10621if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10622 for ncn_progname in strip; do
2aeb72e9
DD
10623 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10624echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10625 if test -x $with_build_time_tools/${ncn_progname}; then
10626 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10627 echo "$as_me:$LINENO: result: yes" >&5
10628echo "${ECHO_T}yes" >&6
e8b05380
PB
10629 break
10630 else
2aeb72e9
DD
10631 echo "$as_me:$LINENO: result: no" >&5
10632echo "${ECHO_T}no" >&6
e8b05380
PB
10633 fi
10634 done
10635fi
10636
10637if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10638 for ncn_progname in strip; do
10639 if test -n "$ncn_target_tool_prefix"; then
10640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10641set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10642echo "$as_me:$LINENO: checking for $ac_word" >&5
10643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10644if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10646else
10647 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10648 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10649else
10650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651for as_dir in $PATH
10652do
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10657 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10660 fi
10661done
10662done
10663
040b1c5a
GK
10664fi
10665fi
1c710c3c 10666STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10667if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10668 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10669echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10670else
2aeb72e9
DD
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
040b1c5a
GK
10673fi
10674
e8b05380
PB
10675 fi
10676 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10678set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10679echo "$as_me:$LINENO: checking for $ac_word" >&5
10680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10681if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10683else
10684 if test -n "$STRIP_FOR_TARGET"; then
10685 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10686else
1c710c3c
DJ
10687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688for as_dir in $PATH
10689do
10690 IFS=$as_save_IFS
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10694 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10696 break 2
10697 fi
10698done
10699done
10700
040b1c5a
GK
10701fi
10702fi
1c710c3c 10703STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10704if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10705 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10706echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10707else
2aeb72e9
DD
10708 echo "$as_me:$LINENO: result: no" >&5
10709echo "${ECHO_T}no" >&6
040b1c5a 10710fi
1c710c3c 10711
e8b05380
PB
10712 fi
10713 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10714 done
10715fi
1c710c3c 10716
040b1c5a
GK
10717if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10718 set dummy strip
10719 if test $build = $target ; then
10720 STRIP_FOR_TARGET="$2"
10721 else
10722 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10723 fi
1c00b503
PB
10724else
10725 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10726fi
10727
d1f8db0c
PB
10728else
10729 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10730fi
10731
10732
10733
10734
10735if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10736 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10737 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10738echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10739 if test -x $with_build_time_tools/windres; then
10740 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10741 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10742 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10743echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10744 else
2aeb72e9
DD
10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
d1f8db0c 10747 fi
e8b05380
PB
10748 elif test $build != $host && test $have_gcc_for_target = yes; then
10749 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10750 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10751 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10752 fi
10753fi
3e19841a 10754if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10755 # Extract the first word of "windres", so it can be a program name with args.
10756set dummy windres; ac_word=$2
2aeb72e9
DD
10757echo "$as_me:$LINENO: checking for $ac_word" >&5
10758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10759if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10761else
1c710c3c
DJ
10762 case $WINDRES_FOR_TARGET in
10763 [\\/]* | ?:[\\/]*)
e8b05380
PB
10764 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10765 ;;
e8b05380 10766 *)
1c710c3c
DJ
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $gcc_cv_tool_dirs
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10774 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10777 fi
10778done
10779done
10780
e8b05380
PB
10781 ;;
10782esac
10783fi
1c710c3c 10784WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10785
e8b05380 10786if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10787 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10788echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10789else
2aeb72e9
DD
10790 echo "$as_me:$LINENO: result: no" >&5
10791echo "${ECHO_T}no" >&6
e8b05380
PB
10792fi
10793
10794fi
10795if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10796
10797
10798if test -n "$WINDRES_FOR_TARGET"; then
10799 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10800elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10801 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10802fi
10803
10804if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10805 for ncn_progname in windres; do
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10808echo "$as_me:$LINENO: checking for $ac_word" >&5
10809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10810if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 if test -n "$WINDRES_FOR_TARGET"; then
10814 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10815else
10816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817for as_dir in $PATH
10818do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10823 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827done
10828done
10829
10830fi
10831fi
10832WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10833if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10834 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10835echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10836else
2aeb72e9
DD
10837 echo "$as_me:$LINENO: result: no" >&5
10838echo "${ECHO_T}no" >&6
278a7a38
AO
10839fi
10840
10841 done
10842fi
10843
10844if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10845 for ncn_progname in windres; do
2aeb72e9
DD
10846 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10847echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10848 if test -x $with_build_time_tools/${ncn_progname}; then
10849 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10850 echo "$as_me:$LINENO: result: yes" >&5
10851echo "${ECHO_T}yes" >&6
e8b05380
PB
10852 break
10853 else
2aeb72e9
DD
10854 echo "$as_me:$LINENO: result: no" >&5
10855echo "${ECHO_T}no" >&6
e8b05380
PB
10856 fi
10857 done
10858fi
10859
10860if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10861 for ncn_progname in windres; do
10862 if test -n "$ncn_target_tool_prefix"; then
10863 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10864set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10865echo "$as_me:$LINENO: checking for $ac_word" >&5
10866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10867if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10869else
4de997d1
PB
10870 if test -n "$WINDRES_FOR_TARGET"; then
10871 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10872else
1c710c3c
DJ
10873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10874for as_dir in $PATH
10875do
10876 IFS=$as_save_IFS
10877 test -z "$as_dir" && as_dir=.
10878 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10880 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 break 2
10883 fi
10884done
10885done
10886
ca9f4b81
AO
10887fi
10888fi
1c710c3c 10889WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10890if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10891 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10892echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10893else
2aeb72e9
DD
10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
ca9f4b81
AO
10896fi
10897
e8b05380
PB
10898 fi
10899 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10901set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10902echo "$as_me:$LINENO: checking for $ac_word" >&5
10903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10904if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10906else
2693c0b0
PB
10907 if test -n "$WINDRES_FOR_TARGET"; then
10908 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10909else
1c710c3c
DJ
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10917 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921done
10922done
10923
ca9f4b81
AO
10924fi
10925fi
1c710c3c 10926WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10927if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10928 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10929echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10930else
2aeb72e9
DD
10931 echo "$as_me:$LINENO: result: no" >&5
10932echo "${ECHO_T}no" >&6
ca9f4b81 10933fi
1c710c3c 10934
e8b05380
PB
10935 fi
10936 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10937 done
10938fi
1c710c3c 10939
2693c0b0
PB
10940if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10941 set dummy windres
10942 if test $build = $target ; then
10943 WINDRES_FOR_TARGET="$2"
ca9f4b81 10944 else
2693c0b0 10945 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10946 fi
1c00b503
PB
10947else
10948 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10949fi
10950
d1f8db0c
PB
10951else
10952 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10953fi
10954
4977bab6 10955
901119ae
KT
10956
10957
10958if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10959 if test -n "$with_build_time_tools"; then
10960 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10961echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10962 if test -x $with_build_time_tools/windmc; then
10963 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10964 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10965 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10966echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10967 else
10968 echo "$as_me:$LINENO: result: no" >&5
10969echo "${ECHO_T}no" >&6
10970 fi
10971 elif test $build != $host && test $have_gcc_for_target = yes; then
10972 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
10973 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10974 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
10975 fi
10976fi
10977if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10978 # Extract the first word of "windmc", so it can be a program name with args.
10979set dummy windmc; ac_word=$2
10980echo "$as_me:$LINENO: checking for $ac_word" >&5
10981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10982if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 case $WINDMC_FOR_TARGET in
10986 [\\/]* | ?:[\\/]*)
10987 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10988 ;;
10989 *)
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $gcc_cv_tool_dirs
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10997 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 break 2
11000 fi
11001done
11002done
11003
11004 ;;
11005esac
11006fi
11007WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11008
11009if test -n "$WINDMC_FOR_TARGET"; then
11010 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11011echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11012else
11013 echo "$as_me:$LINENO: result: no" >&5
11014echo "${ECHO_T}no" >&6
11015fi
11016
11017fi
11018if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11019
11020
11021if test -n "$WINDMC_FOR_TARGET"; then
11022 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11023elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11024 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11025fi
11026
11027if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11028 for ncn_progname in windmc; do
11029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11030set dummy ${ncn_progname}; ac_word=$2
11031echo "$as_me:$LINENO: checking for $ac_word" >&5
11032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11033if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else
11036 if test -n "$WINDMC_FOR_TARGET"; then
11037 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11038else
11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040for as_dir in $PATH
11041do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050done
11051done
11052
11053fi
11054fi
11055WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11056if test -n "$WINDMC_FOR_TARGET"; then
11057 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11058echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11059else
11060 echo "$as_me:$LINENO: result: no" >&5
11061echo "${ECHO_T}no" >&6
11062fi
11063
11064 done
11065fi
11066
11067if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11068 for ncn_progname in windmc; do
11069 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11070echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11071 if test -x $with_build_time_tools/${ncn_progname}; then
11072 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11073 echo "$as_me:$LINENO: result: yes" >&5
11074echo "${ECHO_T}yes" >&6
11075 break
11076 else
11077 echo "$as_me:$LINENO: result: no" >&5
11078echo "${ECHO_T}no" >&6
11079 fi
11080 done
11081fi
11082
11083if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11084 for ncn_progname in windmc; do
11085 if test -n "$ncn_target_tool_prefix"; then
11086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11087set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11088echo "$as_me:$LINENO: checking for $ac_word" >&5
11089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092else
11093 if test -n "$WINDMC_FOR_TARGET"; then
11094 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11095else
11096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11106 fi
11107done
11108done
11109
11110fi
11111fi
11112WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11113if test -n "$WINDMC_FOR_TARGET"; then
11114 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11115echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11116else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119fi
11120
11121 fi
11122 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124set dummy ${ncn_progname}; ac_word=$2
11125echo "$as_me:$LINENO: checking for $ac_word" >&5
11126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11127if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129else
11130 if test -n "$WINDMC_FOR_TARGET"; then
11131 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11143 fi
11144done
11145done
11146
11147fi
11148fi
11149WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11150if test -n "$WINDMC_FOR_TARGET"; then
11151 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11152echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11153else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156fi
11157
11158 fi
11159 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11160 done
11161fi
11162
11163if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11164 set dummy windmc
11165 if test $build = $target ; then
11166 WINDMC_FOR_TARGET="$2"
11167 else
11168 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11169 fi
1c00b503
PB
11170else
11171 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11172fi
11173
11174else
11175 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11176fi
11177
11178
2abefe3d
PB
11179RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11180
2aeb72e9
DD
11181echo "$as_me:$LINENO: checking where to find the target ar" >&5
11182echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11183if test "x${build}" != "x${host}" ; then
e8b05380
PB
11184 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11185 # We already found the complete path
172e41aa 11186 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11187 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11188echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11189 else
11190 # Canadian cross, just use what we found
2aeb72e9
DD
11191 echo "$as_me:$LINENO: result: pre-installed" >&5
11192echo "${ECHO_T}pre-installed" >&6
e8b05380 11193 fi
2abefe3d
PB
11194else
11195 ok=yes
11196 case " ${configdirs} " in
11197 *" binutils "*) ;;
11198 *) ok=no ;;
11199 esac
1c710c3c 11200
2abefe3d
PB
11201 if test $ok = yes; then
11202 # An in-tree tool is available and we can use it
11203 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11204 echo "$as_me:$LINENO: result: just compiled" >&5
11205echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11206 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11207 # We already found the complete path
172e41aa 11208 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11209 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11210echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11211 elif test "x$target" = "x$host"; then
11212 # We can use an host tool
11213 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11214 echo "$as_me:$LINENO: result: host tool" >&5
11215echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11216 else
11217 # We need a cross tool
2aeb72e9
DD
11218 echo "$as_me:$LINENO: result: pre-installed" >&5
11219echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11220 fi
11221fi
0b0dc272 11222
2aeb72e9
DD
11223echo "$as_me:$LINENO: checking where to find the target as" >&5
11224echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11225if test "x${build}" != "x${host}" ; then
e8b05380
PB
11226 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11227 # We already found the complete path
172e41aa 11228 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11229 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11230echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11231 else
11232 # Canadian cross, just use what we found
2aeb72e9
DD
11233 echo "$as_me:$LINENO: result: pre-installed" >&5
11234echo "${ECHO_T}pre-installed" >&6
e8b05380 11235 fi
2abefe3d
PB
11236else
11237 ok=yes
11238 case " ${configdirs} " in
11239 *" gas "*) ;;
11240 *) ok=no ;;
11241 esac
1c710c3c 11242
2abefe3d
PB
11243 if test $ok = yes; then
11244 # An in-tree tool is available and we can use it
11245 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11246 echo "$as_me:$LINENO: result: just compiled" >&5
11247echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11248 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11249 # We already found the complete path
172e41aa 11250 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11251 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11252echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11253 elif test "x$target" = "x$host"; then
11254 # We can use an host tool
11255 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11256 echo "$as_me:$LINENO: result: host tool" >&5
11257echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11258 else
11259 # We need a cross tool
2aeb72e9
DD
11260 echo "$as_me:$LINENO: result: pre-installed" >&5
11261echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11262 fi
11263fi
0b0dc272 11264
2aeb72e9
DD
11265echo "$as_me:$LINENO: checking where to find the target cc" >&5
11266echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11267if test "x${build}" != "x${host}" ; then
e8b05380
PB
11268 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11269 # We already found the complete path
172e41aa 11270 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11271 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11272echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11273 else
11274 # Canadian cross, just use what we found
2aeb72e9
DD
11275 echo "$as_me:$LINENO: result: pre-installed" >&5
11276echo "${ECHO_T}pre-installed" >&6
e8b05380 11277 fi
2abefe3d
PB
11278else
11279 ok=yes
11280 case " ${configdirs} " in
11281 *" gcc "*) ;;
11282 *) ok=no ;;
11283 esac
1c710c3c 11284
2abefe3d
PB
11285 if test $ok = yes; then
11286 # An in-tree tool is available and we can use it
11287 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11288 echo "$as_me:$LINENO: result: just compiled" >&5
11289echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11290 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11291 # We already found the complete path
172e41aa 11292 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11293 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11294echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11295 elif test "x$target" = "x$host"; then
11296 # We can use an host tool
11297 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11298 echo "$as_me:$LINENO: result: host tool" >&5
11299echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11300 else
11301 # We need a cross tool
2aeb72e9
DD
11302 echo "$as_me:$LINENO: result: pre-installed" >&5
11303echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11304 fi
11305fi
0b0dc272 11306
2aeb72e9
DD
11307echo "$as_me:$LINENO: checking where to find the target c++" >&5
11308echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11309if test "x${build}" != "x${host}" ; then
e8b05380
PB
11310 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11311 # We already found the complete path
172e41aa 11312 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11313 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11314echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11315 else
11316 # Canadian cross, just use what we found
2aeb72e9
DD
11317 echo "$as_me:$LINENO: result: pre-installed" >&5
11318echo "${ECHO_T}pre-installed" >&6
e8b05380 11319 fi
2abefe3d
PB
11320else
11321 ok=yes
11322 case " ${configdirs} " in
11323 *" gcc "*) ;;
11324 *) ok=no ;;
11325 esac
11326 case ,${enable_languages}, in
11327 *,c++,*) ;;
11328 *) ok=no ;;
11329 esac
11330 if test $ok = yes; then
11331 # An in-tree tool is available and we can use it
11332 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
11333 echo "$as_me:$LINENO: result: just compiled" >&5
11334echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11335 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11336 # We already found the complete path
172e41aa 11337 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11338 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11339echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11340 elif test "x$target" = "x$host"; then
11341 # We can use an host tool
11342 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11343 echo "$as_me:$LINENO: result: host tool" >&5
11344echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11345 else
11346 # We need a cross tool
2aeb72e9
DD
11347 echo "$as_me:$LINENO: result: pre-installed" >&5
11348echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11349 fi
11350fi
0b0dc272 11351
2aeb72e9
DD
11352echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11353echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11354if test "x${build}" != "x${host}" ; then
e8b05380
PB
11355 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11356 # We already found the complete path
172e41aa 11357 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11358 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11359echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11360 else
11361 # Canadian cross, just use what we found
2aeb72e9
DD
11362 echo "$as_me:$LINENO: result: pre-installed" >&5
11363echo "${ECHO_T}pre-installed" >&6
e8b05380 11364 fi
2abefe3d
PB
11365else
11366 ok=yes
11367 case " ${configdirs} " in
11368 *" gcc "*) ;;
11369 *) ok=no ;;
11370 esac
11371 case ,${enable_languages}, in
11372 *,c++,*) ;;
11373 *) ok=no ;;
11374 esac
11375 if test $ok = yes; then
11376 # An in-tree tool is available and we can use it
11377 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
11378 echo "$as_me:$LINENO: result: just compiled" >&5
11379echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11380 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11381 # We already found the complete path
172e41aa 11382 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11383 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11384echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11385 elif test "x$target" = "x$host"; then
11386 # We can use an host tool
11387 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11388 echo "$as_me:$LINENO: result: host tool" >&5
11389echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11390 else
11391 # We need a cross tool
2aeb72e9
DD
11392 echo "$as_me:$LINENO: result: pre-installed" >&5
11393echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11394 fi
11395fi
0b0dc272 11396
2aeb72e9
DD
11397echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11398echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11399if test "x${build}" != "x${host}" ; then
e8b05380
PB
11400 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11401 # We already found the complete path
172e41aa 11402 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11403 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11404echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11405 else
11406 # Canadian cross, just use what we found
2aeb72e9
DD
11407 echo "$as_me:$LINENO: result: pre-installed" >&5
11408echo "${ECHO_T}pre-installed" >&6
e8b05380 11409 fi
2abefe3d
PB
11410else
11411 ok=yes
11412 case " ${configdirs} " in
11413 *" binutils "*) ;;
11414 *) ok=no ;;
11415 esac
1c710c3c 11416
2abefe3d
PB
11417 if test $ok = yes; then
11418 # An in-tree tool is available and we can use it
11419 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11420 echo "$as_me:$LINENO: result: just compiled" >&5
11421echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11422 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11423 # We already found the complete path
172e41aa 11424 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11425 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11426echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11427 elif test "x$target" = "x$host"; then
11428 # We can use an host tool
11429 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11430 echo "$as_me:$LINENO: result: host tool" >&5
11431echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11432 else
11433 # We need a cross tool
2aeb72e9
DD
11434 echo "$as_me:$LINENO: result: pre-installed" >&5
11435echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11436 fi
11437fi
0b0dc272 11438
2aeb72e9
DD
11439echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11440echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11441if test "x${build}" != "x${host}" ; then
e8b05380
PB
11442 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11443 # We already found the complete path
172e41aa 11444 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11445 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11446echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11447 else
11448 # Canadian cross, just use what we found
2aeb72e9
DD
11449 echo "$as_me:$LINENO: result: pre-installed" >&5
11450echo "${ECHO_T}pre-installed" >&6
e8b05380 11451 fi
2abefe3d
PB
11452else
11453 ok=yes
11454 case " ${configdirs} " in
11455 *" gcc "*) ;;
11456 *) ok=no ;;
11457 esac
1c710c3c 11458
2abefe3d
PB
11459 if test $ok = yes; then
11460 # An in-tree tool is available and we can use it
11461 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11462 echo "$as_me:$LINENO: result: just compiled" >&5
11463echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11464 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11465 # We already found the complete path
172e41aa 11466 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11467 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11468echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11469 elif test "x$target" = "x$host"; then
11470 # We can use an host tool
11471 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11472 echo "$as_me:$LINENO: result: host tool" >&5
11473echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11474 else
11475 # We need a cross tool
2aeb72e9
DD
11476 echo "$as_me:$LINENO: result: pre-installed" >&5
11477echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11478 fi
11479fi
0b0dc272 11480
2aeb72e9
DD
11481echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11482echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11483if test "x${build}" != "x${host}" ; then
e8b05380
PB
11484 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11485 # We already found the complete path
172e41aa 11486 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11487 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11488echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11489 else
11490 # Canadian cross, just use what we found
2aeb72e9
DD
11491 echo "$as_me:$LINENO: result: pre-installed" >&5
11492echo "${ECHO_T}pre-installed" >&6
e8b05380 11493 fi
2abefe3d
PB
11494else
11495 ok=yes
11496 case " ${configdirs} " in
11497 *" gcc "*) ;;
11498 *) ok=no ;;
11499 esac
11500 case ,${enable_languages}, in
11501 *,java,*) ;;
11502 *) ok=no ;;
11503 esac
11504 if test $ok = yes; then
11505 # An in-tree tool is available and we can use it
11506 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11507 echo "$as_me:$LINENO: result: just compiled" >&5
11508echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11509 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11510 # We already found the complete path
172e41aa 11511 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11512 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11513echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11514 elif test "x$target" = "x$host"; then
11515 # We can use an host tool
11516 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11517 echo "$as_me:$LINENO: result: host tool" >&5
11518echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11519 else
11520 # We need a cross tool
2aeb72e9
DD
11521 echo "$as_me:$LINENO: result: pre-installed" >&5
11522echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11523 fi
11524fi
0b0dc272 11525
2aeb72e9
DD
11526echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11527echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11528if test "x${build}" != "x${host}" ; then
e8b05380
PB
11529 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11530 # We already found the complete path
172e41aa 11531 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11532 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11533echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11534 else
11535 # Canadian cross, just use what we found
2aeb72e9
DD
11536 echo "$as_me:$LINENO: result: pre-installed" >&5
11537echo "${ECHO_T}pre-installed" >&6
e8b05380 11538 fi
2abefe3d
PB
11539else
11540 ok=yes
11541 case " ${configdirs} " in
11542 *" gcc "*) ;;
11543 *) ok=no ;;
11544 esac
11545 case ,${enable_languages}, in
11546 *,fortran,*) ;;
11547 *) ok=no ;;
11548 esac
11549 if test $ok = yes; then
11550 # An in-tree tool is available and we can use it
11551 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11552 echo "$as_me:$LINENO: result: just compiled" >&5
11553echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11554 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11555 # We already found the complete path
172e41aa 11556 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11557 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11558echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11559 elif test "x$target" = "x$host"; then
11560 # We can use an host tool
11561 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11562 echo "$as_me:$LINENO: result: host tool" >&5
11563echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11564 else
11565 # We need a cross tool
2aeb72e9
DD
11566 echo "$as_me:$LINENO: result: pre-installed" >&5
11567echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11568 fi
11569fi
0b0dc272 11570
2aeb72e9
DD
11571echo "$as_me:$LINENO: checking where to find the target ld" >&5
11572echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11573if test "x${build}" != "x${host}" ; then
e8b05380
PB
11574 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11575 # We already found the complete path
172e41aa 11576 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11577 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11578echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11579 else
11580 # Canadian cross, just use what we found
2aeb72e9
DD
11581 echo "$as_me:$LINENO: result: pre-installed" >&5
11582echo "${ECHO_T}pre-installed" >&6
e8b05380 11583 fi
2abefe3d
PB
11584else
11585 ok=yes
11586 case " ${configdirs} " in
11587 *" ld "*) ;;
11588 *) ok=no ;;
11589 esac
1c710c3c 11590
2abefe3d
PB
11591 if test $ok = yes; then
11592 # An in-tree tool is available and we can use it
11593 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11594 echo "$as_me:$LINENO: result: just compiled" >&5
11595echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11596 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11597 # We already found the complete path
172e41aa 11598 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11599 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11600echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11601 elif test "x$target" = "x$host"; then
11602 # We can use an host tool
11603 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11604 echo "$as_me:$LINENO: result: host tool" >&5
11605echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11606 else
11607 # We need a cross tool
2aeb72e9
DD
11608 echo "$as_me:$LINENO: result: pre-installed" >&5
11609echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11610 fi
11611fi
0b0dc272 11612
2aeb72e9
DD
11613echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11614echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11615if test "x${build}" != "x${host}" ; then
e8b05380
PB
11616 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11617 # We already found the complete path
172e41aa 11618 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11619 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11620echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11621 else
11622 # Canadian cross, just use what we found
2aeb72e9
DD
11623 echo "$as_me:$LINENO: result: pre-installed" >&5
11624echo "${ECHO_T}pre-installed" >&6
e8b05380 11625 fi
2abefe3d 11626else
e8b05380
PB
11627 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11628 # We already found the complete path
172e41aa 11629 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11630 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11631echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11632 elif test "x$target" = "x$host"; then
2abefe3d
PB
11633 # We can use an host tool
11634 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11635 echo "$as_me:$LINENO: result: host tool" >&5
11636echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11637 else
11638 # We need a cross tool
2aeb72e9
DD
11639 echo "$as_me:$LINENO: result: pre-installed" >&5
11640echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11641 fi
11642fi
0b0dc272 11643
2aeb72e9
DD
11644echo "$as_me:$LINENO: checking where to find the target nm" >&5
11645echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11646if test "x${build}" != "x${host}" ; then
e8b05380
PB
11647 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11648 # We already found the complete path
172e41aa 11649 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11650 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11651echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11652 else
11653 # Canadian cross, just use what we found
2aeb72e9
DD
11654 echo "$as_me:$LINENO: result: pre-installed" >&5
11655echo "${ECHO_T}pre-installed" >&6
e8b05380 11656 fi
2abefe3d
PB
11657else
11658 ok=yes
11659 case " ${configdirs} " in
11660 *" binutils "*) ;;
11661 *) ok=no ;;
11662 esac
1c710c3c 11663
2abefe3d
PB
11664 if test $ok = yes; then
11665 # An in-tree tool is available and we can use it
11666 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11667 echo "$as_me:$LINENO: result: just compiled" >&5
11668echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11669 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11670 # We already found the complete path
172e41aa 11671 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11672 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11673echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11674 elif test "x$target" = "x$host"; then
11675 # We can use an host tool
11676 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11677 echo "$as_me:$LINENO: result: host tool" >&5
11678echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11679 else
11680 # We need a cross tool
2aeb72e9
DD
11681 echo "$as_me:$LINENO: result: pre-installed" >&5
11682echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11683 fi
11684fi
0b0dc272 11685
2aeb72e9
DD
11686echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11687echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11688if test "x${build}" != "x${host}" ; then
e8b05380
PB
11689 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11690 # We already found the complete path
172e41aa 11691 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11692 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11693echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11694 else
11695 # Canadian cross, just use what we found
2aeb72e9
DD
11696 echo "$as_me:$LINENO: result: pre-installed" >&5
11697echo "${ECHO_T}pre-installed" >&6
e8b05380 11698 fi
2abefe3d
PB
11699else
11700 ok=yes
11701 case " ${configdirs} " in
11702 *" binutils "*) ;;
11703 *) ok=no ;;
11704 esac
1c710c3c 11705
2abefe3d
PB
11706 if test $ok = yes; then
11707 # An in-tree tool is available and we can use it
11708 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11709 echo "$as_me:$LINENO: result: just compiled" >&5
11710echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11711 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11712 # We already found the complete path
172e41aa 11713 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11714 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11715echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11716 elif test "x$target" = "x$host"; then
11717 # We can use an host tool
11718 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11719 echo "$as_me:$LINENO: result: host tool" >&5
11720echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11721 else
11722 # We need a cross tool
2aeb72e9
DD
11723 echo "$as_me:$LINENO: result: pre-installed" >&5
11724echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11725 fi
11726fi
0b0dc272 11727
2aeb72e9
DD
11728echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11729echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11730if test "x${build}" != "x${host}" ; then
e8b05380
PB
11731 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11732 # We already found the complete path
172e41aa 11733 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11734 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11735echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11736 else
11737 # Canadian cross, just use what we found
2aeb72e9
DD
11738 echo "$as_me:$LINENO: result: pre-installed" >&5
11739echo "${ECHO_T}pre-installed" >&6
e8b05380 11740 fi
2abefe3d
PB
11741else
11742 ok=yes
11743 case " ${configdirs} " in
11744 *" binutils "*) ;;
11745 *) ok=no ;;
11746 esac
1c710c3c 11747
2abefe3d
PB
11748 if test $ok = yes; then
11749 # An in-tree tool is available and we can use it
11750 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11751 echo "$as_me:$LINENO: result: just compiled" >&5
11752echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11753 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11754 # We already found the complete path
172e41aa 11755 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11756 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11757echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11758 elif test "x$target" = "x$host"; then
11759 # We can use an host tool
11760 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11761 echo "$as_me:$LINENO: result: host tool" >&5
11762echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11763 else
11764 # We need a cross tool
2aeb72e9
DD
11765 echo "$as_me:$LINENO: result: pre-installed" >&5
11766echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11767 fi
11768fi
0b0dc272 11769
2aeb72e9
DD
11770echo "$as_me:$LINENO: checking where to find the target strip" >&5
11771echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11772if test "x${build}" != "x${host}" ; then
e8b05380
PB
11773 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11774 # We already found the complete path
172e41aa 11775 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11776 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11777echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11778 else
11779 # Canadian cross, just use what we found
2aeb72e9
DD
11780 echo "$as_me:$LINENO: result: pre-installed" >&5
11781echo "${ECHO_T}pre-installed" >&6
e8b05380 11782 fi
2abefe3d
PB
11783else
11784 ok=yes
11785 case " ${configdirs} " in
11786 *" binutils "*) ;;
11787 *) ok=no ;;
11788 esac
1c710c3c 11789
2abefe3d
PB
11790 if test $ok = yes; then
11791 # An in-tree tool is available and we can use it
11792 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11793 echo "$as_me:$LINENO: result: just compiled" >&5
11794echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11795 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11796 # We already found the complete path
172e41aa 11797 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11798 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11799echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11800 elif test "x$target" = "x$host"; then
11801 # We can use an host tool
11802 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11803 echo "$as_me:$LINENO: result: host tool" >&5
11804echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11805 else
11806 # We need a cross tool
2aeb72e9
DD
11807 echo "$as_me:$LINENO: result: pre-installed" >&5
11808echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11809 fi
11810fi
0b0dc272 11811
2aeb72e9
DD
11812echo "$as_me:$LINENO: checking where to find the target windres" >&5
11813echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11814if test "x${build}" != "x${host}" ; then
e8b05380
PB
11815 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11816 # We already found the complete path
172e41aa 11817 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11818 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11819echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11820 else
11821 # Canadian cross, just use what we found
2aeb72e9
DD
11822 echo "$as_me:$LINENO: result: pre-installed" >&5
11823echo "${ECHO_T}pre-installed" >&6
e8b05380 11824 fi
2abefe3d
PB
11825else
11826 ok=yes
11827 case " ${configdirs} " in
11828 *" binutils "*) ;;
11829 *) ok=no ;;
11830 esac
1c710c3c 11831
2abefe3d
PB
11832 if test $ok = yes; then
11833 # An in-tree tool is available and we can use it
11834 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11835 echo "$as_me:$LINENO: result: just compiled" >&5
11836echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11837 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11838 # We already found the complete path
172e41aa 11839 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11840 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11841echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11842 elif test "x$target" = "x$host"; then
11843 # We can use an host tool
11844 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11845 echo "$as_me:$LINENO: result: host tool" >&5
11846echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11847 else
11848 # We need a cross tool
2aeb72e9
DD
11849 echo "$as_me:$LINENO: result: pre-installed" >&5
11850echo "${ECHO_T}pre-installed" >&6
2abefe3d 11851 fi
671aa708 11852fi
be912515 11853
901119ae
KT
11854echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11855echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11856if test "x${build}" != "x${host}" ; then
11857 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11858 # We already found the complete path
11859 ac_dir=`dirname $WINDMC_FOR_TARGET`
11860 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11861echo "${ECHO_T}pre-installed in $ac_dir" >&6
11862 else
11863 # Canadian cross, just use what we found
11864 echo "$as_me:$LINENO: result: pre-installed" >&5
11865echo "${ECHO_T}pre-installed" >&6
11866 fi
11867else
11868 ok=yes
11869 case " ${configdirs} " in
11870 *" binutils "*) ;;
11871 *) ok=no ;;
11872 esac
11873
11874 if test $ok = yes; then
11875 # An in-tree tool is available and we can use it
11876 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11877 echo "$as_me:$LINENO: result: just compiled" >&5
11878echo "${ECHO_T}just compiled" >&6
11879 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11880 # We already found the complete path
11881 ac_dir=`dirname $WINDMC_FOR_TARGET`
11882 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11883echo "${ECHO_T}pre-installed in $ac_dir" >&6
11884 elif test "x$target" = "x$host"; then
11885 # We can use an host tool
11886 WINDMC_FOR_TARGET='$(WINDMC)'
11887 echo "$as_me:$LINENO: result: host tool" >&5
11888echo "${ECHO_T}host tool" >&6
11889 else
11890 # We need a cross tool
11891 echo "$as_me:$LINENO: result: pre-installed" >&5
11892echo "${ECHO_T}pre-installed" >&6
11893 fi
11894fi
11895
be912515
NN
11896
11897
2abefe3d 11898
0b0dc272 11899
671aa708
NN
11900# Certain tools may need extra flags.
11901AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11902RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11903NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11904
2abefe3d
PB
11905# When building target libraries, except in a Canadian cross, we use
11906# the same toolchain as the compiler we just built.
11907COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11908COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11909COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11910if test $host = $build; then
11911 case " $configdirs " in
11912 *" gcc "*)
11913 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11914 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11915 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11916 ;;
11917 esac
11918fi
11919
11920
11921
11922
11923
2aeb72e9
DD
11924echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11925echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11926# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11927if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11928 enableval="$enable_maintainer_mode"
11929 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11930else
11931 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11932fi;
11933echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11934echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11935
11936
11937if test "$USE_MAINTAINER_MODE" = yes; then
11938 MAINTAINER_MODE_TRUE=
11939 MAINTAINER_MODE_FALSE='#'
11940else
11941 MAINTAINER_MODE_TRUE='#'
11942 MAINTAINER_MODE_FALSE=
1c710c3c 11943fi
ee03dc5e
AO
11944MAINT=$MAINTAINER_MODE_TRUE
11945
2805b53a
NN
11946# ---------------------
11947# GCC bootstrap support
11948# ---------------------
11949
11950# Stage specific cflags for build.
11951stage1_cflags="-g"
11952case $build in
11953 vax-*-*)
11954 case ${GCC} in
11955 yes) stage1_cflags="-g -Wa,-J" ;;
11956 *) stage1_cflags="-g -J" ;;
11957 esac ;;
2805b53a
NN
11958esac
11959
0b50988a
EB
11960# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11961if test "$GCC" = yes; then
11962 saved_CFLAGS="$CFLAGS"
11963
11964 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11965 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
11966 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11967echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
11974
9cc1244e
JJ
11975#if (__GNUC__ < 3) \
11976 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11977 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11978#error http://gcc.gnu.org/PR29382
11979#endif
11980
1c710c3c
DJ
11981int
11982main ()
11983{
11984
11985 ;
11986 return 0;
11987}
11988_ACEOF
11989rm -f conftest.$ac_objext
2aeb72e9
DD
11990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
11997 (exit $ac_status); } &&
11998 { ac_try='test -z "$ac_c_werror_flag"
11999 || test ! -s conftest.err'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; } &&
12005 { ac_try='test -s conftest.$ac_objext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 echo "$as_me:$LINENO: result: yes" >&5
12012echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12013else
12014 echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
2aeb72e9
DD
12017echo "$as_me:$LINENO: result: no" >&5
12018echo "${ECHO_T}no" >&6
1c710c3c 12019fi
2aeb72e9 12020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12021
12022 CFLAGS="$saved_CFLAGS"
12023fi
12024
12025
2805b53a 12026
8efea775 12027# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12028# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12029if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12030 enableval="$enable_stage1_checking"
12031 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12032else
e643dc23 12033 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12034 stage1_checking=--enable-checking=yes,types
8efea775 12035else
e643dc23 12036 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12037fi
2aeb72e9 12038fi;
8efea775
PB
12039
12040
2805b53a 12041# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12042# Check whether --enable-werror or --disable-werror was given.
2805b53a 12043if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12044 enableval="$enable_werror"
12045
2805b53a 12046else
416cfb5e 12047 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12048 enable_werror=yes
88fceb68
PB
12049else
12050 enable_werror=no
12051fi
2aeb72e9 12052fi;
09a9c095
NN
12053case ${enable_werror} in
12054 yes) stage2_werror_flag="--enable-werror-always" ;;
12055 *) stage2_werror_flag="" ;;
2805b53a
NN
12056esac
12057
12058
32845532 12059# Flags needed to enable html installing and building
1c710c3c 12060
2aeb72e9 12061# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12062if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12063 withval="$with_datarootdir"
12064 datarootdir="\${prefix}/${withval}"
32845532
CD
12065else
12066 datarootdir="\${prefix}/share"
2aeb72e9 12067fi;
32845532
CD
12068
12069
2aeb72e9 12070# Check whether --with-docdir or --without-docdir was given.
32845532 12071if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12072 withval="$with_docdir"
12073 docdir="\${prefix}/${withval}"
32845532
CD
12074else
12075 docdir="\${datarootdir}/doc"
2aeb72e9 12076fi;
32845532
CD
12077
12078
2aeb72e9 12079# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12080if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12081 withval="$with_pdfdir"
12082 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12083else
12084 pdfdir="\${docdir}"
2aeb72e9 12085fi;
9c4d2493
BM
12086
12087
2aeb72e9 12088# Check whether --with-htmldir or --without-htmldir was given.
32845532 12089if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12090 withval="$with_htmldir"
12091 htmldir="\${prefix}/${withval}"
32845532
CD
12092else
12093 htmldir="\${docdir}"
2aeb72e9 12094fi;
32845532
CD
12095
12096
12097
12098
172e41aa 12099
11a67599 12100
2aeb72e9 12101 ac_config_files="$ac_config_files Makefile"
1c710c3c 12102cat >confcache <<\_ACEOF
671aa708
NN
12103# This file is a shell script that caches the results of configure
12104# tests run on this system so they can be shared between configure
1c710c3c
DJ
12105# scripts and configure runs, see configure's option --config-cache.
12106# It is not useful on other systems. If it contains results you don't
12107# want to keep, you may remove or edit it.
671aa708 12108#
1c710c3c
DJ
12109# config.status only pays attention to the cache file if you give it
12110# the --recheck option to rerun configure.
671aa708 12111#
1c710c3c
DJ
12112# `ac_cv_env_foo' variables (set or unset) will be overridden when
12113# loading this file, other *unset* `ac_cv_foo' will be assigned the
12114# following values.
12115
12116_ACEOF
12117
671aa708
NN
12118# The following way of writing the cache mishandles newlines in values,
12119# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12120# So, don't put newlines in cache variables' values.
671aa708
NN
12121# Ultrix sh set writes to stderr and can't be redirected directly,
12122# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12123{
1c710c3c 12124 (set) 2>&1 |
2aeb72e9
DD
12125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12126 *ac_space=\ *)
1c710c3c
DJ
12127 # `set' does not quote correctly, so add quotes (double-quote
12128 # substitution turns \\\\ into \\, and sed turns \\ into \).
12129 sed -n \
12130 "s/'/'\\\\''/g;
12131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12132 ;;
1c710c3c
DJ
12133 *)
12134 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12135 sed -n \
12136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12137 ;;
2aeb72e9
DD
12138 esac;
12139} |
1c710c3c
DJ
12140 sed '
12141 t clear
2aeb72e9 12142 : clear
1c710c3c
DJ
12143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12144 t end
2aeb72e9
DD
12145 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12146 : end' >>confcache
12147if diff $cache_file confcache >/dev/null 2>&1; then :; else
12148 if test -w $cache_file; then
12149 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12150 cat confcache >$cache_file
671aa708 12151 else
2aeb72e9 12152 echo "not updating unwritable cache $cache_file"
671aa708 12153 fi
4977bab6 12154fi
671aa708 12155rm -f confcache
79c06341 12156
671aa708
NN
12157test "x$prefix" = xNONE && prefix=$ac_default_prefix
12158# Let make expand exec_prefix.
12159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12160
2aeb72e9
DD
12161# VPATH may cause trouble with some makes, so we remove $(srcdir),
12162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12163# trailing colons and then remove the whole line if VPATH becomes empty
12164# (actually we leave an empty line to preserve line numbers).
12165if test "x$srcdir" = x.; then
12166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12167s/:*\$(srcdir):*/:/;
12168s/:*\${srcdir}:*/:/;
12169s/:*@srcdir@:*/:/;
12170s/^\([^=]*=[ ]*\):*/\1/;
12171s/:*$//;
12172s/^[^=]*=[ ]*$//;
12173}'
12174fi
12175
671aa708
NN
12176# Transform confdefs.h into DEFS.
12177# Protect against shell expansion while executing Makefile rules.
12178# Protect against Makefile macro expansion.
1c710c3c
DJ
12179#
12180# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12181# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12182# look for a macro that doesn't take arguments.
2aeb72e9 12183cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12184t clear
2aeb72e9
DD
12185: clear
12186s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12187t quote
2aeb72e9 12188s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12189t quote
2aeb72e9
DD
12190d
12191: quote
12192s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12193s,\[,\\&,g
12194s,\],\\&,g
12195s,\$,$$,g
12196p
12197_ACEOF
12198# We use echo to avoid assuming a particular line-breaking character.
12199# The extra dot is to prevent the shell from consuming trailing
12200# line-breaks from the sub-command output. A line-break within
12201# single-quotes doesn't work because, if this script is created in a
12202# platform that uses two characters for line-breaks (e.g., DOS), tr
12203# would break.
12204ac_LF_and_DOT=`echo; echo .`
12205DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12206rm -f confdef2opt.sed
1c710c3c
DJ
12207
12208
12209ac_libobjs=
12210ac_ltlibobjs=
12211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12212 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12213 ac_i=`echo "$ac_i" |
12214 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12215 # 2. Add them.
12216 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12217 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12218done
12219LIBOBJS=$ac_libobjs
fb0103e5 12220
1c710c3c 12221LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12222
af71363e 12223
1c710c3c
DJ
12224
12225: ${CONFIG_STATUS=./config.status}
12226ac_clean_files_save=$ac_clean_files
12227ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12228{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12229echo "$as_me: creating $CONFIG_STATUS" >&6;}
12230cat >$CONFIG_STATUS <<_ACEOF
12231#! $SHELL
12232# Generated by $as_me.
671aa708 12233# Run this file to recreate the current configuration.
671aa708 12234# Compiler output produced by configure, useful for debugging
1c710c3c 12235# configure, is in config.log if it exists.
0b0dc272 12236
1c710c3c
DJ
12237debug=false
12238ac_cs_recheck=false
12239ac_cs_silent=false
12240SHELL=\${CONFIG_SHELL-$SHELL}
12241_ACEOF
12242
12243cat >>$CONFIG_STATUS <<\_ACEOF
12244## --------------------- ##
12245## M4sh Initialization. ##
12246## --------------------- ##
12247
2aeb72e9 12248# Be Bourne compatible
1c710c3c
DJ
12249if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12250 emulate sh
12251 NULLCMD=:
12252 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12253 # is contrary to our usage. Disable this feature.
12254 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12255elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12256 set -o posix
1c710c3c 12257fi
2aeb72e9 12258DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12259
12260# Support unset when possible.
12261if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12262 as_unset=unset
12263else
12264 as_unset=false
12265fi
12266
12267
12268# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12269$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12270PS1='$ '
12271PS2='> '
12272PS4='+ '
12273
12274# NLS nuisances.
12275for as_var in \
12276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12278 LC_TELEPHONE LC_TIME
12279do
12280 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12281 eval $as_var=C; export $as_var
12282 else
2aeb72e9 12283 $as_unset $as_var
1c710c3c
DJ
12284 fi
12285done
12286
12287# Required to use basename.
2aeb72e9 12288if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12289 as_expr=expr
12290else
12291 as_expr=false
12292fi
12293
2aeb72e9 12294if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12295 as_basename=basename
12296else
12297 as_basename=false
12298fi
12299
12300
12301# Name of the executable.
2aeb72e9 12302as_me=`$as_basename "$0" ||
1c710c3c
DJ
12303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12304 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12305 X"$0" : 'X\(/\)$' \| \
12306 . : '\(.\)' 2>/dev/null ||
1c710c3c 12307echo X/"$0" |
2aeb72e9
DD
12308 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12309 /^X\/\(\/\/\)$/{ s//\1/; q; }
12310 /^X\/\(\/\).*/{ s//\1/; q; }
12311 s/.*/./; q'`
1c710c3c 12312
2aeb72e9
DD
12313
12314# PATH needs CR, and LINENO needs CR and PATH.
12315# Avoid depending upon Character Ranges.
12316as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12317as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12318as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12319as_cr_digits='0123456789'
12320as_cr_alnum=$as_cr_Letters$as_cr_digits
12321
12322# The user is always right.
12323if test "${PATH_SEPARATOR+set}" != set; then
12324 echo "#! /bin/sh" >conf$$.sh
12325 echo "exit 0" >>conf$$.sh
12326 chmod +x conf$$.sh
12327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12328 PATH_SEPARATOR=';'
12329 else
12330 PATH_SEPARATOR=:
12331 fi
12332 rm -f conf$$.sh
12333fi
1c710c3c
DJ
12334
12335
2aeb72e9
DD
12336 as_lineno_1=$LINENO
12337 as_lineno_2=$LINENO
12338 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12339 test "x$as_lineno_1" != "x$as_lineno_2" &&
12340 test "x$as_lineno_3" = "x$as_lineno_2" || {
12341 # Find who we are. Look in the path if we contain no path at all
12342 # relative or not.
12343 case $0 in
12344 *[\\/]* ) as_myself=$0 ;;
12345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346for as_dir in $PATH
12347do
12348 IFS=$as_save_IFS
12349 test -z "$as_dir" && as_dir=.
12350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12351done
1c710c3c 12352
2aeb72e9
DD
12353 ;;
12354 esac
12355 # We did not find ourselves, most probably we were run as `sh COMMAND'
12356 # in which case we are not to be found in the path.
12357 if test "x$as_myself" = x; then
12358 as_myself=$0
12359 fi
12360 if test ! -f "$as_myself"; then
12361 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12362echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12363 { (exit 1); exit 1; }; }
12364 fi
12365 case $CONFIG_SHELL in
12366 '')
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for as_base in sh bash ksh sh5; do
12373 case $as_dir in
12374 /*)
12375 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12376 as_lineno_1=$LINENO
12377 as_lineno_2=$LINENO
2aeb72e9 12378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12379 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12380 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12381 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12382 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12383 CONFIG_SHELL=$as_dir/$as_base
12384 export CONFIG_SHELL
12385 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12386 fi;;
12387 esac
12388 done
12389done
12390;;
12391 esac
1c710c3c
DJ
12392
12393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12394 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12395 # line-number line before each line; the second 'sed' does the real
12396 # work. The second script uses 'N' to pair each line-number line
12397 # with the numbered line, and appends trailing '-' during
12398 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12399 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12400 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12401 sed '=' <$as_myself |
1c710c3c
DJ
12402 sed '
12403 N
2aeb72e9
DD
12404 s,$,-,
12405 : loop
12406 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12407 t loop
2aeb72e9
DD
12408 s,-$,,
12409 s,^['$as_cr_digits']*\n,,
1c710c3c 12410 ' >$as_me.lineno &&
2aeb72e9
DD
12411 chmod +x $as_me.lineno ||
12412 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12413echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12414 { (exit 1); exit 1; }; }
12415
12416 # Don't try to exec as it changes $[0], causing all sort of problems
12417 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12418 # original and so on. Autoconf is especially sensible to this).
12419 . ./$as_me.lineno
1c710c3c
DJ
12420 # Exit status is that of the last command.
12421 exit
12422}
12423
12424
2aeb72e9
DD
12425case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12426 *c*,-n*) ECHO_N= ECHO_C='
12427' ECHO_T=' ' ;;
12428 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12429 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12430esac
12431
2aeb72e9 12432if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12433 as_expr=expr
12434else
12435 as_expr=false
12436fi
12437
12438rm -f conf$$ conf$$.exe conf$$.file
12439echo >conf$$.file
12440if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12441 # We could just check for DJGPP; but this test a) works b) is more generic
12442 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12443 if test -f conf$$.exe; then
12444 # Don't use ln at all; we don't have any links
1c710c3c 12445 as_ln_s='cp -p'
2aeb72e9
DD
12446 else
12447 as_ln_s='ln -s'
12448 fi
1c710c3c
DJ
12449elif ln conf$$.file conf$$ 2>/dev/null; then
12450 as_ln_s=ln
12451else
12452 as_ln_s='cp -p'
12453fi
2aeb72e9 12454rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12455
12456if mkdir -p . 2>/dev/null; then
12457 as_mkdir_p=:
12458else
12459 test -d ./-p && rmdir ./-p
12460 as_mkdir_p=false
12461fi
12462
2aeb72e9 12463as_executable_p="test -f"
1c710c3c
DJ
12464
12465# Sed expression to map a string onto a valid CPP name.
12466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12467
12468# Sed expression to map a string onto a valid variable name.
12469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12470
12471
2aeb72e9
DD
12472# IFS
12473# We need space, tab and new line, in precisely that order.
12474as_nl='
12475'
12476IFS=" $as_nl"
12477
12478# CDPATH.
12479$as_unset CDPATH
12480
1c710c3c
DJ
12481exec 6>&1
12482
2aeb72e9 12483# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12484# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12485# values after options handling. Logging --version etc. is OK.
12486exec 5>>config.log
12487{
12488 echo
12489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12490## Running $as_me. ##
12491_ASBOX
12492} >&5
12493cat >&5 <<_CSEOF
12494
1c710c3c 12495This file was extended by $as_me, which was
2aeb72e9 12496generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12497
12498 CONFIG_FILES = $CONFIG_FILES
12499 CONFIG_HEADERS = $CONFIG_HEADERS
12500 CONFIG_LINKS = $CONFIG_LINKS
12501 CONFIG_COMMANDS = $CONFIG_COMMANDS
12502 $ $0 $@
12503
2aeb72e9
DD
12504_CSEOF
12505echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12506echo >&5
1c710c3c
DJ
12507_ACEOF
12508
12509# Files that config.status was made for.
2aeb72e9
DD
12510if test -n "$ac_config_files"; then
12511 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12512fi
1c710c3c 12513
2aeb72e9
DD
12514if test -n "$ac_config_headers"; then
12515 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12516fi
12517
12518if test -n "$ac_config_links"; then
12519 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12520fi
12521
12522if test -n "$ac_config_commands"; then
12523 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12524fi
1c710c3c
DJ
12525
12526cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12527
1c710c3c
DJ
12528ac_cs_usage="\
12529\`$as_me' instantiates files from templates according to the
12530current configuration.
12531
12532Usage: $0 [OPTIONS] [FILE]...
12533
12534 -h, --help print this help, then exit
2aeb72e9 12535 -V, --version print version number, then exit
1c710c3c
DJ
12536 -q, --quiet do not print progress messages
12537 -d, --debug don't remove temporary files
12538 --recheck update $as_me by reconfiguring in the same conditions
12539 --file=FILE[:TEMPLATE]
12540 instantiate the configuration file FILE
12541
12542Configuration files:
12543$config_files
12544
12545Report bugs to <bug-autoconf@gnu.org>."
11a67599 12546_ACEOF
2aeb72e9 12547
1c710c3c
DJ
12548cat >>$CONFIG_STATUS <<_ACEOF
12549ac_cs_version="\\
12550config.status
2aeb72e9
DD
12551configured by $0, generated by GNU Autoconf 2.59,
12552 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12553
2aeb72e9 12554Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12555This config.status script is free software; the Free Software Foundation
12556gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12557srcdir=$srcdir
12558INSTALL="$INSTALL"
1c710c3c
DJ
12559_ACEOF
12560
12561cat >>$CONFIG_STATUS <<\_ACEOF
12562# If no file are specified by the user, then we need to provide default
12563# value. By we need to know if files were specified by the user.
12564ac_need_defaults=:
12565while test $# != 0
a4b9e93e 12566do
1c710c3c
DJ
12567 case $1 in
12568 --*=*)
2aeb72e9
DD
12569 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12570 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12571 ac_shift=:
12572 ;;
2aeb72e9 12573 -*)
1c710c3c
DJ
12574 ac_option=$1
12575 ac_optarg=$2
12576 ac_shift=shift
12577 ;;
2aeb72e9
DD
12578 *) # This is not an option, so the user has probably given explicit
12579 # arguments.
12580 ac_option=$1
12581 ac_need_defaults=false;;
1c710c3c
DJ
12582 esac
12583
12584 case $ac_option in
12585 # Handling of the options.
2aeb72e9
DD
12586_ACEOF
12587cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12589 ac_cs_recheck=: ;;
2aeb72e9
DD
12590 --version | --vers* | -V )
12591 echo "$ac_cs_version"; exit 0 ;;
12592 --he | --h)
12593 # Conflict between --help and --header
12594 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12595Try \`$0 --help' for more information." >&5
12596echo "$as_me: error: ambiguous option: $1
12597Try \`$0 --help' for more information." >&2;}
12598 { (exit 1); exit 1; }; };;
12599 --help | --hel | -h )
12600 echo "$ac_cs_usage"; exit 0 ;;
12601 --debug | --d* | -d )
1c710c3c
DJ
12602 debug=: ;;
12603 --file | --fil | --fi | --f )
12604 $ac_shift
12605 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12606 ac_need_defaults=false;;
2aeb72e9
DD
12607 --header | --heade | --head | --hea )
12608 $ac_shift
12609 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12610 ac_need_defaults=false;;
1c710c3c
DJ
12611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12613 ac_cs_silent=: ;;
12614
12615 # This is an error.
2aeb72e9
DD
12616 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12617Try \`$0 --help' for more information." >&5
12618echo "$as_me: error: unrecognized option: $1
12619Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12620 { (exit 1); exit 1; }; } ;;
12621
2aeb72e9 12622 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12623
0b0dc272 12624 esac
1c710c3c 12625 shift
0b0dc272
AM
12626done
12627
1c710c3c 12628ac_configure_extra_args=
0b0dc272 12629
1c710c3c
DJ
12630if $ac_cs_silent; then
12631 exec 6>/dev/null
12632 ac_configure_extra_args="$ac_configure_extra_args --silent"
12633fi
0b0dc272 12634
1c710c3c
DJ
12635_ACEOF
12636cat >>$CONFIG_STATUS <<_ACEOF
12637if \$ac_cs_recheck; then
2aeb72e9
DD
12638 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12639 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12640fi
12641
12642_ACEOF
12643
1c710c3c 12644
11a67599 12645
2aeb72e9
DD
12646
12647
12648cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12649for ac_config_target in $ac_config_targets
12650do
2aeb72e9
DD
12651 case "$ac_config_target" in
12652 # Handling of arguments.
12653 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12655echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12656 { (exit 1); exit 1; }; };;
12657 esac
12658done
12659
12660# If the user did not use the arguments to specify the items to instantiate,
12661# then the envvar interface is used. Set only those that are not.
12662# We use the long form for the default assignment because of an extremely
12663# bizarre bug on SunOS 4.1.3.
12664if $ac_need_defaults; then
12665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12666fi
12667
12668# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12669# simply because there is no reason to put it here, and in addition,
1c710c3c 12670# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12671# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12672$debug ||
12673{
2aeb72e9 12674 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12675 trap '{ (exit 1); exit 1; }' 1 2 13 15
12676}
2aeb72e9 12677
1c710c3c
DJ
12678# Create a (secure) tmp directory for tmp files.
12679
12680{
2aeb72e9 12681 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12682 test -n "$tmp" && test -d "$tmp"
12683} ||
12684{
2aeb72e9
DD
12685 tmp=./confstat$$-$RANDOM
12686 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12687} ||
12688{
12689 echo "$me: cannot create a temporary directory in ." >&2
12690 { (exit 1); exit 1; }
12691}
12692
2aeb72e9
DD
12693_ACEOF
12694
12695cat >>$CONFIG_STATUS <<_ACEOF
12696
1c710c3c 12697#
2aeb72e9 12698# CONFIG_FILES section.
1c710c3c
DJ
12699#
12700
12701# No need to generate the scripts if there are no CONFIG_FILES.
12702# This happens for instance when ./config.status config.h
2aeb72e9
DD
12703if test -n "\$CONFIG_FILES"; then
12704 # Protect against being on the right side of a sed subst in config.status.
12705 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12706 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12707s,@SHELL@,$SHELL,;t t
12708s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12709s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12710s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12711s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12712s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12713s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12714s,@exec_prefix@,$exec_prefix,;t t
12715s,@prefix@,$prefix,;t t
12716s,@program_transform_name@,$program_transform_name,;t t
12717s,@bindir@,$bindir,;t t
12718s,@sbindir@,$sbindir,;t t
12719s,@libexecdir@,$libexecdir,;t t
12720s,@datadir@,$datadir,;t t
12721s,@sysconfdir@,$sysconfdir,;t t
12722s,@sharedstatedir@,$sharedstatedir,;t t
12723s,@localstatedir@,$localstatedir,;t t
12724s,@libdir@,$libdir,;t t
12725s,@includedir@,$includedir,;t t
12726s,@oldincludedir@,$oldincludedir,;t t
12727s,@infodir@,$infodir,;t t
12728s,@mandir@,$mandir,;t t
12729s,@build_alias@,$build_alias,;t t
12730s,@host_alias@,$host_alias,;t t
12731s,@target_alias@,$target_alias,;t t
12732s,@DEFS@,$DEFS,;t t
12733s,@ECHO_C@,$ECHO_C,;t t
12734s,@ECHO_N@,$ECHO_N,;t t
12735s,@ECHO_T@,$ECHO_T,;t t
12736s,@LIBS@,$LIBS,;t t
12737s,@build@,$build,;t t
12738s,@build_cpu@,$build_cpu,;t t
12739s,@build_vendor@,$build_vendor,;t t
12740s,@build_os@,$build_os,;t t
12741s,@build_noncanonical@,$build_noncanonical,;t t
12742s,@host_noncanonical@,$host_noncanonical,;t t
12743s,@target_noncanonical@,$target_noncanonical,;t t
12744s,@host@,$host,;t t
12745s,@host_cpu@,$host_cpu,;t t
12746s,@host_vendor@,$host_vendor,;t t
12747s,@host_os@,$host_os,;t t
12748s,@target@,$target,;t t
12749s,@target_cpu@,$target_cpu,;t t
12750s,@target_vendor@,$target_vendor,;t t
12751s,@target_os@,$target_os,;t t
12752s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12753s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12754s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12755s,@LN@,$LN,;t t
12756s,@LN_S@,$LN_S,;t t
12757s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12758s,@build_libsubdir@,$build_libsubdir,;t t
12759s,@build_subdir@,$build_subdir,;t t
12760s,@host_subdir@,$host_subdir,;t t
12761s,@target_subdir@,$target_subdir,;t t
12762s,@CC@,$CC,;t t
12763s,@CFLAGS@,$CFLAGS,;t t
12764s,@LDFLAGS@,$LDFLAGS,;t t
12765s,@CPPFLAGS@,$CPPFLAGS,;t t
12766s,@ac_ct_CC@,$ac_ct_CC,;t t
12767s,@EXEEXT@,$EXEEXT,;t t
12768s,@OBJEXT@,$OBJEXT,;t t
12769s,@CXX@,$CXX,;t t
12770s,@CXXFLAGS@,$CXXFLAGS,;t t
12771s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12772s,@GNATBIND@,$GNATBIND,;t t
12773s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12774s,@GNATMAKE@,$GNATMAKE,;t t
12775s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12776s,@do_compare@,$do_compare,;t t
12777s,@gmplibs@,$gmplibs,;t t
12778s,@gmpinc@,$gmpinc,;t t
12779s,@stage1_languages@,$stage1_languages,;t t
12780s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 12781s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
2aeb72e9
DD
12782s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12783s,@tooldir@,$tooldir,;t t
12784s,@build_tooldir@,$build_tooldir,;t t
12785s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12786s,@GDB_TK@,$GDB_TK,;t t
12787s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12788s,@build_configargs@,$build_configargs,;t t
12789s,@build_configdirs@,$build_configdirs,;t t
12790s,@host_configargs@,$host_configargs,;t t
12791s,@configdirs@,$configdirs,;t t
12792s,@target_configargs@,$target_configargs,;t t
12793s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12794s,@config_shell@,$config_shell,;t t
12795s,@YACC@,$YACC,;t t
12796s,@BISON@,$BISON,;t t
12797s,@M4@,$M4,;t t
12798s,@LEX@,$LEX,;t t
12799s,@FLEX@,$FLEX,;t t
12800s,@MAKEINFO@,$MAKEINFO,;t t
12801s,@EXPECT@,$EXPECT,;t t
12802s,@RUNTEST@,$RUNTEST,;t t
12803s,@AR@,$AR,;t t
12804s,@AS@,$AS,;t t
12805s,@DLLTOOL@,$DLLTOOL,;t t
12806s,@LD@,$LD,;t t
12807s,@LIPO@,$LIPO,;t t
12808s,@NM@,$NM,;t t
12809s,@RANLIB@,$RANLIB,;t t
12810s,@STRIP@,$STRIP,;t t
12811s,@WINDRES@,$WINDRES,;t t
901119ae 12812s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12813s,@OBJCOPY@,$OBJCOPY,;t t
12814s,@OBJDUMP@,$OBJDUMP,;t t
12815s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12816s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12817s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12818s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12819s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12820s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12821s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12822s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12823s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12824s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12825s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12826s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12827s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12828s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12829s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12830s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12831s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12832s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12833s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12834s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12835s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12836s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12837s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12838s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12839s,@MAINT@,$MAINT,;t t
12840s,@stage1_cflags@,$stage1_cflags,;t t
12841s,@stage1_checking@,$stage1_checking,;t t
12842s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12843s,@datarootdir@,$datarootdir,;t t
12844s,@docdir@,$docdir,;t t
12845s,@pdfdir@,$pdfdir,;t t
12846s,@htmldir@,$htmldir,;t t
12847s,@LIBOBJS@,$LIBOBJS,;t t
12848s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12849/@serialization_dependencies@/r $serialization_dependencies
12850s,@serialization_dependencies@,,;t t
12851/@host_makefile_frag@/r $host_makefile_frag
12852s,@host_makefile_frag@,,;t t
12853/@target_makefile_frag@/r $target_makefile_frag
12854s,@target_makefile_frag@,,;t t
12855/@alphaieee_frag@/r $alphaieee_frag
12856s,@alphaieee_frag@,,;t t
12857/@ospace_frag@/r $ospace_frag
12858s,@ospace_frag@,,;t t
12859CEOF
79c06341 12860
1c710c3c
DJ
12861_ACEOF
12862
2aeb72e9
DD
12863 cat >>$CONFIG_STATUS <<\_ACEOF
12864 # Split the substitutions into bite-sized pieces for seds with
12865 # small command number limits, like on Digital OSF/1 and HP-UX.
12866 ac_max_sed_lines=48
12867 ac_sed_frag=1 # Number of current file.
12868 ac_beg=1 # First line for current file.
12869 ac_end=$ac_max_sed_lines # Line after last line for current file.
12870 ac_more_lines=:
12871 ac_sed_cmds=
12872 while $ac_more_lines; do
12873 if test $ac_beg -gt 1; then
12874 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12875 else
12876 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12877 fi
12878 if test ! -s $tmp/subs.frag; then
12879 ac_more_lines=false
12880 else
12881 # The purpose of the label and of the branching condition is to
12882 # speed up the sed processing (if there are no `@' at all, there
12883 # is no need to browse any of the substitutions).
12884 # These are the two extra sed commands mentioned above.
12885 (echo ':t
12886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12887 if test -z "$ac_sed_cmds"; then
12888 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12889 else
12890 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12891 fi
12892 ac_sed_frag=`expr $ac_sed_frag + 1`
12893 ac_beg=$ac_end
12894 ac_end=`expr $ac_end + $ac_max_sed_lines`
12895 fi
12896 done
12897 if test -z "$ac_sed_cmds"; then
12898 ac_sed_cmds=cat
11a67599 12899 fi
2aeb72e9 12900fi # test -n "$CONFIG_FILES"
11a67599 12901
11a67599 12902_ACEOF
1c710c3c 12903cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12904for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12905 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12906 case $ac_file in
12907 - | *:- | *:-:* ) # input from stdin
12908 cat >$tmp/stdin
12909 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12910 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12911 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12912 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12913 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12914 esac
12915
2aeb72e9
DD
12916 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12917 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12918$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12919 X"$ac_file" : 'X\(//\)[^/]' \| \
12920 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12921 X"$ac_file" : 'X\(/\)' \| \
12922 . : '\(.\)' 2>/dev/null ||
1c710c3c 12923echo X"$ac_file" |
2aeb72e9
DD
12924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12926 /^X\(\/\/\)$/{ s//\1/; q; }
12927 /^X\(\/\).*/{ s//\1/; q; }
12928 s/.*/./; q'`
12929 { if $as_mkdir_p; then
12930 mkdir -p "$ac_dir"
12931 else
12932 as_dir="$ac_dir"
1c710c3c 12933 as_dirs=
2aeb72e9
DD
12934 while test ! -d "$as_dir"; do
12935 as_dirs="$as_dir $as_dirs"
12936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12938 X"$as_dir" : 'X\(//\)[^/]' \| \
12939 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12940 X"$as_dir" : 'X\(/\)' \| \
12941 . : '\(.\)' 2>/dev/null ||
1c710c3c 12942echo X"$as_dir" |
2aeb72e9
DD
12943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12945 /^X\(\/\/\)$/{ s//\1/; q; }
12946 /^X\(\/\).*/{ s//\1/; q; }
12947 s/.*/./; q'`
1c710c3c 12948 done
2aeb72e9
DD
12949 test ! -n "$as_dirs" || mkdir $as_dirs
12950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12951echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 12952 { (exit 1); exit 1; }; }; }
2aeb72e9 12953
1c710c3c 12954 ac_builddir=.
0b0dc272 12955
2aeb72e9 12956if test "$ac_dir" != .; then
1c710c3c 12957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
12958 # A "../" for each directory in $ac_dir_suffix.
12959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12960else
12961 ac_dir_suffix= ac_top_builddir=
12962fi
1c710c3c
DJ
12963
12964case $srcdir in
2aeb72e9 12965 .) # No --srcdir option. We are building in place.
1c710c3c 12966 ac_srcdir=.
2aeb72e9
DD
12967 if test -z "$ac_top_builddir"; then
12968 ac_top_srcdir=.
12969 else
12970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12971 fi ;;
12972 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 12973 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
12974 ac_top_srcdir=$srcdir ;;
12975 *) # Relative path.
12976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 12978esac
a4b9e93e 12979
2aeb72e9
DD
12980# Do not use `cd foo && pwd` to compute absolute paths, because
12981# the directories may not exist.
12982case `pwd` in
12983.) ac_abs_builddir="$ac_dir";;
12984*)
12985 case "$ac_dir" in
12986 .) ac_abs_builddir=`pwd`;;
12987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12989 esac;;
12990esac
12991case $ac_abs_builddir in
12992.) ac_abs_top_builddir=${ac_top_builddir}.;;
12993*)
12994 case ${ac_top_builddir}. in
12995 .) ac_abs_top_builddir=$ac_abs_builddir;;
12996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12998 esac;;
12999esac
13000case $ac_abs_builddir in
13001.) ac_abs_srcdir=$ac_srcdir;;
13002*)
13003 case $ac_srcdir in
13004 .) ac_abs_srcdir=$ac_abs_builddir;;
13005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13007 esac;;
13008esac
13009case $ac_abs_builddir in
13010.) ac_abs_top_srcdir=$ac_top_srcdir;;
13011*)
13012 case $ac_top_srcdir in
13013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13016 esac;;
13017esac
0b0dc272 13018
1c710c3c
DJ
13019
13020 case $INSTALL in
13021 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13022 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13023 esac
11a67599 13024
2aeb72e9
DD
13025 if test x"$ac_file" != x-; then
13026 { echo "$as_me:$LINENO: creating $ac_file" >&5
13027echo "$as_me: creating $ac_file" >&6;}
13028 rm -f "$ac_file"
13029 fi
13030 # Let's still pretend it is `configure' which instantiates (i.e., don't
13031 # use $as_me), people would be surprised to read:
13032 # /* config.h. Generated by config.status. */
13033 if test x"$ac_file" = x-; then
13034 configure_input=
13035 else
13036 configure_input="$ac_file. "
13037 fi
13038 configure_input=$configure_input"Generated from `echo $ac_file_in |
13039 sed 's,.*/,,'` by configure."
13040
13041 # First look for the input files in the build tree, otherwise in the
13042 # src tree.
13043 ac_file_inputs=`IFS=:
13044 for f in $ac_file_in; do
13045 case $f in
13046 -) echo $tmp/stdin ;;
13047 [\\/$]*)
13048 # Absolute (can't be DOS-style, as IFS=:)
13049 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13050echo "$as_me: error: cannot find input file: $f" >&2;}
13051 { (exit 1); exit 1; }; }
13052 echo "$f";;
13053 *) # Relative
13054 if test -f "$f"; then
13055 # Build tree
13056 echo "$f"
13057 elif test -f "$srcdir/$f"; then
13058 # Source tree
13059 echo "$srcdir/$f"
13060 else
13061 # /dev/null tree
13062 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13063echo "$as_me: error: cannot find input file: $f" >&2;}
13064 { (exit 1); exit 1; }; }
13065 fi;;
13066 esac
13067 done` || { (exit 1); exit 1; }
11a67599 13068_ACEOF
1c710c3c
DJ
13069cat >>$CONFIG_STATUS <<_ACEOF
13070 sed "$ac_vpsub
13071$extrasub
13072_ACEOF
13073cat >>$CONFIG_STATUS <<\_ACEOF
13074:t
13075/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13076s,@configure_input@,$configure_input,;t t
13077s,@srcdir@,$ac_srcdir,;t t
13078s,@abs_srcdir@,$ac_abs_srcdir,;t t
13079s,@top_srcdir@,$ac_top_srcdir,;t t
13080s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13081s,@builddir@,$ac_builddir,;t t
13082s,@abs_builddir@,$ac_abs_builddir,;t t
13083s,@top_builddir@,$ac_top_builddir,;t t
13084s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13085s,@INSTALL@,$ac_INSTALL,;t t
13086" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13087 rm -f $tmp/stdin
13088 if test x"$ac_file" != x-; then
13089 mv $tmp/out $ac_file
13090 else
13091 cat $tmp/out
13092 rm -f $tmp/out
13093 fi
11a67599 13094
2aeb72e9
DD
13095done
13096_ACEOF
11a67599 13097
2aeb72e9 13098cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13099
1c710c3c
DJ
13100{ (exit 0); exit 0; }
13101_ACEOF
671aa708 13102chmod +x $CONFIG_STATUS
1c710c3c
DJ
13103ac_clean_files=$ac_clean_files_save
13104
13105
13106# configure is writing to config.log, and then calls config.status.
13107# config.status does its own redirection, appending to config.log.
13108# Unfortunately, on DOS this fails, as config.log is still kept open
13109# by configure, so config.status won't be able to write to it; its
13110# output is simply discarded. So we exec the FD to /dev/null,
13111# effectively closing config.log, so it can be properly (re)opened and
13112# appended to by config.status. When coming back to configure, we
13113# need to make the FD available again.
13114if test "$no_create" != yes; then
13115 ac_cs_success=:
13116 ac_config_status_args=
13117 test "$silent" = yes &&
13118 ac_config_status_args="$ac_config_status_args --quiet"
13119 exec 5>/dev/null
13120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13121 exec 5>>config.log
13122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13123 # would make configure fail if this is the last instruction.
13124 $ac_cs_success || { (exit 1); exit 1; }
13125fi
79c06341 13126