]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
New target hook to calculate MII
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
2aeb72e9 3# Generated by GNU Autoconf 2.59.
671aa708 4#
2aeb72e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
1c710c3c
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
2aeb72e9 12# Be Bourne compatible
1c710c3c
DJ
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
1c710c3c 21fi
2aeb72e9 22DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 33$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
2aeb72e9 47 $as_unset $as_var
1c710c3c
DJ
48 fi
49done
50
51# Required to use basename.
2aeb72e9 52if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
53 as_expr=expr
54else
55 as_expr=false
56fi
57
2aeb72e9 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
2aeb72e9 66as_me=`$as_basename "$0" ||
1c710c3c
DJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
1c710c3c 71echo X/"$0" |
2aeb72e9
DD
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
1c710c3c 76
1c710c3c 77
2aeb72e9
DD
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 85
2aeb72e9
DD
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
11a67599
ZW
97fi
98
11a67599 99
2aeb72e9
DD
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
11a67599 116
2aeb72e9
DD
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
1c710c3c
DJ
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
2aeb72e9
DD
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
1c710c3c 137 /*)
2aeb72e9 138 if ("$as_dir/$as_base" -c '
11a67599
ZW
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
2aeb72e9 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11a67599 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
1c710c3c
DJ
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
1c710c3c 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
1c710c3c
DJ
165 sed '
166 N
2aeb72e9
DD
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 170 t loop
2aeb72e9
DD
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
1c710c3c 173 ' >$as_me.lineno &&
2aeb72e9 174 chmod +x $as_me.lineno ||
1c710c3c
DJ
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
1c710c3c
DJ
182 # Exit status is that of the last command.
183 exit
184}
185
186
2aeb72e9
DD
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
192esac
193
2aeb72e9 194if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
1c710c3c 207 as_ln_s='cp -p'
2aeb72e9
DD
208 else
209 as_ln_s='ln -s'
210 fi
1c710c3c
DJ
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
2aeb72e9 216rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
2aeb72e9 225as_executable_p="test -f"
0b0dc272 226
1c710c3c
DJ
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
2aeb72e9
DD
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
1c710c3c
DJ
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
2aeb72e9
DD
249exec 6>&1
250
1c710c3c
DJ
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
1c710c3c
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
2aeb72e9
DD
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
1c710c3c
DJ
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
c8aea42c 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
2aeb72e9 306datadir='${prefix}/share'
671aa708
NN
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
2aeb72e9 310libdir='${exec_prefix}/lib'
671aa708
NN
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
2aeb72e9
DD
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
2aeb72e9 321 eval "$ac_prev=\$ac_option"
671aa708
NN
322 ac_prev=
323 continue
324 fi
79c06341 325
2aeb72e9 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
2aeb72e9 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708 351
2aeb72e9 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 353 ac_prev=datadir ;;
2aeb72e9
DD
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
2aeb72e9 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
2aeb72e9
DD
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
2aeb72e9 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
2aeb72e9
DD
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
2aeb72e9 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
2aeb72e9
DD
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
2aeb72e9 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
2aeb72e9
DD
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
2aeb72e9
DD
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
602 export $ac_envvar ;;
603
671aa708 604 *)
1c710c3c
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
af71363e 619fi
af71363e 620
2aeb72e9
DD
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
671aa708 623do
2aeb72e9 624 eval ac_val=$`echo $ac_var`
1c710c3c 625 case $ac_val in
2aeb72e9
DD
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
0b0dc272 650
1c710c3c
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
2aeb72e9
DD
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
1c710c3c 678echo X"$0" |
2aeb72e9
DD
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708 684 srcdir=$ac_confdir
2aeb72e9 685 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
2aeb72e9
DD
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 697 { (exit 1); exit 1; }; }
2aeb72e9 698 fi
1c710c3c 699fi
2aeb72e9
DD
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 702 { (exit 1); exit 1; }; }
2aeb72e9
DD
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
2aeb72e9
DD
880_ACEOF
881
882 cat <<_ACEOF
1c710c3c
DJ
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
923fi
924
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
30b74385
RW
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 935 stage1. Mostly useful for compiler development.
30b74385
RW
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
1c710c3c 941 sub-packages for the host, target or build
30b74385 942 machine, or all sub-packages
1c710c3c
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
30b74385
RW
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
1c710c3c
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
30b74385
RW
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
30b74385
RW
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
1c710c3c 967 use sysroot as the system root during the build
c8aea42c
PB
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
30b74385 970 --with-build-time-tools=PATH
1c710c3c 971 use given path to find target tools during the build
30b74385
RW
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
1c710c3c
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
2aeb72e9
DD
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
c3a86da9
DJ
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
278a7a38
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
901119ae 995 WINDMC WINDMC for the host
278a7a38
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
901119ae
KT
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
1c710c3c
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
2aeb72e9 1039 ac_popdir=`pwd`
1c710c3c 1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1041 test -d $ac_dir || continue
1c710c3c
DJ
1042 ac_builddir=.
1043
2aeb72e9 1044if test "$ac_dir" != .; then
1c710c3c 1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1c710c3c
DJ
1051
1052case $srcdir in
2aeb72e9 1053 .) # No --srcdir option. We are building in place.
1c710c3c 1054 ac_srcdir=.
2aeb72e9
DD
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1061 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1c710c3c 1105esac
2aeb72e9
DD
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1c710c3c
DJ
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1121 fi
1122 cd $ac_popdir
1c710c3c
DJ
1123 done
1124fi
1125
2aeb72e9 1126test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
2aeb72e9 1130Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
2aeb72e9 1134 exit 0
0b0dc272 1135fi
2aeb72e9
DD
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1c710c3c
DJ
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
2aeb72e9 1142generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
2aeb72e9 1200ac_sep=
1c710c3c
DJ
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
2aeb72e9 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
2aeb72e9
DD
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1c710c3c
DJ
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
2aeb72e9
DD
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1260{
1c710c3c 1261 (set) 2>&1 |
2aeb72e9
DD
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1c710c3c 1264 sed -n \
2aeb72e9
DD
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1c710c3c 1268 *)
2aeb72e9
DD
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1271 ;;
2aeb72e9
DD
1272 esac;
1273}
1c710c3c
DJ
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
2aeb72e9
DD
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
2aeb72e9
DD
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1c710c3c
DJ
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
2aeb72e9
DD
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
2aeb72e9 1311 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
2aeb72e9
DD
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1320 exit $exit_status
2aeb72e9 1321 ' 0
1c710c3c
DJ
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1c710c3c
DJ
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
0b0dc272 1347
1c710c3c
DJ
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
671aa708 1360# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
671aa708 1367fi
2aeb72e9 1368for ac_site_file in $CONFIG_SITE; do
671aa708 1369 if test -r "$ac_site_file"; then
1c710c3c
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
1c710c3c
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
2aeb72e9
DD
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1c710c3c
DJ
1386 esac
1387 fi
671aa708 1388else
1c710c3c
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
2aeb72e9
DD
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
2aeb72e9
DD
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
671aa708
NN
1443fi
1444
2aeb72e9
DD
1445ac_ext=c
1446ac_cpp='$CPP $CPPFLAGS'
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1c710c3c
DJ
1451
1452
1453
1454
671aa708
NN
1455
1456
d02c69be 1457
1c710c3c
DJ
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
671aa708 1472ac_aux_dir=
2aeb72e9
DD
1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
671aa708
NN
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
2aeb72e9 1478 elif test -f $ac_dir/install.sh; then
671aa708
NN
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
2aeb72e9 1482 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
671aa708
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1491 { (exit 1); exit 1; }; }
671aa708 1492fi
2aeb72e9
DD
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1496
1c710c3c 1497# Make sure we can run config.sub.
2aeb72e9
DD
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1501 { (exit 1); exit 1; }; }
1502
2aeb72e9
DD
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
2aeb72e9
DD
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
2aeb72e9
DD
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1518 { (exit 1); exit 1; }; }
1519
1520fi
2aeb72e9
DD
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1523build=$ac_cv_build
2aeb72e9
DD
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1527
671aa708 1528
1c710c3c
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1532esac
1533
1534
af71363e 1535
1c710c3c
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1539esac
1540
af71363e 1541
1c710c3c
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1546esac
1547
af71363e 1548
1c710c3c
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
1c710c3c 1554 program_transform_name=s,y,y,
af71363e 1555
2aeb72e9
DD
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1560else
2aeb72e9
DD
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1567 { (exit 1); exit 1; }; }
1568
af71363e 1569fi
2aeb72e9
DD
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1572host=$ac_cv_host
2aeb72e9
DD
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
2aeb72e9
DD
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1589 { (exit 1); exit 1; }; }
1590
1591fi
2aeb72e9
DD
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1594target=$ac_cv_target
2aeb72e9
DD
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
671aa708 1606test "$program_prefix" != NONE &&
2aeb72e9 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
2aeb72e9 1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1617rm conftest.sed
af71363e 1618
671aa708
NN
1619
1620
775956d0
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
1c710c3c 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1633# OS/2's system install, which has a completely different semantic
775956d0 1634# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1637if test -z "$INSTALL"; then
1c710c3c
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1659 if test $ac_prog = install &&
1c710c3c 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
1c710c3c
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
775956d0 1667 else
1c710c3c
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
775956d0
NN
1670 fi
1671 fi
1672 done
1c710c3c
DJ
1673 done
1674 ;;
1675esac
1676done
1677
775956d0
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1681 INSTALL=$ac_cv_path_install
775956d0 1682 else
2aeb72e9
DD
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
775956d0 1685 # break other packages using the cache if that directory is
2aeb72e9 1686 # removed, or if the path is relative.
1c710c3c 1687 INSTALL=$ac_install_sh
775956d0
NN
1688 fi
1689fi
2aeb72e9
DD
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1c710c3c 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
2aeb72e9
DD
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
2aeb72e9
DD
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1721else
1722 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
ad6717df
PB
1725fi
1726
2aeb72e9
DD
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
fb0103e5 1733else
2aeb72e9
DD
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1736fi
1737
775956d0 1738
79c06341 1739### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
671aa708
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
79c06341
JL
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
671aa708 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1776
beeaf216
MM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
9f8c6739
JM
1781for ac_arg
1782do
beeaf216 1783 case "$ac_arg" in
8c79f3c4 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
d9acb717
RW
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
beeaf216
MM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1799
cc1e60ea 1800
671aa708 1801moveifchange=${srcdir}/move-if-change
79c06341 1802
ee6a22df
L
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
671aa708
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
671aa708
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
79c06341
JL
1816fi
1817
671aa708 1818topsrcdir=$srcpwd
5d4a5ee6 1819
671aa708 1820extra_host_args=
afabd8e6 1821
671aa708
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
79c06341 1825
1c710c3c 1826# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1827# configdirs, or target_configdirs; see the serialization section below.
79c06341 1828
1c710c3c
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
671aa708 1831# the Makefile, whether or not it's implicitly specified here.
79c06341 1832
671aa708
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
79c06341 1835
23f6b2f9
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
71b5d516 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1843
671aa708
NN
1844# these libraries are used by various programs built for the host environment
1845#
e69bf64b 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1847
671aa708
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
5395b47b 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
671aa708
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
291f172e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
671aa708
NN
1866 target-libgloss \
1867 target-newlib \
cb543528 1868 target-libstdc++-v3 \
6de9cd9a 1869 target-libmudflap \
77008252 1870 target-libssp \
6de9cd9a 1871 target-libgfortran \
7cd0cf9c 1872 target-boehm-gc \
77d187bc 1873 ${libgcj} \
d9cdb878 1874 target-libobjc \
953ff289
DN
1875 target-libada \
1876 target-libgomp"
671aa708 1877
4dbda6f0
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
671aa708 1880#
4dbda6f0 1881# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
97286f7f 1885target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1886
671aa708 1887################################################################################
79c06341 1888
671aa708
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
671aa708 1894configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1896build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1897
671aa708 1898################################################################################
79c06341 1899
671aa708 1900srcname="gnu development package"
79c06341 1901
671aa708
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
79c06341 1904
671aa708
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
79c06341 1909else
671aa708 1910 is_cross_compiler=yes
1c710c3c 1911fi
79c06341 1912
b4acb5ef 1913# Find the build and target subdir names.
8b87bb96 1914
2e9e6f68
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1925build_subdir="build-${build_noncanonical}"
1c710c3c 1926
2aeb72e9 1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1928if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
2e9e6f68
DJ
1931else
1932 build_libsubdir="$build_subdir"
2aeb72e9 1933fi;
215c351a
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
8b87bb96
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
1c710c3c 1943
79c06341 1944
671aa708
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
79c06341 1949
671aa708
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1955fi
1956
671aa708
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1962fi
1963
1c710c3c 1964# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1965# it's not even worth trying to configure, much less build, that tool.
79c06341 1966
671aa708
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
b4f96efe 1970 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1971 # We won't be able to build gdbtk without X.
1c710c3c 1972 enable_gdbtk=no
671aa708
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
79c06341 1976
671aa708 1977# Some tools are only suitable for building in a "native" situation.
1c710c3c 1978# Remove these if host!=target.
9e299237 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1980
671aa708
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
79c06341 1989
671aa708
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
ee6a22df
L
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
79c06341
JL
1997fi
1998
671aa708
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
79c06341 2004
671aa708 2005# Configure extra directories which are host specific
79c06341 2006
671aa708
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
79c06341 2011
4fab7234
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
1c710c3c 2016# Remove more programs from consideration, based on the host or
671aa708
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
ec8d6ddc 2019
671aa708
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
f2a0e225 2024 i[3456789]86-*-vsta)
b4f96efe 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2026 ;;
f2a0e225 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2029 ;;
95af8923
KT
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
f2a0e225 2033 i[3456789]86-*-mingw32*)
b4f96efe 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2036 ;;
f2a0e225 2037 i[3456789]86-*-beos*)
b4f96efe 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2039 ;;
671aa708 2040 *-*-cygwin*)
a22c2d8d 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2042 ;;
2043 *-*-netbsd*)
a22c2d8d 2044 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2045 ;;
2046 ppc*-*-pe)
b4f96efe 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2048 ;;
2049 powerpc-*-beos*)
b4f96efe 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2051 ;;
671aa708 2052esac
ec8d6ddc 2053
6de9cd9a 2054
2aeb72e9 2055# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2056if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
d9cdb878
AC
2059else
2060 ENABLE_LIBADA=yes
2aeb72e9 2061fi;
d9cdb878 2062if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2063 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2064fi
2065
2aeb72e9 2066# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2067if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2070else
2071 ENABLE_LIBSSP=yes
2aeb72e9 2072fi;
ef0087a7 2073
671aa708
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
ec8d6ddc 2089
6de9cd9a 2090
27079765
AH
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
dfcada9a 2093 case "${target}" in
1c00b503 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2095 # Enable libmudflap by default in GNU and friends.
dfcada9a 2096 ;;
a3e8d8b4
LR
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
dfcada9a
MM
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
27079765 2105fi
6de9cd9a 2106
27079765
AH
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
953ff289
DN
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
670cbfcf 2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
04879af3 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2116 ;;
cac90078 2117 *-*-darwin* | *-*-aix*)
953ff289
DN
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
27079765 2123fi
953ff289 2124
6de9cd9a 2125
671aa708
NN
2126case "${target}" in
2127 *-*-chorusos)
cb253473 2128 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2129 ;;
42c1cd8a 2130 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2131 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2132 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2133 ;;
42c1cd8a
AT
2134 *-*-darwin*)
2135 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2136 noconfigdirs="$noconfigdirs sim target-rda"
2137 noconfigdirs="$noconfigdirs ${libgcj}"
2138 ;;
671aa708 2139 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2140 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2141 ;;
c3f84f61 2142 *-*-freebsd*)
6de9cd9a
DN
2143 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2144 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2145 && test -f /usr/local/include/gmp.h; then
2146 with_gmp=/usr/local
2147 fi
2148
2149 # Skip some stuff that's unsupported on some FreeBSD configurations.
2150 case "${target}" in
2151 i*86-*-*) ;;
2152 alpha*-*-*) ;;
2153 *)
cb253473 2154 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2155 ;;
2156 esac
2157 ;;
ef4e7569
US
2158 *-*-kaos*)
2159 # Remove unsupported stuff on all kaOS configurations.
cb253473 2160 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2161 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2162 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2163 noconfigdirs="$noconfigdirs target-libgloss"
2164 ;;
671aa708
NN
2165 *-*-netbsd*)
2166 # Skip some stuff on all NetBSD configurations.
2167 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2168
2169 # Skip some stuff that's unsupported on some NetBSD configurations.
2170 case "${target}" in
2171 i*86-*-netbsdelf*) ;;
0590b963 2172 arm*-*-netbsdelf*) ;;
671aa708 2173 *)
cb253473 2174 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2175 ;;
2176 esac
2177 ;;
61fec9ff 2178 *-*-netware*)
cb253473 2179 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2180 ;;
2181 *-*-rtems*)
cb253473 2182 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2183 ;;
a8ba31f2
EC
2184 # The tpf target doesn't support gdb yet.
2185 *-*-tpf*)
cb253473 2186 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2187 ;;
5785c0ed 2188 *-*-uclinux*)
cb253473 2189 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2190 ;;
671aa708 2191 *-*-vxworks*)
cb253473 2192 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2193 ;;
2194 alpha*-dec-osf*)
2195 # ld works, but does not support shared libraries.
2196 # newlib is not 64 bit ready. I'm not sure about fileutils.
2197 # gas doesn't generate exception information.
2198 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2199 ;;
2200 alpha*-*-*vms*)
cb253473 2201 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2202 ;;
2203 alpha*-*-linux*)
2204 # newlib is not 64 bit ready
2205 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2206 ;;
671aa708
NN
2207 alpha*-*-*)
2208 # newlib is not 64 bit ready
cb253473 2209 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2210 ;;
33952f6f 2211 am33_2.0-*-linux*)
cb253473 2212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2213 ;;
671aa708 2214 sh-*-linux*)
cb253473 2215 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2216 ;;
671aa708 2217 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2218 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2219 noconfigdirs="$noconfigdirs target-examples"
2220 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2221 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2222 noconfigdirs="$noconfigdirs expect dejagnu"
2223 # the C++ libraries don't build on top of CE's C libraries
cb543528 2224 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2225 noconfigdirs="$noconfigdirs target-newlib"
2226 case "${host}" in
2227 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2228 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2229 ;;
2230 esac
2231 ;;
2232 arc-*-*)
cb253473 2233 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2234 ;;
ee6a22df 2235 arm-semi-aof )
ee6a22df 2236 ;;
671aa708 2237 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2238 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2239 ;;
b3f8d95d 2240 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2241 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2242 ;;
077fc835 2243 arm*-*-linux-gnueabi)
c4e9bf2b
AH
2244 noconfigdirs="$noconfigdirs target-qthreads"
2245 noconfigdirs="$noconfigdirs target-libobjc"
1c00b503
PB
2246 case ${with_newlib} in
2247 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2248 esac
077fc835 2249 ;;
972974fc 2250 arm*-*-symbianelf*)
cb253473 2251 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2252 ;;
671aa708 2253 arm-*-pe*)
cb253473 2254 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2255 ;;
671aa708 2256 thumb-*-coff)
cb253473 2257 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2258 ;;
2259 thumb-*-elf)
cb253473 2260 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2261 ;;
671aa708 2262 thumb-*-pe)
cb253473 2263 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2264 ;;
2265 arm-*-riscix*)
cb253473 2266 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2267 ;;
2268 avr-*-*)
cb253473 2269 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2270 ;;
6b65a26d 2271 bfin-*-*)
8b3c6c5a 2272 noconfigdirs="$noconfigdirs gdb"
61efc800 2273 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2274 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2275 fi
2276 ;;
671aa708 2277 c4x-*-* | tic4x-*-*)
cb253473 2278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2279 ;;
2280 c54x*-*-* | tic54x-*-*)
cb253473 2281 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2282 ;;
40d64b5a 2283 cris-*-* | crisv32-*-*)
4fab7234 2284 unsupported_languages="$unsupported_languages java"
40d64b5a 2285 case "${target}" in
c2e0d3a9 2286 *-*-aout)
7f26dfa3 2287 unsupported_languages="$unsupported_languages fortran"
4fab7234 2288 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2289 *-*-elf)
7f26dfa3 2290 unsupported_languages="$unsupported_languages fortran"
789ec619 2291 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2292 *-*-linux*)
789ec619 2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2294 *)
7f26dfa3 2295 unsupported_languages="$unsupported_languages fortran"
cb253473 2296 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2297 esac
671aa708 2298 ;;
25b656e7 2299 crx-*-*)
cb253473 2300 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2301 ;;
671aa708 2302 d10v-*-*)
cb253473 2303 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2304 ;;
2305 d30v-*-*)
cb253473 2306 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2307 ;;
2308 fr30-*-elf*)
cb253473 2309 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2310 ;;
2311 frv-*-*)
cb253473 2312 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2313 ;;
2314 h8300*-*-*)
cb253473 2315 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2316 ;;
2317 h8500-*-*)
cb253473 2318 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2319 ;;
ee6a22df 2320 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2321 ;;
671aa708
NN
2322 hppa*64*-*-linux* | parisc*64*-*-linux*)
2323 # In this case, it's because the hppa64-linux target is for
2324 # the kernel only at this point and has no libc, and thus no
2325 # headers, crt*.o, etc., all of which are needed by these.
2326 noconfigdirs="$noconfigdirs target-zlib"
2327 ;;
3e732ba0
JDA
2328 parisc*-*-linux* | hppa*-*-linux*)
2329 ;;
671aa708 2330 hppa*-*-*elf* | \
671aa708
NN
2331 hppa*-*-lites* | \
2332 hppa*-*-openbsd* | \
2333 hppa*64*-*-*)
cb253473 2334 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2335 ;;
2a332582
JDA
2336 hppa*-hp-hpux11*)
2337 noconfigdirs="$noconfigdirs ld shellutils"
2338 ;;
671aa708
NN
2339 hppa*-*-*)
2340 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2341 # build on HP-UX 10.20.
cb253473 2342 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2343 ;;
fb87ad5d 2344 i960-*-*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2346 ;;
671aa708
NN
2347 ia64*-*-elf*)
2348 # No gdb support yet.
b4f96efe 2349 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2350 ;;
2351 ia64*-**-hpux*)
2352 # No gdb or ld support yet.
cb253473 2353 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2354 ;;
ee6a22df 2355 i370-*-opened*)
ee6a22df 2356 ;;
f2a0e225 2357 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2358 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2359 ;;
f2a0e225 2360 i[3456789]86-*-linux*)
671aa708
NN
2361 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2362 # not build java stuff by default.
2363 case "${target}" in
2364 *-*-*libc1*)
cb253473 2365 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2366 esac
2367
2368 # This section makes it possible to build newlib natively on linux.
2369 # If we are using a cross compiler then don't configure newlib.
2370 if test x${is_cross_compiler} != xno ; then
3aa83176 2371 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2372 fi
2373 noconfigdirs="$noconfigdirs target-libgloss"
2374 # If we are not using a cross compiler, do configure newlib.
2375 # Note however, that newlib will only be configured in this situation
2376 # if the --with-newlib option has been given, because otherwise
2377 # 'target-newlib' will appear in skipdirs.
2378 ;;
f2a0e225 2379 i[3456789]86-*-mingw32*)
b91f0a41
CV
2380 target_configdirs="$target_configdirs target-winsup"
2381 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2382 ;;
95af8923
KT
2383 x86_64-*-mingw*)
2384 target_configdirs="$target_configdirs target-winsup"
2385 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2386 ;;
671aa708
NN
2387 *-*-cygwin*)
2388 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2389 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2390 # always build newlib if winsup directory is present.
b91f0a41 2391 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2392 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2393 elif test -d "$srcdir/newlib"; then
b91f0a41 2394 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2395 fi
1c710c3c 2396 ;;
ee6a22df
L
2397 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2398 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2399 ;;
f2a0e225 2400 i[3456789]86-*-pe)
cb253473 2401 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2402 ;;
f2a0e225 2403 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2404 # The linker does not yet know about weak symbols in COFF,
2405 # and is not configured to handle mixed ELF and COFF.
cb253473 2406 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2407 ;;
f2a0e225 2408 i[3456789]86-*-sco*)
cb253473 2409 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2410 ;;
f2a0e225 2411 i[3456789]86-*-solaris2*)
671aa708
NN
2412 noconfigdirs="$noconfigdirs target-libgloss"
2413 ;;
f2a0e225 2414 i[3456789]86-*-sysv4*)
cb253473 2415 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2416 ;;
f2a0e225 2417 i[3456789]86-*-beos*)
cb253473 2418 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2419 ;;
d1f8db0c
PB
2420 i[3456789]86-*-rdos*)
2421 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2422 ;;
fb87ad5d 2423 m32r-*-*)
cb253473 2424 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2425 ;;
671aa708 2426 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2427 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2428 ;;
2429 m68k-*-elf*)
cb253473 2430 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2431 ;;
2432 m68k-*-coff*)
cb253473 2433 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2434 ;;
2435 mcore-*-pe*)
2436 # The EPOC C++ environment does not support exceptions or rtti,
2437 # and so building libstdc++-v3 tends not to always work.
2438 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2439 ;;
2440 mmix-*-*)
4fab7234 2441 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2442 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2443 ;;
2444 mn10200-*-*)
cb253473 2445 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2446 ;;
2447 mn10300-*-*)
cb253473 2448 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2449 ;;
ab34901f 2450 mt-*-*)
79dd769c
AH
2451 noconfigdirs="$noconfigdirs sim"
2452 ;;
671aa708
NN
2453 powerpc-*-aix*)
2454 # copied from rs6000-*-* entry
cb253473 2455 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2456 ;;
2457 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2458 target_configdirs="$target_configdirs target-winsup"
cb253473 2459 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2460 # always build newlib.
2461 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2462 ;;
2463 # This is temporary until we can link against shared libraries
2464 powerpcle-*-solaris*)
cb253473 2465 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2466 ;;
2467 powerpc-*-beos*)
cb253473 2468 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2469 ;;
671aa708 2470 powerpc-*-eabi)
cb253473 2471 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2472 ;;
2473 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2474 ;;
671aa708 2475 rs6000-*-lynxos*)
cb253473 2476 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2477 ;;
2478 rs6000-*-aix*)
cb253473 2479 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2480 ;;
2481 rs6000-*-*)
cb253473 2482 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2483 ;;
2484 m68k-apollo-*)
cb253473 2485 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2486 ;;
2487 mips*-*-irix5*)
cb253473 2488 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2489 ;;
2490 mips*-*-irix6*)
671aa708
NN
2491 # Linking libjava exceeds command-line length limits on at least
2492 # IRIX 6.2, but not on IRIX 6.5.
2493 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2494 # <oldham@codesourcery.com>
cb253473 2495 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2496 ;;
671aa708 2497 mips*-*-bsd*)
cb253473 2498 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2499 ;;
d0fe5ad3 2500 mips64*-*-linux*)
1ee4c5a0 2501 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2502 ;;
671aa708
NN
2503 mips*-*-linux*)
2504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2505 ;;
2506 mips*-*-*)
cb253473 2507 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2508 ;;
2509 romp-*-*)
cb253473 2510 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2511 ;;
669f01d8 2512 sh-*-* | sh64-*-*)
671aa708 2513 case "${host}" in
f2a0e225
KC
2514 i[3456789]86-*-vsta) ;; # don't add gprof back in
2515 i[3456789]86-*-go32*) ;; # don't add gprof back in
2516 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2517 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2518 esac
cb253473 2519 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2520 ;;
671aa708 2521 sparc-*-elf*)
cb253473 2522 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2523 ;;
2524 sparc64-*-elf*)
cb253473 2525 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2526 ;;
2527 sparclite-*-*)
cb253473 2528 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2529 ;;
2530 sparc-*-sunos4*)
cb253473 2531 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2532 if test x${is_cross_compiler} != xno ; then
2533 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2534 else
2535 use_gnu_ld=no
2536 fi
2537 ;;
bba5e0ca 2538 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2539 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2540 ;;
671aa708
NN
2541 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2542 ;;
85d9c13c 2543 spu-*-*)
ea6f5c57 2544 skipdirs="target-libssp"
85d9c13c 2545 ;;
671aa708 2546 v810-*-*)
cb253473 2547 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2548 ;;
2549 v850-*-*)
cb253473 2550 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2551 ;;
2552 v850e-*-*)
cb253473 2553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2554 ;;
2555 v850ea-*-*)
cb253473 2556 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2557 ;;
2558 vax-*-vms)
cb253473 2559 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2560 ;;
2561 vax-*-*)
cb253473 2562 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2563 ;;
0d4f1b4e 2564 xtensa-*-*)
cb253473 2565 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2566 ;;
671aa708 2567 ip2k-*-*)
cb253473 2568 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2569 ;;
c3f84f61 2570 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2572 ;;
2573 *-*-lynxos*)
cb253473 2574 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2575 ;;
671aa708 2576 *-*-*)
cb253473 2577 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2578 ;;
2579esac
79c06341 2580
671aa708
NN
2581# If we aren't building newlib, then don't build libgloss, since libgloss
2582# depends upon some newlib header files.
2583case "${noconfigdirs}" in
2584 *target-libgloss*) ;;
2585 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2586esac
2587
671aa708
NN
2588# Work in distributions that contain no compiler tools, like Autoconf.
2589tentative_cc=""
2590host_makefile_frag=/dev/null
2591if test -d ${srcdir}/config ; then
2592case "${host}" in
2593 m68k-hp-hpux*)
2594 # Avoid "too much defining" errors from HPUX compiler.
2595 tentative_cc="cc -Wp,-H256000"
2596 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2597 # If it's HP/UX ar, this should be harmless.
2598 RANLIB="ar ts"
2599 ;;
2600 m68k-apollo-sysv*)
2601 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2602 ;;
2603 m68k-apollo-bsd*)
2604 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2605 # chokes on bfd, the compiler won't let you assign integers to enums, and
2606 # other problems. Defining CC to gcc is a questionable way to say "don't use
2607 # the apollo compiler" (the preferred version of GCC could be called cc,
2608 # or whatever), but I'm not sure leaving CC as cc is any better...
2609 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2610 # Used to have BISON=yacc.
2611 tentative_cc=gcc
2612 ;;
2613 m88k-dg-dgux*)
2614 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2615 ;;
2616 m88k-harris-cxux*)
2617 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2618 tentative_cc="cc -Xa"
2619 host_makefile_frag="config/mh-cxux"
2620 ;;
2621 m88k-motorola-sysv*)
2622 ;;
2623 mips*-dec-ultrix*)
2624 tentative_cc="cc -Wf,-XNg1000"
2625 host_makefile_frag="config/mh-decstation"
2626 ;;
2627 mips*-nec-sysv4*)
2628 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2629 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2630 host_makefile_frag="config/mh-necv4"
2631 ;;
2632 mips*-sgi-irix4*)
2633 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2634 # environment. Also bump switch table size so that cp-parse will
2635 # compile. Bump string length limit so linker builds.
2636 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2637 ;;
2638 mips*-*-sysv4*)
2639 host_makefile_frag="config/mh-sysv4"
2640 ;;
2641 mips*-*-sysv*)
2642 # This is for a MIPS running RISC/os 4.52C.
2643
2644 # This is needed for GDB, but needs to be in the top-level make because
2645 # if a library is compiled with the bsd headers and gets linked with the
2646 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2647 # a different size).
2648 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2649 # known except to select the sysv environment. Could we use /proc instead?
2650 # These "sysv environments" and "bsd environments" often end up being a pain.
2651 #
2652 # This is not part of CFLAGS because perhaps not all C compilers have this
2653 # option.
2654 tentative_cc="cc -systype sysv"
2655 ;;
2656 i370-ibm-opened*)
2657 tentative_cc="c89"
2658 ;;
f2a0e225 2659 i[3456789]86-*-sysv5*)
671aa708
NN
2660 host_makefile_frag="config/mh-sysv5"
2661 ;;
f2a0e225 2662 i[3456789]86-*-dgux*)
671aa708
NN
2663 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2664 host_makefile_frag="config/mh-dgux386"
2665 ;;
f2a0e225 2666 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2667 # The MetaWare compiler will generate a copyright message unless you
2668 # turn it off by adding the -Hnocopyr flag.
2669 tentative_cc="cc -Hnocopyr"
2670 ;;
f2a0e225 2671 i[3456789]86-ncr-sysv4*)
671aa708
NN
2672 # for an NCR 3000 (i486/SVR4) system.
2673 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2674 # This compiler not only emits obnoxious copyright messages every time
2675 # you run it, but it chokes and dies on a whole bunch of GNU source
2676 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2677 tentative_cc="/usr/ccs/ATT/cc"
2678 host_makefile_frag="config/mh-ncr3000"
2679 ;;
f2a0e225 2680 i[3456789]86-*-sco3.2v5*)
671aa708 2681 ;;
f2a0e225 2682 i[3456789]86-*-sco*)
671aa708
NN
2683 # The native C compiler botches some simple uses of const. Unfortunately,
2684 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2685 tentative_cc="cc -Dconst="
2686 host_makefile_frag="config/mh-sco"
2687 ;;
f2a0e225 2688 i[3456789]86-*-udk*)
671aa708
NN
2689 host_makefile_frag="config/mh-sysv5"
2690 ;;
f2a0e225 2691 i[3456789]86-*-solaris2*)
671aa708
NN
2692 host_makefile_frag="config/mh-sysv4"
2693 ;;
f2a0e225 2694 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2695 host_makefile_frag="config/mh-djgpp"
2696 ;;
2697 *-cygwin*)
2698 host_makefile_frag="config/mh-cygwin"
2699 ;;
2700 *-mingw32*)
1f5a6b84 2701 host_makefile_frag="config/mh-mingw"
671aa708 2702 ;;
95af8923 2703 *-mingw64*)
1f5a6b84 2704 host_makefile_frag="config/mh-mingw"
95af8923 2705 ;;
671aa708
NN
2706 *-interix*)
2707 host_makefile_frag="config/mh-interix"
2708 ;;
2709 vax-*-ultrix2*)
2710 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2711 tentative_cc=gcc
2712 ;;
2713 *-*-solaris2*)
2714 host_makefile_frag="config/mh-solaris"
2715 ;;
2716 m68k-sun-sunos*)
2717 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2718 # without overflowing the jump tables (-J says to use a 32 bit table)
2719 tentative_cc="cc -J"
2720 ;;
2721 *-hp-hpux*)
2722 tentative_cc="cc -Wp,-H256000"
2723 ;;
2724 *-*-hiux*)
2725 tentative_cc="cc -Wp,-H256000"
2726 ;;
2727 rs6000-*-lynxos*)
2728 # /bin/cc is less than useful for our purposes. Always use GCC
2729 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2730 host_makefile_frag="config/mh-lynxrs6k"
2731 ;;
45f366ab 2732 powerpc-*-darwin*)
be8fff81
RB
2733 host_makefile_frag="config/mh-ppc-darwin"
2734 ;;
d19bca38
PB
2735 powerpc-*-aix*)
2736 host_makefile_frag="config/mh-ppc-aix"
2737 ;;
2738 rs6000-*-aix*)
2739 host_makefile_frag="config/mh-ppc-aix"
2740 ;;
671aa708
NN
2741 *-*-lynxos*)
2742 # /bin/cc is less than useful for our purposes. Always use GCC
2743 tentative_cc="/bin/gcc"
2744 ;;
2745 *-*-sysv4*)
2746 host_makefile_frag="config/mh-sysv4"
2747 ;;
95c53c62
RS
2748 # This is placed last to prevent interfering with the cases above.
2749 i[3456789]86-*-*)
2750 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2751 host_makefile_frag="config/mh-x86omitfp"
2752 ;;
671aa708
NN
2753esac
2754fi
2755
55ffb5ed
NN
2756# If we aren't going to be using gcc, see if we can extract a definition
2757# of CC from the fragment.
2758# Actually, use the 'pre-extracted' version above.
2759if test -z "${CC}" && test "${build}" = "${host}" ; then
2760 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2761 found=
2762 for dir in $PATH; do
2763 test -z "$dir" && dir=.
2764 if test -f $dir/gcc; then
2765 found=yes
2766 break
2767 fi
2768 done
2769 IFS="$save_ifs"
2770 if test -z "${found}" && test -n "${tentative_cc}" ; then
2771 CC=$tentative_cc
2772 fi
2773fi
2774
2775if test "${build}" != "${host}" ; then
55ffb5ed 2776 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed 2777else
fb0103e5 2778 CC_FOR_BUILD="\$(CC)"
c3a86da9
DJ
2779fi
2780
2781ac_ext=c
1c710c3c
DJ
2782ac_cpp='$CPP $CPPFLAGS'
2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2789echo "$as_me:$LINENO: checking for $ac_word" >&5
2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2791if test "${ac_cv_prog_CC+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793else
2794 if test -n "$CC"; then
2795 ac_cv_prog_CC="$CC" # Let the user override the test.
2796else
2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798for as_dir in $PATH
2799do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808done
2809done
2810
2811fi
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2aeb72e9
DD
2815 echo "$as_me:$LINENO: result: $CC" >&5
2816echo "${ECHO_T}$CC" >&6
1c710c3c 2817else
2aeb72e9
DD
2818 echo "$as_me:$LINENO: result: no" >&5
2819echo "${ECHO_T}no" >&6
1c710c3c
DJ
2820fi
2821
2822fi
2823if test -z "$ac_cv_prog_CC"; then
2824 ac_ct_CC=$CC
fb0103e5
RG
2825 # Extract the first word of "gcc", so it can be a program name with args.
2826set dummy gcc; ac_word=$2
2aeb72e9
DD
2827echo "$as_me:$LINENO: checking for $ac_word" >&5
2828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2829if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
2832 if test -n "$ac_ct_CC"; then
2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2842 ac_cv_prog_ac_ct_CC="gcc"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846done
2847done
2848
2849fi
2850fi
2851ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2855else
2aeb72e9
DD
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
1c710c3c
DJ
2858fi
2859
2aeb72e9 2860 CC=$ac_ct_CC
1c710c3c
DJ
2861else
2862 CC="$ac_cv_prog_CC"
2863fi
2864
2865if test -z "$CC"; then
2aeb72e9
DD
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2868set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2869echo "$as_me:$LINENO: checking for $ac_word" >&5
2870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2871if test "${ac_cv_prog_CC+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2873else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876else
1c710c3c
DJ
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2884 ac_cv_prog_CC="${ac_tool_prefix}cc"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889done
2890
0b0dc272 2891fi
0b0dc272 2892fi
1c710c3c 2893CC=$ac_cv_prog_CC
af71363e 2894if test -n "$CC"; then
2aeb72e9
DD
2895 echo "$as_me:$LINENO: result: $CC" >&5
2896echo "${ECHO_T}$CC" >&6
0b0dc272 2897else
2aeb72e9
DD
2898 echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
0b0dc272
AM
2900fi
2901
2aeb72e9
DD
2902fi
2903if test -z "$ac_cv_prog_CC"; then
2904 ac_ct_CC=$CC
2905 # Extract the first word of "cc", so it can be a program name with args.
2906set dummy cc; ac_word=$2
2907echo "$as_me:$LINENO: checking for $ac_word" >&5
2908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 if test -n "$ac_ct_CC"; then
2913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_ac_ct_CC="cc"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
11a67599 2925 fi
2aeb72e9
DD
2926done
2927done
2928
2929fi
2930fi
2931ac_ct_CC=$ac_cv_prog_ac_ct_CC
2932if test -n "$ac_ct_CC"; then
2933 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2934echo "${ECHO_T}$ac_ct_CC" >&6
2935else
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938fi
2939
2940 CC=$ac_ct_CC
2941else
2942 CC="$ac_cv_prog_CC"
2943fi
2944
1c710c3c 2945fi
55ffb5ed
NN
2946if test -z "$CC"; then
2947 # Extract the first word of "cc", so it can be a program name with args.
2948set dummy cc; ac_word=$2
2aeb72e9
DD
2949echo "$as_me:$LINENO: checking for $ac_word" >&5
2950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2951if test "${ac_cv_prog_CC+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2953else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956else
0b0dc272 2957 ac_prog_rejected=no
1c710c3c
DJ
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2966 ac_prog_rejected=yes
2967 continue
2968 fi
2969 ac_cv_prog_CC="cc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973done
2974done
2975
55ffb5ed
NN
2976if test $ac_prog_rejected = yes; then
2977 # We found a bogon in the path, so make sure we never use it.
2978 set dummy $ac_cv_prog_CC
2979 shift
1c710c3c 2980 if test $# != 0; then
55ffb5ed
NN
2981 # We chose a different compiler from the bogus one.
2982 # However, it has the same basename, so the bogon will be chosen
2983 # first if we set CC to just the basename; use the full file name.
2984 shift
1c710c3c 2985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2986 fi
2987fi
2988fi
2989fi
1c710c3c 2990CC=$ac_cv_prog_CC
55ffb5ed 2991if test -n "$CC"; then
2aeb72e9
DD
2992 echo "$as_me:$LINENO: result: $CC" >&5
2993echo "${ECHO_T}$CC" >&6
55ffb5ed 2994else
2aeb72e9
DD
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
55ffb5ed
NN
2997fi
2998
1c710c3c
DJ
2999fi
3000if test -z "$CC"; then
3001 if test -n "$ac_tool_prefix"; then
2aeb72e9 3002 for ac_prog in cl
1c710c3c
DJ
3003 do
3004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3006echo "$as_me:$LINENO: checking for $ac_word" >&5
3007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3008if test "${ac_cv_prog_CC+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3010else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
1c710c3c
DJ
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026done
3027
55ffb5ed
NN
3028fi
3029fi
1c710c3c 3030CC=$ac_cv_prog_CC
55ffb5ed 3031if test -n "$CC"; then
2aeb72e9
DD
3032 echo "$as_me:$LINENO: result: $CC" >&5
3033echo "${ECHO_T}$CC" >&6
a4b9e93e 3034else
2aeb72e9
DD
3035 echo "$as_me:$LINENO: result: no" >&5
3036echo "${ECHO_T}no" >&6
fb0103e5 3037fi
af71363e 3038
1c710c3c
DJ
3039 test -n "$CC" && break
3040 done
af71363e 3041fi
1c710c3c
DJ
3042if test -z "$CC"; then
3043 ac_ct_CC=$CC
2aeb72e9 3044 for ac_prog in cl
1c710c3c
DJ
3045do
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3048echo "$as_me:$LINENO: checking for $ac_word" >&5
3049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3050if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3052else
1c710c3c
DJ
3053 if test -n "$ac_ct_CC"; then
3054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3055else
1c710c3c
DJ
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3063 ac_cv_prog_ac_ct_CC="$ac_prog"
3064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3066 fi
3067done
3068done
3069
af71363e
AS
3070fi
3071fi
1c710c3c
DJ
3072ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3074 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3075echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3076else
2aeb72e9
DD
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
af71363e 3079fi
0b0dc272 3080
1c710c3c
DJ
3081 test -n "$ac_ct_CC" && break
3082done
3083
2aeb72e9 3084 CC=$ac_ct_CC
1c710c3c
DJ
3085fi
3086
3087fi
3088
3089
3090test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3091See \`config.log' for more details." >&5
3092echo "$as_me: error: no acceptable C compiler found in \$PATH
3093See \`config.log' for more details." >&2;}
3094 { (exit 1); exit 1; }; }
3095
3096# Provide some information about the compiler.
2aeb72e9
DD
3097echo "$as_me:$LINENO:" \
3098 "checking for C compiler version" >&5
1c710c3c 3099ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3100{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3101 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
2aeb72e9
DD
3105{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3106 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }
2aeb72e9
DD
3110{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3111 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }
3115
3116cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131ac_clean_files_save=$ac_clean_files
3132ac_clean_files="$ac_clean_files a.out a.exe b.out"
3133# Try to create an executable without -o first, disregard a.out.
3134# It will help us diagnose broken compilers, and finding out an intuition
3135# of exeext.
2aeb72e9
DD
3136echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3137echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3138ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3139if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3140 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; then
2aeb72e9
DD
3144 # Find the output, starting from the most likely. This scheme is
3145# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3146# resort.
3147
3148# Be careful to initialize this variable, since it used to be cached.
3149# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3150ac_cv_exeext=
3151# b.out is created by i960 compilers.
3152for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3153do
3154 test -f "$ac_file" || continue
3155 case $ac_file in
2aeb72e9
DD
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3157 ;;
3158 conftest.$ac_ext )
3159 # This is the source file.
1c710c3c
DJ
3160 ;;
3161 [ab].out )
3162 # We found the default executable, but exeext='' is most
3163 # certainly right.
3164 break;;
3165 *.* )
2aeb72e9
DD
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 # FIXME: I believe we export ac_cv_exeext for Libtool,
3168 # but it would be cool to find out if it's true. Does anybody
3169 # maintain Libtool? --akim.
3170 export ac_cv_exeext
1c710c3c
DJ
3171 break;;
3172 * )
3173 break;;
3174 esac
3175done
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3181See \`config.log' for more details." >&5
3182echo "$as_me: error: C compiler cannot create executables
3183See \`config.log' for more details." >&2;}
3184 { (exit 77); exit 77; }; }
3185fi
3186
3187ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3188echo "$as_me:$LINENO: result: $ac_file" >&5
3189echo "${ECHO_T}$ac_file" >&6
1c710c3c 3190
2aeb72e9 3191# Check the compiler produces executables we can run. If not, either
1c710c3c 3192# the compiler is broken, or we cross compile.
2aeb72e9
DD
3193echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3194echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3195# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3196# If not cross compiling, check that we can run a simple program.
3197if test "$cross_compiling" != yes; then
3198 if { ac_try='./$ac_file'
2aeb72e9
DD
3199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200 (eval $ac_try) 2>&5
1c710c3c
DJ
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 cross_compiling=no
3205 else
3206 if test "$cross_compiling" = maybe; then
3207 cross_compiling=yes
3208 else
3209 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3210If you meant to cross compile, use \`--host'.
3211See \`config.log' for more details." >&5
3212echo "$as_me: error: cannot run C compiled programs.
3213If you meant to cross compile, use \`--host'.
3214See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3216 fi
3217 fi
3218fi
2aeb72e9
DD
3219echo "$as_me:$LINENO: result: yes" >&5
3220echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3221
3222rm -f a.out a.exe conftest$ac_cv_exeext b.out
3223ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
3227echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3228echo "$as_me:$LINENO: result: $cross_compiling" >&5
3229echo "${ECHO_T}$cross_compiling" >&6
3230
3231echo "$as_me:$LINENO: checking for suffix of executables" >&5
3232echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234 (eval $ac_link) 2>&5
1c710c3c
DJ
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240# work properly (i.e., refer to `conftest.exe'), while it won't with
3241# `rm'.
3242for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
2aeb72e9 3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3247 export ac_cv_exeext
1c710c3c
DJ
3248 break;;
3249 * ) break;;
3250 esac
3251done
af71363e 3252else
1c710c3c
DJ
3253 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3254See \`config.log' for more details." >&5
3255echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3256See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3258fi
3259
3260rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3261echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3262echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3263
3264rm -f conftest.$ac_ext
3265EXEEXT=$ac_cv_exeext
3266ac_exeext=$EXEEXT
2aeb72e9
DD
3267echo "$as_me:$LINENO: checking for suffix of object files" >&5
3268echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3269if test "${ac_cv_objext+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272 cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278
3279int
3280main ()
3281{
3282
3283 ;
3284 return 0;
3285}
3286_ACEOF
3287rm -f conftest.o conftest.obj
2aeb72e9
DD
3288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>&5
1c710c3c
DJ
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; then
2aeb72e9 3293 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3294 case $ac_file in
2aeb72e9 3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3296 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3297 break;;
3298 esac
3299done
3300else
3301 echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3305See \`config.log' for more details." >&5
3306echo "$as_me: error: cannot compute suffix of object files: cannot compile
3307See \`config.log' for more details." >&2;}
3308 { (exit 1); exit 1; }; }
3309fi
3310
3311rm -f conftest.$ac_cv_objext conftest.$ac_ext
3312fi
2aeb72e9
DD
3313echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3314echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3315OBJEXT=$ac_cv_objext
3316ac_objext=$OBJEXT
2aeb72e9
DD
3317echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3318echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3319if test "${ac_cv_c_compiler_gnu+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 cat >conftest.$ac_ext <<_ACEOF
3323/* confdefs.h. */
3324_ACEOF
3325cat confdefs.h >>conftest.$ac_ext
3326cat >>conftest.$ac_ext <<_ACEOF
3327/* end confdefs.h. */
3328
3329int
3330main ()
3331{
3332#ifndef __GNUC__
3333 choke me
3334#endif
3335
3336 ;
3337 return 0;
3338}
3339_ACEOF
3340rm -f conftest.$ac_objext
2aeb72e9
DD
3341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest.$ac_objext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
1c710c3c
DJ
3362 ac_compiler_gnu=yes
3363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
2aeb72e9 3367ac_compiler_gnu=no
1c710c3c 3368fi
2aeb72e9 3369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3370ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371
3372fi
2aeb72e9
DD
3373echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3374echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3375GCC=`test $ac_compiler_gnu = yes && echo yes`
3376ac_test_CFLAGS=${CFLAGS+set}
3377ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3378CFLAGS="-g"
3379echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3380echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3381if test "${ac_cv_prog_cc_g+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383else
2aeb72e9 3384 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3389/* end confdefs.h. */
3390
3391int
3392main ()
3393{
3394
3395 ;
3396 return 0;
3397}
3398_ACEOF
3399rm -f conftest.$ac_objext
2aeb72e9
DD
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
1c710c3c
DJ
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
1c710c3c
DJ
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3420 (exit $ac_status); }; }; then
55ffb5ed
NN
3421 ac_cv_prog_cc_g=yes
3422else
1c710c3c
DJ
3423 echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3425
2aeb72e9 3426ac_cv_prog_cc_g=no
0b0dc272 3427fi
2aeb72e9 3428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3429fi
2aeb72e9
DD
3430echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3431echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3432if test "$ac_test_CFLAGS" = set; then
1c710c3c 3433 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3434elif test $ac_cv_prog_cc_g = yes; then
3435 if test "$GCC" = yes; then
3436 CFLAGS="-g -O2"
3437 else
3438 CFLAGS="-g"
3439 fi
3440else
3441 if test "$GCC" = yes; then
3442 CFLAGS="-O2"
3443 else
3444 CFLAGS=
3445 fi
3446fi
2aeb72e9
DD
3447echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3448echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3449if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
2aeb72e9 3452 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3453ac_save_CC=$CC
3454cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#include <stdarg.h>
3461#include <stdio.h>
3462#include <sys/types.h>
3463#include <sys/stat.h>
3464/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3465struct buf { int x; };
3466FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467static char *e (p, i)
3468 char **p;
3469 int i;
3470{
3471 return p[i];
3472}
3473static char *f (char * (*g) (char **, int), char **p, ...)
3474{
3475 char *s;
3476 va_list v;
3477 va_start (v,p);
3478 s = g (p, va_arg (v,int));
3479 va_end (v);
3480 return s;
3481}
3482
3483/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3484 function prototypes and stuff, but not '\xHH' hex character constants.
3485 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3486 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3488 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3489 that's true only with -std1. */
1c710c3c
DJ
3490int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491
3492int test (int i, double x);
3493struct s1 {int (*f) (int a);};
3494struct s2 {int (*f) (double a);};
3495int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3496int argc;
3497char **argv;
3498int
3499main ()
3500{
3501return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 ;
3503 return 0;
3504}
3505_ACEOF
2aeb72e9
DD
3506# Don't try gcc -ansi; that turns off useful extensions and
3507# breaks some systems' header files.
3508# AIX -qlanglvl=ansi
3509# Ultrix and OSF/1 -std1
3510# HP-UX 10.20 and later -Ae
3511# HP-UX older versions -Aa -D_HPUX_SOURCE
3512# SVR4 -Xc -D__EXTENSIONS__
3513for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3514do
3515 CC="$ac_save_CC $ac_arg"
3516 rm -f conftest.$ac_objext
2aeb72e9
DD
3517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3518 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3519 ac_status=$?
3520 grep -v '^ *+' conftest.er1 >conftest.err
3521 rm -f conftest.er1
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_c_werror_flag"
3526 || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 (eval $ac_try) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_cv_prog_cc_stdc=$ac_arg
3539break
1c710c3c
DJ
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544fi
2aeb72e9 3545rm -f conftest.err conftest.$ac_objext
1c710c3c 3546done
2aeb72e9 3547rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3548CC=$ac_save_CC
3549
3550fi
2aeb72e9
DD
3551
3552case "x$ac_cv_prog_cc_stdc" in
3553 x|xno)
3554 echo "$as_me:$LINENO: result: none needed" >&5
3555echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3556 *)
2aeb72e9
DD
3557 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3558echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3559 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3560esac
3561
2aeb72e9
DD
3562# Some people use a C++ compiler to compile C. Since we use `exit',
3563# in C++ we need to declare it. In case someone uses the same compiler
3564# for both compiling C and C++ we need to have the C++ compiler decide
3565# the declaration of exit, since it's the most demanding environment.
3566cat >conftest.$ac_ext <<_ACEOF
3567#ifndef __cplusplus
3568 choke me
3569#endif
3570_ACEOF
3571rm -f conftest.$ac_objext
3572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 for ac_declaration in \
3594 '' \
3595 'extern "C" void std::exit (int) throw (); using std::exit;' \
3596 'extern "C" void std::exit (int); using std::exit;' \
3597 'extern "C" void exit (int) throw ();' \
3598 'extern "C" void exit (int);' \
3599 'void exit (int);'
3600do
3601 cat >conftest.$ac_ext <<_ACEOF
3602/* confdefs.h. */
3603_ACEOF
3604cat confdefs.h >>conftest.$ac_ext
3605cat >>conftest.$ac_ext <<_ACEOF
3606/* end confdefs.h. */
3607$ac_declaration
3608#include <stdlib.h>
3609int
3610main ()
3611{
3612exit (42);
3613 ;
3614 return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext
3618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -z "$ac_c_werror_flag"
3627 || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 (eval $ac_try) 2>&5
3636 ac_status=$?
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 :
3640else
3641 echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644continue
3645fi
3646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h. */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h. */
3653$ac_declaration
3654int
3655main ()
3656{
3657exit (42);
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
3663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -z "$ac_c_werror_flag"
3672 || test ! -s conftest.err'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; } &&
3678 { ac_try='test -s conftest.$ac_objext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 break
3685else
3686 echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689fi
3690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691done
3692rm -f conftest*
3693if test -n "$ac_declaration"; then
3694 echo '#ifdef __cplusplus' >>confdefs.h
3695 echo $ac_declaration >>confdefs.h
3696 echo '#endif' >>confdefs.h
3697fi
3698
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705ac_ext=c
3706ac_cpp='$CPP $CPPFLAGS'
3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711ac_ext=cc
3712ac_cpp='$CXXCPP $CPPFLAGS'
3713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3716if test -n "$ac_tool_prefix"; then
3717 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3718 do
3719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721echo "$as_me:$LINENO: checking for $ac_word" >&5
3722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723if test "${ac_cv_prog_CXX+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726 if test -n "$CXX"; then
3727 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740done
3741done
55ffb5ed 3742
c3a86da9
DJ
3743fi
3744fi
3745CXX=$ac_cv_prog_CXX
3746if test -n "$CXX"; then
2aeb72e9
DD
3747 echo "$as_me:$LINENO: result: $CXX" >&5
3748echo "${ECHO_T}$CXX" >&6
c3a86da9 3749else
2aeb72e9
DD
3750 echo "$as_me:$LINENO: result: no" >&5
3751echo "${ECHO_T}no" >&6
c3a86da9
DJ
3752fi
3753
3754 test -n "$CXX" && break
3755 done
3756fi
3757if test -z "$CXX"; then
3758 ac_ct_CXX=$CXX
2aeb72e9 3759 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3760do
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3763echo "$as_me:$LINENO: checking for $ac_word" >&5
3764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3765if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 if test -n "$ac_ct_CXX"; then
3769 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3778 ac_cv_prog_ac_ct_CXX="$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782done
3783done
3784
3785fi
3786fi
3787ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3788if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3789 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3790echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3791else
2aeb72e9
DD
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
c3a86da9
DJ
3794fi
3795
3796 test -n "$ac_ct_CXX" && break
3797done
2aeb72e9 3798test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3799
2aeb72e9 3800 CXX=$ac_ct_CXX
c3a86da9
DJ
3801fi
3802
2aeb72e9 3803
c3a86da9 3804# Provide some information about the compiler.
2aeb72e9
DD
3805echo "$as_me:$LINENO:" \
3806 "checking for C++ compiler version" >&5
c3a86da9 3807ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3808{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3809 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }
2aeb72e9
DD
3813{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3814 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3815 ac_status=$?
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }
2aeb72e9
DD
3818{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3819 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }
3823
2aeb72e9
DD
3824echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3825echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3826if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829 cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */
3835
3836int
3837main ()
3838{
3839#ifndef __GNUC__
3840 choke me
3841#endif
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847rm -f conftest.$ac_objext
2aeb72e9
DD
3848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_cxx_werror_flag"
3857 || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
c3a86da9
DJ
3869 ac_compiler_gnu=yes
3870else
3871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
2aeb72e9 3874ac_compiler_gnu=no
c3a86da9 3875fi
2aeb72e9 3876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3877ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3878
3879fi
2aeb72e9
DD
3880echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3881echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3882GXX=`test $ac_compiler_gnu = yes && echo yes`
3883ac_test_CXXFLAGS=${CXXFLAGS+set}
3884ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3885CXXFLAGS="-g"
3886echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3887echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3888if test "${ac_cv_prog_cxx_g+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
2aeb72e9 3891 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
3897
3898int
3899main ()
3900{
3901
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906rm -f conftest.$ac_objext
2aeb72e9
DD
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_cxx_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
c3a86da9
DJ
3928 ac_cv_prog_cxx_g=yes
3929else
3930 echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
2aeb72e9
DD
3933ac_cv_prog_cxx_g=no
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936fi
3937echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3938echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3939if test "$ac_test_CXXFLAGS" = set; then
3940 CXXFLAGS=$ac_save_CXXFLAGS
3941elif test $ac_cv_prog_cxx_g = yes; then
3942 if test "$GXX" = yes; then
3943 CXXFLAGS="-g -O2"
3944 else
3945 CXXFLAGS="-g"
3946 fi
3947else
3948 if test "$GXX" = yes; then
3949 CXXFLAGS="-O2"
3950 else
3951 CXXFLAGS=
3952 fi
3953fi
3954for ac_declaration in \
3955 '' \
3956 'extern "C" void std::exit (int) throw (); using std::exit;' \
3957 'extern "C" void std::exit (int); using std::exit;' \
3958 'extern "C" void exit (int) throw ();' \
3959 'extern "C" void exit (int);' \
3960 'void exit (int);'
3961do
3962 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3963/* confdefs.h. */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h. */
2aeb72e9
DD
3968$ac_declaration
3969#include <stdlib.h>
c3a86da9
DJ
3970int
3971main ()
3972{
2aeb72e9 3973exit (42);
c3a86da9
DJ
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978rm -f conftest.$ac_objext
2aeb72e9
DD
3979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3986 (exit $ac_status); } &&
3987 { ac_try='test -z "$ac_cxx_werror_flag"
3988 || test ! -s conftest.err'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 (eval $ac_try) 2>&5
3991 ac_status=$?
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
c3a86da9
DJ
4000 :
4001else
4002 echo "$as_me: failed program was:" >&5
4003sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4004
2aeb72e9
DD
4005continue
4006fi
4007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4009/* confdefs.h. */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h. */
2aeb72e9 4014$ac_declaration
c3a86da9
DJ
4015int
4016main ()
4017{
2aeb72e9 4018exit (42);
c3a86da9
DJ
4019 ;
4020 return 0;
4021}
4022_ACEOF
4023rm -f conftest.$ac_objext
2aeb72e9
DD
4024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4031 (exit $ac_status); } &&
4032 { ac_try='test -z "$ac_cxx_werror_flag"
4033 || test ! -s conftest.err'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4045 break
c3a86da9
DJ
4046else
4047 echo "$as_me: failed program was:" >&5
4048sed 's/^/| /' conftest.$ac_ext >&5
4049
11a67599 4050fi
2aeb72e9
DD
4051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052done
4053rm -f conftest*
4054if test -n "$ac_declaration"; then
4055 echo '#ifdef __cplusplus' >>confdefs.h
4056 echo $ac_declaration >>confdefs.h
4057 echo '#endif' >>confdefs.h
c3a86da9
DJ
4058fi
4059
4060ac_ext=c
4061ac_cpp='$CPP $CPPFLAGS'
4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065
4066
4067# We must set the default linker to the linker used by gcc for the correct
4068# operation of libtool. If LD is not defined and we are using gcc, try to
4069# set the LD default to the ld used by gcc.
4070if test -z "$LD"; then
4071 if test "$GCC" = yes; then
4072 case $build in
4073 *-*-mingw*)
4074 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4075 *)
4076 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4077 esac
4078 case $gcc_prog_ld in
4079 # Accept absolute paths.
4080 [\\/]* | [A-Za-z]:[\\/]*)
4081 LD="$gcc_prog_ld" ;;
4082 esac
4083 fi
23f6b2f9
PB
4084fi
4085
23f6b2f9
PB
4086
4087
55ffb5ed 4088
1c710c3c
DJ
4089if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4091set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4092echo "$as_me:$LINENO: checking for $ac_word" >&5
4093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4094if test "${ac_cv_prog_GNATBIND+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4096else
4097 if test -n "$GNATBIND"; then
4098 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4099else
1c710c3c
DJ
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4107 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111done
4112done
4113
55ffb5ed
NN
4114fi
4115fi
1c710c3c 4116GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4117if test -n "$GNATBIND"; then
2aeb72e9
DD
4118 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4119echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4120else
2aeb72e9
DD
4121 echo "$as_me:$LINENO: result: no" >&5
4122echo "${ECHO_T}no" >&6
55ffb5ed
NN
4123fi
4124
1c710c3c 4125fi
55ffb5ed 4126if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4127 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4128 # Extract the first word of "gnatbind", so it can be a program name with args.
4129set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4130echo "$as_me:$LINENO: checking for $ac_word" >&5
4131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4132if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4134else
1c710c3c
DJ
4135 if test -n "$ac_ct_GNATBIND"; then
4136 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4137else
1c710c3c
DJ
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4145 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4148 fi
4149done
4150done
4151
2aeb72e9 4152 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4153fi
4154fi
1c710c3c
DJ
4155ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4156if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4157 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4158echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4159else
2aeb72e9
DD
4160 echo "$as_me:$LINENO: result: no" >&5
4161echo "${ECHO_T}no" >&6
55ffb5ed
NN
4162fi
4163
2aeb72e9 4164 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4165else
1c710c3c 4166 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4167fi
4168
1c710c3c
DJ
4169if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4171set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4172echo "$as_me:$LINENO: checking for $ac_word" >&5
4173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4174if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4176else
4177 if test -n "$GNATMAKE"; then
4178 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4179else
1c710c3c
DJ
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4187 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191done
4192done
4193
5305be7e
RG
4194fi
4195fi
1c710c3c 4196GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4197if test -n "$GNATMAKE"; then
2aeb72e9
DD
4198 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4199echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4200else
2aeb72e9
DD
4201 echo "$as_me:$LINENO: result: no" >&5
4202echo "${ECHO_T}no" >&6
5305be7e
RG
4203fi
4204
1c710c3c 4205fi
5305be7e 4206if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4207 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4208 # Extract the first word of "gnatmake", so it can be a program name with args.
4209set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4210echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4212if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4214else
1c710c3c
DJ
4215 if test -n "$ac_ct_GNATMAKE"; then
4216 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4217else
1c710c3c
DJ
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4225 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229done
4230done
4231
2aeb72e9 4232 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4233fi
4234fi
1c710c3c
DJ
4235ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4236if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4237 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4238echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4239else
2aeb72e9
DD
4240 echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6
5305be7e
RG
4242fi
4243
2aeb72e9 4244 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4245else
1c710c3c 4246 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4247fi
4248
2aeb72e9
DD
4249echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4250echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4251if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4253else
4254 cat >conftest.adb <<EOF
4255procedure conftest is begin null; end conftest;
4256EOF
4257acx_cv_cc_gcc_supports_ada=no
4258# There is a bug in old released versions of GCC which causes the
4259# driver to exit successfully when the appropriate language module
4260# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4261# Therefore we must check for the error message as well as an
4262# unsuccessful exit.
1db673ca
RO
4263# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4264# given a .adb file, but produce no object file. So we must check
4265# if an object file was really produced to guard against this.
55ffb5ed 4266errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4267if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4268 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4269fi
4270rm -f conftest.*
4271fi
2aeb72e9
DD
4272echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4273echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4274
5305be7e 4275if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4276 have_gnat=yes
4277else
4278 have_gnat=no
4279fi
4280
2aeb72e9
DD
4281echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4282echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4283if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4285else
4286 echo abfoo >t1
4287 echo cdfoo >t2
4288 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4289 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4290 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4291 :
4292 else
4293 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4294 fi
4295 fi
a76494aa
PB
4296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4298 :
a76494aa
PB
4299 else
4300 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4301 fi
4302 fi
4303 rm t1 t2
4304
4305fi
2aeb72e9
DD
4306echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4307echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4308do_compare="$gcc_cv_prog_cmp_skip"
4309
4310
55ffb5ed 4311
bebf829d 4312# Check for GMP and MPFR
e69bf64b 4313gmplibs="-lmpfr -lgmp"
6de9cd9a 4314gmpinc=
e69bf64b
PB
4315have_gmp=no
4316
bebf829d
PB
4317# Specify a location for mpfr
4318# check for this first so it ends up on the link line before gmp.
1c710c3c 4319
2aeb72e9 4320# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4321if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4322 withval="$with_mpfr_dir"
4323 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4324Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4325echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4326Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4327 { (exit 1); exit 1; }; }
2aeb72e9 4328fi;
bebf829d
PB
4329
4330
2aeb72e9 4331# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4332if test "${with_mpfr+set}" = set; then
2aeb72e9 4333 withval="$with_mpfr"
1c710c3c 4334
2aeb72e9 4335fi;
bebf829d 4336
2aeb72e9 4337# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4338if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4339 withval="$with_mpfr_include"
1c710c3c 4340
2aeb72e9 4341fi;
8a877c9c 4342
2aeb72e9 4343# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4344if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4345 withval="$with_mpfr_lib"
8a877c9c 4346
2aeb72e9 4347fi;
bebf829d
PB
4348
4349if test "x$with_mpfr" != x; then
4350 gmplibs="-L$with_mpfr/lib $gmplibs"
4351 gmpinc="-I$with_mpfr/include"
4352fi
8a877c9c
KG
4353if test "x$with_mpfr_include" != x; then
4354 gmpinc="-I$with_mpfr_include"
4355fi
4356if test "x$with_mpfr_lib" != x; then
4357 gmplibs="-L$with_mpfr_lib $gmplibs"
4358fi
e69bf64b
PB
4359if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4360 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4361 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4362 # Do not test the mpfr version. Assume that it is sufficient, since
4363 # it is in the source tree, and the library has not been built yet
4364 # but it would be included on the link line in the version check below
4365 # hence making the test fail.
4366 have_gmp=yes
4367fi
bebf829d 4368
6de9cd9a 4369# Specify a location for gmp
1c710c3c 4370
2aeb72e9 4371# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4372if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4373 withval="$with_gmp_dir"
4374 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4375Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4376echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4377Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4378 { (exit 1); exit 1; }; }
2aeb72e9 4379fi;
6de9cd9a 4380
6de9cd9a 4381
2aeb72e9 4382# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4383if test "${with_gmp+set}" = set; then
2aeb72e9 4384 withval="$with_gmp"
1c710c3c 4385
2aeb72e9 4386fi;
6de9cd9a 4387
2aeb72e9 4388# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4389if test "${with_gmp_include+set}" = set; then
2aeb72e9 4390 withval="$with_gmp_include"
1c710c3c 4391
2aeb72e9 4392fi;
8a877c9c 4393
2aeb72e9 4394# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4395if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4396 withval="$with_gmp_lib"
8a877c9c 4397
2aeb72e9 4398fi;
8a877c9c 4399
6de9cd9a 4400
bebf829d
PB
4401if test "x$with_gmp" != x; then
4402 gmplibs="-L$with_gmp/lib $gmplibs"
4403 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4404fi
8a877c9c
KG
4405if test "x$with_gmp_include" != x; then
4406 gmpinc="-I$with_gmp_include $gmpinc"
4407fi
4408if test "x$with_gmp_lib" != x; then
4409 gmplibs="-L$with_gmp_lib $gmplibs"
4410fi
e69bf64b
PB
4411if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4412 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4413 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4414 # Do not test the gmp version. Assume that it is sufficient, since
4415 # it is in the source tree, and the library has not been built yet
4416 # but it would be included on the link line in the version check below
4417 # hence making the test fail.
4418 have_gmp=yes
4419fi
6de9cd9a 4420
d943d7c4 4421if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4422 have_gmp=yes
4423 saved_CFLAGS="$CFLAGS"
4424 CFLAGS="$CFLAGS $gmpinc"
4425 # Check GMP actually works
2aeb72e9
DD
4426 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4427echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4428
4429cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
6de9cd9a 4435#include "gmp.h"
1c710c3c
DJ
4436int
4437main ()
4438{
6de9cd9a 4439
e69bf64b
PB
4440 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4441 choke me
4442 #endif
1c710c3c
DJ
4443
4444 ;
4445 return 0;
4446}
4447_ACEOF
4448rm -f conftest.$ac_objext
2aeb72e9
DD
4449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4456 (exit $ac_status); } &&
4457 { ac_try='test -z "$ac_c_werror_flag"
4458 || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest.$ac_objext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 echo "$as_me:$LINENO: result: yes" >&5
4471echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4472else
4473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
2aeb72e9
DD
4476echo "$as_me:$LINENO: result: no" >&5
4477echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4478fi
2aeb72e9 4479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4480
e69bf64b
PB
4481 if test x"$have_gmp" = xyes; then
4482 saved_LIBS="$LIBS"
4483 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4484 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4485echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4486 cat >conftest.$ac_ext <<_ACEOF
4487/* confdefs.h. */
4488_ACEOF
4489cat confdefs.h >>conftest.$ac_ext
4490cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */
70ec446f 4492#include <gmp.h>
e69bf64b 4493 #include <mpfr.h>
1c710c3c
DJ
4494int
4495main ()
4496{
e48d66a9 4497
e69bf64b
PB
4498 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4499 choke me
4500 #endif
54e433bc
MK
4501 mpfr_t n;
4502 mpfr_t x;
e69bf64b 4503 int t;
54e433bc
MK
4504 mpfr_init (n);
4505 mpfr_init (x);
e69bf64b
PB
4506 mpfr_atan2 (n, n, x, GMP_RNDN);
4507 mpfr_erfc (n, x, GMP_RNDN);
4508 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4509
4510 ;
4511 return 0;
4512}
4513_ACEOF
4514rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4516 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag"
4524 || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest$ac_exeext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
1c710c3c
DJ
4536 cat >conftest.$ac_ext <<_ACEOF
4537/* confdefs.h. */
4538_ACEOF
4539cat confdefs.h >>conftest.$ac_ext
4540cat >>conftest.$ac_ext <<_ACEOF
4541/* end confdefs.h. */
a3993f33 4542#include <gmp.h>
e69bf64b 4543 #include <mpfr.h>
1c710c3c
DJ
4544int
4545main ()
4546{
a3993f33 4547
e69bf64b
PB
4548 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4549 choke me
4550 #endif
4551 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
4557rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4559 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4560 ac_status=$?
4561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag"
4567 || test ! -s conftest.err'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569 (eval $ac_try) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; } &&
4573 { ac_try='test -s conftest$ac_exeext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4581else
4582 echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
2aeb72e9
DD
4585echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4586echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4587fi
2aeb72e9 4588rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4589 conftest$ac_exeext conftest.$ac_ext
4590else
4591 echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
2aeb72e9
DD
4594echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4596fi
2aeb72e9 4597rm -f conftest.err conftest.$ac_objext \
1c710c3c 4598 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4599 LIBS="$saved_LIBS"
4600 fi
4601 CFLAGS="$saved_CFLAGS"
6de9cd9a 4602
e69bf64b 4603 if test x$have_gmp != xyes; then
1c710c3c
DJ
4604 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4605Try the --with-gmp and/or --with-mpfr options to specify their locations.
4606Copies of these libraries' source code can be found at their respective
4607hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4608See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4609If you obtained GMP and/or MPFR from a vendor distribution package, make
4610sure that you have installed both the libraries and the header files.
4611They may be located in separate packages." >&5
4612echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4613Try the --with-gmp and/or --with-mpfr options to specify their locations.
4614Copies of these libraries' source code can be found at their respective
4615hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4616See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4617If you obtained GMP and/or MPFR from a vendor distribution package, make
4618sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4619They may be located in separate packages." >&2;}
4620 { (exit 1); exit 1; }; }
e69bf64b 4621 fi
70ec446f
KG
4622fi
4623
bebf829d 4624# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4625
4626
4627
1e0f07d3 4628# By default, C is the only stage 1 language.
e1888513 4629stage1_languages=,c,
2805b53a 4630
55ffb5ed
NN
4631# Figure out what language subdirectories are present.
4632# Look if the user specified --enable-languages="..."; if not, use
4633# the environment variable $LANGUAGES if defined. $LANGUAGES might
4634# go away some day.
4635# NB: embedded tabs in this IF block -- do not untabify
4636if test -d ${srcdir}/gcc; then
4637 if test x"${enable_languages+set}" != xset; then
4638 if test x"${LANGUAGES+set}" = xset; then
4639 enable_languages="${LANGUAGES}"
4640 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4641 else
4642 enable_languages=all
4643 fi
4644 else
4645 if test x"${enable_languages}" = x ||
4646 test x"${enable_languages}" = xyes;
4647 then
4648 echo configure.in: --enable-languages needs at least one language argument 1>&2
4649 exit 1
4650 fi
4651 fi
4652 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4653
7f26dfa3
FXC
4654 # 'f95' is the old name for the 'fortran' language. We issue a warning
4655 # and make the substitution.
4656 case ,${enable_languages}, in
4657 *,f95,*)
4658 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4659 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4660 ;;
4661 esac
4662
55ffb5ed
NN
4663 # First scan to see if an enabled language requires some other language.
4664 # We assume that a given config-lang.in will list all the language
4665 # front ends it requires, even if some are required indirectly.
4666 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4667 case ${lang_frag} in
4668 ..) ;;
4669 # The odd quoting in the next line works around
4670 # an apparent bug in bash 1.12 on linux.
4671 ${srcdir}/gcc/[*]/config-lang.in) ;;
4672 *)
4673 # From the config-lang.in, get $language, $lang_requires
4674 language=
4675 lang_requires=
4676 . ${lang_frag}
4677 for other in ${lang_requires} ; do
4678 case ,${enable_languages}, in
4679 *,$other,*) ;;
4680 *,all,*) ;;
4681 *,$language,*)
4682 echo " \`$other' language required by \`$language'; enabling" 1>&2
4683 enable_languages="${enable_languages},${other}"
4684 ;;
4685 esac
4686 done
4687 ;;
4688 esac
4689 done
4690
e1888513 4691 new_enable_languages=,c,
55ffb5ed 4692 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4693 potential_languages=,c,
55ffb5ed
NN
4694
4695 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4696 case ${lang_frag} in
4697 ..) ;;
4698 # The odd quoting in the next line works around
4699 # an apparent bug in bash 1.12 on linux.
4700 ${srcdir}/gcc/[*]/config-lang.in) ;;
4701 *)
1c710c3c 4702 # From the config-lang.in, get $language, $target_libs,
2805b53a 4703 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4704 language=
4705 target_libs=
4706 lang_dirs=
1546bb64 4707 subdir_requires=
e1888513
PB
4708 boot_language=no
4709 build_by_default=yes
55ffb5ed 4710 . ${lang_frag}
e1888513
PB
4711 if test x${language} = x; then
4712 echo "${lang_frag} doesn't set \$language." 1>&2
4713 exit 1
4714 fi
4715
4716 case ,${enable_languages}, in
4717 *,${language},*)
55ffb5ed
NN
4718 # Language was explicitly selected; include it.
4719 add_this_lang=yes
4720 ;;
e1888513
PB
4721 *,all,*)
4722 # 'all' was selected, select it if it is a default language
4723 add_this_lang=${build_by_default}
55ffb5ed
NN
4724 ;;
4725 *)
4726 add_this_lang=no
4727 ;;
4728 esac
6de9cd9a 4729
1546bb64 4730 # Disable languages that need other directories if these aren't available.
95695ad3 4731 for i in $subdir_requires; do
b6348cb3 4732 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4733 case ,${enable_languages}, in
4734 *,${language},*)
4735 # Specifically requested language; tell them.
1c710c3c
DJ
4736 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4737echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4738 { (exit 1); exit 1; }; }
1546bb64
PB
4739 ;;
4740 *)
4741 # Silently disable.
e1888513 4742 add_this_lang=unsupported
1546bb64
PB
4743 ;;
4744 esac
4745 done
4746
e1888513
PB
4747 # Disable Ada if no preexisting GNAT is available.
4748 case ,${enable_languages},:${language}:${have_gnat} in
4749 *,${language},*:ada:no)
4750 # Specifically requested language; tell them.
1c710c3c
DJ
4751 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4752echo "$as_me: error: GNAT is required to build $language" >&2;}
4753 { (exit 1); exit 1; }; }
e1888513
PB
4754 ;;
4755 *:ada:no)
4756 # Silently disable.
4757 add_this_lang=unsupported
4758 ;;
4759 esac
4760
4fab7234
HPN
4761 # Disable a language that is unsupported by the target.
4762 case " $unsupported_languages " in
4763 *" $language "*)
e1888513 4764 add_this_lang=unsupported
4fab7234
HPN
4765 ;;
4766 esac
4767
6de9cd9a 4768 case $add_this_lang in
e1888513 4769 unsupported)
55ffb5ed 4770 # Remove language-dependent dirs.
2805b53a
NN
4771 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4772 ;;
e1888513
PB
4773 no)
4774 # Remove language-dependent dirs; still show language as supported.
4775 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4776 potential_languages="${potential_languages}${language},"
4777 ;;
4778 yes)
4779 new_enable_languages="${new_enable_languages}${language},"
4780 potential_languages="${potential_languages}${language},"
2805b53a
NN
4781 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4782 case ${boot_language} in
4783 yes)
340de83f 4784 # Add to (comma-separated) list of stage 1 languages.
e1888513 4785 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4786 ;;
4787 esac
4788 ;;
55ffb5ed
NN
4789 esac
4790 ;;
4791 esac
4792 done
4793
2aeb72e9 4794 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4795if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4796 enableval="$enable_stage1_languages"
4797 case ,${enable_stage1_languages}, in
e1888513
PB
4798 ,no,|,,)
4799 # Set it to something that will have no effect in the loop below
4800 enable_stage1_languages=c ;;
4801 ,yes,)
4802 enable_stage1_languages=`echo $new_enable_languages | \
4803 sed -e "s/^,//" -e "s/,$//" ` ;;
4804 *,all,*)
4805 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4806 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4807 esac
4808
4809 # Add "good" languages from enable_stage1_languages to stage1_languages,
4810 # while "bad" languages go in missing_languages. Leave no duplicates.
4811 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4812 case $potential_languages in
4813 *,$i,*)
4814 case $stage1_languages in
4815 *,$i,*) ;;
4816 *) stage1_languages="$stage1_languages$i," ;;
4817 esac ;;
4818 *)
4819 case $missing_languages in
4820 *,$i,*) ;;
4821 *) missing_languages="$missing_languages$i," ;;
4822 esac ;;
4823 esac
4824 done
2aeb72e9 4825fi;
e1888513
PB
4826
4827 # Remove leading/trailing commas that were added for simplicity
4828 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4829 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4830 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4831 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4832
55ffb5ed 4833 if test "x$missing_languages" != x; then
1c710c3c 4834 { { echo "$as_me:$LINENO: error:
0cf085e4 4835The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4836Supported languages are: ${potential_languages}" >&5
4837echo "$as_me: error:
4838The following requested languages could not be built: ${missing_languages}
4839Supported languages are: ${potential_languages}" >&2;}
4840 { (exit 1); exit 1; }; }
55ffb5ed 4841 fi
55ffb5ed
NN
4842 if test "x$new_enable_languages" != "x$enable_languages"; then
4843 echo The following languages will be built: ${new_enable_languages}
e1888513 4844 enable_languages="$new_enable_languages"
55ffb5ed 4845 fi
e1888513 4846
1c710c3c 4847
b2eaac4a 4848 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4849fi
4850
27079765
AH
4851# Handle --disable-<component> generically.
4852for dir in $configdirs $build_configdirs $target_configdirs ; do
4853 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4854 if eval test x\${enable_${dirname}} "=" xno ; then
4855 noconfigdirs="$noconfigdirs $dir"
4856 fi
4857done
4858
7cd0cf9c 4859# Check for Boehm's garbage collector
2aeb72e9 4860# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4861if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4862 enableval="$enable_objc_gc"
4863 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4864 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4865 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4866echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4867 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4868 ;;
4869esac
2aeb72e9 4870fi;
7cd0cf9c
DA
4871
4872# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4873case ,${enable_languages},:${enable_objc_gc} in
4874 *,objc,*:yes)
7cd0cf9c
DA
4875 # Keep target-boehm-gc if requested for Objective-C.
4876 ;;
7cd0cf9c 4877 *)
2a79fd67
DA
4878 # Otherwise remove target-boehm-gc depending on target-libjava.
4879 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4880 noconfigdirs="$noconfigdirs target-boehm-gc"
4881 fi
7cd0cf9c
DA
4882 ;;
4883esac
4884
ee6a22df
L
4885# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4886# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4887# If we have the source for $noconfigdirs entries, add them to $notsupp.
4888
4889notsupp=""
4890for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4891 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4892 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4893 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4894 if test -r $srcdir/$dirname/configure ; then
4895 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4896 true
4897 else
4898 notsupp="$notsupp $dir"
4899 fi
4900 fi
4901 fi
ee6a22df
L
4902 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4903 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4904 if test -r $srcdir/$dirname/configure ; then
4905 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4906 true
4907 else
4908 notsupp="$notsupp $dir"
4909 fi
4910 fi
4911 fi
55ffb5ed
NN
4912 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4913 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4914 if test -r $srcdir/$dirname/configure ; then
4915 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4916 true
4917 else
4918 notsupp="$notsupp $dir"
4919 fi
4920 fi
4921 fi
4922done
4923
4924# Sometimes the tools are distributed with libiberty but with no other
4925# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4926# Don't let libgcc imply libiberty either.
55ffb5ed 4927if test -n "${target_configdirs}" ; then
54fdc474 4928 libgcc=
55ffb5ed
NN
4929 others=
4930 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4931 if test "$i" = "libgcc"; then
4932 libgcc=target-libgcc
4933 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4934 if test -r $srcdir/$i/configure ; then
4935 others=yes;
4936 break;
4937 fi
4938 fi
4939 done
4940 if test -z "${others}" ; then
54fdc474 4941 target_configdirs=$libgcc
55ffb5ed
NN
4942 fi
4943fi
4944
4945# Quietly strip out all directories which aren't configurable in this tree.
4946# This relies on all configurable subdirectories being autoconfiscated, which
4947# is now the case.
23f6b2f9
PB
4948build_configdirs_all="$build_configdirs"
4949build_configdirs=
4950for i in ${build_configdirs_all} ; do
1c710c3c 4951 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4952 if test -f ${srcdir}/$j/configure ; then
4953 build_configdirs="${build_configdirs} $i"
4954 fi
4955done
4956
55ffb5ed
NN
4957configdirs_all="$configdirs"
4958configdirs=
4959for i in ${configdirs_all} ; do
4960 if test -f ${srcdir}/$i/configure ; then
4961 configdirs="${configdirs} $i"
4962 fi
4963done
23f6b2f9 4964
55ffb5ed
NN
4965target_configdirs_all="$target_configdirs"
4966target_configdirs=
4967for i in ${target_configdirs_all} ; do
1c710c3c 4968 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4969 if test -f ${srcdir}/$j/configure ; then
4970 target_configdirs="${target_configdirs} $i"
4971 fi
4972done
4973
4974# Produce a warning message for the subdirs we can't configure.
4975# This isn't especially interesting in the Cygnus tree, but in the individual
4976# FSF releases, it's important to let people know when their machine isn't
4977# supported by the one or two programs in a package.
4978
4979if test -n "${notsupp}" && test -z "${norecursion}" ; then
4980 # If $appdirs is non-empty, at least one of those directories must still
4981 # be configured, or we error out. (E.g., if the gas release supports a
4982 # specified target in some subdirs but not the gas subdir, we shouldn't
4983 # pretend that all is well.)
4984 if test -n "$appdirs" ; then
4985 for dir in $appdirs ; do
4986 if test -r $dir/Makefile.in ; then
4987 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4988 appdirs=""
4989 break
4990 fi
23f6b2f9 4991 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4992 appdirs=""
4993 break
4994 fi
4995 fi
4996 done
4997 if test -n "$appdirs" ; then
4998 echo "*** This configuration is not supported by this package." 1>&2
4999 exit 1
5000 fi
5001 fi
5002 # Okay, some application will build, or we don't care to check. Still
5003 # notify of subdirs not getting built.
5004 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5005 echo " ${notsupp}" 1>&2
5006 echo " (Any other directories should still work fine.)" 1>&2
5007fi
5008
5009case "$host" in
5010 *msdosdjgpp*)
5011 enable_gdbtk=no ;;
5012esac
5013
c3a86da9
DJ
5014# To find our prefix, in gcc_cv_tool_prefix.
5015
5016# The user is always right.
5017if test "${PATH_SEPARATOR+set}" != set; then
5018 echo "#! /bin/sh" >conf$$.sh
5019 echo "exit 0" >>conf$$.sh
5020 chmod +x conf$$.sh
5021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5022 PATH_SEPARATOR=';'
5023 else
5024 PATH_SEPARATOR=:
5025 fi
5026 rm -f conf$$.sh
5027fi
5028
5029
5030
5031if test "x$exec_prefix" = xNONE; then
5032 if test "x$prefix" = xNONE; then
5033 gcc_cv_tool_prefix=$ac_default_prefix
5034 else
5035 gcc_cv_tool_prefix=$prefix
5036 fi
5037else
5038 gcc_cv_tool_prefix=$exec_prefix
5039fi
5040
5041# If there is no compiler in the tree, use the PATH only. In any
5042# case, if there is no compiler in the tree nobody should use
5043# AS_FOR_TARGET and LD_FOR_TARGET.
5044if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5045 gcc_version=`cat $srcdir/gcc/BASE-VER`
5046 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5047 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5048 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5049 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5050 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5051 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5052else
5053 gcc_cv_tool_dirs=
5054fi
5055
5056if test x$build = x$target && test -n "$md_exec_prefix"; then
5057 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5058fi
5059
5060
5061
55ffb5ed
NN
5062copy_dirs=
5063
1c710c3c 5064
2aeb72e9 5065# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5066if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5067 withval="$with_build_sysroot"
5068 if test x"$withval" != x ; then
526635cb
MM
5069 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5070 fi
5071else
5072 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5073fi;
526635cb
MM
5074
5075
c8aea42c
PB
5076
5077# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5078if test "${with_debug_prefix_map+set}" = set; then
5079 withval="$with_debug_prefix_map"
5080 if test x"$withval" != x; then
5081 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5082 for debug_map in $withval; do
5083 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5084 done
5085 fi
5086else
5087 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5088fi;
5089
5090
55ffb5ed
NN
5091# Handle --with-headers=XXX. If the value is not "yes", the contents of
5092# the named directory are copied to $(tooldir)/sys-include.
5093if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5094 if test x${is_cross_compiler} = xno ; then
5095 echo 1>&2 '***' --with-headers is only supported when cross compiling
5096 exit 1
5097 fi
5098 if test x"${with_headers}" != xyes ; then
c3a86da9 5099 x=${gcc_cv_tool_prefix}
1c710c3c 5100 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5101 fi
5102fi
5103
5104# Handle --with-libs=XXX. If the value is not "yes", the contents of
5105# the name directories are copied to $(tooldir)/lib. Multiple directories
5106# are permitted.
5107if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5108 if test x${is_cross_compiler} = xno ; then
5109 echo 1>&2 '***' --with-libs is only supported when cross compiling
5110 exit 1
5111 fi
5112 if test x"${with_libs}" != xyes ; then
5113 # Copy the libraries in reverse order, so that files in the first named
5114 # library override files in subsequent libraries.
c3a86da9 5115 x=${gcc_cv_tool_prefix}
55ffb5ed 5116 for l in ${with_libs}; do
1c710c3c 5117 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5118 done
5119 fi
5120fi
5121
e8b05380
PB
5122# Set with_gnu_as and with_gnu_ld as appropriate.
5123#
5124# This is done by determining whether or not the appropriate directory
5125# is available, and by checking whether or not specific configurations
5126# have requested that this magic not happen.
1c710c3c
DJ
5127#
5128# The command line options always override the explicit settings in
e8b05380
PB
5129# configure.in, and the settings in configure.in override this magic.
5130#
1c710c3c 5131# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5132# want to do that, then you should use the --without-gnu-as and
5133# --without-gnu-ld options for the configure script.
5134
5135if test x${use_gnu_as} = x &&
5136 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5137 with_gnu_as=yes
5138 extra_host_args="$extra_host_args --with-gnu-as"
5139fi
5140
5141if test x${use_gnu_ld} = x &&
5142 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5143 with_gnu_ld=yes
5144 extra_host_args="$extra_host_args --with-gnu-ld"
5145fi
5146
5147# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5148# can detect this case.
5149
5150if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5151 with_newlib=yes
5152 extra_host_args="$extra_host_args --with-newlib"
5153fi
5154
55ffb5ed
NN
5155# Handle ${copy_dirs}
5156set fnord ${copy_dirs}
5157shift
5158while test $# != 0 ; do
5159 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5160 :
5161 else
5162 echo Copying $1 to $2
5163
5164 # Use the install script to create the directory and all required
5165 # parent directories.
5166 if test -d $2 ; then
5167 :
5168 else
5169 echo >config.temp
5170 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5171 fi
5172
5173 # Copy the directory, assuming we have tar.
5174 # FIXME: Should we use B in the second tar? Not all systems support it.
5175 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5176
5177 # It is the responsibility of the user to correctly adjust all
5178 # symlinks. If somebody can figure out how to handle them correctly
5179 # here, feel free to add the code.
5180
5181 echo $1 > $2/COPIED
5182 fi
5183 shift; shift
5184done
5185
e8b05380
PB
5186# Determine a target-dependent exec_prefix that the installed
5187# gcc will search in. Keep this list sorted by triplet, with
5188# the *-*-osname triplets last.
5189md_exec_prefix=
5190case "${target}" in
5191 alpha*-*-*vms*)
5192 md_exec_prefix=/gnu/lib/gcc-lib
5193 ;;
30b74385 5194 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5195 md_exec_prefix=/dev/env/DJDIR/bin
5196 ;;
30b74385 5197 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5198 if test $with_gnu_as = yes; then
5199 md_exec_prefix=/usr/gnu/bin
5200 else
5201 md_exec_prefix=/usr/ccs/bin/elf
5202 fi
5203 ;;
5204
5205 mn10300-*-* | \
5206 powerpc-*-chorusos* | \
5207 powerpc*-*-eabi* | \
5208 powerpc*-*-sysv* | \
5209 powerpc*-*-kaos* | \
5210 s390x-ibm-tpf*)
5211 md_exec_prefix=/usr/ccs/bin
5212 ;;
5213 sparc64-*-elf*)
5214 ;;
5215 v850*-*-*)
5216 md_exec_prefix=/usr/ccs/bin
5217 ;;
5218 xtensa-*-elf*)
5219 ;;
5220
5221 *-*-beos* | \
5222 *-*-elf* | \
5223 *-*-hpux* | \
5224 *-*-netware* | \
5225 *-*-nto-qnx* | \
5226 *-*-rtems* | \
5227 *-*-solaris2* | \
30b74385 5228 *-*-sysv[45]* | \
e8b05380
PB
5229 *-*-vxworks* | \
5230 *-wrs-windiss)
5231 md_exec_prefix=/usr/ccs/bin
5232 ;;
5233esac
5234
671aa708
NN
5235extra_arflags_for_target=
5236extra_nmflags_for_target=
5237extra_ranlibflags_for_target=
5238target_makefile_frag=/dev/null
5239case "${target}" in
3e19841a
PB
5240 mep*-*-*)
5241 target_makefile_frag="config/mt-mep"
5242 ;;
58e24147
AM
5243 spu-*-*)
5244 target_makefile_frag="config/mt-spu"
5245 ;;
4bf6c438
RS
5246 mips*-sde-elf*)
5247 target_makefile_frag="config/mt-sde"
5248 ;;
61fec9ff 5249 *-*-netware*)
671aa708
NN
5250 target_makefile_frag="config/mt-netware"
5251 ;;
98a5bb3b
RM
5252 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5253 target_makefile_frag="config/mt-gnu"
671aa708
NN
5254 ;;
5255 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5256 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5257 # commands to handle both 32-bit and 64-bit objects. These flags are
5258 # harmless if we're using GNU nm or ar.
5259 extra_arflags_for_target=" -X32_64"
5260 extra_nmflags_for_target=" -B -X32_64"
5261 ;;
5262 *-*-darwin*)
5263 # ranlib from Darwin requires the -c flag to look at common symbols.
5264 extra_ranlibflags_for_target=" -c"
5265 ;;
5266 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5267 target_makefile_frag="config/mt-wince"
5268 ;;
5269esac
5270
5271alphaieee_frag=/dev/null
5272case $target in
5273 alpha*-*-*)
5274 # This just makes sure to use the -mieee option to build target libs.
5275 # This should probably be set individually by each library.
5276 alphaieee_frag="config/mt-alphaieee"
5277 ;;
5278esac
5279
5280# If --enable-target-optspace always use -Os instead of -O2 to build
5281# the target libraries, similarly if it is not specified, use -Os
5282# on selected platforms.
5283ospace_frag=/dev/null
5284case "${enable_target_optspace}:${target}" in
5285 yes:*)
5286 ospace_frag="config/mt-ospace"
5287 ;;
5288 :d30v-*)
5289 ospace_frag="config/mt-d30v"
5290 ;;
5291 :m32r-* | :d10v-* | :fr30-*)
5292 ospace_frag="config/mt-ospace"
5293 ;;
5294 no:* | :*)
5295 ;;
5296 *)
5297 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5298 ;;
5299esac
5300
671aa708
NN
5301# Default to using --with-stabs for certain targets.
5302if test x${with_stabs} = x ; then
5303 case "${target}" in
89a95129 5304 mips*-*-irix[56]*)
671aa708
NN
5305 ;;
5306 mips*-*-* | alpha*-*-osf*)
5307 with_stabs=yes;
5308 extra_host_args="${extra_host_args} --with-stabs"
5309 ;;
5310 esac
5311fi
5312
5313# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5314# them automatically.
5315case "${host}" in
1c710c3c 5316 hppa*64*-*-hpux11*)
671aa708
NN
5317 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5318 ;;
5319esac
5320
671aa708
NN
5321# Some systems (e.g., one of the i386-aix systems the gas testers are
5322# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5323tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5324build_tooldir=${tooldir}
5325
671aa708
NN
5326# Create a .gdbinit file which runs the one in srcdir
5327# and tells GDB to look there for source files.
5328
5329if test -r ${srcdir}/.gdbinit ; then
5330 case ${srcdir} in
5331 .) ;;
5332 *) cat > ./.gdbinit <<EOF
5333# ${NO_EDIT}
5334dir ${srcdir}
5335dir .
5336source ${srcdir}/.gdbinit
5337EOF
5338 ;;
5339 esac
5340fi
5341
671aa708
NN
5342# Make sure that the compiler is able to generate an executable. If it
5343# can't, we are probably in trouble. We don't care whether we can run the
5344# executable--we might be using a cross compiler--we only care whether it
5345# can be created. At this point the main configure script has set CC.
5346we_are_ok=no
5347echo "int main () { return 0; }" > conftest.c
5348${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5349if test $? = 0 ; then
5350 if test -s conftest || test -s conftest.exe ; then
5351 we_are_ok=yes
5352 fi
1c710c3c 5353fi
671aa708
NN
5354case $we_are_ok in
5355 no)
5356 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5357 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5358 rm -f conftest*
5359 exit 1
5360 ;;
5361esac
5362rm -f conftest*
5363
5364# The Solaris /usr/ucb/cc compiler does not appear to work.
5365case "${host}" in
5366 sparc-sun-solaris2*)
5367 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5368 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5369 could_use=
5370 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5371 if test -d /opt/cygnus/bin ; then
5372 if test "$could_use" = "" ; then
5373 could_use="/opt/cygnus/bin"
5374 else
5375 could_use="$could_use or /opt/cygnus/bin"
5376 fi
5377 fi
5378 if test "$could_use" = "" ; then
5379 echo "Warning: compilation may fail because you're using"
5380 echo "/usr/ucb/cc. You should change your PATH or CC "
5381 echo "variable and rerun configure."
5382 else
5383 echo "Warning: compilation may fail because you're using"
5384 echo "/usr/ucb/cc, when you should use the C compiler from"
5385 echo "$could_use. You should change your"
5386 echo "PATH or CC variable and rerun configure."
5387 fi
5388 fi
5389 ;;
5390esac
5391
671aa708
NN
5392case "${host}" in
5393 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5394 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5395 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5396esac
5397
5398# Record target_configdirs and the configure arguments for target and
5399# build configuration in Makefile.
5400target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5401build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5402
671aa708
NN
5403# Determine whether gdb needs tk/tcl or not.
5404# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5405# and in that case we want gdb to be built without tk. Ugh!
5406# In fact I believe gdb is the *only* package directly dependent on tk,
5407# so we should be able to put the 'maybe's in unconditionally and
5408# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5409# 100% sure that that's safe though.
e914a571 5410
b4f96efe 5411gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5412case "$enable_gdbtk" in
5413 no)
5414 GDB_TK="" ;;
e914a571
AC
5415 yes)
5416 GDB_TK="${gdb_tk}" ;;
671aa708 5417 *)
e914a571
AC
5418 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5419 # distro. Eventually someone will fix this and move Insight, nee
5420 # gdbtk to a separate directory.
5421 if test -d ${srcdir}/gdb/gdbtk ; then
5422 GDB_TK="${gdb_tk}"
5423 else
5424 GDB_TK=""
5425 fi
5426 ;;
671aa708 5427esac
ef9db8d5
DJ
5428CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5429INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5430
60975492 5431# Strip out unwanted targets.
8b87bb96
NN
5432
5433# While at that, we remove Makefiles if we were started for recursive
5434# configuration, so that the top-level Makefile reconfigures them,
5435# like we used to do when configure itself was recursive.
8b87bb96 5436
60975492
PB
5437# Loop over modules. $extrasub must be used with care, limiting as
5438# much as possible the usage of range addresses. That's because autoconf
5439# splits the sed script to overcome limits in the number of commands,
5440# and relying on carefully-timed sed passes may turn out to be very hard
5441# to maintain later. In this particular case, you just have to be careful
5442# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5443
2aeb72e9 5444# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5445if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5446 enableval="$enable_bootstrap"
5447
f516a7da 5448else
ce521a9c 5449 enable_bootstrap=default
2aeb72e9 5450fi;
f516a7da 5451
ce521a9c
PB
5452# Issue errors and warnings for invalid/strange bootstrap combinations.
5453case "$configdirs" in
5454 *gcc*) have_compiler=yes ;;
5455 *) have_compiler=no ;;
5456esac
5457
5458case "$have_compiler:$host:$target:$enable_bootstrap" in
5459 *:*:*:no) ;;
5460
1ca26cd2 5461 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5462 # and we are in a native configuration.
5463 yes:$build:$build:default)
1ca26cd2 5464 enable_bootstrap=yes ;;
ce521a9c
PB
5465
5466 *:*:*:default)
5467 enable_bootstrap=no ;;
5468
5469 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5470 yes:$build:$build:yes)
ce521a9c
PB
5471 ;;
5472
5473 # Other configurations, but we have a compiler. Assume the user knows
5474 # what he's doing.
2d309510 5475 yes:*:*:yes)
1c710c3c
DJ
5476 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5477echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5478 ;;
5479
5480 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5481 no:*:*:yes)
1c710c3c
DJ
5482 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5483echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5484 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5485
5486 # Fail if wrong command line
5487 *)
1c710c3c
DJ
5488 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5489echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5490 { (exit 1); exit 1; }; }
ce521a9c
PB
5491 ;;
5492esac
5493
5494# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5495case "$enable_bootstrap" in
5496 yes)
5607edfd 5497 bootstrap_suffix=bootstrap ;;
f516a7da 5498 no)
5607edfd 5499 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5500esac
5501
23f6b2f9 5502for module in ${build_configdirs} ; do
5607edfd
PB
5503 if test -z "${no_recursion}" \
5504 && test -f ${build_subdir}/${module}/Makefile; then
5505 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5506 rm -f ${build_subdir}/${module}/Makefile
5507 fi
5508 extrasub="$extrasub
5509/^@if build-$module\$/d
5510/^@endif build-$module\$/d
5511/^@if build-$module-$bootstrap_suffix\$/d
5512/^@endif build-$module-$bootstrap_suffix\$/d"
5513done
5514for module in ${configdirs} ; do
a6fbc1e2 5515 if test -z "${no_recursion}"; then
f063a9ed 5516 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5517 if test -f ${file}; then
5518 echo 1>&2 "*** removing ${file} to force reconfigure"
5519 rm -f ${file}
5520 fi
5521 done
5607edfd
PB
5522 fi
5523 extrasub="$extrasub
5524/^@if $module\$/d
5525/^@endif $module\$/d
5526/^@if $module-$bootstrap_suffix\$/d
5527/^@endif $module-$bootstrap_suffix\$/d"
5528done
5529for module in ${target_configdirs} ; do
5530 if test -z "${no_recursion}" \
5531 && test -f ${target_subdir}/${module}/Makefile; then
5532 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5533 rm -f ${target_subdir}/${module}/Makefile
5534 fi
5535 extrasub="$extrasub
5536/^@if target-$module\$/d
5537/^@endif target-$module\$/d
5538/^@if target-$module-$bootstrap_suffix\$/d
5539/^@endif target-$module-$bootstrap_suffix\$/d"
5540done
5541
60975492
PB
5542extrasub="$extrasub
5543/^@if /,/^@endif /d"
671aa708
NN
5544
5545# Create the serialization dependencies. This uses a temporary file.
5546
2aeb72e9 5547# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5548if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5549 enableval="$enable_serial_configure"
ade82b16 5550
2aeb72e9 5551fi;
ade82b16 5552
bf1d3e81
NN
5553case ${enable_serial_configure} in
5554 yes)
5555 enable_serial_build_configure=yes
5556 enable_serial_host_configure=yes
5557 enable_serial_target_configure=yes
5558 ;;
5559esac
5560
671aa708
NN
5561# These force 'configure's to be done one at a time, to avoid problems
5562# with contention over a shared config.cache.
5563rm -f serdep.tmp
ade82b16 5564echo '# serdep.tmp' > serdep.tmp
671aa708 5565olditem=
bf1d3e81 5566test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5567for item in ${build_configdirs} ; do
5568 case ${olditem} in
5569 "") ;;
ade82b16 5570 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5571 esac
5572 olditem=${item}
5573done
5574olditem=
bf1d3e81 5575test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5576for item in ${configdirs} ; do
5577 case ${olditem} in
5578 "") ;;
ade82b16 5579 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5580 esac
5581 olditem=${item}
5582done
5583olditem=
bf1d3e81 5584test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5585for item in ${target_configdirs} ; do
5586 case ${olditem} in
5587 "") ;;
ade82b16 5588 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5589 esac
5590 olditem=${item}
5591done
5592serialization_dependencies=serdep.tmp
5593
5594
ade82b16 5595# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5596# target, nonopt, and variable assignments. These are the ones we
5597# might not want to pass down to subconfigures. Also strip
5598# program-prefix, program-suffix, and program-transform-name, so that
5599# we can pass down a consistent program-transform-name.
5600baseargs=
5601keep_next=no
5602skip_next=no
5603eval "set -- $ac_configure_args"
44bfc3ac
DJ
5604for ac_arg
5605do
1c710c3c
DJ
5606 if test X"$skip_next" = X"yes"; then
5607 skip_next=no
5608 continue
5609 fi
5610 if test X"$keep_next" = X"yes"; then
5611 case $ac_arg in
5612 *\'*)
5613 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5614 esac
5615 baseargs="$baseargs '$ac_arg'"
5616 keep_next=no
5617 continue
5618 fi
5619
5620 # Handle separated arguments. Based on the logic generated by
5621 # autoconf 2.59.
5622 case $ac_arg in
5623 *=* | --config-cache | -C | -disable-* | --disable-* \
5624 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5625 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5626 | -with-* | --with-* | -without-* | --without-* | --x)
5627 separate_arg=no
5628 ;;
5629 -*)
5630 separate_arg=yes
5631 ;;
5632 *)
5633 separate_arg=no
5634 ;;
5635 esac
5636
5637 case "$ac_arg" in
5638 --no*)
5639 continue
5640 ;;
5641 --c* | \
5642 --sr* | \
5643 --ho* | \
5644 --bu* | \
5645 --t* | \
5646 --program-* | \
5647 -cache_file* | \
5648 -srcdir* | \
5649 -host* | \
5650 -build* | \
5651 -target* | \
5652 -program-prefix* | \
5653 -program-suffix* | \
5654 -program-transform-name* )
5655 skip_next=$separate_arg
5656 continue
5657 ;;
5658 -*)
5659 # An option. Add it.
5660 case $ac_arg in
5661 *\'*)
5662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5663 esac
5664 baseargs="$baseargs '$ac_arg'"
5665 keep_next=$separate_arg
5666 ;;
5667 *)
5668 # Either a variable assignment, or a nonopt (triplet). Don't
5669 # pass it down; let the Makefile handle this.
5670 continue
5671 ;;
5672 esac
5673done
5674# Remove the initial space we just introduced and, as these will be
5675# expanded by make, quote '$'.
5676baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5677
43bb47c2
DJ
5678# Add in --program-transform-name, after --program-prefix and
5679# --program-suffix have been applied to it. Autoconf has already
5680# doubled dollar signs and backslashes in program_transform_name; we want
5681# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5682# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5683# Also, because we want to override the logic in subdir configure scripts to
5684# choose program_transform_name, replace any s,x,x, with s,y,y,.
5685sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5686${program_transform_name}
5687EOF_SED
5688gcc_transform_name=`cat conftestsed.out`
5689rm -f conftestsed.out
5690baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5691if test "$silent" = yes; then
5692 baseargs="$baseargs --silent"
5693fi
43bb47c2 5694
671aa708
NN
5695# For the build-side libraries, we just need to pretend we're native,
5696# and not use the same cache file. Multilibs are neither needed nor
5697# desired.
e69bf64b 5698build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5699
5700# For host modules, accept cache file option, or specification as blank.
5701case "${cache_file}" in
5702"") # empty
5703 cache_file_option="" ;;
5704/* | [A-Za-z]:[\\/]* ) # absolute path
5705 cache_file_option="--cache-file=${cache_file}" ;;
5706*) # relative path
5707 cache_file_option="--cache-file=../${cache_file}" ;;
5708esac
5709
09438bde
NN
5710# Host dirs don't like to share a cache file either, horribly enough.
5711# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5712host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5713
5714target_configargs=${baseargs}
5715
5716# Passing a --with-cross-host argument lets the target libraries know
5717# whether they are being built with a cross-compiler or being built
5718# native. However, it would be better to use other mechanisms to make the
5719# sorts of decisions they want to make on this basis. Please consider
5720# this option to be deprecated. FIXME.
5721if test x${is_cross_compiler} = xyes ; then
1c710c3c 5722 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5723fi
5724
5725# Default to --enable-multilib.
5726if test x${enable_multilib} = x ; then
5727 target_configargs="--enable-multilib ${target_configargs}"
5728fi
5729
5730# Pass --with-newlib if appropriate. Note that target_configdirs has
5731# changed from the earlier setting of with_newlib.
5732if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5733 target_configargs="--with-newlib ${target_configargs}"
5734fi
5735
6b9eb62c
NN
5736# Different target subdirs use different values of certain variables
5737# (notably CXX). Worse, multilibs use *lots* of different values.
5738# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5739# it doesn't automatically accept command-line overrides of them.
5740# This means it's not safe for target subdirs to share a cache file,
5741# which is disgusting, but there you have it. Hopefully this can be
5742# fixed in future. It's still worthwhile to use a cache file for each
5743# directory. I think.
5744
bebcd931
MS
5745# Pass the appropriate --build, --host, --target and --cache-file arguments.
5746# We need to pass --target, as newer autoconf's requires consistency
5747# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5748target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5749
671aa708
NN
5750FLAGS_FOR_TARGET=
5751case " $target_configdirs " in
5752 *" newlib "*)
5753 case " $target_configargs " in
5754 *" --with-newlib "*)
5755 case "$target" in
5756 *-cygwin*)
aa8f1f57 5757 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
5758 esac
5759
5760 # If we're not building GCC, don't discard standard headers.
5761 if test -d ${srcdir}/gcc; then
5762 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5763
5764 if test "${build}" != "${host}"; then
5765 # On Canadian crosses, CC_FOR_TARGET will have already been set
5766 # by `configure', so we won't have an opportunity to add -Bgcc/
5767 # to it. This is right: we don't want to search that directory
5768 # for binaries, but we want the header files in there, so add
5769 # them explicitly.
215c351a 5770 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5771
5772 # Someone might think of using the pre-installed headers on
5773 # Canadian crosses, in case the installed compiler is not fully
5774 # compatible with the compiler being built. In this case, it
5775 # would be better to flag an error than risking having
5776 # incompatible object files being constructed. We can't
5777 # guarantee that an error will be flagged, but let's hope the
5778 # compiler will do it, when presented with incompatible header
5779 # files.
5780 fi
5781 fi
5782
5783 case "${target}-${is_cross_compiler}" in
f2a0e225 5784 i[3456789]86-*-linux*-no)
671aa708
NN
5785 # Here host == target, so we don't need to build gcc,
5786 # so we don't want to discard standard headers.
5787 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5788 ;;
5789 *)
5790 # If we're building newlib, use its generic headers last, but search
5791 # for any libc-related directories first (so make it the last -B
5792 # switch).
5793 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5794 ;;
5795 esac
5796 ;;
5797 esac
5798 ;;
5799esac
b91f0a41
CV
5800case "$target" in
5801*-mingw*)
5802 # Can't be handled as Cygwin above since Mingw does not use newlib.
5803 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' ;;
5804esac
671aa708 5805
6691a79e
ME
5806# Allow the user to override the flags for
5807# our build compiler if desired.
5808CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5809
671aa708
NN
5810# On Canadian crosses, we'll be searching the right directories for
5811# the previously-installed cross compiler, so don't bother to add
5812# flags for directories within the install tree of the compiler
5813# being built; programs in there won't even run.
5814if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5815 # Search for pre-installed headers if nothing else fits.
9124bc53 5816 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
5817fi
5818
5819if test "x${use_gnu_ld}" = x &&
5820 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5821 # Arrange for us to find uninstalled linker scripts.
215c351a 5822 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5823fi
5824
e88a2c09
DD
5825# Search for other target-specific linker scripts and such.
5826case "${target}" in
5827 m32c-*-* )
5828 if test -d ${srcdir}/libgloss/m32c; then
5829 # This is for crt0.o
5830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5831 # This is for r8c.ld
5832 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5833 # This is for libnosys.a
5834 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5835 fi
5836 ;;
3e19841a
PB
5837 mep*)
5838 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5839 ;;
e88a2c09
DD
5840esac
5841
671aa708 5842# Makefile fragments.
7b61653a
PE
5843for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5844do
5845 eval fragval=\$$frag
5846 if test $fragval != /dev/null; then
5847 eval $frag=${srcdir}/$fragval
5848 fi
5849done
671aa708
NN
5850
5851
5852
5853
5854
5855# Miscellanea: directories, flags, etc.
5856
5857
5858
5859
5860
5861
5862
23f6b2f9 5863# Build module lists & subconfigure args.
671aa708
NN
5864
5865
5866
2abefe3d
PB
5867# Host module lists & subconfigure args.
5868
5869
5870
5871# Target module lists & subconfigure args.
5872
5873
5874
5875# Build tools.
5876
5877
5878
5879# Generate default definitions for YACC, M4, LEX and other programs that run
5880# on the build machine. These are used if the Makefile can't locate these
5881# programs in objdir.
5882MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5883
5884for ac_prog in 'bison -y' byacc yacc
5885do
1c710c3c 5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5887set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5888echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5890if test "${ac_cv_prog_YACC+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5892else
5893 if test -n "$YACC"; then
5894 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5895else
1c710c3c
DJ
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5903 ac_cv_prog_YACC="$ac_prog"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908done
5909
2abefe3d
PB
5910fi
5911fi
1c710c3c 5912YACC=$ac_cv_prog_YACC
2abefe3d 5913if test -n "$YACC"; then
2aeb72e9
DD
5914 echo "$as_me:$LINENO: result: $YACC" >&5
5915echo "${ECHO_T}$YACC" >&6
2abefe3d 5916else
2aeb72e9
DD
5917 echo "$as_me:$LINENO: result: no" >&5
5918echo "${ECHO_T}no" >&6
2abefe3d
PB
5919fi
5920
1c710c3c 5921 test -n "$YACC" && break
2abefe3d
PB
5922done
5923test -n "$YACC" || YACC="$MISSING bison -y"
5924
5925case " $build_configdirs " in
5926 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5927 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5928esac
5929
5930for ac_prog in bison
5931do
1c710c3c 5932 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5933set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5934echo "$as_me:$LINENO: checking for $ac_word" >&5
5935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5936if test "${ac_cv_prog_BISON+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5938else
5939 if test -n "$BISON"; then
5940 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5941else
1c710c3c
DJ
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5949 ac_cv_prog_BISON="$ac_prog"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 break 2
5952 fi
5953done
5954done
5955
2abefe3d
PB
5956fi
5957fi
1c710c3c 5958BISON=$ac_cv_prog_BISON
2abefe3d 5959if test -n "$BISON"; then
2aeb72e9
DD
5960 echo "$as_me:$LINENO: result: $BISON" >&5
5961echo "${ECHO_T}$BISON" >&6
2abefe3d 5962else
2aeb72e9
DD
5963 echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6
2abefe3d
PB
5965fi
5966
1c710c3c 5967 test -n "$BISON" && break
2abefe3d
PB
5968done
5969test -n "$BISON" || BISON="$MISSING bison"
5970
5971case " $build_configdirs " in
5972 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5973esac
5974
5975for ac_prog in gm4 gnum4 m4
5976do
1c710c3c 5977 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5978set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5979echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5981if test "${ac_cv_prog_M4+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5983else
5984 if test -n "$M4"; then
5985 ac_cv_prog_M4="$M4" # Let the user override the test.
5986else
1c710c3c
DJ
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5994 ac_cv_prog_M4="$ac_prog"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998done
5999done
6000
2abefe3d
PB
6001fi
6002fi
1c710c3c 6003M4=$ac_cv_prog_M4
2abefe3d 6004if test -n "$M4"; then
2aeb72e9
DD
6005 echo "$as_me:$LINENO: result: $M4" >&5
6006echo "${ECHO_T}$M4" >&6
2abefe3d 6007else
2aeb72e9
DD
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
2abefe3d
PB
6010fi
6011
1c710c3c 6012 test -n "$M4" && break
2abefe3d
PB
6013done
6014test -n "$M4" || M4="$MISSING m4"
6015
6016case " $build_configdirs " in
6017 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6018esac
6019
6020for ac_prog in flex lex
6021do
1c710c3c 6022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6023set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6024echo "$as_me:$LINENO: checking for $ac_word" >&5
6025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6026if test "${ac_cv_prog_LEX+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6028else
6029 if test -n "$LEX"; then
6030 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6031else
1c710c3c
DJ
6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033for as_dir in $PATH
6034do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6039 ac_cv_prog_LEX="$ac_prog"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043done
6044done
6045
2abefe3d
PB
6046fi
6047fi
1c710c3c 6048LEX=$ac_cv_prog_LEX
2abefe3d 6049if test -n "$LEX"; then
2aeb72e9
DD
6050 echo "$as_me:$LINENO: result: $LEX" >&5
6051echo "${ECHO_T}$LEX" >&6
2abefe3d 6052else
2aeb72e9
DD
6053 echo "$as_me:$LINENO: result: no" >&5
6054echo "${ECHO_T}no" >&6
2abefe3d
PB
6055fi
6056
1c710c3c 6057 test -n "$LEX" && break
2abefe3d
PB
6058done
6059test -n "$LEX" || LEX="$MISSING flex"
6060
6061case " $build_configdirs " in
6062 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6063 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6064esac
6065
6066for ac_prog in flex
6067do
1c710c3c 6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6069set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6070echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6072if test "${ac_cv_prog_FLEX+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6074else
6075 if test -n "$FLEX"; then
6076 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6077else
1c710c3c
DJ
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6085 ac_cv_prog_FLEX="$ac_prog"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089done
6090done
6091
2abefe3d
PB
6092fi
6093fi
1c710c3c 6094FLEX=$ac_cv_prog_FLEX
2abefe3d 6095if test -n "$FLEX"; then
2aeb72e9
DD
6096 echo "$as_me:$LINENO: result: $FLEX" >&5
6097echo "${ECHO_T}$FLEX" >&6
2abefe3d 6098else
2aeb72e9
DD
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
2abefe3d
PB
6101fi
6102
1c710c3c 6103 test -n "$FLEX" && break
2abefe3d
PB
6104done
6105test -n "$FLEX" || FLEX="$MISSING flex"
6106
6107case " $build_configdirs " in
6108 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6109esac
6110
6111for ac_prog in makeinfo
6112do
1c710c3c 6113 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6114set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6115echo "$as_me:$LINENO: checking for $ac_word" >&5
6116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6117if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6119else
6120 if test -n "$MAKEINFO"; then
6121 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6122else
1c710c3c
DJ
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126 IFS=$as_save_IFS
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6130 ac_cv_prog_MAKEINFO="$ac_prog"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 break 2
6133 fi
6134done
6135done
6136
2abefe3d
PB
6137fi
6138fi
1c710c3c 6139MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6140if test -n "$MAKEINFO"; then
2aeb72e9
DD
6141 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6142echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6143else
2aeb72e9
DD
6144 echo "$as_me:$LINENO: result: no" >&5
6145echo "${ECHO_T}no" >&6
2abefe3d
PB
6146fi
6147
1c710c3c 6148 test -n "$MAKEINFO" && break
2abefe3d
PB
6149done
6150test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6151
6152case " $build_configdirs " in
6153 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6154 *)
6155
27b6c940 6156 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
6157 # higher, else we use the "missing" dummy.
6158 if ${MAKEINFO} --version \
27b6c940 6159 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
6160 :
6161 else
6162 MAKEINFO="$MISSING makeinfo"
6163 fi
6164 ;;
6165
6166esac
671aa708 6167
2abefe3d 6168# FIXME: expect and dejagnu may become build tools?
671aa708 6169
2abefe3d
PB
6170for ac_prog in expect
6171do
1c710c3c 6172 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6173set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6174echo "$as_me:$LINENO: checking for $ac_word" >&5
6175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6176if test "${ac_cv_prog_EXPECT+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6178else
6179 if test -n "$EXPECT"; then
6180 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6181else
1c710c3c
DJ
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6189 ac_cv_prog_EXPECT="$ac_prog"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193done
6194done
6195
2abefe3d
PB
6196fi
6197fi
1c710c3c 6198EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6199if test -n "$EXPECT"; then
2aeb72e9
DD
6200 echo "$as_me:$LINENO: result: $EXPECT" >&5
6201echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6202else
2aeb72e9
DD
6203 echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
2abefe3d 6205fi
671aa708 6206
1c710c3c 6207 test -n "$EXPECT" && break
2abefe3d
PB
6208done
6209test -n "$EXPECT" || EXPECT="expect"
671aa708 6210
2abefe3d
PB
6211case " $configdirs " in
6212 *" expect "*)
6213 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6214 ;;
6215esac
671aa708 6216
2abefe3d
PB
6217for ac_prog in runtest
6218do
1c710c3c 6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6220set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6221echo "$as_me:$LINENO: checking for $ac_word" >&5
6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6223if test "${ac_cv_prog_RUNTEST+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6225else
6226 if test -n "$RUNTEST"; then
6227 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6228else
1c710c3c
DJ
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6236 ac_cv_prog_RUNTEST="$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240done
6241done
6242
2abefe3d
PB
6243fi
6244fi
1c710c3c 6245RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6246if test -n "$RUNTEST"; then
2aeb72e9
DD
6247 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6248echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6249else
2aeb72e9
DD
6250 echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
2abefe3d 6252fi
671aa708 6253
1c710c3c 6254 test -n "$RUNTEST" && break
2abefe3d
PB
6255done
6256test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6257
2abefe3d
PB
6258case " $configdirs " in
6259 *" dejagnu "*)
c394e891 6260 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6261 ;;
6262esac
671aa708
NN
6263
6264
671aa708 6265# Host tools.
ca9f4b81
AO
6266ncn_tool_prefix=
6267test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6268ncn_target_tool_prefix=
6269test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6270
278a7a38
AO
6271
6272
6273if test -n "$AR"; then
6274 ac_cv_prog_AR=$AR
6275elif test -n "$ac_cv_prog_AR"; then
6276 AR=$ac_cv_prog_AR
6277fi
6278
6279if test -n "$ac_cv_prog_AR"; then
6280 for ncn_progname in ar; do
6281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6282set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6283echo "$as_me:$LINENO: checking for $ac_word" >&5
6284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6285if test "${ac_cv_prog_AR+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6298 ac_cv_prog_AR="${ncn_progname}"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302done
6303done
6304
6305fi
6306fi
6307AR=$ac_cv_prog_AR
6308if test -n "$AR"; then
2aeb72e9
DD
6309 echo "$as_me:$LINENO: result: $AR" >&5
6310echo "${ECHO_T}$AR" >&6
278a7a38 6311else
2aeb72e9
DD
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
278a7a38
AO
6314fi
6315
6316 done
6317fi
6318
6319for ncn_progname in ar; do
2693c0b0
PB
6320 if test -n "$ncn_tool_prefix"; then
6321 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6322set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6323echo "$as_me:$LINENO: checking for $ac_word" >&5
6324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6325if test "${ac_cv_prog_AR+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6327else
6328 if test -n "$AR"; then
6329 ac_cv_prog_AR="$AR" # Let the user override the test.
6330else
1c710c3c
DJ
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6338 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342done
6343done
6344
ca9f4b81
AO
6345fi
6346fi
1c710c3c 6347AR=$ac_cv_prog_AR
ca9f4b81 6348if test -n "$AR"; then
2aeb72e9
DD
6349 echo "$as_me:$LINENO: result: $AR" >&5
6350echo "${ECHO_T}$AR" >&6
ca9f4b81 6351else
2aeb72e9
DD
6352 echo "$as_me:$LINENO: result: no" >&5
6353echo "${ECHO_T}no" >&6
ca9f4b81
AO
6354fi
6355
2693c0b0
PB
6356 fi
6357 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6359set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6360echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6362if test "${ac_cv_prog_AR+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6364else
2693c0b0 6365 if test -n "$AR"; then
af71363e
AS
6366 ac_cv_prog_AR="$AR" # Let the user override the test.
6367else
1c710c3c
DJ
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6375 ac_cv_prog_AR="${ncn_progname}"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380done
6381
ca9f4b81
AO
6382fi
6383fi
1c710c3c 6384AR=$ac_cv_prog_AR
2693c0b0 6385if test -n "$AR"; then
2aeb72e9
DD
6386 echo "$as_me:$LINENO: result: $AR" >&5
6387echo "${ECHO_T}$AR" >&6
ca9f4b81 6388else
2aeb72e9
DD
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
ca9f4b81 6391fi
1c710c3c 6392
2693c0b0
PB
6393 fi
6394 test -n "$ac_cv_prog_AR" && break
6395done
6396
6397if test -z "$ac_cv_prog_AR" ; then
6398 set dummy ar
6399 if test $build = $host ; then
6400 AR="$2"
ca9f4b81 6401 else
2693c0b0 6402 AR="${ncn_tool_prefix}$2"
ca9f4b81 6403 fi
ca9f4b81
AO
6404fi
6405
278a7a38
AO
6406
6407
6408if test -n "$AS"; then
6409 ac_cv_prog_AS=$AS
6410elif test -n "$ac_cv_prog_AS"; then
6411 AS=$ac_cv_prog_AS
6412fi
6413
6414if test -n "$ac_cv_prog_AS"; then
6415 for ncn_progname in as; do
6416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6417set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6418echo "$as_me:$LINENO: checking for $ac_word" >&5
6419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6420if test "${ac_cv_prog_AS+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422else
6423 if test -n "$AS"; then
6424 ac_cv_prog_AS="$AS" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6433 ac_cv_prog_AS="${ncn_progname}"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438done
6439
6440fi
6441fi
6442AS=$ac_cv_prog_AS
6443if test -n "$AS"; then
2aeb72e9
DD
6444 echo "$as_me:$LINENO: result: $AS" >&5
6445echo "${ECHO_T}$AS" >&6
278a7a38 6446else
2aeb72e9
DD
6447 echo "$as_me:$LINENO: result: no" >&5
6448echo "${ECHO_T}no" >&6
278a7a38
AO
6449fi
6450
6451 done
6452fi
6453
6454for ncn_progname in as; do
2693c0b0
PB
6455 if test -n "$ncn_tool_prefix"; then
6456 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6457set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6458echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6460if test "${ac_cv_prog_AS+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6462else
6463 if test -n "$AS"; then
6464 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6465else
1c710c3c
DJ
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6473 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477done
6478done
6479
ca9f4b81
AO
6480fi
6481fi
1c710c3c 6482AS=$ac_cv_prog_AS
ca9f4b81 6483if test -n "$AS"; then
2aeb72e9
DD
6484 echo "$as_me:$LINENO: result: $AS" >&5
6485echo "${ECHO_T}$AS" >&6
ca9f4b81 6486else
2aeb72e9
DD
6487 echo "$as_me:$LINENO: result: no" >&5
6488echo "${ECHO_T}no" >&6
ca9f4b81
AO
6489fi
6490
2693c0b0
PB
6491 fi
6492 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6494set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6495echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6497if test "${ac_cv_prog_AS+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6499else
2693c0b0
PB
6500 if test -n "$AS"; then
6501 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6502else
1c710c3c
DJ
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6510 ac_cv_prog_AS="${ncn_progname}"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515done
6516
ca9f4b81
AO
6517fi
6518fi
1c710c3c 6519AS=$ac_cv_prog_AS
2693c0b0 6520if test -n "$AS"; then
2aeb72e9
DD
6521 echo "$as_me:$LINENO: result: $AS" >&5
6522echo "${ECHO_T}$AS" >&6
ca9f4b81 6523else
2aeb72e9
DD
6524 echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
ca9f4b81 6526fi
1c710c3c 6527
2693c0b0
PB
6528 fi
6529 test -n "$ac_cv_prog_AS" && break
6530done
6531
6532if test -z "$ac_cv_prog_AS" ; then
6533 set dummy as
6534 if test $build = $host ; then
6535 AS="$2"
ca9f4b81 6536 else
2693c0b0 6537 AS="${ncn_tool_prefix}$2"
ca9f4b81 6538 fi
ca9f4b81
AO
6539fi
6540
278a7a38
AO
6541
6542
6543if test -n "$DLLTOOL"; then
6544 ac_cv_prog_DLLTOOL=$DLLTOOL
6545elif test -n "$ac_cv_prog_DLLTOOL"; then
6546 DLLTOOL=$ac_cv_prog_DLLTOOL
6547fi
6548
6549if test -n "$ac_cv_prog_DLLTOOL"; then
6550 for ncn_progname in dlltool; do
6551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6552set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6553echo "$as_me:$LINENO: checking for $ac_word" >&5
6554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6555if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557else
6558 if test -n "$DLLTOOL"; then
6559 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6560else
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6568 ac_cv_prog_DLLTOOL="${ncn_progname}"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572done
6573done
6574
6575fi
6576fi
6577DLLTOOL=$ac_cv_prog_DLLTOOL
6578if test -n "$DLLTOOL"; then
2aeb72e9
DD
6579 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6580echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6581else
2aeb72e9
DD
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
278a7a38
AO
6584fi
6585
6586 done
6587fi
6588
6589for ncn_progname in dlltool; do
2693c0b0
PB
6590 if test -n "$ncn_tool_prefix"; then
6591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6592set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6593echo "$as_me:$LINENO: checking for $ac_word" >&5
6594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6595if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6597else
6598 if test -n "$DLLTOOL"; then
6599 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6600else
1c710c3c
DJ
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6608 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6611 fi
6612done
6613done
6614
ca9f4b81
AO
6615fi
6616fi
1c710c3c 6617DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6618if test -n "$DLLTOOL"; then
2aeb72e9
DD
6619 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6620echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6621else
2aeb72e9
DD
6622 echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6
ca9f4b81
AO
6624fi
6625
2693c0b0
PB
6626 fi
6627 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6629set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6630echo "$as_me:$LINENO: checking for $ac_word" >&5
6631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6632if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6634else
2693c0b0
PB
6635 if test -n "$DLLTOOL"; then
6636 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6637else
1c710c3c
DJ
6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6645 ac_cv_prog_DLLTOOL="${ncn_progname}"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649done
6650done
6651
ca9f4b81
AO
6652fi
6653fi
1c710c3c 6654DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6655if test -n "$DLLTOOL"; then
2aeb72e9
DD
6656 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6657echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6658else
2aeb72e9
DD
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
ca9f4b81 6661fi
1c710c3c 6662
2693c0b0
PB
6663 fi
6664 test -n "$ac_cv_prog_DLLTOOL" && break
6665done
6666
6667if test -z "$ac_cv_prog_DLLTOOL" ; then
6668 set dummy dlltool
6669 if test $build = $host ; then
6670 DLLTOOL="$2"
ca9f4b81 6671 else
2693c0b0 6672 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6673 fi
ca9f4b81
AO
6674fi
6675
278a7a38
AO
6676
6677
6678if test -n "$LD"; then
6679 ac_cv_prog_LD=$LD
6680elif test -n "$ac_cv_prog_LD"; then
6681 LD=$ac_cv_prog_LD
6682fi
6683
6684if test -n "$ac_cv_prog_LD"; then
6685 for ncn_progname in ld; do
6686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6687set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6688echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6690if test "${ac_cv_prog_LD+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 if test -n "$LD"; then
6694 ac_cv_prog_LD="$LD" # Let the user override the test.
6695else
6696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697for as_dir in $PATH
6698do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6703 ac_cv_prog_LD="${ncn_progname}"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707done
6708done
6709
6710fi
6711fi
6712LD=$ac_cv_prog_LD
6713if test -n "$LD"; then
2aeb72e9
DD
6714 echo "$as_me:$LINENO: result: $LD" >&5
6715echo "${ECHO_T}$LD" >&6
278a7a38 6716else
2aeb72e9
DD
6717 echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6
278a7a38
AO
6719fi
6720
6721 done
6722fi
6723
6724for ncn_progname in ld; do
2693c0b0
PB
6725 if test -n "$ncn_tool_prefix"; then
6726 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6727set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6728echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6730if test "${ac_cv_prog_LD+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6732else
6733 if test -n "$LD"; then
6734 ac_cv_prog_LD="$LD" # Let the user override the test.
6735else
1c710c3c
DJ
6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6743 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747done
6748done
6749
ca9f4b81
AO
6750fi
6751fi
1c710c3c 6752LD=$ac_cv_prog_LD
ca9f4b81 6753if test -n "$LD"; then
2aeb72e9
DD
6754 echo "$as_me:$LINENO: result: $LD" >&5
6755echo "${ECHO_T}$LD" >&6
ca9f4b81 6756else
2aeb72e9
DD
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
ca9f4b81
AO
6759fi
6760
2693c0b0
PB
6761 fi
6762 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6764set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6765echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6767if test "${ac_cv_prog_LD+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6769else
2693c0b0
PB
6770 if test -n "$LD"; then
6771 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6772else
1c710c3c
DJ
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6780 ac_cv_prog_LD="${ncn_progname}"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784done
6785done
6786
ca9f4b81
AO
6787fi
6788fi
1c710c3c 6789LD=$ac_cv_prog_LD
2693c0b0 6790if test -n "$LD"; then
2aeb72e9
DD
6791 echo "$as_me:$LINENO: result: $LD" >&5
6792echo "${ECHO_T}$LD" >&6
ca9f4b81 6793else
2aeb72e9
DD
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
ca9f4b81 6796fi
1c710c3c 6797
2693c0b0
PB
6798 fi
6799 test -n "$ac_cv_prog_LD" && break
6800done
6801
6802if test -z "$ac_cv_prog_LD" ; then
6803 set dummy ld
6804 if test $build = $host ; then
6805 LD="$2"
ca9f4b81 6806 else
2693c0b0 6807 LD="${ncn_tool_prefix}$2"
ca9f4b81 6808 fi
ca9f4b81
AO
6809fi
6810
278a7a38
AO
6811
6812
6813if test -n "$LIPO"; then
6814 ac_cv_prog_LIPO=$LIPO
6815elif test -n "$ac_cv_prog_LIPO"; then
6816 LIPO=$ac_cv_prog_LIPO
6817fi
6818
6819if test -n "$ac_cv_prog_LIPO"; then
6820 for ncn_progname in lipo; do
6821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6822set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6823echo "$as_me:$LINENO: checking for $ac_word" >&5
6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6825if test "${ac_cv_prog_LIPO+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828 if test -n "$LIPO"; then
6829 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6830else
6831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6838 ac_cv_prog_LIPO="${ncn_progname}"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842done
6843done
6844
6845fi
6846fi
6847LIPO=$ac_cv_prog_LIPO
6848if test -n "$LIPO"; then
2aeb72e9
DD
6849 echo "$as_me:$LINENO: result: $LIPO" >&5
6850echo "${ECHO_T}$LIPO" >&6
278a7a38 6851else
2aeb72e9
DD
6852 echo "$as_me:$LINENO: result: no" >&5
6853echo "${ECHO_T}no" >&6
278a7a38
AO
6854fi
6855
6856 done
6857fi
6858
6859for ncn_progname in lipo; do
2abefe3d
PB
6860 if test -n "$ncn_tool_prefix"; then
6861 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6862set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6863echo "$as_me:$LINENO: checking for $ac_word" >&5
6864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6865if test "${ac_cv_prog_LIPO+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6867else
6868 if test -n "$LIPO"; then
6869 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6870else
1c710c3c
DJ
6871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6878 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883done
6884
2abefe3d
PB
6885fi
6886fi
1c710c3c 6887LIPO=$ac_cv_prog_LIPO
2abefe3d 6888if test -n "$LIPO"; then
2aeb72e9
DD
6889 echo "$as_me:$LINENO: result: $LIPO" >&5
6890echo "${ECHO_T}$LIPO" >&6
2abefe3d 6891else
2aeb72e9
DD
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
2abefe3d
PB
6894fi
6895
6896 fi
6897 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6899set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6900echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6902if test "${ac_cv_prog_LIPO+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6904else
6905 if test -n "$LIPO"; then
6906 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6907else
1c710c3c
DJ
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6915 ac_cv_prog_LIPO="${ncn_progname}"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920done
6921
2abefe3d
PB
6922fi
6923fi
1c710c3c 6924LIPO=$ac_cv_prog_LIPO
2abefe3d 6925if test -n "$LIPO"; then
2aeb72e9
DD
6926 echo "$as_me:$LINENO: result: $LIPO" >&5
6927echo "${ECHO_T}$LIPO" >&6
2abefe3d 6928else
2aeb72e9
DD
6929 echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
2abefe3d 6931fi
1c710c3c 6932
2abefe3d
PB
6933 fi
6934 test -n "$ac_cv_prog_LIPO" && break
6935done
6936
6937if test -z "$ac_cv_prog_LIPO" ; then
6938 set dummy lipo
6939 if test $build = $host ; then
6940 LIPO="$2"
6941 else
6942 LIPO="${ncn_tool_prefix}$2"
6943 fi
6944fi
6945
278a7a38
AO
6946
6947
6948if test -n "$NM"; then
6949 ac_cv_prog_NM=$NM
6950elif test -n "$ac_cv_prog_NM"; then
6951 NM=$ac_cv_prog_NM
6952fi
6953
6954if test -n "$ac_cv_prog_NM"; then
6955 for ncn_progname in nm; do
6956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6957set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6958echo "$as_me:$LINENO: checking for $ac_word" >&5
6959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6960if test "${ac_cv_prog_NM+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6962else
6963 if test -n "$NM"; then
6964 ac_cv_prog_NM="$NM" # Let the user override the test.
6965else
1c710c3c
DJ
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 6973 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
6974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977done
6978done
6979
ca9f4b81
AO
6980fi
6981fi
1c710c3c 6982NM=$ac_cv_prog_NM
ca9f4b81 6983if test -n "$NM"; then
2aeb72e9
DD
6984 echo "$as_me:$LINENO: result: $NM" >&5
6985echo "${ECHO_T}$NM" >&6
ca9f4b81 6986else
2aeb72e9
DD
6987 echo "$as_me:$LINENO: result: no" >&5
6988echo "${ECHO_T}no" >&6
ca9f4b81
AO
6989fi
6990
278a7a38
AO
6991 done
6992fi
6993
6994for ncn_progname in nm; do
6995 if test -n "$ncn_tool_prefix"; then
6996 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6997set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6998echo "$as_me:$LINENO: checking for $ac_word" >&5
6999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7000if test "${ac_cv_prog_NM+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7002else
2693c0b0
PB
7003 if test -n "$NM"; then
7004 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7005else
1c710c3c
DJ
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7013 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017done
7018done
7019
ca9f4b81
AO
7020fi
7021fi
1c710c3c 7022NM=$ac_cv_prog_NM
2693c0b0 7023if test -n "$NM"; then
2aeb72e9
DD
7024 echo "$as_me:$LINENO: result: $NM" >&5
7025echo "${ECHO_T}$NM" >&6
ca9f4b81 7026else
2aeb72e9
DD
7027 echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6
ca9f4b81 7029fi
1c710c3c 7030
2693c0b0 7031 fi
278a7a38
AO
7032 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7034set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7035echo "$as_me:$LINENO: checking for $ac_word" >&5
7036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7037if test "${ac_cv_prog_NM+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039else
7040 if test -n "$NM"; then
7041 ac_cv_prog_NM="$NM" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7050 ac_cv_prog_NM="${ncn_progname}"
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
7056
7057fi
7058fi
7059NM=$ac_cv_prog_NM
7060if test -n "$NM"; then
2aeb72e9
DD
7061 echo "$as_me:$LINENO: result: $NM" >&5
7062echo "${ECHO_T}$NM" >&6
278a7a38 7063else
2aeb72e9
DD
7064 echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6
278a7a38
AO
7066fi
7067
7068 fi
7069 test -n "$ac_cv_prog_NM" && break
7070done
7071
7072if test -z "$ac_cv_prog_NM" ; then
7073 set dummy nm
7074 if test $build = $host ; then
7075 NM="$2"
7076 else
7077 NM="${ncn_tool_prefix}$2"
7078 fi
7079fi
7080
7081
7082
7083if test -n "$RANLIB"; then
7084 ac_cv_prog_RANLIB=$RANLIB
7085elif test -n "$ac_cv_prog_RANLIB"; then
7086 RANLIB=$ac_cv_prog_RANLIB
7087fi
7088
7089if test -n "$ac_cv_prog_RANLIB"; then
7090 for ncn_progname in ranlib; do
7091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7092set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7093echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7095if test "${ac_cv_prog_RANLIB+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098 if test -n "$RANLIB"; then
7099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7108 ac_cv_prog_RANLIB="${ncn_progname}"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7111 fi
7112done
7113done
7114
7115fi
7116fi
7117RANLIB=$ac_cv_prog_RANLIB
7118if test -n "$RANLIB"; then
2aeb72e9
DD
7119 echo "$as_me:$LINENO: result: $RANLIB" >&5
7120echo "${ECHO_T}$RANLIB" >&6
278a7a38 7121else
2aeb72e9
DD
7122 echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6
278a7a38
AO
7124fi
7125
7126 done
7127fi
ca9f4b81 7128
278a7a38 7129for ncn_progname in ranlib; do
2693c0b0
PB
7130 if test -n "$ncn_tool_prefix"; then
7131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7132set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7133echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7135if test "${ac_cv_prog_RANLIB+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7137else
7138 if test -n "$RANLIB"; then
7139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7140else
1c710c3c
DJ
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7148 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152done
7153done
7154
ca9f4b81
AO
7155fi
7156fi
1c710c3c 7157RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7158if test -n "$RANLIB"; then
2aeb72e9
DD
7159 echo "$as_me:$LINENO: result: $RANLIB" >&5
7160echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7161else
2aeb72e9
DD
7162 echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6
ca9f4b81
AO
7164fi
7165
2693c0b0
PB
7166 fi
7167 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7169set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7170echo "$as_me:$LINENO: checking for $ac_word" >&5
7171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7172if test "${ac_cv_prog_RANLIB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7174else
2693c0b0
PB
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7177else
1c710c3c
DJ
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7185 ac_cv_prog_RANLIB="${ncn_progname}"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190done
7191
ca9f4b81
AO
7192fi
7193fi
1c710c3c 7194RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7195if test -n "$RANLIB"; then
2aeb72e9
DD
7196 echo "$as_me:$LINENO: result: $RANLIB" >&5
7197echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7198else
2aeb72e9
DD
7199 echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6
ca9f4b81 7201fi
1c710c3c 7202
ca9f4b81 7203 fi
2693c0b0
PB
7204 test -n "$ac_cv_prog_RANLIB" && break
7205done
7206
7207if test -z "$ac_cv_prog_RANLIB" ; then
7208 RANLIB=":"
ca9f4b81
AO
7209fi
7210
278a7a38
AO
7211
7212
7213if test -n "$STRIP"; then
7214 ac_cv_prog_STRIP=$STRIP
7215elif test -n "$ac_cv_prog_STRIP"; then
7216 STRIP=$ac_cv_prog_STRIP
7217fi
7218
7219if test -n "$ac_cv_prog_STRIP"; then
7220 for ncn_progname in strip; do
7221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7222set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7223echo "$as_me:$LINENO: checking for $ac_word" >&5
7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7225if test "${ac_cv_prog_STRIP+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228 if test -n "$STRIP"; then
7229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7230else
7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7238 ac_cv_prog_STRIP="${ncn_progname}"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242done
7243done
7244
7245fi
7246fi
7247STRIP=$ac_cv_prog_STRIP
7248if test -n "$STRIP"; then
2aeb72e9
DD
7249 echo "$as_me:$LINENO: result: $STRIP" >&5
7250echo "${ECHO_T}$STRIP" >&6
278a7a38 7251else
2aeb72e9
DD
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
278a7a38
AO
7254fi
7255
7256 done
7257fi
7258
7259for ncn_progname in strip; do
2abefe3d
PB
7260 if test -n "$ncn_tool_prefix"; then
7261 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7262set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7263echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7265if test "${ac_cv_prog_STRIP+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7267else
7268 if test -n "$STRIP"; then
7269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7270else
1c710c3c
DJ
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7278 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282done
7283done
7284
2abefe3d
PB
7285fi
7286fi
1c710c3c 7287STRIP=$ac_cv_prog_STRIP
2abefe3d 7288if test -n "$STRIP"; then
2aeb72e9
DD
7289 echo "$as_me:$LINENO: result: $STRIP" >&5
7290echo "${ECHO_T}$STRIP" >&6
2abefe3d 7291else
2aeb72e9
DD
7292 echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6
2abefe3d
PB
7294fi
7295
7296 fi
7297 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7299set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7300echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7302if test "${ac_cv_prog_STRIP+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7304else
7305 if test -n "$STRIP"; then
7306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7307else
1c710c3c
DJ
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7315 ac_cv_prog_STRIP="${ncn_progname}"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320done
7321
2abefe3d
PB
7322fi
7323fi
1c710c3c 7324STRIP=$ac_cv_prog_STRIP
2abefe3d 7325if test -n "$STRIP"; then
2aeb72e9
DD
7326 echo "$as_me:$LINENO: result: $STRIP" >&5
7327echo "${ECHO_T}$STRIP" >&6
2abefe3d 7328else
2aeb72e9
DD
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
2abefe3d 7331fi
1c710c3c 7332
2abefe3d
PB
7333 fi
7334 test -n "$ac_cv_prog_STRIP" && break
7335done
7336
7337if test -z "$ac_cv_prog_STRIP" ; then
7338 STRIP=":"
7339fi
7340
278a7a38
AO
7341
7342
7343if test -n "$WINDRES"; then
7344 ac_cv_prog_WINDRES=$WINDRES
7345elif test -n "$ac_cv_prog_WINDRES"; then
7346 WINDRES=$ac_cv_prog_WINDRES
7347fi
7348
7349if test -n "$ac_cv_prog_WINDRES"; then
7350 for ncn_progname in windres; do
7351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7352set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7353echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7355if test "${ac_cv_prog_WINDRES+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 if test -n "$WINDRES"; then
7359 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7368 ac_cv_prog_WINDRES="${ncn_progname}"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372done
7373done
7374
7375fi
7376fi
7377WINDRES=$ac_cv_prog_WINDRES
7378if test -n "$WINDRES"; then
2aeb72e9
DD
7379 echo "$as_me:$LINENO: result: $WINDRES" >&5
7380echo "${ECHO_T}$WINDRES" >&6
278a7a38 7381else
2aeb72e9
DD
7382 echo "$as_me:$LINENO: result: no" >&5
7383echo "${ECHO_T}no" >&6
278a7a38
AO
7384fi
7385
7386 done
7387fi
7388
7389for ncn_progname in windres; do
2693c0b0
PB
7390 if test -n "$ncn_tool_prefix"; then
7391 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7392set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7393echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7395if test "${ac_cv_prog_WINDRES+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7397else
7398 if test -n "$WINDRES"; then
7399 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7400else
1c710c3c
DJ
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7408 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413done
7414
ca9f4b81
AO
7415fi
7416fi
1c710c3c 7417WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7418if test -n "$WINDRES"; then
2aeb72e9
DD
7419 echo "$as_me:$LINENO: result: $WINDRES" >&5
7420echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7421else
2aeb72e9
DD
7422 echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
ca9f4b81
AO
7424fi
7425
2693c0b0
PB
7426 fi
7427 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7429set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7430echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7432if test "${ac_cv_prog_WINDRES+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7434else
2693c0b0
PB
7435 if test -n "$WINDRES"; then
7436 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7437else
1c710c3c
DJ
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7445 ac_cv_prog_WINDRES="${ncn_progname}"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449done
7450done
7451
ca9f4b81
AO
7452fi
7453fi
1c710c3c 7454WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7455if test -n "$WINDRES"; then
2aeb72e9
DD
7456 echo "$as_me:$LINENO: result: $WINDRES" >&5
7457echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7458else
2aeb72e9
DD
7459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
ca9f4b81 7461fi
1c710c3c 7462
2693c0b0
PB
7463 fi
7464 test -n "$ac_cv_prog_WINDRES" && break
7465done
7466
7467if test -z "$ac_cv_prog_WINDRES" ; then
7468 set dummy windres
7469 if test $build = $host ; then
7470 WINDRES="$2"
ca9f4b81 7471 else
2693c0b0 7472 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7473 fi
ca9f4b81
AO
7474fi
7475
278a7a38
AO
7476
7477
901119ae
KT
7478if test -n "$WINDMC"; then
7479 ac_cv_prog_WINDMC=$WINDMC
7480elif test -n "$ac_cv_prog_WINDMC"; then
7481 WINDMC=$ac_cv_prog_WINDMC
7482fi
7483
7484if test -n "$ac_cv_prog_WINDMC"; then
7485 for ncn_progname in windmc; do
7486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7487set dummy ${ncn_progname}; ac_word=$2
7488echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490if test "${ac_cv_prog_WINDMC+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493 if test -n "$WINDMC"; then
7494 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7495else
7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_WINDMC="${ncn_progname}"
7504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507done
7508done
7509
7510fi
7511fi
7512WINDMC=$ac_cv_prog_WINDMC
7513if test -n "$WINDMC"; then
7514 echo "$as_me:$LINENO: result: $WINDMC" >&5
7515echo "${ECHO_T}$WINDMC" >&6
7516else
7517 echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6
7519fi
7520
7521 done
7522fi
7523
7524for ncn_progname in windmc; do
7525 if test -n "$ncn_tool_prefix"; then
7526 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7527set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7528echo "$as_me:$LINENO: checking for $ac_word" >&5
7529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7530if test "${ac_cv_prog_WINDMC+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533 if test -n "$WINDMC"; then
7534 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 break 2
7546 fi
7547done
7548done
7549
7550fi
7551fi
7552WINDMC=$ac_cv_prog_WINDMC
7553if test -n "$WINDMC"; then
7554 echo "$as_me:$LINENO: result: $WINDMC" >&5
7555echo "${ECHO_T}$WINDMC" >&6
7556else
7557 echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
7559fi
7560
7561 fi
7562 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7564set dummy ${ncn_progname}; ac_word=$2
7565echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7567if test "${ac_cv_prog_WINDMC+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 if test -n "$WINDMC"; then
7571 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_WINDMC="${ncn_progname}"
7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584done
7585done
7586
7587fi
7588fi
7589WINDMC=$ac_cv_prog_WINDMC
7590if test -n "$WINDMC"; then
7591 echo "$as_me:$LINENO: result: $WINDMC" >&5
7592echo "${ECHO_T}$WINDMC" >&6
7593else
7594 echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6
7596fi
7597
7598 fi
7599 test -n "$ac_cv_prog_WINDMC" && break
7600done
7601
7602if test -z "$ac_cv_prog_WINDMC" ; then
7603 set dummy windmc
7604 if test $build = $host ; then
7605 WINDMC="$2"
7606 else
7607 WINDMC="${ncn_tool_prefix}$2"
7608 fi
7609fi
7610
7611
7612
278a7a38
AO
7613if test -n "$OBJCOPY"; then
7614 ac_cv_prog_OBJCOPY=$OBJCOPY
7615elif test -n "$ac_cv_prog_OBJCOPY"; then
7616 OBJCOPY=$ac_cv_prog_OBJCOPY
7617fi
7618
7619if test -n "$ac_cv_prog_OBJCOPY"; then
7620 for ncn_progname in objcopy; do
7621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7622set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7623echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7625if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 if test -n "$OBJCOPY"; then
7629 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7630else
7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7638 ac_cv_prog_OBJCOPY="${ncn_progname}"
7639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7641 fi
7642done
7643done
7644
7645fi
7646fi
7647OBJCOPY=$ac_cv_prog_OBJCOPY
7648if test -n "$OBJCOPY"; then
2aeb72e9
DD
7649 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7650echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7651else
2aeb72e9
DD
7652 echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
278a7a38
AO
7654fi
7655
7656 done
7657fi
7658
7659for ncn_progname in objcopy; do
2693c0b0
PB
7660 if test -n "$ncn_tool_prefix"; then
7661 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7662set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7663echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7665if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7667else
7668 if test -n "$OBJCOPY"; then
7669 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7670else
1c710c3c
DJ
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7678 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682done
7683done
7684
ca9f4b81
AO
7685fi
7686fi
1c710c3c 7687OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7688if test -n "$OBJCOPY"; then
2aeb72e9
DD
7689 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7690echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7691else
2aeb72e9
DD
7692 echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6
ca9f4b81
AO
7694fi
7695
2693c0b0
PB
7696 fi
7697 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7699set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7700echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7702if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7704else
2693c0b0
PB
7705 if test -n "$OBJCOPY"; then
7706 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7707else
1c710c3c
DJ
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7715 ac_cv_prog_OBJCOPY="${ncn_progname}"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720done
7721
ca9f4b81
AO
7722fi
7723fi
1c710c3c 7724OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7725if test -n "$OBJCOPY"; then
2aeb72e9
DD
7726 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7727echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7728else
2aeb72e9
DD
7729 echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6
ca9f4b81 7731fi
1c710c3c 7732
2693c0b0
PB
7733 fi
7734 test -n "$ac_cv_prog_OBJCOPY" && break
7735done
7736
7737if test -z "$ac_cv_prog_OBJCOPY" ; then
7738 set dummy objcopy
7739 if test $build = $host ; then
7740 OBJCOPY="$2"
ca9f4b81 7741 else
2693c0b0 7742 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7743 fi
ca9f4b81
AO
7744fi
7745
278a7a38
AO
7746
7747
7748if test -n "$OBJDUMP"; then
7749 ac_cv_prog_OBJDUMP=$OBJDUMP
7750elif test -n "$ac_cv_prog_OBJDUMP"; then
7751 OBJDUMP=$ac_cv_prog_OBJDUMP
7752fi
7753
7754if test -n "$ac_cv_prog_OBJDUMP"; then
7755 for ncn_progname in objdump; do
7756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7757set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7758echo "$as_me:$LINENO: checking for $ac_word" >&5
7759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7760if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 if test -n "$OBJDUMP"; then
7764 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7765else
7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7773 ac_cv_prog_OBJDUMP="${ncn_progname}"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777done
7778done
7779
7780fi
7781fi
7782OBJDUMP=$ac_cv_prog_OBJDUMP
7783if test -n "$OBJDUMP"; then
2aeb72e9
DD
7784 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7785echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7786else
2aeb72e9
DD
7787 echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
278a7a38
AO
7789fi
7790
7791 done
7792fi
7793
7794for ncn_progname in objdump; do
2693c0b0
PB
7795 if test -n "$ncn_tool_prefix"; then
7796 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7797set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7798echo "$as_me:$LINENO: checking for $ac_word" >&5
7799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7800if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7802else
7803 if test -n "$OBJDUMP"; then
7804 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7805else
1c710c3c
DJ
7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7813 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817done
7818done
7819
ca9f4b81
AO
7820fi
7821fi
1c710c3c 7822OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7823if test -n "$OBJDUMP"; then
2aeb72e9
DD
7824 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7825echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7826else
2aeb72e9
DD
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
ca9f4b81
AO
7829fi
7830
2693c0b0
PB
7831 fi
7832 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7834set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7835echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7837if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7839else
2693c0b0
PB
7840 if test -n "$OBJDUMP"; then
7841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7842else
1c710c3c
DJ
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7850 ac_cv_prog_OBJDUMP="${ncn_progname}"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854done
7855done
7856
ca9f4b81
AO
7857fi
7858fi
1c710c3c 7859OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7860if test -n "$OBJDUMP"; then
2aeb72e9
DD
7861 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7862echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7863else
2aeb72e9
DD
7864 echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
ca9f4b81 7866fi
1c710c3c 7867
2693c0b0
PB
7868 fi
7869 test -n "$ac_cv_prog_OBJDUMP" && break
7870done
7871
7872if test -z "$ac_cv_prog_OBJDUMP" ; then
7873 set dummy objdump
7874 if test $build = $host ; then
7875 OBJDUMP="$2"
ca9f4b81 7876 else
2693c0b0 7877 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7878 fi
ca9f4b81
AO
7879fi
7880
671aa708
NN
7881
7882
7883
7884
7885
7886
2abefe3d 7887# Target tools.
1c710c3c 7888
2aeb72e9 7889# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7890if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7891 withval="$with_build_time_tools"
7892 case x"$withval" in
e8b05380
PB
7893 x/*) ;;
7894 *)
7895 with_build_time_tools=
1c710c3c
DJ
7896 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7897echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7898 ;;
7899 esac
ca9f4b81 7900else
e8b05380 7901 with_build_time_tools=
2aeb72e9 7902fi;
ca9f4b81 7903
278a7a38
AO
7904
7905
7906if test -n "$CC_FOR_TARGET"; then
7907 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7908elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7909 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7910fi
7911
7912if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7913 for ncn_progname in cc gcc; do
7914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7915set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7916echo "$as_me:$LINENO: checking for $ac_word" >&5
7917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7918if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 if test -n "$CC_FOR_TARGET"; then
7922 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7923else
7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7931 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935done
7936done
7937
7938fi
7939fi
7940CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7941if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7942 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7943echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 7944else
2aeb72e9
DD
7945 echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6
278a7a38
AO
7947fi
7948
7949 done
7950fi
7951
7952if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 7953 for ncn_progname in cc gcc; do
2aeb72e9
DD
7954 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7955echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7956 if test -x $with_build_time_tools/${ncn_progname}; then
7957 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
7958 echo "$as_me:$LINENO: result: yes" >&5
7959echo "${ECHO_T}yes" >&6
72a7ab82 7960 break
e8b05380 7961 else
2aeb72e9
DD
7962 echo "$as_me:$LINENO: result: no" >&5
7963echo "${ECHO_T}no" >&6
72a7ab82
AP
7964 fi
7965 done
4de997d1
PB
7966fi
7967
e8b05380
PB
7968if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7969 for ncn_progname in cc gcc; do
7970 if test -n "$ncn_target_tool_prefix"; then
7971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7973echo "$as_me:$LINENO: checking for $ac_word" >&5
7974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7975if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
7977else
7978 if test -n "$CC_FOR_TARGET"; then
7979 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7980else
1c710c3c
DJ
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7988 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992done
7993done
7994
4de997d1
PB
7995fi
7996fi
1c710c3c 7997CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 7998if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
7999 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8000echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8001else
2aeb72e9
DD
8002 echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6
4de997d1
PB
8004fi
8005
e8b05380
PB
8006 fi
8007 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8009set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8010echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8012if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8014else
2693c0b0
PB
8015 if test -n "$CC_FOR_TARGET"; then
8016 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8017else
1c710c3c
DJ
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8025 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 break 2
8028 fi
8029done
8030done
8031
4de997d1
PB
8032fi
8033fi
1c710c3c 8034CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8035if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8036 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8037echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8038else
2aeb72e9
DD
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
4de997d1 8041fi
1c710c3c 8042
e8b05380
PB
8043 fi
8044 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8045 done
8046fi
1c710c3c 8047
2693c0b0
PB
8048if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8049 set dummy cc gcc
8050 if test $build = $target ; then
8051 CC_FOR_TARGET="$2"
4de997d1 8052 else
2693c0b0 8053 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8054 fi
1c00b503
PB
8055else
8056 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8057fi
8058
278a7a38
AO
8059
8060
8061if test -n "$CXX_FOR_TARGET"; then
8062 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8063elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8064 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8065fi
8066
8067if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8068 for ncn_progname in c++ g++ cxx gxx; do
8069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8070set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8071echo "$as_me:$LINENO: checking for $ac_word" >&5
8072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8073if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075else
8076 if test -n "$CXX_FOR_TARGET"; then
8077 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8086 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090done
8091done
8092
8093fi
8094fi
8095CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8096if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8097 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8098echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8099else
2aeb72e9
DD
8100 echo "$as_me:$LINENO: result: no" >&5
8101echo "${ECHO_T}no" >&6
278a7a38
AO
8102fi
8103
8104 done
8105fi
8106
8107if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8108 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8110echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8111 if test -x $with_build_time_tools/${ncn_progname}; then
8112 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
e8b05380
PB
8115 break
8116 else
2aeb72e9
DD
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
e8b05380
PB
8119 fi
8120 done
8121fi
8122
8123if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8124 for ncn_progname in c++ g++ cxx gxx; do
8125 if test -n "$ncn_target_tool_prefix"; then
8126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8128echo "$as_me:$LINENO: checking for $ac_word" >&5
8129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8130if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8132else
8133 if test -n "$CXX_FOR_TARGET"; then
8134 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8135else
1c710c3c
DJ
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8143 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8145 break 2
8146 fi
8147done
8148done
8149
4de997d1
PB
8150fi
8151fi
1c710c3c 8152CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8153if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8154 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8155echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8156else
2aeb72e9
DD
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
4de997d1
PB
8159fi
8160
e8b05380
PB
8161 fi
8162 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8164set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8165echo "$as_me:$LINENO: checking for $ac_word" >&5
8166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8167if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8169else
2693c0b0
PB
8170 if test -n "$CXX_FOR_TARGET"; then
8171 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8172else
1c710c3c
DJ
8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174for as_dir in $PATH
8175do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8180 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184done
8185done
8186
4de997d1
PB
8187fi
8188fi
1c710c3c 8189CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8190if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8191 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8192echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8193else
2aeb72e9
DD
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
4de997d1 8196fi
1c710c3c 8197
e8b05380
PB
8198 fi
8199 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8200 done
8201fi
1c710c3c 8202
2693c0b0
PB
8203if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8204 set dummy c++ g++ cxx gxx
8205 if test $build = $target ; then
8206 CXX_FOR_TARGET="$2"
4de997d1 8207 else
2693c0b0 8208 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8209 fi
1c00b503
PB
8210else
8211 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8212fi
8213
278a7a38
AO
8214
8215
8216if test -n "$GCC_FOR_TARGET"; then
8217 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8218elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8219 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8220fi
8221
8222if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8223 for ncn_progname in gcc; do
8224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8225set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8226echo "$as_me:$LINENO: checking for $ac_word" >&5
8227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8228if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230else
8231 if test -n "$GCC_FOR_TARGET"; then
8232 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8241 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245done
8246done
8247
8248fi
8249fi
8250GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8251if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8252 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8253echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8254else
2aeb72e9
DD
8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
278a7a38
AO
8257fi
8258
8259 done
8260fi
8261
8262if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8263 for ncn_progname in gcc; do
2aeb72e9
DD
8264 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8265echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8266 if test -x $with_build_time_tools/${ncn_progname}; then
8267 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8268 echo "$as_me:$LINENO: result: yes" >&5
8269echo "${ECHO_T}yes" >&6
e8b05380
PB
8270 break
8271 else
2aeb72e9
DD
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
e8b05380
PB
8274 fi
8275 done
8276fi
8277
8278if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8279 for ncn_progname in gcc; do
8280 if test -n "$ncn_target_tool_prefix"; then
8281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8282set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8283echo "$as_me:$LINENO: checking for $ac_word" >&5
8284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8285if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8287else
e8b05380
PB
8288 if test -n "$GCC_FOR_TARGET"; then
8289 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8290else
1c710c3c
DJ
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8298 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302done
8303done
8304
ca9f4b81
AO
8305fi
8306fi
1c710c3c 8307GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8308if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8309 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8310echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8311else
2aeb72e9
DD
8312 echo "$as_me:$LINENO: result: no" >&5
8313echo "${ECHO_T}no" >&6
ca9f4b81
AO
8314fi
8315
e8b05380
PB
8316 fi
8317 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8319set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8320echo "$as_me:$LINENO: checking for $ac_word" >&5
8321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8322if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8324else
e8b05380
PB
8325 if test -n "$GCC_FOR_TARGET"; then
8326 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8327else
1c710c3c
DJ
8328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329for as_dir in $PATH
8330do
8331 IFS=$as_save_IFS
8332 test -z "$as_dir" && as_dir=.
8333 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8335 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 break 2
8338 fi
8339done
8340done
8341
ca9f4b81
AO
8342fi
8343fi
1c710c3c 8344GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8345if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8346 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8347echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8348else
2aeb72e9
DD
8349 echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6
ca9f4b81 8351fi
1c710c3c 8352
e8b05380
PB
8353 fi
8354 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8355 done
8356fi
1c710c3c 8357
e8b05380
PB
8358if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8359 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8360else
8361 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8362fi
8363
278a7a38
AO
8364
8365
8366if test -n "$GCJ_FOR_TARGET"; then
8367 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8368elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8369 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8370fi
8371
8372if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8373 for ncn_progname in gcj; do
8374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8375set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8376echo "$as_me:$LINENO: checking for $ac_word" >&5
8377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8378if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381 if test -n "$GCJ_FOR_TARGET"; then
8382 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8383else
8384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385for as_dir in $PATH
8386do
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8391 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8394 fi
8395done
8396done
8397
8398fi
8399fi
8400GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8401if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8402 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8403echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8404else
2aeb72e9
DD
8405 echo "$as_me:$LINENO: result: no" >&5
8406echo "${ECHO_T}no" >&6
278a7a38
AO
8407fi
8408
8409 done
8410fi
8411
8412if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8413 for ncn_progname in gcj; do
2aeb72e9
DD
8414 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8415echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8416 if test -x $with_build_time_tools/${ncn_progname}; then
8417 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8418 echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6
e8b05380
PB
8420 break
8421 else
2aeb72e9
DD
8422 echo "$as_me:$LINENO: result: no" >&5
8423echo "${ECHO_T}no" >&6
e8b05380
PB
8424 fi
8425 done
8426fi
8427
8428if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8429 for ncn_progname in gcj; do
8430 if test -n "$ncn_target_tool_prefix"; then
8431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8433echo "$as_me:$LINENO: checking for $ac_word" >&5
8434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8435if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8437else
fb0103e5
RG
8438 if test -n "$GCJ_FOR_TARGET"; then
8439 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8440else
1c710c3c
DJ
8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8448 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452done
8453done
8454
e8b05380
PB
8455fi
8456fi
278a7a38
AO
8457GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8458if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8459 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8460echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8461else
2aeb72e9
DD
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
278a7a38
AO
8464fi
8465
8466 fi
8467 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8469set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8470echo "$as_me:$LINENO: checking for $ac_word" >&5
8471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8472if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475 if test -n "$GCJ_FOR_TARGET"; then
8476 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8477else
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8485 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489done
8490done
8491
8492fi
8493fi
8494GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8495if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8496 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8497echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8498else
2aeb72e9
DD
8499 echo "$as_me:$LINENO: result: no" >&5
8500echo "${ECHO_T}no" >&6
278a7a38
AO
8501fi
8502
8503 fi
8504 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8505 done
8506fi
8507
8508if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8509 set dummy gcj
8510 if test $build = $target ; then
8511 GCJ_FOR_TARGET="$2"
8512 else
8513 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8514 fi
1c00b503
PB
8515else
8516 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8517fi
8518
8519
8520
8521if test -n "$GFORTRAN_FOR_TARGET"; then
8522 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8523elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8524 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8525fi
8526
278a7a38
AO
8527if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8528 for ncn_progname in gfortran; do
8529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8530set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8531echo "$as_me:$LINENO: checking for $ac_word" >&5
8532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8533if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8534 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8535else
278a7a38
AO
8536 if test -n "$GFORTRAN_FOR_TARGET"; then
8537 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8538else
1c710c3c
DJ
8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8546 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550done
8551done
8552
e8b05380
PB
8553fi
8554fi
278a7a38
AO
8555GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8556if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8557 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8558echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8559else
2aeb72e9
DD
8560 echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6
e8b05380 8562fi
1c710c3c 8563
e8b05380
PB
8564 done
8565fi
1c710c3c 8566
278a7a38 8567if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8568 for ncn_progname in gfortran; do
2aeb72e9
DD
8569 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8570echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8571 if test -x $with_build_time_tools/${ncn_progname}; then
8572 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8573 echo "$as_me:$LINENO: result: yes" >&5
8574echo "${ECHO_T}yes" >&6
e8b05380
PB
8575 break
8576 else
2aeb72e9
DD
8577 echo "$as_me:$LINENO: result: no" >&5
8578echo "${ECHO_T}no" >&6
e8b05380
PB
8579 fi
8580 done
8581fi
8582
8583if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8584 for ncn_progname in gfortran; do
8585 if test -n "$ncn_target_tool_prefix"; then
8586 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8587set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8588echo "$as_me:$LINENO: checking for $ac_word" >&5
8589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8590if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8592else
8593 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8594 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8595else
8596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597for as_dir in $PATH
8598do
8599 IFS=$as_save_IFS
8600 test -z "$as_dir" && as_dir=.
8601 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8603 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8605 break 2
8606 fi
8607done
8608done
8609
e8b05380
PB
8610fi
8611fi
1c710c3c 8612GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8613if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8614 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8615echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8616else
2aeb72e9
DD
8617 echo "$as_me:$LINENO: result: no" >&5
8618echo "${ECHO_T}no" >&6
e8b05380
PB
8619fi
8620
8621 fi
8622 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8624set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8625echo "$as_me:$LINENO: checking for $ac_word" >&5
8626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8627if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8629else
8630 if test -n "$GFORTRAN_FOR_TARGET"; then
8631 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8632else
1c710c3c
DJ
8633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634for as_dir in $PATH
8635do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8640 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644done
8645done
8646
e8b05380
PB
8647fi
8648fi
1c710c3c 8649GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8650if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8651 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8652echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8653else
2aeb72e9
DD
8654 echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
e8b05380 8656fi
1c710c3c 8657
e8b05380
PB
8658 fi
8659 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8660 done
8661fi
1c710c3c 8662
e8b05380
PB
8663if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8664 set dummy gfortran
2693c0b0 8665 if test $build = $target ; then
e8b05380 8666 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8667 else
e8b05380
PB
8668 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8669 fi
1c00b503
PB
8670else
8671 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8672fi
8673
8674
8675
e8b05380
PB
8676cat > conftest.c << \EOF
8677#ifdef __GNUC__
8678 gcc_yay;
8679#endif
8680EOF
8681if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8682 have_gcc_for_target=yes
8683else
8684 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8685 have_gcc_for_target=no
8686fi
8687rm conftest.c
8688
8689
8690
8691
8692if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8693 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8694 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8695echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8696 if test -x $with_build_time_tools/ar; then
8697 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8698 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8699 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8700echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8701 else
2aeb72e9
DD
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
d1f8db0c 8704 fi
e8b05380
PB
8705 elif test $build != $host && test $have_gcc_for_target = yes; then
8706 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8707 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8708 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8709 fi
8710fi
3e19841a 8711if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8712 # Extract the first word of "ar", so it can be a program name with args.
8713set dummy ar; ac_word=$2
2aeb72e9
DD
8714echo "$as_me:$LINENO: checking for $ac_word" >&5
8715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8716if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8718else
1c710c3c
DJ
8719 case $AR_FOR_TARGET in
8720 [\\/]* | ?:[\\/]*)
e8b05380
PB
8721 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8722 ;;
e8b05380 8723 *)
1c710c3c
DJ
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725for as_dir in $gcc_cv_tool_dirs
8726do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8731 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8734 fi
8735done
8736done
8737
e8b05380
PB
8738 ;;
8739esac
8740fi
1c710c3c 8741AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8742
e8b05380 8743if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8744 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8745echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8746else
2aeb72e9
DD
8747 echo "$as_me:$LINENO: result: no" >&5
8748echo "${ECHO_T}no" >&6
4de997d1
PB
8749fi
8750
e8b05380
PB
8751fi
8752if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8753
8754
8755if test -n "$AR_FOR_TARGET"; then
8756 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8757elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8758 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8759fi
8760
8761if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8762 for ncn_progname in ar; do
8763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8764set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8765echo "$as_me:$LINENO: checking for $ac_word" >&5
8766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8767if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769else
8770 if test -n "$AR_FOR_TARGET"; then
8771 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8772else
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8780 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784done
8785done
8786
8787fi
8788fi
8789AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8790if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8791 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8792echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8793else
2aeb72e9
DD
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
278a7a38
AO
8796fi
8797
8798 done
8799fi
8800
8801if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8802 for ncn_progname in ar; do
2aeb72e9
DD
8803 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8804echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8805 if test -x $with_build_time_tools/${ncn_progname}; then
8806 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8807 echo "$as_me:$LINENO: result: yes" >&5
8808echo "${ECHO_T}yes" >&6
e8b05380
PB
8809 break
8810 else
2aeb72e9
DD
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
e8b05380
PB
8813 fi
8814 done
8815fi
8816
8817if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8818 for ncn_progname in ar; do
8819 if test -n "$ncn_target_tool_prefix"; then
8820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8821set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8822echo "$as_me:$LINENO: checking for $ac_word" >&5
8823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8824if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8826else
e8b05380
PB
8827 if test -n "$AR_FOR_TARGET"; then
8828 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8829else
1c710c3c
DJ
8830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831for as_dir in $PATH
8832do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8837 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841done
8842done
8843
4de997d1
PB
8844fi
8845fi
1c710c3c 8846AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8847if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8848 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8849echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8850else
2aeb72e9
DD
8851 echo "$as_me:$LINENO: result: no" >&5
8852echo "${ECHO_T}no" >&6
4de997d1
PB
8853fi
8854
e8b05380
PB
8855 fi
8856 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8858set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8859echo "$as_me:$LINENO: checking for $ac_word" >&5
8860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8861if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8863else
8864 if test -n "$AR_FOR_TARGET"; then
8865 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8866else
1c710c3c
DJ
8867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868for as_dir in $PATH
8869do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8874 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878done
8879done
8880
e8b05380
PB
8881fi
8882fi
1c710c3c 8883AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8884if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8885 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8886echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8887else
2aeb72e9
DD
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
e8b05380 8890fi
1c710c3c 8891
e8b05380
PB
8892 fi
8893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8894 done
8895fi
1c710c3c 8896
e8b05380
PB
8897if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8898 set dummy ar
8899 if test $build = $target ; then
8900 AR_FOR_TARGET="$2"
8901 else
8902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8903 fi
1c00b503
PB
8904else
8905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8906fi
8907
d1f8db0c
PB
8908else
8909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8910fi
8911
8912
8913
8914
8915if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8916 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8917 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8918echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8919 if test -x $with_build_time_tools/as; then
8920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
8922 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8923echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 8924 else
2aeb72e9
DD
8925 echo "$as_me:$LINENO: result: no" >&5
8926echo "${ECHO_T}no" >&6
d1f8db0c 8927 fi
e8b05380
PB
8928 elif test $build != $host && test $have_gcc_for_target = yes; then
8929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
8930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
8931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
8932 fi
8933fi
3e19841a 8934if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8935 # Extract the first word of "as", so it can be a program name with args.
8936set dummy as; ac_word=$2
2aeb72e9
DD
8937echo "$as_me:$LINENO: checking for $ac_word" >&5
8938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8939if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8941else
1c710c3c
DJ
8942 case $AS_FOR_TARGET in
8943 [\\/]* | ?:[\\/]*)
e8b05380
PB
8944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
8945 ;;
e8b05380 8946 *)
1c710c3c
DJ
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $gcc_cv_tool_dirs
8949do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8957 fi
8958done
8959done
8960
e8b05380
PB
8961 ;;
8962esac
8963fi
1c710c3c 8964AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 8965
e8b05380 8966if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
8967 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
8968echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 8969else
2aeb72e9
DD
8970 echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
e8b05380
PB
8972fi
8973
8974fi
8975if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
8976
8977
8978if test -n "$AS_FOR_TARGET"; then
8979 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
8980elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8981 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
8982fi
8983
8984if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
8985 for ncn_progname in as; do
8986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8987set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8988echo "$as_me:$LINENO: checking for $ac_word" >&5
8989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8990if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993 if test -n "$AS_FOR_TARGET"; then
8994 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
8995else
8996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997for as_dir in $PATH
8998do
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9003 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9006 fi
9007done
9008done
9009
9010fi
9011fi
9012AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9013if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9014 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9015echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9016else
2aeb72e9
DD
9017 echo "$as_me:$LINENO: result: no" >&5
9018echo "${ECHO_T}no" >&6
278a7a38
AO
9019fi
9020
9021 done
9022fi
9023
9024if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9025 for ncn_progname in as; do
2aeb72e9
DD
9026 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9027echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9028 if test -x $with_build_time_tools/${ncn_progname}; then
9029 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9030 echo "$as_me:$LINENO: result: yes" >&5
9031echo "${ECHO_T}yes" >&6
e8b05380
PB
9032 break
9033 else
2aeb72e9
DD
9034 echo "$as_me:$LINENO: result: no" >&5
9035echo "${ECHO_T}no" >&6
e8b05380
PB
9036 fi
9037 done
9038fi
9039
9040if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9041 for ncn_progname in as; do
9042 if test -n "$ncn_target_tool_prefix"; then
9043 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9044set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9045echo "$as_me:$LINENO: checking for $ac_word" >&5
9046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9047if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9049else
9050 if test -n "$AS_FOR_TARGET"; then
9051 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9052else
1c710c3c
DJ
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9060 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064done
9065done
9066
e8b05380
PB
9067fi
9068fi
1c710c3c 9069AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9070if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9071 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9072echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9073else
2aeb72e9
DD
9074 echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
e8b05380
PB
9076fi
9077
9078 fi
9079 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9081set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9082echo "$as_me:$LINENO: checking for $ac_word" >&5
9083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9084if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9086else
e8b05380
PB
9087 if test -n "$AS_FOR_TARGET"; then
9088 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9089else
1c710c3c
DJ
9090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9097 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101done
9102done
9103
4de997d1
PB
9104fi
9105fi
1c710c3c 9106AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9107if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9108 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9109echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9110else
2aeb72e9
DD
9111 echo "$as_me:$LINENO: result: no" >&5
9112echo "${ECHO_T}no" >&6
4de997d1 9113fi
1c710c3c 9114
e8b05380
PB
9115 fi
9116 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9117 done
9118fi
1c710c3c 9119
e8b05380
PB
9120if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9121 set dummy as
9122 if test $build = $target ; then
9123 AS_FOR_TARGET="$2"
9124 else
9125 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9126 fi
1c00b503
PB
9127else
9128 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9129fi
2693c0b0 9130
d1f8db0c
PB
9131else
9132 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9133fi
9134
e8b05380
PB
9135
9136
9137
9138if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9139 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9140 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9141echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9142 if test -x $with_build_time_tools/dlltool; then
9143 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9144 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9145 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9146echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9147 else
2aeb72e9
DD
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
d1f8db0c 9150 fi
e8b05380
PB
9151 elif test $build != $host && test $have_gcc_for_target = yes; then
9152 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9153 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9154 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9155 fi
9156fi
3e19841a 9157if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9158 # Extract the first word of "dlltool", so it can be a program name with args.
9159set dummy dlltool; ac_word=$2
2aeb72e9
DD
9160echo "$as_me:$LINENO: checking for $ac_word" >&5
9161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9162if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9164else
1c710c3c
DJ
9165 case $DLLTOOL_FOR_TARGET in
9166 [\\/]* | ?:[\\/]*)
e8b05380
PB
9167 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9168 ;;
e8b05380 9169 *)
1c710c3c
DJ
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171for as_dir in $gcc_cv_tool_dirs
9172do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9177 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 break 2
9180 fi
9181done
9182done
9183
e8b05380
PB
9184 ;;
9185esac
4de997d1 9186fi
1c710c3c 9187DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9188
e8b05380 9189if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9190 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9191echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9192else
2aeb72e9
DD
9193 echo "$as_me:$LINENO: result: no" >&5
9194echo "${ECHO_T}no" >&6
4de997d1
PB
9195fi
9196
e8b05380
PB
9197fi
9198if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9199
9200
9201if test -n "$DLLTOOL_FOR_TARGET"; then
9202 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9203elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9204 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9205fi
9206
9207if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9208 for ncn_progname in dlltool; do
9209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9210set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9211echo "$as_me:$LINENO: checking for $ac_word" >&5
9212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9213if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9215else
9216 if test -n "$DLLTOOL_FOR_TARGET"; then
9217 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9218else
9219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220for as_dir in $PATH
9221do
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9226 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 break 2
9229 fi
9230done
9231done
9232
9233fi
9234fi
9235DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9236if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9237 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9238echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9239else
2aeb72e9
DD
9240 echo "$as_me:$LINENO: result: no" >&5
9241echo "${ECHO_T}no" >&6
278a7a38
AO
9242fi
9243
9244 done
9245fi
9246
9247if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9248 for ncn_progname in dlltool; do
2aeb72e9
DD
9249 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9250echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9251 if test -x $with_build_time_tools/${ncn_progname}; then
9252 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9253 echo "$as_me:$LINENO: result: yes" >&5
9254echo "${ECHO_T}yes" >&6
e8b05380
PB
9255 break
9256 else
2aeb72e9
DD
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
e8b05380
PB
9259 fi
9260 done
9261fi
9262
9263if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9264 for ncn_progname in dlltool; do
9265 if test -n "$ncn_target_tool_prefix"; then
9266 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9267set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9268echo "$as_me:$LINENO: checking for $ac_word" >&5
9269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9270if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9272else
e8b05380
PB
9273 if test -n "$DLLTOOL_FOR_TARGET"; then
9274 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9275else
1c710c3c
DJ
9276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9283 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9285 break 2
9286 fi
9287done
9288done
9289
4de997d1
PB
9290fi
9291fi
1c710c3c 9292DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9293if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9294 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9295echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9296else
2aeb72e9
DD
9297 echo "$as_me:$LINENO: result: no" >&5
9298echo "${ECHO_T}no" >&6
4de997d1 9299fi
4de997d1 9300
e8b05380
PB
9301 fi
9302 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9304set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9305echo "$as_me:$LINENO: checking for $ac_word" >&5
9306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9307if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9309else
e8b05380
PB
9310 if test -n "$DLLTOOL_FOR_TARGET"; then
9311 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9312else
1c710c3c
DJ
9313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314for as_dir in $PATH
9315do
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9320 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9323 fi
9324done
9325done
9326
4de997d1
PB
9327fi
9328fi
1c710c3c 9329DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9330if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9331 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9332echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9333else
2aeb72e9
DD
9334 echo "$as_me:$LINENO: result: no" >&5
9335echo "${ECHO_T}no" >&6
4de997d1 9336fi
1c710c3c 9337
e8b05380
PB
9338 fi
9339 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9340 done
9341fi
1c710c3c 9342
e8b05380
PB
9343if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9344 set dummy dlltool
9345 if test $build = $target ; then
9346 DLLTOOL_FOR_TARGET="$2"
9347 else
9348 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9349 fi
1c00b503
PB
9350else
9351 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9352fi
9353
d1f8db0c
PB
9354else
9355 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9356fi
9357
4de997d1 9358
e8b05380
PB
9359
9360
9361if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9362 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9363 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9364echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9365 if test -x $with_build_time_tools/ld; then
9366 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9367 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9368 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9369echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9370 else
2aeb72e9
DD
9371 echo "$as_me:$LINENO: result: no" >&5
9372echo "${ECHO_T}no" >&6
d1f8db0c 9373 fi
e8b05380
PB
9374 elif test $build != $host && test $have_gcc_for_target = yes; then
9375 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9376 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9377 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9378 fi
e8b05380 9379fi
3e19841a 9380if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9381 # Extract the first word of "ld", so it can be a program name with args.
9382set dummy ld; ac_word=$2
2aeb72e9
DD
9383echo "$as_me:$LINENO: checking for $ac_word" >&5
9384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9385if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9387else
1c710c3c
DJ
9388 case $LD_FOR_TARGET in
9389 [\\/]* | ?:[\\/]*)
e8b05380
PB
9390 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9391 ;;
e8b05380 9392 *)
1c710c3c
DJ
9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394for as_dir in $gcc_cv_tool_dirs
9395do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
9398 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9400 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9402 break 2
9403 fi
9404done
9405done
9406
e8b05380
PB
9407 ;;
9408esac
4de997d1 9409fi
1c710c3c 9410LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9411
e8b05380 9412if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9413 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9414echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9415else
2aeb72e9
DD
9416 echo "$as_me:$LINENO: result: no" >&5
9417echo "${ECHO_T}no" >&6
4de997d1 9418fi
2693c0b0 9419
e8b05380
PB
9420fi
9421if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9422
9423
9424if test -n "$LD_FOR_TARGET"; then
9425 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9426elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9427 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9428fi
9429
9430if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9431 for ncn_progname in ld; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9434echo "$as_me:$LINENO: checking for $ac_word" >&5
9435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9436if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438else
9439 if test -n "$LD_FOR_TARGET"; then
9440 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9441else
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9449 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9452 fi
9453done
9454done
9455
9456fi
9457fi
9458LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9459if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9460 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9461echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9462else
2aeb72e9
DD
9463 echo "$as_me:$LINENO: result: no" >&5
9464echo "${ECHO_T}no" >&6
278a7a38
AO
9465fi
9466
9467 done
9468fi
9469
9470if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9471 for ncn_progname in ld; do
2aeb72e9
DD
9472 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9473echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9474 if test -x $with_build_time_tools/${ncn_progname}; then
9475 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9476 echo "$as_me:$LINENO: result: yes" >&5
9477echo "${ECHO_T}yes" >&6
e8b05380
PB
9478 break
9479 else
2aeb72e9
DD
9480 echo "$as_me:$LINENO: result: no" >&5
9481echo "${ECHO_T}no" >&6
e8b05380
PB
9482 fi
9483 done
ca9f4b81
AO
9484fi
9485
e8b05380
PB
9486if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9487 for ncn_progname in ld; do
9488 if test -n "$ncn_target_tool_prefix"; then
9489 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9490set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9491echo "$as_me:$LINENO: checking for $ac_word" >&5
9492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9493if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9495else
4de997d1
PB
9496 if test -n "$LD_FOR_TARGET"; then
9497 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9498else
1c710c3c
DJ
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9506 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510done
9511done
9512
ca9f4b81
AO
9513fi
9514fi
1c710c3c 9515LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9516if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9517 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9518echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9519else
2aeb72e9
DD
9520 echo "$as_me:$LINENO: result: no" >&5
9521echo "${ECHO_T}no" >&6
ca9f4b81
AO
9522fi
9523
e8b05380
PB
9524 fi
9525 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9527set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9528echo "$as_me:$LINENO: checking for $ac_word" >&5
9529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9530if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9532else
2693c0b0
PB
9533 if test -n "$LD_FOR_TARGET"; then
9534 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9535else
1c710c3c
DJ
9536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537for as_dir in $PATH
9538do
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9543 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9546 fi
9547done
9548done
9549
ca9f4b81
AO
9550fi
9551fi
1c710c3c 9552LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9553if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9554 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9555echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9556else
2aeb72e9
DD
9557 echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
ca9f4b81 9559fi
1c710c3c 9560
e8b05380
PB
9561 fi
9562 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9563 done
9564fi
1c710c3c 9565
2693c0b0
PB
9566if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9567 set dummy ld
9568 if test $build = $target ; then
9569 LD_FOR_TARGET="$2"
ca9f4b81 9570 else
2693c0b0 9571 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9572 fi
1c00b503
PB
9573else
9574 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9575fi
9576
d1f8db0c
PB
9577else
9578 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9579fi
9580
9581
9582
9583
9584if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9585 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9586 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9587echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9588 if test -x $with_build_time_tools/lipo; then
9589 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9590 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9591 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9592echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9593 else
2aeb72e9
DD
9594 echo "$as_me:$LINENO: result: no" >&5
9595echo "${ECHO_T}no" >&6
d1f8db0c 9596 fi
e8b05380
PB
9597 elif test $build != $host && test $have_gcc_for_target = yes; then
9598 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9599 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9600 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9601 fi
9602fi
278a7a38
AO
9603if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9604 # Extract the first word of "lipo", so it can be a program name with args.
9605set dummy lipo; ac_word=$2
2aeb72e9
DD
9606echo "$as_me:$LINENO: checking for $ac_word" >&5
9607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9608if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610else
9611 case $LIPO_FOR_TARGET in
9612 [\\/]* | ?:[\\/]*)
9613 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9614 ;;
9615 *)
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617for as_dir in $gcc_cv_tool_dirs
9618do
9619 IFS=$as_save_IFS
9620 test -z "$as_dir" && as_dir=.
9621 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9623 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 break 2
9626 fi
9627done
9628done
9629
9630 ;;
9631esac
9632fi
9633LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9634
278a7a38 9635if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9636 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9637echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9638else
2aeb72e9
DD
9639 echo "$as_me:$LINENO: result: no" >&5
9640echo "${ECHO_T}no" >&6
278a7a38
AO
9641fi
9642
9643fi
9644if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9645
9646
9647if test -n "$LIPO_FOR_TARGET"; then
9648 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9649elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9650 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9651fi
9652
9653if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9654 for ncn_progname in lipo; do
9655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9656set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9657echo "$as_me:$LINENO: checking for $ac_word" >&5
9658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9659if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9660 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9661else
278a7a38
AO
9662 if test -n "$LIPO_FOR_TARGET"; then
9663 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9664else
9665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666for as_dir in $PATH
1c710c3c
DJ
9667do
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9672 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 break 2
9675 fi
9676done
9677done
9678
e8b05380 9679fi
278a7a38
AO
9680fi
9681LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9682if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9683 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9684echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9685else
2aeb72e9
DD
9686 echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6
e8b05380
PB
9688fi
9689
278a7a38 9690 done
e8b05380 9691fi
278a7a38
AO
9692
9693if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9694 for ncn_progname in lipo; do
2aeb72e9
DD
9695 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9696echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9697 if test -x $with_build_time_tools/${ncn_progname}; then
9698 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9699 echo "$as_me:$LINENO: result: yes" >&5
9700echo "${ECHO_T}yes" >&6
e8b05380
PB
9701 break
9702 else
2aeb72e9
DD
9703 echo "$as_me:$LINENO: result: no" >&5
9704echo "${ECHO_T}no" >&6
e8b05380
PB
9705 fi
9706 done
9707fi
9708
9709if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9710 for ncn_progname in lipo; do
9711 if test -n "$ncn_target_tool_prefix"; then
9712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9713set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9714echo "$as_me:$LINENO: checking for $ac_word" >&5
9715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9716if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9718else
9719 if test -n "$LIPO_FOR_TARGET"; then
9720 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9721else
1c710c3c
DJ
9722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723for as_dir in $PATH
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9729 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9732 fi
9733done
9734done
9735
040b1c5a
GK
9736fi
9737fi
1c710c3c 9738LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9739if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9740 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9741echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9742else
2aeb72e9
DD
9743 echo "$as_me:$LINENO: result: no" >&5
9744echo "${ECHO_T}no" >&6
040b1c5a
GK
9745fi
9746
e8b05380
PB
9747 fi
9748 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9750set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9751echo "$as_me:$LINENO: checking for $ac_word" >&5
9752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9753if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9755else
9756 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9757 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9758else
1c710c3c
DJ
9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9766 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9769 fi
9770done
9771done
9772
040b1c5a
GK
9773fi
9774fi
1c710c3c 9775LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9776if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9777 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9778echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9779else
2aeb72e9
DD
9780 echo "$as_me:$LINENO: result: no" >&5
9781echo "${ECHO_T}no" >&6
040b1c5a 9782fi
1c710c3c 9783
e8b05380
PB
9784 fi
9785 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9786 done
9787fi
1c710c3c 9788
040b1c5a
GK
9789if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9790 set dummy lipo
9791 if test $build = $target ; then
9792 LIPO_FOR_TARGET="$2"
9793 else
9794 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9795 fi
1c00b503
PB
9796else
9797 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9798fi
9799
d1f8db0c
PB
9800else
9801 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9802fi
9803
9804
9805
9806
9807if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9808 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9809 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9810echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9811 if test -x $with_build_time_tools/nm; then
9812 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9813 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9814 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9815echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9816 else
2aeb72e9
DD
9817 echo "$as_me:$LINENO: result: no" >&5
9818echo "${ECHO_T}no" >&6
d1f8db0c 9819 fi
e8b05380
PB
9820 elif test $build != $host && test $have_gcc_for_target = yes; then
9821 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9822 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9823 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9824 fi
9825fi
3e19841a 9826if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9827 # Extract the first word of "nm", so it can be a program name with args.
9828set dummy nm; ac_word=$2
2aeb72e9
DD
9829echo "$as_me:$LINENO: checking for $ac_word" >&5
9830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9831if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9833else
1c710c3c
DJ
9834 case $NM_FOR_TARGET in
9835 [\\/]* | ?:[\\/]*)
e8b05380
PB
9836 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9837 ;;
e8b05380 9838 *)
1c710c3c
DJ
9839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840for as_dir in $gcc_cv_tool_dirs
9841do
9842 IFS=$as_save_IFS
9843 test -z "$as_dir" && as_dir=.
9844 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9846 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 break 2
9849 fi
9850done
9851done
9852
e8b05380
PB
9853 ;;
9854esac
9855fi
1c710c3c 9856NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9857
e8b05380 9858if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9859 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9860echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9861else
2aeb72e9
DD
9862 echo "$as_me:$LINENO: result: no" >&5
9863echo "${ECHO_T}no" >&6
e8b05380
PB
9864fi
9865
9866fi
9867if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9868
9869
9870if test -n "$NM_FOR_TARGET"; then
9871 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9872elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9873 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9874fi
9875
9876if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9877 for ncn_progname in nm; do
9878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9879set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9880echo "$as_me:$LINENO: checking for $ac_word" >&5
9881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9882if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884else
9885 if test -n "$NM_FOR_TARGET"; then
9886 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9887else
9888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889for as_dir in $PATH
9890do
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9895 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9898 fi
9899done
9900done
9901
9902fi
9903fi
9904NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9905if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9906 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9907echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9908else
2aeb72e9
DD
9909 echo "$as_me:$LINENO: result: no" >&5
9910echo "${ECHO_T}no" >&6
278a7a38
AO
9911fi
9912
9913 done
9914fi
9915
9916if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9917 for ncn_progname in nm; do
2aeb72e9
DD
9918 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9919echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9920 if test -x $with_build_time_tools/${ncn_progname}; then
9921 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9922 echo "$as_me:$LINENO: result: yes" >&5
9923echo "${ECHO_T}yes" >&6
e8b05380
PB
9924 break
9925 else
2aeb72e9
DD
9926 echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
e8b05380
PB
9928 fi
9929 done
9930fi
9931
9932if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
9933 for ncn_progname in nm; do
9934 if test -n "$ncn_target_tool_prefix"; then
9935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 9936set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9937echo "$as_me:$LINENO: checking for $ac_word" >&5
9938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9939if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9941else
4de997d1
PB
9942 if test -n "$NM_FOR_TARGET"; then
9943 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9944else
1c710c3c
DJ
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9952 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9955 fi
9956done
9957done
9958
ca9f4b81
AO
9959fi
9960fi
1c710c3c 9961NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 9962if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9963 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9964echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 9965else
2aeb72e9
DD
9966 echo "$as_me:$LINENO: result: no" >&5
9967echo "${ECHO_T}no" >&6
ca9f4b81
AO
9968fi
9969
e8b05380
PB
9970 fi
9971 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9973set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9974echo "$as_me:$LINENO: checking for $ac_word" >&5
9975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9976if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9978else
2693c0b0
PB
9979 if test -n "$NM_FOR_TARGET"; then
9980 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 9981else
1c710c3c
DJ
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9989 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993done
9994done
9995
ca9f4b81
AO
9996fi
9997fi
1c710c3c 9998NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 9999if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10000 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10001echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10002else
2aeb72e9
DD
10003 echo "$as_me:$LINENO: result: no" >&5
10004echo "${ECHO_T}no" >&6
ca9f4b81 10005fi
1c710c3c 10006
e8b05380
PB
10007 fi
10008 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10009 done
10010fi
1c710c3c 10011
2693c0b0
PB
10012if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10013 set dummy nm
10014 if test $build = $target ; then
10015 NM_FOR_TARGET="$2"
ca9f4b81 10016 else
2693c0b0 10017 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10018 fi
1c00b503
PB
10019else
10020 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10021fi
10022
d1f8db0c
PB
10023else
10024 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10025fi
10026
10027
10028
10029
10030if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10031 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10032 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10033echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10034 if test -x $with_build_time_tools/objdump; then
10035 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10036 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10037 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10038echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10039 else
2aeb72e9
DD
10040 echo "$as_me:$LINENO: result: no" >&5
10041echo "${ECHO_T}no" >&6
d1f8db0c 10042 fi
e8b05380
PB
10043 elif test $build != $host && test $have_gcc_for_target = yes; then
10044 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10045 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10046 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10047 fi
10048fi
3e19841a 10049if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10050 # Extract the first word of "objdump", so it can be a program name with args.
10051set dummy objdump; ac_word=$2
2aeb72e9
DD
10052echo "$as_me:$LINENO: checking for $ac_word" >&5
10053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10054if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10055 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10056else
1c710c3c
DJ
10057 case $OBJDUMP_FOR_TARGET in
10058 [\\/]* | ?:[\\/]*)
e8b05380
PB
10059 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10060 ;;
e8b05380 10061 *)
1c710c3c
DJ
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063for as_dir in $gcc_cv_tool_dirs
10064do
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10069 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10072 fi
10073done
10074done
10075
e8b05380
PB
10076 ;;
10077esac
10078fi
1c710c3c 10079OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10080
e8b05380 10081if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10082 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10083echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10084else
2aeb72e9
DD
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
e8b05380
PB
10087fi
10088
10089fi
10090if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10091
10092
10093if test -n "$OBJDUMP_FOR_TARGET"; then
10094 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10095elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10096 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10097fi
10098
10099if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10100 for ncn_progname in objdump; do
10101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10102set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10103echo "$as_me:$LINENO: checking for $ac_word" >&5
10104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10105if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10107else
10108 if test -n "$OBJDUMP_FOR_TARGET"; then
10109 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10110else
10111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $PATH
10113do
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10118 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10121 fi
10122done
10123done
10124
10125fi
10126fi
10127OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10128if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10129 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10130echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10131else
2aeb72e9
DD
10132 echo "$as_me:$LINENO: result: no" >&5
10133echo "${ECHO_T}no" >&6
278a7a38
AO
10134fi
10135
10136 done
10137fi
10138
10139if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10140 for ncn_progname in objdump; do
2aeb72e9
DD
10141 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10142echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10143 if test -x $with_build_time_tools/${ncn_progname}; then
10144 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10145 echo "$as_me:$LINENO: result: yes" >&5
10146echo "${ECHO_T}yes" >&6
e8b05380
PB
10147 break
10148 else
2aeb72e9
DD
10149 echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
e8b05380
PB
10151 fi
10152 done
10153fi
10154
10155if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10156 for ncn_progname in objdump; do
10157 if test -n "$ncn_target_tool_prefix"; then
10158 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10159set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10160echo "$as_me:$LINENO: checking for $ac_word" >&5
10161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10162if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10164else
10165 if test -n "$OBJDUMP_FOR_TARGET"; then
10166 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10167else
1c710c3c
DJ
10168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169for as_dir in $PATH
10170do
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10175 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 break 2
10178 fi
10179done
10180done
10181
d739199a
DJ
10182fi
10183fi
1c710c3c 10184OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10185if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10186 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10187echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10188else
2aeb72e9
DD
10189 echo "$as_me:$LINENO: result: no" >&5
10190echo "${ECHO_T}no" >&6
d739199a
DJ
10191fi
10192
e8b05380
PB
10193 fi
10194 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10196set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10197echo "$as_me:$LINENO: checking for $ac_word" >&5
10198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10199if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10201else
10202 if test -n "$OBJDUMP_FOR_TARGET"; then
10203 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10204else
1c710c3c
DJ
10205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206for as_dir in $PATH
10207do
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10212 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 break 2
10215 fi
10216done
10217done
10218
d739199a
DJ
10219fi
10220fi
1c710c3c 10221OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10222if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10223 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10224echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10225else
2aeb72e9
DD
10226 echo "$as_me:$LINENO: result: no" >&5
10227echo "${ECHO_T}no" >&6
d739199a 10228fi
1c710c3c 10229
e8b05380
PB
10230 fi
10231 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10232 done
10233fi
1c710c3c 10234
d739199a
DJ
10235if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10236 set dummy objdump
10237 if test $build = $target ; then
10238 OBJDUMP_FOR_TARGET="$2"
10239 else
10240 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10241 fi
1c00b503
PB
10242else
10243 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10244fi
10245
d1f8db0c
PB
10246else
10247 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10248fi
10249
10250
10251
10252
10253if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10254 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10255 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10256echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10257 if test -x $with_build_time_tools/ranlib; then
10258 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10259 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10260 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10261echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10262 else
2aeb72e9
DD
10263 echo "$as_me:$LINENO: result: no" >&5
10264echo "${ECHO_T}no" >&6
d1f8db0c 10265 fi
e8b05380
PB
10266 elif test $build != $host && test $have_gcc_for_target = yes; then
10267 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10268 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10269 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10270 fi
10271fi
3e19841a 10272if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10273 # Extract the first word of "ranlib", so it can be a program name with args.
10274set dummy ranlib; ac_word=$2
2aeb72e9
DD
10275echo "$as_me:$LINENO: checking for $ac_word" >&5
10276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10277if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10279else
1c710c3c
DJ
10280 case $RANLIB_FOR_TARGET in
10281 [\\/]* | ?:[\\/]*)
e8b05380
PB
10282 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10283 ;;
e8b05380 10284 *)
1c710c3c
DJ
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286for as_dir in $gcc_cv_tool_dirs
10287do
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10292 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10295 fi
10296done
10297done
10298
e8b05380
PB
10299 ;;
10300esac
10301fi
1c710c3c 10302RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10303
e8b05380 10304if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10305 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10306echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10307else
2aeb72e9
DD
10308 echo "$as_me:$LINENO: result: no" >&5
10309echo "${ECHO_T}no" >&6
e8b05380
PB
10310fi
10311
10312fi
10313if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10314
10315
10316if test -n "$RANLIB_FOR_TARGET"; then
10317 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10318elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10319 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10320fi
10321
10322if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10323 for ncn_progname in ranlib; do
10324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10325set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10326echo "$as_me:$LINENO: checking for $ac_word" >&5
10327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10328if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331 if test -n "$RANLIB_FOR_TARGET"; then
10332 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10333else
10334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $PATH
10336do
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
10339 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10341 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 break 2
10344 fi
10345done
10346done
10347
10348fi
10349fi
10350RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10351if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10352 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10353echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10354else
2aeb72e9
DD
10355 echo "$as_me:$LINENO: result: no" >&5
10356echo "${ECHO_T}no" >&6
278a7a38
AO
10357fi
10358
10359 done
10360fi
10361
10362if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10363 for ncn_progname in ranlib; do
2aeb72e9
DD
10364 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10365echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10366 if test -x $with_build_time_tools/${ncn_progname}; then
10367 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10368 echo "$as_me:$LINENO: result: yes" >&5
10369echo "${ECHO_T}yes" >&6
e8b05380
PB
10370 break
10371 else
2aeb72e9
DD
10372 echo "$as_me:$LINENO: result: no" >&5
10373echo "${ECHO_T}no" >&6
e8b05380
PB
10374 fi
10375 done
10376fi
10377
10378if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10379 for ncn_progname in ranlib; do
10380 if test -n "$ncn_target_tool_prefix"; then
10381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10382set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10383echo "$as_me:$LINENO: checking for $ac_word" >&5
10384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10385if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10387else
4de997d1
PB
10388 if test -n "$RANLIB_FOR_TARGET"; then
10389 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10390else
1c710c3c
DJ
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10398 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10401 fi
10402done
10403done
10404
ca9f4b81
AO
10405fi
10406fi
1c710c3c 10407RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10408if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10409 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10410echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10411else
2aeb72e9
DD
10412 echo "$as_me:$LINENO: result: no" >&5
10413echo "${ECHO_T}no" >&6
ca9f4b81
AO
10414fi
10415
e8b05380
PB
10416 fi
10417 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10419set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10420echo "$as_me:$LINENO: checking for $ac_word" >&5
10421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10422if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10424else
2693c0b0
PB
10425 if test -n "$RANLIB_FOR_TARGET"; then
10426 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10427else
1c710c3c
DJ
10428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429for as_dir in $PATH
10430do
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10435 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10438 fi
10439done
10440done
10441
ca9f4b81
AO
10442fi
10443fi
1c710c3c 10444RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10445if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10446 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10447echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10448else
2aeb72e9
DD
10449 echo "$as_me:$LINENO: result: no" >&5
10450echo "${ECHO_T}no" >&6
ca9f4b81 10451fi
1c710c3c 10452
e8b05380
PB
10453 fi
10454 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10455 done
10456fi
1c710c3c 10457
e8b05380
PB
10458if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10459 set dummy ranlib
10460 if test $build = $target ; then
10461 RANLIB_FOR_TARGET="$2"
10462 else
10463 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10464 fi
1c00b503
PB
10465else
10466 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10467fi
2693c0b0 10468
d1f8db0c
PB
10469else
10470 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10471fi
10472
e8b05380
PB
10473
10474
10475
10476if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10477 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10478 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10479echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10480 if test -x $with_build_time_tools/strip; then
10481 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10482 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10483 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10484echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10485 else
2aeb72e9
DD
10486 echo "$as_me:$LINENO: result: no" >&5
10487echo "${ECHO_T}no" >&6
d1f8db0c 10488 fi
e8b05380
PB
10489 elif test $build != $host && test $have_gcc_for_target = yes; then
10490 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10491 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10492 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10493 fi
10494fi
3e19841a 10495if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10496 # Extract the first word of "strip", so it can be a program name with args.
10497set dummy strip; ac_word=$2
2aeb72e9
DD
10498echo "$as_me:$LINENO: checking for $ac_word" >&5
10499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10500if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10502else
1c710c3c
DJ
10503 case $STRIP_FOR_TARGET in
10504 [\\/]* | ?:[\\/]*)
e8b05380
PB
10505 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10506 ;;
e8b05380 10507 *)
1c710c3c
DJ
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $gcc_cv_tool_dirs
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10515 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10518 fi
10519done
10520done
10521
e8b05380
PB
10522 ;;
10523esac
10524fi
1c710c3c 10525STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10526
e8b05380 10527if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10528 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10529echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10530else
2aeb72e9
DD
10531 echo "$as_me:$LINENO: result: no" >&5
10532echo "${ECHO_T}no" >&6
e8b05380
PB
10533fi
10534
10535fi
10536if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10537
10538
10539if test -n "$STRIP_FOR_TARGET"; then
10540 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10541elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10542 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10543fi
10544
10545if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10546 for ncn_progname in strip; do
10547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10548set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10549echo "$as_me:$LINENO: checking for $ac_word" >&5
10550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10551if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554 if test -n "$STRIP_FOR_TARGET"; then
10555 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10556else
10557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558for as_dir in $PATH
10559do
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10564 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10567 fi
10568done
10569done
10570
10571fi
10572fi
10573STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10574if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10575 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10576echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10577else
2aeb72e9
DD
10578 echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6
278a7a38
AO
10580fi
10581
10582 done
10583fi
10584
10585if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10586 for ncn_progname in strip; do
2aeb72e9
DD
10587 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10588echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10589 if test -x $with_build_time_tools/${ncn_progname}; then
10590 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10591 echo "$as_me:$LINENO: result: yes" >&5
10592echo "${ECHO_T}yes" >&6
e8b05380
PB
10593 break
10594 else
2aeb72e9
DD
10595 echo "$as_me:$LINENO: result: no" >&5
10596echo "${ECHO_T}no" >&6
e8b05380
PB
10597 fi
10598 done
10599fi
10600
10601if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10602 for ncn_progname in strip; do
10603 if test -n "$ncn_target_tool_prefix"; then
10604 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10605set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10606echo "$as_me:$LINENO: checking for $ac_word" >&5
10607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10608if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10610else
10611 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10612 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10613else
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10621 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10624 fi
10625done
10626done
10627
040b1c5a
GK
10628fi
10629fi
1c710c3c 10630STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10631if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10632 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10633echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10634else
2aeb72e9
DD
10635 echo "$as_me:$LINENO: result: no" >&5
10636echo "${ECHO_T}no" >&6
040b1c5a
GK
10637fi
10638
e8b05380
PB
10639 fi
10640 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10642set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10643echo "$as_me:$LINENO: checking for $ac_word" >&5
10644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10645if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10647else
10648 if test -n "$STRIP_FOR_TARGET"; then
10649 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10650else
1c710c3c
DJ
10651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652for as_dir in $PATH
10653do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10658 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10661 fi
10662done
10663done
10664
040b1c5a
GK
10665fi
10666fi
1c710c3c 10667STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10668if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10669 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10670echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10671else
2aeb72e9
DD
10672 echo "$as_me:$LINENO: result: no" >&5
10673echo "${ECHO_T}no" >&6
040b1c5a 10674fi
1c710c3c 10675
e8b05380
PB
10676 fi
10677 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10678 done
10679fi
1c710c3c 10680
040b1c5a
GK
10681if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10682 set dummy strip
10683 if test $build = $target ; then
10684 STRIP_FOR_TARGET="$2"
10685 else
10686 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10687 fi
1c00b503
PB
10688else
10689 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10690fi
10691
d1f8db0c
PB
10692else
10693 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10694fi
10695
10696
10697
10698
10699if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10700 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10701 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10702echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10703 if test -x $with_build_time_tools/windres; then
10704 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10705 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10706 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10707echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10708 else
2aeb72e9
DD
10709 echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6
d1f8db0c 10711 fi
e8b05380
PB
10712 elif test $build != $host && test $have_gcc_for_target = yes; then
10713 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10714 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10715 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10716 fi
10717fi
3e19841a 10718if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10719 # Extract the first word of "windres", so it can be a program name with args.
10720set dummy windres; ac_word=$2
2aeb72e9
DD
10721echo "$as_me:$LINENO: checking for $ac_word" >&5
10722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10723if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10725else
1c710c3c
DJ
10726 case $WINDRES_FOR_TARGET in
10727 [\\/]* | ?:[\\/]*)
e8b05380
PB
10728 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10729 ;;
e8b05380 10730 *)
1c710c3c
DJ
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732for as_dir in $gcc_cv_tool_dirs
10733do
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10738 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10741 fi
10742done
10743done
10744
e8b05380
PB
10745 ;;
10746esac
10747fi
1c710c3c 10748WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10749
e8b05380 10750if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10751 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10752echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10753else
2aeb72e9
DD
10754 echo "$as_me:$LINENO: result: no" >&5
10755echo "${ECHO_T}no" >&6
e8b05380
PB
10756fi
10757
10758fi
10759if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10760
10761
10762if test -n "$WINDRES_FOR_TARGET"; then
10763 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10764elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10765 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10766fi
10767
10768if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10769 for ncn_progname in windres; do
10770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10771set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10772echo "$as_me:$LINENO: checking for $ac_word" >&5
10773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10774if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777 if test -n "$WINDRES_FOR_TARGET"; then
10778 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10779else
10780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781for as_dir in $PATH
10782do
10783 IFS=$as_save_IFS
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10787 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10789 break 2
10790 fi
10791done
10792done
10793
10794fi
10795fi
10796WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10797if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10798 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10799echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10800else
2aeb72e9
DD
10801 echo "$as_me:$LINENO: result: no" >&5
10802echo "${ECHO_T}no" >&6
278a7a38
AO
10803fi
10804
10805 done
10806fi
10807
10808if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10809 for ncn_progname in windres; do
2aeb72e9
DD
10810 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10811echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10812 if test -x $with_build_time_tools/${ncn_progname}; then
10813 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10814 echo "$as_me:$LINENO: result: yes" >&5
10815echo "${ECHO_T}yes" >&6
e8b05380
PB
10816 break
10817 else
2aeb72e9
DD
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
e8b05380
PB
10820 fi
10821 done
10822fi
10823
10824if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10825 for ncn_progname in windres; do
10826 if test -n "$ncn_target_tool_prefix"; then
10827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10828set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10829echo "$as_me:$LINENO: checking for $ac_word" >&5
10830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10831if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10833else
4de997d1
PB
10834 if test -n "$WINDRES_FOR_TARGET"; then
10835 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10836else
1c710c3c
DJ
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10844 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848done
10849done
10850
ca9f4b81
AO
10851fi
10852fi
1c710c3c 10853WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10854if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10855 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10856echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10857else
2aeb72e9
DD
10858 echo "$as_me:$LINENO: result: no" >&5
10859echo "${ECHO_T}no" >&6
ca9f4b81
AO
10860fi
10861
e8b05380
PB
10862 fi
10863 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10865set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10866echo "$as_me:$LINENO: checking for $ac_word" >&5
10867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10868if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10870else
2693c0b0
PB
10871 if test -n "$WINDRES_FOR_TARGET"; then
10872 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10873else
1c710c3c
DJ
10874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875for as_dir in $PATH
10876do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10881 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885done
10886done
10887
ca9f4b81
AO
10888fi
10889fi
1c710c3c 10890WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10891if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10892 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10893echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10894else
2aeb72e9
DD
10895 echo "$as_me:$LINENO: result: no" >&5
10896echo "${ECHO_T}no" >&6
ca9f4b81 10897fi
1c710c3c 10898
e8b05380
PB
10899 fi
10900 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10901 done
10902fi
1c710c3c 10903
2693c0b0
PB
10904if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10905 set dummy windres
10906 if test $build = $target ; then
10907 WINDRES_FOR_TARGET="$2"
ca9f4b81 10908 else
2693c0b0 10909 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10910 fi
1c00b503
PB
10911else
10912 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10913fi
10914
d1f8db0c
PB
10915else
10916 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10917fi
10918
4977bab6 10919
901119ae
KT
10920
10921
10922if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10923 if test -n "$with_build_time_tools"; then
10924 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
10925echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
10926 if test -x $with_build_time_tools/windmc; then
10927 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
10928 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10929 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
10930echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
10931 else
10932 echo "$as_me:$LINENO: result: no" >&5
10933echo "${ECHO_T}no" >&6
10934 fi
10935 elif test $build != $host && test $have_gcc_for_target = yes; then
10936 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
10937 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
10938 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
10939 fi
10940fi
10941if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10942 # Extract the first word of "windmc", so it can be a program name with args.
10943set dummy windmc; ac_word=$2
10944echo "$as_me:$LINENO: checking for $ac_word" >&5
10945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10946if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948else
10949 case $WINDMC_FOR_TARGET in
10950 [\\/]* | ?:[\\/]*)
10951 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
10952 ;;
10953 *)
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $gcc_cv_tool_dirs
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965done
10966done
10967
10968 ;;
10969esac
10970fi
10971WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
10972
10973if test -n "$WINDMC_FOR_TARGET"; then
10974 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
10975echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
10976else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979fi
10980
10981fi
10982if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10983
10984
10985if test -n "$WINDMC_FOR_TARGET"; then
10986 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
10987elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10988 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
10989fi
10990
10991if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
10992 for ncn_progname in windmc; do
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10994set dummy ${ncn_progname}; ac_word=$2
10995echo "$as_me:$LINENO: checking for $ac_word" >&5
10996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10997if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
10999else
11000 if test -n "$WINDMC_FOR_TARGET"; then
11001 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11002else
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
11015done
11016
11017fi
11018fi
11019WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11020if test -n "$WINDMC_FOR_TARGET"; then
11021 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11022echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11023else
11024 echo "$as_me:$LINENO: result: no" >&5
11025echo "${ECHO_T}no" >&6
11026fi
11027
11028 done
11029fi
11030
11031if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11032 for ncn_progname in windmc; do
11033 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11034echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11035 if test -x $with_build_time_tools/${ncn_progname}; then
11036 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11037 echo "$as_me:$LINENO: result: yes" >&5
11038echo "${ECHO_T}yes" >&6
11039 break
11040 else
11041 echo "$as_me:$LINENO: result: no" >&5
11042echo "${ECHO_T}no" >&6
11043 fi
11044 done
11045fi
11046
11047if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11048 for ncn_progname in windmc; do
11049 if test -n "$ncn_target_tool_prefix"; then
11050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11051set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11052echo "$as_me:$LINENO: checking for $ac_word" >&5
11053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11054if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056else
11057 if test -n "$WINDMC_FOR_TARGET"; then
11058 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11059else
11060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061for as_dir in $PATH
11062do
11063 IFS=$as_save_IFS
11064 test -z "$as_dir" && as_dir=.
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11067 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11069 break 2
11070 fi
11071done
11072done
11073
11074fi
11075fi
11076WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11077if test -n "$WINDMC_FOR_TARGET"; then
11078 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11079echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11080else
11081 echo "$as_me:$LINENO: result: no" >&5
11082echo "${ECHO_T}no" >&6
11083fi
11084
11085 fi
11086 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11088set dummy ${ncn_progname}; ac_word=$2
11089echo "$as_me:$LINENO: checking for $ac_word" >&5
11090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11091if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093else
11094 if test -n "$WINDMC_FOR_TARGET"; then
11095 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11096else
11097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098for as_dir in $PATH
11099do
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11107 fi
11108done
11109done
11110
11111fi
11112fi
11113WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11114if test -n "$WINDMC_FOR_TARGET"; then
11115 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11116echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11117else
11118 echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120fi
11121
11122 fi
11123 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11124 done
11125fi
11126
11127if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11128 set dummy windmc
11129 if test $build = $target ; then
11130 WINDMC_FOR_TARGET="$2"
11131 else
11132 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11133 fi
1c00b503
PB
11134else
11135 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11136fi
11137
11138else
11139 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11140fi
11141
11142
2abefe3d
PB
11143RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11144
2aeb72e9
DD
11145echo "$as_me:$LINENO: checking where to find the target ar" >&5
11146echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11147if test "x${build}" != "x${host}" ; then
e8b05380
PB
11148 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11149 # We already found the complete path
172e41aa 11150 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11151 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11152echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11153 else
11154 # Canadian cross, just use what we found
2aeb72e9
DD
11155 echo "$as_me:$LINENO: result: pre-installed" >&5
11156echo "${ECHO_T}pre-installed" >&6
e8b05380 11157 fi
2abefe3d
PB
11158else
11159 ok=yes
11160 case " ${configdirs} " in
11161 *" binutils "*) ;;
11162 *) ok=no ;;
11163 esac
1c710c3c 11164
2abefe3d
PB
11165 if test $ok = yes; then
11166 # An in-tree tool is available and we can use it
11167 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11168 echo "$as_me:$LINENO: result: just compiled" >&5
11169echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11170 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11171 # We already found the complete path
172e41aa 11172 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11173 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11174echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11175 elif test "x$target" = "x$host"; then
11176 # We can use an host tool
11177 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11178 echo "$as_me:$LINENO: result: host tool" >&5
11179echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11180 else
11181 # We need a cross tool
2aeb72e9
DD
11182 echo "$as_me:$LINENO: result: pre-installed" >&5
11183echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11184 fi
11185fi
0b0dc272 11186
2aeb72e9
DD
11187echo "$as_me:$LINENO: checking where to find the target as" >&5
11188echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11189if test "x${build}" != "x${host}" ; then
e8b05380
PB
11190 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11191 # We already found the complete path
172e41aa 11192 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11193 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11194echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11195 else
11196 # Canadian cross, just use what we found
2aeb72e9
DD
11197 echo "$as_me:$LINENO: result: pre-installed" >&5
11198echo "${ECHO_T}pre-installed" >&6
e8b05380 11199 fi
2abefe3d
PB
11200else
11201 ok=yes
11202 case " ${configdirs} " in
11203 *" gas "*) ;;
11204 *) ok=no ;;
11205 esac
1c710c3c 11206
2abefe3d
PB
11207 if test $ok = yes; then
11208 # An in-tree tool is available and we can use it
11209 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11210 echo "$as_me:$LINENO: result: just compiled" >&5
11211echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11212 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11213 # We already found the complete path
172e41aa 11214 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11215 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11216echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11217 elif test "x$target" = "x$host"; then
11218 # We can use an host tool
11219 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11220 echo "$as_me:$LINENO: result: host tool" >&5
11221echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11222 else
11223 # We need a cross tool
2aeb72e9
DD
11224 echo "$as_me:$LINENO: result: pre-installed" >&5
11225echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11226 fi
11227fi
0b0dc272 11228
2aeb72e9
DD
11229echo "$as_me:$LINENO: checking where to find the target cc" >&5
11230echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11231if test "x${build}" != "x${host}" ; then
e8b05380
PB
11232 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11233 # We already found the complete path
172e41aa 11234 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11235 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11236echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11237 else
11238 # Canadian cross, just use what we found
2aeb72e9
DD
11239 echo "$as_me:$LINENO: result: pre-installed" >&5
11240echo "${ECHO_T}pre-installed" >&6
e8b05380 11241 fi
2abefe3d
PB
11242else
11243 ok=yes
11244 case " ${configdirs} " in
11245 *" gcc "*) ;;
11246 *) ok=no ;;
11247 esac
1c710c3c 11248
2abefe3d
PB
11249 if test $ok = yes; then
11250 # An in-tree tool is available and we can use it
11251 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11252 echo "$as_me:$LINENO: result: just compiled" >&5
11253echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11254 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11255 # We already found the complete path
172e41aa 11256 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11257 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11258echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11259 elif test "x$target" = "x$host"; then
11260 # We can use an host tool
11261 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11262 echo "$as_me:$LINENO: result: host tool" >&5
11263echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11264 else
11265 # We need a cross tool
2aeb72e9
DD
11266 echo "$as_me:$LINENO: result: pre-installed" >&5
11267echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11268 fi
11269fi
0b0dc272 11270
2aeb72e9
DD
11271echo "$as_me:$LINENO: checking where to find the target c++" >&5
11272echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11273if test "x${build}" != "x${host}" ; then
e8b05380
PB
11274 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11275 # We already found the complete path
172e41aa 11276 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11277 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11278echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11279 else
11280 # Canadian cross, just use what we found
2aeb72e9
DD
11281 echo "$as_me:$LINENO: result: pre-installed" >&5
11282echo "${ECHO_T}pre-installed" >&6
e8b05380 11283 fi
2abefe3d
PB
11284else
11285 ok=yes
11286 case " ${configdirs} " in
11287 *" gcc "*) ;;
11288 *) ok=no ;;
11289 esac
11290 case ,${enable_languages}, in
11291 *,c++,*) ;;
11292 *) ok=no ;;
11293 esac
11294 if test $ok = yes; then
11295 # An in-tree tool is available and we can use it
11296 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
11297 echo "$as_me:$LINENO: result: just compiled" >&5
11298echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11299 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11300 # We already found the complete path
172e41aa 11301 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11302 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11303echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11304 elif test "x$target" = "x$host"; then
11305 # We can use an host tool
11306 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11307 echo "$as_me:$LINENO: result: host tool" >&5
11308echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11309 else
11310 # We need a cross tool
2aeb72e9
DD
11311 echo "$as_me:$LINENO: result: pre-installed" >&5
11312echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11313 fi
11314fi
0b0dc272 11315
2aeb72e9
DD
11316echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11317echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11318if test "x${build}" != "x${host}" ; then
e8b05380
PB
11319 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11320 # We already found the complete path
172e41aa 11321 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11322 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11323echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11324 else
11325 # Canadian cross, just use what we found
2aeb72e9
DD
11326 echo "$as_me:$LINENO: result: pre-installed" >&5
11327echo "${ECHO_T}pre-installed" >&6
e8b05380 11328 fi
2abefe3d
PB
11329else
11330 ok=yes
11331 case " ${configdirs} " in
11332 *" gcc "*) ;;
11333 *) ok=no ;;
11334 esac
11335 case ,${enable_languages}, in
11336 *,c++,*) ;;
11337 *) ok=no ;;
11338 esac
11339 if test $ok = yes; then
11340 # An in-tree tool is available and we can use it
11341 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
11342 echo "$as_me:$LINENO: result: just compiled" >&5
11343echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11344 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11345 # We already found the complete path
172e41aa 11346 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11347 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11348echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11349 elif test "x$target" = "x$host"; then
11350 # We can use an host tool
11351 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11352 echo "$as_me:$LINENO: result: host tool" >&5
11353echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11354 else
11355 # We need a cross tool
2aeb72e9
DD
11356 echo "$as_me:$LINENO: result: pre-installed" >&5
11357echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11358 fi
11359fi
0b0dc272 11360
2aeb72e9
DD
11361echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11362echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11363if test "x${build}" != "x${host}" ; then
e8b05380
PB
11364 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11365 # We already found the complete path
172e41aa 11366 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11367 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11368echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11369 else
11370 # Canadian cross, just use what we found
2aeb72e9
DD
11371 echo "$as_me:$LINENO: result: pre-installed" >&5
11372echo "${ECHO_T}pre-installed" >&6
e8b05380 11373 fi
2abefe3d
PB
11374else
11375 ok=yes
11376 case " ${configdirs} " in
11377 *" binutils "*) ;;
11378 *) ok=no ;;
11379 esac
1c710c3c 11380
2abefe3d
PB
11381 if test $ok = yes; then
11382 # An in-tree tool is available and we can use it
11383 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11384 echo "$as_me:$LINENO: result: just compiled" >&5
11385echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11386 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11387 # We already found the complete path
172e41aa 11388 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11389 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11390echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11391 elif test "x$target" = "x$host"; then
11392 # We can use an host tool
11393 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11394 echo "$as_me:$LINENO: result: host tool" >&5
11395echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11396 else
11397 # We need a cross tool
2aeb72e9
DD
11398 echo "$as_me:$LINENO: result: pre-installed" >&5
11399echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11400 fi
11401fi
0b0dc272 11402
2aeb72e9
DD
11403echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11404echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11405if test "x${build}" != "x${host}" ; then
e8b05380
PB
11406 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11407 # We already found the complete path
172e41aa 11408 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11409 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11410echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11411 else
11412 # Canadian cross, just use what we found
2aeb72e9
DD
11413 echo "$as_me:$LINENO: result: pre-installed" >&5
11414echo "${ECHO_T}pre-installed" >&6
e8b05380 11415 fi
2abefe3d
PB
11416else
11417 ok=yes
11418 case " ${configdirs} " in
11419 *" gcc "*) ;;
11420 *) ok=no ;;
11421 esac
1c710c3c 11422
2abefe3d
PB
11423 if test $ok = yes; then
11424 # An in-tree tool is available and we can use it
11425 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11426 echo "$as_me:$LINENO: result: just compiled" >&5
11427echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11428 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11429 # We already found the complete path
172e41aa 11430 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11431 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11432echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11433 elif test "x$target" = "x$host"; then
11434 # We can use an host tool
11435 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11436 echo "$as_me:$LINENO: result: host tool" >&5
11437echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11438 else
11439 # We need a cross tool
2aeb72e9
DD
11440 echo "$as_me:$LINENO: result: pre-installed" >&5
11441echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11442 fi
11443fi
0b0dc272 11444
2aeb72e9
DD
11445echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11446echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11447if test "x${build}" != "x${host}" ; then
e8b05380
PB
11448 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11449 # We already found the complete path
172e41aa 11450 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11451 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11452echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11453 else
11454 # Canadian cross, just use what we found
2aeb72e9
DD
11455 echo "$as_me:$LINENO: result: pre-installed" >&5
11456echo "${ECHO_T}pre-installed" >&6
e8b05380 11457 fi
2abefe3d
PB
11458else
11459 ok=yes
11460 case " ${configdirs} " in
11461 *" gcc "*) ;;
11462 *) ok=no ;;
11463 esac
11464 case ,${enable_languages}, in
11465 *,java,*) ;;
11466 *) ok=no ;;
11467 esac
11468 if test $ok = yes; then
11469 # An in-tree tool is available and we can use it
11470 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11471 echo "$as_me:$LINENO: result: just compiled" >&5
11472echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11473 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11474 # We already found the complete path
172e41aa 11475 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11476 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11477echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11478 elif test "x$target" = "x$host"; then
11479 # We can use an host tool
11480 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11481 echo "$as_me:$LINENO: result: host tool" >&5
11482echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11483 else
11484 # We need a cross tool
2aeb72e9
DD
11485 echo "$as_me:$LINENO: result: pre-installed" >&5
11486echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11487 fi
11488fi
0b0dc272 11489
2aeb72e9
DD
11490echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11491echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11492if test "x${build}" != "x${host}" ; then
e8b05380
PB
11493 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11494 # We already found the complete path
172e41aa 11495 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11496 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11497echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11498 else
11499 # Canadian cross, just use what we found
2aeb72e9
DD
11500 echo "$as_me:$LINENO: result: pre-installed" >&5
11501echo "${ECHO_T}pre-installed" >&6
e8b05380 11502 fi
2abefe3d
PB
11503else
11504 ok=yes
11505 case " ${configdirs} " in
11506 *" gcc "*) ;;
11507 *) ok=no ;;
11508 esac
11509 case ,${enable_languages}, in
11510 *,fortran,*) ;;
11511 *) ok=no ;;
11512 esac
11513 if test $ok = yes; then
11514 # An in-tree tool is available and we can use it
11515 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11516 echo "$as_me:$LINENO: result: just compiled" >&5
11517echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11518 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11519 # We already found the complete path
172e41aa 11520 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11521 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11522echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11523 elif test "x$target" = "x$host"; then
11524 # We can use an host tool
11525 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11526 echo "$as_me:$LINENO: result: host tool" >&5
11527echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11528 else
11529 # We need a cross tool
2aeb72e9
DD
11530 echo "$as_me:$LINENO: result: pre-installed" >&5
11531echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11532 fi
11533fi
0b0dc272 11534
2aeb72e9
DD
11535echo "$as_me:$LINENO: checking where to find the target ld" >&5
11536echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11537if test "x${build}" != "x${host}" ; then
e8b05380
PB
11538 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11539 # We already found the complete path
172e41aa 11540 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11541 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11542echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11543 else
11544 # Canadian cross, just use what we found
2aeb72e9
DD
11545 echo "$as_me:$LINENO: result: pre-installed" >&5
11546echo "${ECHO_T}pre-installed" >&6
e8b05380 11547 fi
2abefe3d
PB
11548else
11549 ok=yes
11550 case " ${configdirs} " in
11551 *" ld "*) ;;
11552 *) ok=no ;;
11553 esac
1c710c3c 11554
2abefe3d
PB
11555 if test $ok = yes; then
11556 # An in-tree tool is available and we can use it
11557 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11558 echo "$as_me:$LINENO: result: just compiled" >&5
11559echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11560 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11561 # We already found the complete path
172e41aa 11562 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11563 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11564echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11565 elif test "x$target" = "x$host"; then
11566 # We can use an host tool
11567 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11568 echo "$as_me:$LINENO: result: host tool" >&5
11569echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11570 else
11571 # We need a cross tool
2aeb72e9
DD
11572 echo "$as_me:$LINENO: result: pre-installed" >&5
11573echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11574 fi
11575fi
0b0dc272 11576
2aeb72e9
DD
11577echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11578echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11579if test "x${build}" != "x${host}" ; then
e8b05380
PB
11580 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11581 # We already found the complete path
172e41aa 11582 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11583 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11584echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11585 else
11586 # Canadian cross, just use what we found
2aeb72e9
DD
11587 echo "$as_me:$LINENO: result: pre-installed" >&5
11588echo "${ECHO_T}pre-installed" >&6
e8b05380 11589 fi
2abefe3d 11590else
e8b05380
PB
11591 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11592 # We already found the complete path
172e41aa 11593 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11594 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11595echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11596 elif test "x$target" = "x$host"; then
2abefe3d
PB
11597 # We can use an host tool
11598 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11599 echo "$as_me:$LINENO: result: host tool" >&5
11600echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11601 else
11602 # We need a cross tool
2aeb72e9
DD
11603 echo "$as_me:$LINENO: result: pre-installed" >&5
11604echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11605 fi
11606fi
0b0dc272 11607
2aeb72e9
DD
11608echo "$as_me:$LINENO: checking where to find the target nm" >&5
11609echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11610if test "x${build}" != "x${host}" ; then
e8b05380
PB
11611 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11612 # We already found the complete path
172e41aa 11613 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11614 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11615echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11616 else
11617 # Canadian cross, just use what we found
2aeb72e9
DD
11618 echo "$as_me:$LINENO: result: pre-installed" >&5
11619echo "${ECHO_T}pre-installed" >&6
e8b05380 11620 fi
2abefe3d
PB
11621else
11622 ok=yes
11623 case " ${configdirs} " in
11624 *" binutils "*) ;;
11625 *) ok=no ;;
11626 esac
1c710c3c 11627
2abefe3d
PB
11628 if test $ok = yes; then
11629 # An in-tree tool is available and we can use it
11630 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11631 echo "$as_me:$LINENO: result: just compiled" >&5
11632echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11633 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11634 # We already found the complete path
172e41aa 11635 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11636 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11637echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11638 elif test "x$target" = "x$host"; then
11639 # We can use an host tool
11640 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11641 echo "$as_me:$LINENO: result: host tool" >&5
11642echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11643 else
11644 # We need a cross tool
2aeb72e9
DD
11645 echo "$as_me:$LINENO: result: pre-installed" >&5
11646echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11647 fi
11648fi
0b0dc272 11649
2aeb72e9
DD
11650echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11651echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11652if test "x${build}" != "x${host}" ; then
e8b05380
PB
11653 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11654 # We already found the complete path
172e41aa 11655 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11656 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11657echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11658 else
11659 # Canadian cross, just use what we found
2aeb72e9
DD
11660 echo "$as_me:$LINENO: result: pre-installed" >&5
11661echo "${ECHO_T}pre-installed" >&6
e8b05380 11662 fi
2abefe3d
PB
11663else
11664 ok=yes
11665 case " ${configdirs} " in
11666 *" binutils "*) ;;
11667 *) ok=no ;;
11668 esac
1c710c3c 11669
2abefe3d
PB
11670 if test $ok = yes; then
11671 # An in-tree tool is available and we can use it
11672 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11673 echo "$as_me:$LINENO: result: just compiled" >&5
11674echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11675 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11676 # We already found the complete path
172e41aa 11677 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11678 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11679echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11680 elif test "x$target" = "x$host"; then
11681 # We can use an host tool
11682 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11683 echo "$as_me:$LINENO: result: host tool" >&5
11684echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11685 else
11686 # We need a cross tool
2aeb72e9
DD
11687 echo "$as_me:$LINENO: result: pre-installed" >&5
11688echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11689 fi
11690fi
0b0dc272 11691
2aeb72e9
DD
11692echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11693echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11694if test "x${build}" != "x${host}" ; then
e8b05380
PB
11695 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11696 # We already found the complete path
172e41aa 11697 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11698 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11699echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11700 else
11701 # Canadian cross, just use what we found
2aeb72e9
DD
11702 echo "$as_me:$LINENO: result: pre-installed" >&5
11703echo "${ECHO_T}pre-installed" >&6
e8b05380 11704 fi
2abefe3d
PB
11705else
11706 ok=yes
11707 case " ${configdirs} " in
11708 *" binutils "*) ;;
11709 *) ok=no ;;
11710 esac
1c710c3c 11711
2abefe3d
PB
11712 if test $ok = yes; then
11713 # An in-tree tool is available and we can use it
11714 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11715 echo "$as_me:$LINENO: result: just compiled" >&5
11716echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11717 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11718 # We already found the complete path
172e41aa 11719 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11720 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11721echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11722 elif test "x$target" = "x$host"; then
11723 # We can use an host tool
11724 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
11725 echo "$as_me:$LINENO: result: host tool" >&5
11726echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11727 else
11728 # We need a cross tool
2aeb72e9
DD
11729 echo "$as_me:$LINENO: result: pre-installed" >&5
11730echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11731 fi
11732fi
0b0dc272 11733
2aeb72e9
DD
11734echo "$as_me:$LINENO: checking where to find the target strip" >&5
11735echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11736if test "x${build}" != "x${host}" ; then
e8b05380
PB
11737 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11738 # We already found the complete path
172e41aa 11739 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11740 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11741echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11742 else
11743 # Canadian cross, just use what we found
2aeb72e9
DD
11744 echo "$as_me:$LINENO: result: pre-installed" >&5
11745echo "${ECHO_T}pre-installed" >&6
e8b05380 11746 fi
2abefe3d
PB
11747else
11748 ok=yes
11749 case " ${configdirs} " in
11750 *" binutils "*) ;;
11751 *) ok=no ;;
11752 esac
1c710c3c 11753
2abefe3d
PB
11754 if test $ok = yes; then
11755 # An in-tree tool is available and we can use it
11756 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11757 echo "$as_me:$LINENO: result: just compiled" >&5
11758echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11759 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11760 # We already found the complete path
172e41aa 11761 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11762 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11763echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11764 elif test "x$target" = "x$host"; then
11765 # We can use an host tool
11766 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11767 echo "$as_me:$LINENO: result: host tool" >&5
11768echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11769 else
11770 # We need a cross tool
2aeb72e9
DD
11771 echo "$as_me:$LINENO: result: pre-installed" >&5
11772echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11773 fi
11774fi
0b0dc272 11775
2aeb72e9
DD
11776echo "$as_me:$LINENO: checking where to find the target windres" >&5
11777echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11778if test "x${build}" != "x${host}" ; then
e8b05380
PB
11779 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11780 # We already found the complete path
172e41aa 11781 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11782 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11783echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11784 else
11785 # Canadian cross, just use what we found
2aeb72e9
DD
11786 echo "$as_me:$LINENO: result: pre-installed" >&5
11787echo "${ECHO_T}pre-installed" >&6
e8b05380 11788 fi
2abefe3d
PB
11789else
11790 ok=yes
11791 case " ${configdirs} " in
11792 *" binutils "*) ;;
11793 *) ok=no ;;
11794 esac
1c710c3c 11795
2abefe3d
PB
11796 if test $ok = yes; then
11797 # An in-tree tool is available and we can use it
11798 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11799 echo "$as_me:$LINENO: result: just compiled" >&5
11800echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11801 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11802 # We already found the complete path
172e41aa 11803 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11804 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11805echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11806 elif test "x$target" = "x$host"; then
11807 # We can use an host tool
11808 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11809 echo "$as_me:$LINENO: result: host tool" >&5
11810echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11811 else
11812 # We need a cross tool
2aeb72e9
DD
11813 echo "$as_me:$LINENO: result: pre-installed" >&5
11814echo "${ECHO_T}pre-installed" >&6
2abefe3d 11815 fi
671aa708 11816fi
be912515 11817
901119ae
KT
11818echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11819echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11820if test "x${build}" != "x${host}" ; then
11821 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11822 # We already found the complete path
11823 ac_dir=`dirname $WINDMC_FOR_TARGET`
11824 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11825echo "${ECHO_T}pre-installed in $ac_dir" >&6
11826 else
11827 # Canadian cross, just use what we found
11828 echo "$as_me:$LINENO: result: pre-installed" >&5
11829echo "${ECHO_T}pre-installed" >&6
11830 fi
11831else
11832 ok=yes
11833 case " ${configdirs} " in
11834 *" binutils "*) ;;
11835 *) ok=no ;;
11836 esac
11837
11838 if test $ok = yes; then
11839 # An in-tree tool is available and we can use it
11840 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11841 echo "$as_me:$LINENO: result: just compiled" >&5
11842echo "${ECHO_T}just compiled" >&6
11843 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11844 # We already found the complete path
11845 ac_dir=`dirname $WINDMC_FOR_TARGET`
11846 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11847echo "${ECHO_T}pre-installed in $ac_dir" >&6
11848 elif test "x$target" = "x$host"; then
11849 # We can use an host tool
11850 WINDMC_FOR_TARGET='$(WINDMC)'
11851 echo "$as_me:$LINENO: result: host tool" >&5
11852echo "${ECHO_T}host tool" >&6
11853 else
11854 # We need a cross tool
11855 echo "$as_me:$LINENO: result: pre-installed" >&5
11856echo "${ECHO_T}pre-installed" >&6
11857 fi
11858fi
11859
be912515
NN
11860
11861
2abefe3d 11862
0b0dc272 11863
671aa708
NN
11864# Certain tools may need extra flags.
11865AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11866RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11867NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11868
2abefe3d
PB
11869# When building target libraries, except in a Canadian cross, we use
11870# the same toolchain as the compiler we just built.
11871COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11872COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11873COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11874if test $host = $build; then
11875 case " $configdirs " in
11876 *" gcc "*)
11877 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11878 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11879 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11880 ;;
11881 esac
11882fi
11883
11884
11885
11886
11887
2aeb72e9
DD
11888echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11889echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11890# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11891if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11892 enableval="$enable_maintainer_mode"
11893 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11894else
11895 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11896fi;
11897echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11898echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11899
11900
11901if test "$USE_MAINTAINER_MODE" = yes; then
11902 MAINTAINER_MODE_TRUE=
11903 MAINTAINER_MODE_FALSE='#'
11904else
11905 MAINTAINER_MODE_TRUE='#'
11906 MAINTAINER_MODE_FALSE=
1c710c3c 11907fi
ee03dc5e
AO
11908MAINT=$MAINTAINER_MODE_TRUE
11909
2805b53a
NN
11910# ---------------------
11911# GCC bootstrap support
11912# ---------------------
11913
11914# Stage specific cflags for build.
11915stage1_cflags="-g"
11916case $build in
11917 vax-*-*)
11918 case ${GCC} in
11919 yes) stage1_cflags="-g -Wa,-J" ;;
11920 *) stage1_cflags="-g -J" ;;
11921 esac ;;
2805b53a
NN
11922esac
11923
0b50988a
EB
11924# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
11925if test "$GCC" = yes; then
11926 saved_CFLAGS="$CFLAGS"
11927
11928 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
11929 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
11930 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
11931echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
11932 cat >conftest.$ac_ext <<_ACEOF
11933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
11938
9cc1244e
JJ
11939#if (__GNUC__ < 3) \
11940 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
11941 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
11942#error http://gcc.gnu.org/PR29382
11943#endif
11944
1c710c3c
DJ
11945int
11946main ()
11947{
11948
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext
2aeb72e9
DD
11954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 echo "$as_me:$LINENO: result: yes" >&5
11976echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
11977else
11978 echo "$as_me: failed program was:" >&5
11979sed 's/^/| /' conftest.$ac_ext >&5
11980
2aeb72e9
DD
11981echo "$as_me:$LINENO: result: no" >&5
11982echo "${ECHO_T}no" >&6
1c710c3c 11983fi
2aeb72e9 11984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
11985
11986 CFLAGS="$saved_CFLAGS"
11987fi
11988
11989
2805b53a 11990
8efea775 11991# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 11992# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 11993if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
11994 enableval="$enable_stage1_checking"
11995 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 11996else
e643dc23 11997 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 11998 stage1_checking=--enable-checking=yes,types
8efea775 11999else
e643dc23 12000 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12001fi
2aeb72e9 12002fi;
8efea775
PB
12003
12004
2805b53a 12005# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12006# Check whether --enable-werror or --disable-werror was given.
2805b53a 12007if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12008 enableval="$enable_werror"
12009
2805b53a 12010else
416cfb5e 12011 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12012 enable_werror=yes
88fceb68
PB
12013else
12014 enable_werror=no
12015fi
2aeb72e9 12016fi;
09a9c095
NN
12017case ${enable_werror} in
12018 yes) stage2_werror_flag="--enable-werror-always" ;;
12019 *) stage2_werror_flag="" ;;
2805b53a
NN
12020esac
12021
12022
32845532 12023# Flags needed to enable html installing and building
1c710c3c 12024
2aeb72e9 12025# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12026if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12027 withval="$with_datarootdir"
12028 datarootdir="\${prefix}/${withval}"
32845532
CD
12029else
12030 datarootdir="\${prefix}/share"
2aeb72e9 12031fi;
32845532
CD
12032
12033
2aeb72e9 12034# Check whether --with-docdir or --without-docdir was given.
32845532 12035if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12036 withval="$with_docdir"
12037 docdir="\${prefix}/${withval}"
32845532
CD
12038else
12039 docdir="\${datarootdir}/doc"
2aeb72e9 12040fi;
32845532
CD
12041
12042
2aeb72e9 12043# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12044if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12045 withval="$with_pdfdir"
12046 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12047else
12048 pdfdir="\${docdir}"
2aeb72e9 12049fi;
9c4d2493
BM
12050
12051
2aeb72e9 12052# Check whether --with-htmldir or --without-htmldir was given.
32845532 12053if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12054 withval="$with_htmldir"
12055 htmldir="\${prefix}/${withval}"
32845532
CD
12056else
12057 htmldir="\${docdir}"
2aeb72e9 12058fi;
32845532
CD
12059
12060
12061
12062
172e41aa 12063
11a67599 12064
2aeb72e9 12065 ac_config_files="$ac_config_files Makefile"
1c710c3c 12066cat >confcache <<\_ACEOF
671aa708
NN
12067# This file is a shell script that caches the results of configure
12068# tests run on this system so they can be shared between configure
1c710c3c
DJ
12069# scripts and configure runs, see configure's option --config-cache.
12070# It is not useful on other systems. If it contains results you don't
12071# want to keep, you may remove or edit it.
671aa708 12072#
1c710c3c
DJ
12073# config.status only pays attention to the cache file if you give it
12074# the --recheck option to rerun configure.
671aa708 12075#
1c710c3c
DJ
12076# `ac_cv_env_foo' variables (set or unset) will be overridden when
12077# loading this file, other *unset* `ac_cv_foo' will be assigned the
12078# following values.
12079
12080_ACEOF
12081
671aa708
NN
12082# The following way of writing the cache mishandles newlines in values,
12083# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12084# So, don't put newlines in cache variables' values.
671aa708
NN
12085# Ultrix sh set writes to stderr and can't be redirected directly,
12086# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12087{
1c710c3c 12088 (set) 2>&1 |
2aeb72e9
DD
12089 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12090 *ac_space=\ *)
1c710c3c
DJ
12091 # `set' does not quote correctly, so add quotes (double-quote
12092 # substitution turns \\\\ into \\, and sed turns \\ into \).
12093 sed -n \
12094 "s/'/'\\\\''/g;
12095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12096 ;;
1c710c3c
DJ
12097 *)
12098 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12099 sed -n \
12100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12101 ;;
2aeb72e9
DD
12102 esac;
12103} |
1c710c3c
DJ
12104 sed '
12105 t clear
2aeb72e9 12106 : clear
1c710c3c
DJ
12107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12108 t end
2aeb72e9
DD
12109 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12110 : end' >>confcache
12111if diff $cache_file confcache >/dev/null 2>&1; then :; else
12112 if test -w $cache_file; then
12113 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12114 cat confcache >$cache_file
671aa708 12115 else
2aeb72e9 12116 echo "not updating unwritable cache $cache_file"
671aa708 12117 fi
4977bab6 12118fi
671aa708 12119rm -f confcache
79c06341 12120
671aa708
NN
12121test "x$prefix" = xNONE && prefix=$ac_default_prefix
12122# Let make expand exec_prefix.
12123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12124
2aeb72e9
DD
12125# VPATH may cause trouble with some makes, so we remove $(srcdir),
12126# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12127# trailing colons and then remove the whole line if VPATH becomes empty
12128# (actually we leave an empty line to preserve line numbers).
12129if test "x$srcdir" = x.; then
12130 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12131s/:*\$(srcdir):*/:/;
12132s/:*\${srcdir}:*/:/;
12133s/:*@srcdir@:*/:/;
12134s/^\([^=]*=[ ]*\):*/\1/;
12135s/:*$//;
12136s/^[^=]*=[ ]*$//;
12137}'
12138fi
12139
671aa708
NN
12140# Transform confdefs.h into DEFS.
12141# Protect against shell expansion while executing Makefile rules.
12142# Protect against Makefile macro expansion.
1c710c3c
DJ
12143#
12144# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12145# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12146# look for a macro that doesn't take arguments.
2aeb72e9 12147cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12148t clear
2aeb72e9
DD
12149: clear
12150s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12151t quote
2aeb72e9 12152s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12153t quote
2aeb72e9
DD
12154d
12155: quote
12156s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12157s,\[,\\&,g
12158s,\],\\&,g
12159s,\$,$$,g
12160p
12161_ACEOF
12162# We use echo to avoid assuming a particular line-breaking character.
12163# The extra dot is to prevent the shell from consuming trailing
12164# line-breaks from the sub-command output. A line-break within
12165# single-quotes doesn't work because, if this script is created in a
12166# platform that uses two characters for line-breaks (e.g., DOS), tr
12167# would break.
12168ac_LF_and_DOT=`echo; echo .`
12169DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12170rm -f confdef2opt.sed
1c710c3c
DJ
12171
12172
12173ac_libobjs=
12174ac_ltlibobjs=
12175for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12176 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12177 ac_i=`echo "$ac_i" |
12178 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12179 # 2. Add them.
12180 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12181 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12182done
12183LIBOBJS=$ac_libobjs
fb0103e5 12184
1c710c3c 12185LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12186
af71363e 12187
1c710c3c
DJ
12188
12189: ${CONFIG_STATUS=./config.status}
12190ac_clean_files_save=$ac_clean_files
12191ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12192{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12193echo "$as_me: creating $CONFIG_STATUS" >&6;}
12194cat >$CONFIG_STATUS <<_ACEOF
12195#! $SHELL
12196# Generated by $as_me.
671aa708 12197# Run this file to recreate the current configuration.
671aa708 12198# Compiler output produced by configure, useful for debugging
1c710c3c 12199# configure, is in config.log if it exists.
0b0dc272 12200
1c710c3c
DJ
12201debug=false
12202ac_cs_recheck=false
12203ac_cs_silent=false
12204SHELL=\${CONFIG_SHELL-$SHELL}
12205_ACEOF
12206
12207cat >>$CONFIG_STATUS <<\_ACEOF
12208## --------------------- ##
12209## M4sh Initialization. ##
12210## --------------------- ##
12211
2aeb72e9 12212# Be Bourne compatible
1c710c3c
DJ
12213if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12214 emulate sh
12215 NULLCMD=:
12216 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12217 # is contrary to our usage. Disable this feature.
12218 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12219elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12220 set -o posix
1c710c3c 12221fi
2aeb72e9 12222DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12223
12224# Support unset when possible.
12225if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12226 as_unset=unset
12227else
12228 as_unset=false
12229fi
12230
12231
12232# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12233$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12234PS1='$ '
12235PS2='> '
12236PS4='+ '
12237
12238# NLS nuisances.
12239for as_var in \
12240 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12241 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12242 LC_TELEPHONE LC_TIME
12243do
12244 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12245 eval $as_var=C; export $as_var
12246 else
2aeb72e9 12247 $as_unset $as_var
1c710c3c
DJ
12248 fi
12249done
12250
12251# Required to use basename.
2aeb72e9 12252if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12253 as_expr=expr
12254else
12255 as_expr=false
12256fi
12257
2aeb72e9 12258if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12259 as_basename=basename
12260else
12261 as_basename=false
12262fi
12263
12264
12265# Name of the executable.
2aeb72e9 12266as_me=`$as_basename "$0" ||
1c710c3c
DJ
12267$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12268 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12269 X"$0" : 'X\(/\)$' \| \
12270 . : '\(.\)' 2>/dev/null ||
1c710c3c 12271echo X/"$0" |
2aeb72e9
DD
12272 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12273 /^X\/\(\/\/\)$/{ s//\1/; q; }
12274 /^X\/\(\/\).*/{ s//\1/; q; }
12275 s/.*/./; q'`
1c710c3c 12276
2aeb72e9
DD
12277
12278# PATH needs CR, and LINENO needs CR and PATH.
12279# Avoid depending upon Character Ranges.
12280as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12281as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12282as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12283as_cr_digits='0123456789'
12284as_cr_alnum=$as_cr_Letters$as_cr_digits
12285
12286# The user is always right.
12287if test "${PATH_SEPARATOR+set}" != set; then
12288 echo "#! /bin/sh" >conf$$.sh
12289 echo "exit 0" >>conf$$.sh
12290 chmod +x conf$$.sh
12291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12292 PATH_SEPARATOR=';'
12293 else
12294 PATH_SEPARATOR=:
12295 fi
12296 rm -f conf$$.sh
12297fi
1c710c3c
DJ
12298
12299
2aeb72e9
DD
12300 as_lineno_1=$LINENO
12301 as_lineno_2=$LINENO
12302 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12303 test "x$as_lineno_1" != "x$as_lineno_2" &&
12304 test "x$as_lineno_3" = "x$as_lineno_2" || {
12305 # Find who we are. Look in the path if we contain no path at all
12306 # relative or not.
12307 case $0 in
12308 *[\\/]* ) as_myself=$0 ;;
12309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310for as_dir in $PATH
12311do
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
12314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12315done
1c710c3c 12316
2aeb72e9
DD
12317 ;;
12318 esac
12319 # We did not find ourselves, most probably we were run as `sh COMMAND'
12320 # in which case we are not to be found in the path.
12321 if test "x$as_myself" = x; then
12322 as_myself=$0
12323 fi
12324 if test ! -f "$as_myself"; then
12325 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12326echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12327 { (exit 1); exit 1; }; }
12328 fi
12329 case $CONFIG_SHELL in
12330 '')
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12333do
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for as_base in sh bash ksh sh5; do
12337 case $as_dir in
12338 /*)
12339 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12340 as_lineno_1=$LINENO
12341 as_lineno_2=$LINENO
2aeb72e9 12342 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12343 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12344 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12345 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12346 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12347 CONFIG_SHELL=$as_dir/$as_base
12348 export CONFIG_SHELL
12349 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12350 fi;;
12351 esac
12352 done
12353done
12354;;
12355 esac
1c710c3c
DJ
12356
12357 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12358 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12359 # line-number line before each line; the second 'sed' does the real
12360 # work. The second script uses 'N' to pair each line-number line
12361 # with the numbered line, and appends trailing '-' during
12362 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12364 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12365 sed '=' <$as_myself |
1c710c3c
DJ
12366 sed '
12367 N
2aeb72e9
DD
12368 s,$,-,
12369 : loop
12370 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12371 t loop
2aeb72e9
DD
12372 s,-$,,
12373 s,^['$as_cr_digits']*\n,,
1c710c3c 12374 ' >$as_me.lineno &&
2aeb72e9
DD
12375 chmod +x $as_me.lineno ||
12376 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12377echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12378 { (exit 1); exit 1; }; }
12379
12380 # Don't try to exec as it changes $[0], causing all sort of problems
12381 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12382 # original and so on. Autoconf is especially sensible to this).
12383 . ./$as_me.lineno
1c710c3c
DJ
12384 # Exit status is that of the last command.
12385 exit
12386}
12387
12388
2aeb72e9
DD
12389case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12390 *c*,-n*) ECHO_N= ECHO_C='
12391' ECHO_T=' ' ;;
12392 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12393 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12394esac
12395
2aeb72e9 12396if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12397 as_expr=expr
12398else
12399 as_expr=false
12400fi
12401
12402rm -f conf$$ conf$$.exe conf$$.file
12403echo >conf$$.file
12404if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12405 # We could just check for DJGPP; but this test a) works b) is more generic
12406 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12407 if test -f conf$$.exe; then
12408 # Don't use ln at all; we don't have any links
1c710c3c 12409 as_ln_s='cp -p'
2aeb72e9
DD
12410 else
12411 as_ln_s='ln -s'
12412 fi
1c710c3c
DJ
12413elif ln conf$$.file conf$$ 2>/dev/null; then
12414 as_ln_s=ln
12415else
12416 as_ln_s='cp -p'
12417fi
2aeb72e9 12418rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12419
12420if mkdir -p . 2>/dev/null; then
12421 as_mkdir_p=:
12422else
12423 test -d ./-p && rmdir ./-p
12424 as_mkdir_p=false
12425fi
12426
2aeb72e9 12427as_executable_p="test -f"
1c710c3c
DJ
12428
12429# Sed expression to map a string onto a valid CPP name.
12430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12431
12432# Sed expression to map a string onto a valid variable name.
12433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12434
12435
2aeb72e9
DD
12436# IFS
12437# We need space, tab and new line, in precisely that order.
12438as_nl='
12439'
12440IFS=" $as_nl"
12441
12442# CDPATH.
12443$as_unset CDPATH
12444
1c710c3c
DJ
12445exec 6>&1
12446
2aeb72e9 12447# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12448# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12449# values after options handling. Logging --version etc. is OK.
12450exec 5>>config.log
12451{
12452 echo
12453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12454## Running $as_me. ##
12455_ASBOX
12456} >&5
12457cat >&5 <<_CSEOF
12458
1c710c3c 12459This file was extended by $as_me, which was
2aeb72e9 12460generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12461
12462 CONFIG_FILES = $CONFIG_FILES
12463 CONFIG_HEADERS = $CONFIG_HEADERS
12464 CONFIG_LINKS = $CONFIG_LINKS
12465 CONFIG_COMMANDS = $CONFIG_COMMANDS
12466 $ $0 $@
12467
2aeb72e9
DD
12468_CSEOF
12469echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12470echo >&5
1c710c3c
DJ
12471_ACEOF
12472
12473# Files that config.status was made for.
2aeb72e9
DD
12474if test -n "$ac_config_files"; then
12475 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12476fi
1c710c3c 12477
2aeb72e9
DD
12478if test -n "$ac_config_headers"; then
12479 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12480fi
12481
12482if test -n "$ac_config_links"; then
12483 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12484fi
12485
12486if test -n "$ac_config_commands"; then
12487 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12488fi
1c710c3c
DJ
12489
12490cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12491
1c710c3c
DJ
12492ac_cs_usage="\
12493\`$as_me' instantiates files from templates according to the
12494current configuration.
12495
12496Usage: $0 [OPTIONS] [FILE]...
12497
12498 -h, --help print this help, then exit
2aeb72e9 12499 -V, --version print version number, then exit
1c710c3c
DJ
12500 -q, --quiet do not print progress messages
12501 -d, --debug don't remove temporary files
12502 --recheck update $as_me by reconfiguring in the same conditions
12503 --file=FILE[:TEMPLATE]
12504 instantiate the configuration file FILE
12505
12506Configuration files:
12507$config_files
12508
12509Report bugs to <bug-autoconf@gnu.org>."
11a67599 12510_ACEOF
2aeb72e9 12511
1c710c3c
DJ
12512cat >>$CONFIG_STATUS <<_ACEOF
12513ac_cs_version="\\
12514config.status
2aeb72e9
DD
12515configured by $0, generated by GNU Autoconf 2.59,
12516 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12517
2aeb72e9 12518Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12519This config.status script is free software; the Free Software Foundation
12520gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12521srcdir=$srcdir
12522INSTALL="$INSTALL"
1c710c3c
DJ
12523_ACEOF
12524
12525cat >>$CONFIG_STATUS <<\_ACEOF
12526# If no file are specified by the user, then we need to provide default
12527# value. By we need to know if files were specified by the user.
12528ac_need_defaults=:
12529while test $# != 0
a4b9e93e 12530do
1c710c3c
DJ
12531 case $1 in
12532 --*=*)
2aeb72e9
DD
12533 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12534 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12535 ac_shift=:
12536 ;;
2aeb72e9 12537 -*)
1c710c3c
DJ
12538 ac_option=$1
12539 ac_optarg=$2
12540 ac_shift=shift
12541 ;;
2aeb72e9
DD
12542 *) # This is not an option, so the user has probably given explicit
12543 # arguments.
12544 ac_option=$1
12545 ac_need_defaults=false;;
1c710c3c
DJ
12546 esac
12547
12548 case $ac_option in
12549 # Handling of the options.
2aeb72e9
DD
12550_ACEOF
12551cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12553 ac_cs_recheck=: ;;
2aeb72e9
DD
12554 --version | --vers* | -V )
12555 echo "$ac_cs_version"; exit 0 ;;
12556 --he | --h)
12557 # Conflict between --help and --header
12558 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12559Try \`$0 --help' for more information." >&5
12560echo "$as_me: error: ambiguous option: $1
12561Try \`$0 --help' for more information." >&2;}
12562 { (exit 1); exit 1; }; };;
12563 --help | --hel | -h )
12564 echo "$ac_cs_usage"; exit 0 ;;
12565 --debug | --d* | -d )
1c710c3c
DJ
12566 debug=: ;;
12567 --file | --fil | --fi | --f )
12568 $ac_shift
12569 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12570 ac_need_defaults=false;;
2aeb72e9
DD
12571 --header | --heade | --head | --hea )
12572 $ac_shift
12573 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12574 ac_need_defaults=false;;
1c710c3c
DJ
12575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12577 ac_cs_silent=: ;;
12578
12579 # This is an error.
2aeb72e9
DD
12580 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12581Try \`$0 --help' for more information." >&5
12582echo "$as_me: error: unrecognized option: $1
12583Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12584 { (exit 1); exit 1; }; } ;;
12585
2aeb72e9 12586 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12587
0b0dc272 12588 esac
1c710c3c 12589 shift
0b0dc272
AM
12590done
12591
1c710c3c 12592ac_configure_extra_args=
0b0dc272 12593
1c710c3c
DJ
12594if $ac_cs_silent; then
12595 exec 6>/dev/null
12596 ac_configure_extra_args="$ac_configure_extra_args --silent"
12597fi
0b0dc272 12598
1c710c3c
DJ
12599_ACEOF
12600cat >>$CONFIG_STATUS <<_ACEOF
12601if \$ac_cs_recheck; then
2aeb72e9
DD
12602 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12603 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12604fi
12605
12606_ACEOF
12607
1c710c3c 12608
11a67599 12609
2aeb72e9
DD
12610
12611
12612cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12613for ac_config_target in $ac_config_targets
12614do
2aeb72e9
DD
12615 case "$ac_config_target" in
12616 # Handling of arguments.
12617 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12619echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12620 { (exit 1); exit 1; }; };;
12621 esac
12622done
12623
12624# If the user did not use the arguments to specify the items to instantiate,
12625# then the envvar interface is used. Set only those that are not.
12626# We use the long form for the default assignment because of an extremely
12627# bizarre bug on SunOS 4.1.3.
12628if $ac_need_defaults; then
12629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12630fi
12631
12632# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12633# simply because there is no reason to put it here, and in addition,
1c710c3c 12634# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12635# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12636$debug ||
12637{
2aeb72e9 12638 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12639 trap '{ (exit 1); exit 1; }' 1 2 13 15
12640}
2aeb72e9 12641
1c710c3c
DJ
12642# Create a (secure) tmp directory for tmp files.
12643
12644{
2aeb72e9 12645 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12646 test -n "$tmp" && test -d "$tmp"
12647} ||
12648{
2aeb72e9
DD
12649 tmp=./confstat$$-$RANDOM
12650 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12651} ||
12652{
12653 echo "$me: cannot create a temporary directory in ." >&2
12654 { (exit 1); exit 1; }
12655}
12656
2aeb72e9
DD
12657_ACEOF
12658
12659cat >>$CONFIG_STATUS <<_ACEOF
12660
1c710c3c 12661#
2aeb72e9 12662# CONFIG_FILES section.
1c710c3c
DJ
12663#
12664
12665# No need to generate the scripts if there are no CONFIG_FILES.
12666# This happens for instance when ./config.status config.h
2aeb72e9
DD
12667if test -n "\$CONFIG_FILES"; then
12668 # Protect against being on the right side of a sed subst in config.status.
12669 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12670 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12671s,@SHELL@,$SHELL,;t t
12672s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12673s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12674s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12675s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12676s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12677s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12678s,@exec_prefix@,$exec_prefix,;t t
12679s,@prefix@,$prefix,;t t
12680s,@program_transform_name@,$program_transform_name,;t t
12681s,@bindir@,$bindir,;t t
12682s,@sbindir@,$sbindir,;t t
12683s,@libexecdir@,$libexecdir,;t t
12684s,@datadir@,$datadir,;t t
12685s,@sysconfdir@,$sysconfdir,;t t
12686s,@sharedstatedir@,$sharedstatedir,;t t
12687s,@localstatedir@,$localstatedir,;t t
12688s,@libdir@,$libdir,;t t
12689s,@includedir@,$includedir,;t t
12690s,@oldincludedir@,$oldincludedir,;t t
12691s,@infodir@,$infodir,;t t
12692s,@mandir@,$mandir,;t t
12693s,@build_alias@,$build_alias,;t t
12694s,@host_alias@,$host_alias,;t t
12695s,@target_alias@,$target_alias,;t t
12696s,@DEFS@,$DEFS,;t t
12697s,@ECHO_C@,$ECHO_C,;t t
12698s,@ECHO_N@,$ECHO_N,;t t
12699s,@ECHO_T@,$ECHO_T,;t t
12700s,@LIBS@,$LIBS,;t t
12701s,@build@,$build,;t t
12702s,@build_cpu@,$build_cpu,;t t
12703s,@build_vendor@,$build_vendor,;t t
12704s,@build_os@,$build_os,;t t
12705s,@build_noncanonical@,$build_noncanonical,;t t
12706s,@host_noncanonical@,$host_noncanonical,;t t
12707s,@target_noncanonical@,$target_noncanonical,;t t
12708s,@host@,$host,;t t
12709s,@host_cpu@,$host_cpu,;t t
12710s,@host_vendor@,$host_vendor,;t t
12711s,@host_os@,$host_os,;t t
12712s,@target@,$target,;t t
12713s,@target_cpu@,$target_cpu,;t t
12714s,@target_vendor@,$target_vendor,;t t
12715s,@target_os@,$target_os,;t t
12716s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12717s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12718s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12719s,@LN@,$LN,;t t
12720s,@LN_S@,$LN_S,;t t
12721s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12722s,@build_libsubdir@,$build_libsubdir,;t t
12723s,@build_subdir@,$build_subdir,;t t
12724s,@host_subdir@,$host_subdir,;t t
12725s,@target_subdir@,$target_subdir,;t t
12726s,@CC@,$CC,;t t
12727s,@CFLAGS@,$CFLAGS,;t t
12728s,@LDFLAGS@,$LDFLAGS,;t t
12729s,@CPPFLAGS@,$CPPFLAGS,;t t
12730s,@ac_ct_CC@,$ac_ct_CC,;t t
12731s,@EXEEXT@,$EXEEXT,;t t
12732s,@OBJEXT@,$OBJEXT,;t t
12733s,@CXX@,$CXX,;t t
12734s,@CXXFLAGS@,$CXXFLAGS,;t t
12735s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12736s,@GNATBIND@,$GNATBIND,;t t
12737s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12738s,@GNATMAKE@,$GNATMAKE,;t t
12739s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12740s,@do_compare@,$do_compare,;t t
12741s,@gmplibs@,$gmplibs,;t t
12742s,@gmpinc@,$gmpinc,;t t
12743s,@stage1_languages@,$stage1_languages,;t t
12744s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 12745s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
2aeb72e9
DD
12746s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12747s,@tooldir@,$tooldir,;t t
12748s,@build_tooldir@,$build_tooldir,;t t
12749s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12750s,@GDB_TK@,$GDB_TK,;t t
12751s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12752s,@build_configargs@,$build_configargs,;t t
12753s,@build_configdirs@,$build_configdirs,;t t
12754s,@host_configargs@,$host_configargs,;t t
12755s,@configdirs@,$configdirs,;t t
12756s,@target_configargs@,$target_configargs,;t t
12757s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12758s,@config_shell@,$config_shell,;t t
12759s,@YACC@,$YACC,;t t
12760s,@BISON@,$BISON,;t t
12761s,@M4@,$M4,;t t
12762s,@LEX@,$LEX,;t t
12763s,@FLEX@,$FLEX,;t t
12764s,@MAKEINFO@,$MAKEINFO,;t t
12765s,@EXPECT@,$EXPECT,;t t
12766s,@RUNTEST@,$RUNTEST,;t t
12767s,@AR@,$AR,;t t
12768s,@AS@,$AS,;t t
12769s,@DLLTOOL@,$DLLTOOL,;t t
12770s,@LD@,$LD,;t t
12771s,@LIPO@,$LIPO,;t t
12772s,@NM@,$NM,;t t
12773s,@RANLIB@,$RANLIB,;t t
12774s,@STRIP@,$STRIP,;t t
12775s,@WINDRES@,$WINDRES,;t t
901119ae 12776s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12777s,@OBJCOPY@,$OBJCOPY,;t t
12778s,@OBJDUMP@,$OBJDUMP,;t t
12779s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12780s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12781s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12782s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12783s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12784s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12785s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12786s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12787s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12788s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12789s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12790s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12791s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12792s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12793s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12794s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12795s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12796s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12797s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12798s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12799s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12800s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12801s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12802s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12803s,@MAINT@,$MAINT,;t t
12804s,@stage1_cflags@,$stage1_cflags,;t t
12805s,@stage1_checking@,$stage1_checking,;t t
12806s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12807s,@datarootdir@,$datarootdir,;t t
12808s,@docdir@,$docdir,;t t
12809s,@pdfdir@,$pdfdir,;t t
12810s,@htmldir@,$htmldir,;t t
12811s,@LIBOBJS@,$LIBOBJS,;t t
12812s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12813/@serialization_dependencies@/r $serialization_dependencies
12814s,@serialization_dependencies@,,;t t
12815/@host_makefile_frag@/r $host_makefile_frag
12816s,@host_makefile_frag@,,;t t
12817/@target_makefile_frag@/r $target_makefile_frag
12818s,@target_makefile_frag@,,;t t
12819/@alphaieee_frag@/r $alphaieee_frag
12820s,@alphaieee_frag@,,;t t
12821/@ospace_frag@/r $ospace_frag
12822s,@ospace_frag@,,;t t
12823CEOF
79c06341 12824
1c710c3c
DJ
12825_ACEOF
12826
2aeb72e9
DD
12827 cat >>$CONFIG_STATUS <<\_ACEOF
12828 # Split the substitutions into bite-sized pieces for seds with
12829 # small command number limits, like on Digital OSF/1 and HP-UX.
12830 ac_max_sed_lines=48
12831 ac_sed_frag=1 # Number of current file.
12832 ac_beg=1 # First line for current file.
12833 ac_end=$ac_max_sed_lines # Line after last line for current file.
12834 ac_more_lines=:
12835 ac_sed_cmds=
12836 while $ac_more_lines; do
12837 if test $ac_beg -gt 1; then
12838 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12839 else
12840 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12841 fi
12842 if test ! -s $tmp/subs.frag; then
12843 ac_more_lines=false
12844 else
12845 # The purpose of the label and of the branching condition is to
12846 # speed up the sed processing (if there are no `@' at all, there
12847 # is no need to browse any of the substitutions).
12848 # These are the two extra sed commands mentioned above.
12849 (echo ':t
12850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12851 if test -z "$ac_sed_cmds"; then
12852 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12853 else
12854 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12855 fi
12856 ac_sed_frag=`expr $ac_sed_frag + 1`
12857 ac_beg=$ac_end
12858 ac_end=`expr $ac_end + $ac_max_sed_lines`
12859 fi
12860 done
12861 if test -z "$ac_sed_cmds"; then
12862 ac_sed_cmds=cat
11a67599 12863 fi
2aeb72e9 12864fi # test -n "$CONFIG_FILES"
11a67599 12865
11a67599 12866_ACEOF
1c710c3c 12867cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12868for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12870 case $ac_file in
12871 - | *:- | *:-:* ) # input from stdin
12872 cat >$tmp/stdin
12873 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12875 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12877 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12878 esac
12879
2aeb72e9
DD
12880 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12881 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12882$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12883 X"$ac_file" : 'X\(//\)[^/]' \| \
12884 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12885 X"$ac_file" : 'X\(/\)' \| \
12886 . : '\(.\)' 2>/dev/null ||
1c710c3c 12887echo X"$ac_file" |
2aeb72e9
DD
12888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12890 /^X\(\/\/\)$/{ s//\1/; q; }
12891 /^X\(\/\).*/{ s//\1/; q; }
12892 s/.*/./; q'`
12893 { if $as_mkdir_p; then
12894 mkdir -p "$ac_dir"
12895 else
12896 as_dir="$ac_dir"
1c710c3c 12897 as_dirs=
2aeb72e9
DD
12898 while test ! -d "$as_dir"; do
12899 as_dirs="$as_dir $as_dirs"
12900 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12901$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12902 X"$as_dir" : 'X\(//\)[^/]' \| \
12903 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12904 X"$as_dir" : 'X\(/\)' \| \
12905 . : '\(.\)' 2>/dev/null ||
1c710c3c 12906echo X"$as_dir" |
2aeb72e9
DD
12907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12909 /^X\(\/\/\)$/{ s//\1/; q; }
12910 /^X\(\/\).*/{ s//\1/; q; }
12911 s/.*/./; q'`
1c710c3c 12912 done
2aeb72e9
DD
12913 test ! -n "$as_dirs" || mkdir $as_dirs
12914 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12915echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 12916 { (exit 1); exit 1; }; }; }
2aeb72e9 12917
1c710c3c 12918 ac_builddir=.
0b0dc272 12919
2aeb72e9 12920if test "$ac_dir" != .; then
1c710c3c 12921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
12922 # A "../" for each directory in $ac_dir_suffix.
12923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12924else
12925 ac_dir_suffix= ac_top_builddir=
12926fi
1c710c3c
DJ
12927
12928case $srcdir in
2aeb72e9 12929 .) # No --srcdir option. We are building in place.
1c710c3c 12930 ac_srcdir=.
2aeb72e9
DD
12931 if test -z "$ac_top_builddir"; then
12932 ac_top_srcdir=.
12933 else
12934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12935 fi ;;
12936 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 12937 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
12938 ac_top_srcdir=$srcdir ;;
12939 *) # Relative path.
12940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 12942esac
a4b9e93e 12943
2aeb72e9
DD
12944# Do not use `cd foo && pwd` to compute absolute paths, because
12945# the directories may not exist.
12946case `pwd` in
12947.) ac_abs_builddir="$ac_dir";;
12948*)
12949 case "$ac_dir" in
12950 .) ac_abs_builddir=`pwd`;;
12951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12953 esac;;
12954esac
12955case $ac_abs_builddir in
12956.) ac_abs_top_builddir=${ac_top_builddir}.;;
12957*)
12958 case ${ac_top_builddir}. in
12959 .) ac_abs_top_builddir=$ac_abs_builddir;;
12960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12962 esac;;
12963esac
12964case $ac_abs_builddir in
12965.) ac_abs_srcdir=$ac_srcdir;;
12966*)
12967 case $ac_srcdir in
12968 .) ac_abs_srcdir=$ac_abs_builddir;;
12969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12971 esac;;
12972esac
12973case $ac_abs_builddir in
12974.) ac_abs_top_srcdir=$ac_top_srcdir;;
12975*)
12976 case $ac_top_srcdir in
12977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12980 esac;;
12981esac
0b0dc272 12982
1c710c3c
DJ
12983
12984 case $INSTALL in
12985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 12986 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 12987 esac
11a67599 12988
2aeb72e9
DD
12989 if test x"$ac_file" != x-; then
12990 { echo "$as_me:$LINENO: creating $ac_file" >&5
12991echo "$as_me: creating $ac_file" >&6;}
12992 rm -f "$ac_file"
12993 fi
12994 # Let's still pretend it is `configure' which instantiates (i.e., don't
12995 # use $as_me), people would be surprised to read:
12996 # /* config.h. Generated by config.status. */
12997 if test x"$ac_file" = x-; then
12998 configure_input=
12999 else
13000 configure_input="$ac_file. "
13001 fi
13002 configure_input=$configure_input"Generated from `echo $ac_file_in |
13003 sed 's,.*/,,'` by configure."
13004
13005 # First look for the input files in the build tree, otherwise in the
13006 # src tree.
13007 ac_file_inputs=`IFS=:
13008 for f in $ac_file_in; do
13009 case $f in
13010 -) echo $tmp/stdin ;;
13011 [\\/$]*)
13012 # Absolute (can't be DOS-style, as IFS=:)
13013 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13014echo "$as_me: error: cannot find input file: $f" >&2;}
13015 { (exit 1); exit 1; }; }
13016 echo "$f";;
13017 *) # Relative
13018 if test -f "$f"; then
13019 # Build tree
13020 echo "$f"
13021 elif test -f "$srcdir/$f"; then
13022 # Source tree
13023 echo "$srcdir/$f"
13024 else
13025 # /dev/null tree
13026 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13027echo "$as_me: error: cannot find input file: $f" >&2;}
13028 { (exit 1); exit 1; }; }
13029 fi;;
13030 esac
13031 done` || { (exit 1); exit 1; }
11a67599 13032_ACEOF
1c710c3c
DJ
13033cat >>$CONFIG_STATUS <<_ACEOF
13034 sed "$ac_vpsub
13035$extrasub
13036_ACEOF
13037cat >>$CONFIG_STATUS <<\_ACEOF
13038:t
13039/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13040s,@configure_input@,$configure_input,;t t
13041s,@srcdir@,$ac_srcdir,;t t
13042s,@abs_srcdir@,$ac_abs_srcdir,;t t
13043s,@top_srcdir@,$ac_top_srcdir,;t t
13044s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13045s,@builddir@,$ac_builddir,;t t
13046s,@abs_builddir@,$ac_abs_builddir,;t t
13047s,@top_builddir@,$ac_top_builddir,;t t
13048s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13049s,@INSTALL@,$ac_INSTALL,;t t
13050" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13051 rm -f $tmp/stdin
13052 if test x"$ac_file" != x-; then
13053 mv $tmp/out $ac_file
13054 else
13055 cat $tmp/out
13056 rm -f $tmp/out
13057 fi
11a67599 13058
2aeb72e9
DD
13059done
13060_ACEOF
11a67599 13061
2aeb72e9 13062cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13063
1c710c3c
DJ
13064{ (exit 0); exit 0; }
13065_ACEOF
671aa708 13066chmod +x $CONFIG_STATUS
1c710c3c
DJ
13067ac_clean_files=$ac_clean_files_save
13068
13069
13070# configure is writing to config.log, and then calls config.status.
13071# config.status does its own redirection, appending to config.log.
13072# Unfortunately, on DOS this fails, as config.log is still kept open
13073# by configure, so config.status won't be able to write to it; its
13074# output is simply discarded. So we exec the FD to /dev/null,
13075# effectively closing config.log, so it can be properly (re)opened and
13076# appended to by config.status. When coming back to configure, we
13077# need to make the FD available again.
13078if test "$no_create" != yes; then
13079 ac_cs_success=:
13080 ac_config_status_args=
13081 test "$silent" = yes &&
13082 ac_config_status_args="$ac_config_status_args --quiet"
13083 exec 5>/dev/null
13084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13085 exec 5>>config.log
13086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13087 # would make configure fail if this is the last instruction.
13088 $ac_cs_success || { (exit 1); exit 1; }
13089fi
79c06341 13090