]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
configure.ac: Detect xulrunner-1.9.
[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"
487e299b 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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
2aeb72e9 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
18c04407 277ac_pwd=`pwd`
671aa708
NN
278
279# Initialize some variables set by options.
1c710c3c
DJ
280ac_init_help=
281ac_init_version=false
671aa708
NN
282# The variables have the same names as the options, with
283# dashes changed to underlines.
1c710c3c 284cache_file=/dev/null
671aa708 285exec_prefix=NONE
671aa708 286no_create=
671aa708
NN
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
671aa708
NN
295verbose=
296x_includes=NONE
297x_libraries=NONE
1c710c3c
DJ
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
2aeb72e9 307datadir='${prefix}/share'
671aa708
NN
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
2aeb72e9 311libdir='${exec_prefix}/lib'
671aa708
NN
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
2aeb72e9
DD
314infodir='${prefix}/info'
315mandir='${prefix}/man'
79c06341 316
671aa708
NN
317ac_prev=
318for ac_option
319do
671aa708
NN
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
2aeb72e9 322 eval "$ac_prev=\$ac_option"
671aa708
NN
323 ac_prev=
324 continue
325 fi
79c06341 326
2aeb72e9 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
2aeb72e9 331 case $ac_option in
671aa708
NN
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 336 bindir=$ac_optarg ;;
671aa708
NN
337
338 -build | --build | --buil | --bui | --bu)
1c710c3c 339 ac_prev=build_alias ;;
671aa708 340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 341 build_alias=$ac_optarg ;;
671aa708
NN
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
671aa708 352
2aeb72e9 353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 354 ac_prev=datadir ;;
2aeb72e9
DD
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
1c710c3c 357 datadir=$ac_optarg ;;
671aa708
NN
358
359 -disable-* | --disable-*)
1c710c3c 360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 361 # Reject names that are not valid shell variable names.
2aeb72e9 362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
2aeb72e9
DD
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
671aa708
NN
367
368 -enable-* | --enable-*)
1c710c3c 369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 370 # Reject names that are not valid shell variable names.
2aeb72e9 371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
2aeb72e9
DD
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
1c710c3c 388 exec_prefix=$ac_optarg ;;
671aa708
NN
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
1c710c3c
DJ
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
671aa708
NN
400
401 -host | --host | --hos | --ho)
1c710c3c 402 ac_prev=host_alias ;;
671aa708 403 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 404 host_alias=$ac_optarg ;;
671aa708
NN
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 411 includedir=$ac_optarg ;;
671aa708
NN
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 416 infodir=$ac_optarg ;;
671aa708
NN
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 421 libdir=$ac_optarg ;;
671aa708
NN
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
1c710c3c 428 libexecdir=$ac_optarg ;;
671aa708
NN
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 437 localstatedir=$ac_optarg ;;
671aa708
NN
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 442 mandir=$ac_optarg ;;
671aa708
NN
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 449 | --no-cr | --no-c | -n)
671aa708
NN
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 463 oldincludedir=$ac_optarg ;;
671aa708
NN
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 468 prefix=$ac_optarg ;;
671aa708
NN
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 475 program_prefix=$ac_optarg ;;
671aa708
NN
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 482 program_suffix=$ac_optarg ;;
671aa708
NN
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 499 program_transform_name=$ac_optarg ;;
671aa708
NN
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
1c710c3c 509 sbindir=$ac_optarg ;;
671aa708
NN
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
1c710c3c 520 sharedstatedir=$ac_optarg ;;
671aa708
NN
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
1c710c3c 525 site=$ac_optarg ;;
671aa708
NN
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 530 srcdir=$ac_optarg ;;
671aa708
NN
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 537 sysconfdir=$ac_optarg ;;
671aa708
NN
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 540 ac_prev=target_alias ;;
671aa708 541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 542 target_alias=$ac_optarg ;;
671aa708
NN
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
1c710c3c
DJ
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
671aa708
NN
549
550 -with-* | --with-*)
1c710c3c 551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 552 # Reject names that are not valid shell variable names.
2aeb72e9 553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
2aeb72e9
DD
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
562
563 -without-* | --without-*)
1c710c3c 564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 565 # Reject names that are not valid shell variable names.
2aeb72e9 566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
2aeb72e9
DD
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
671aa708
NN
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 581 x_includes=$ac_optarg ;;
671aa708
NN
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 588 x_libraries=$ac_optarg ;;
671aa708 589
1c710c3c
DJ
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
671aa708
NN
593 ;;
594
1c710c3c
DJ
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
2aeb72e9
DD
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
603 export $ac_envvar ;;
604
671aa708 605 *)
1c710c3c
DJ
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
1c710c3c
DJ
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
af71363e 620fi
af71363e 621
2aeb72e9
DD
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
671aa708 624do
2aeb72e9 625 eval ac_val=$`echo $ac_var`
1c710c3c 626 case $ac_val in
2aeb72e9
DD
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
671aa708
NN
642 esac
643done
644
1c710c3c
DJ
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
0b0dc272 651
1c710c3c
DJ
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
671aa708 667
671aa708
NN
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
2aeb72e9
DD
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
1c710c3c 679echo X"$0" |
2aeb72e9
DD
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
671aa708 685 srcdir=$ac_confdir
2aeb72e9 686 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
2aeb72e9
DD
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 698 { (exit 1); exit 1; }; }
2aeb72e9 699 fi
1c710c3c 700fi
2aeb72e9
DD
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 703 { (exit 1); exit 1; }; }
2aeb72e9
DD
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
ac9e6043
RW
717ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718
2aeb72e9
DD
719ac_env_CC_set=${CC+set}
720ac_env_CC_value=$CC
721ac_cv_env_CC_set=${CC+set}
722ac_cv_env_CC_value=$CC
723ac_env_CFLAGS_set=${CFLAGS+set}
724ac_env_CFLAGS_value=$CFLAGS
725ac_cv_env_CFLAGS_set=${CFLAGS+set}
726ac_cv_env_CFLAGS_value=$CFLAGS
727ac_env_LDFLAGS_set=${LDFLAGS+set}
728ac_env_LDFLAGS_value=$LDFLAGS
729ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
730ac_cv_env_LDFLAGS_value=$LDFLAGS
731ac_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_env_CPPFLAGS_value=$CPPFLAGS
733ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
734ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735ac_env_CXX_set=${CXX+set}
736ac_env_CXX_value=$CXX
737ac_cv_env_CXX_set=${CXX+set}
738ac_cv_env_CXX_value=$CXX
739ac_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_env_CXXFLAGS_value=$CXXFLAGS
741ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
742ac_cv_env_CXXFLAGS_value=$CXXFLAGS
743ac_env_AR_set=${AR+set}
744ac_env_AR_value=$AR
745ac_cv_env_AR_set=${AR+set}
746ac_cv_env_AR_value=$AR
747ac_env_AS_set=${AS+set}
748ac_env_AS_value=$AS
749ac_cv_env_AS_set=${AS+set}
750ac_cv_env_AS_value=$AS
751ac_env_DLLTOOL_set=${DLLTOOL+set}
752ac_env_DLLTOOL_value=$DLLTOOL
753ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
754ac_cv_env_DLLTOOL_value=$DLLTOOL
755ac_env_LD_set=${LD+set}
756ac_env_LD_value=$LD
757ac_cv_env_LD_set=${LD+set}
758ac_cv_env_LD_value=$LD
759ac_env_LIPO_set=${LIPO+set}
760ac_env_LIPO_value=$LIPO
761ac_cv_env_LIPO_set=${LIPO+set}
762ac_cv_env_LIPO_value=$LIPO
763ac_env_NM_set=${NM+set}
764ac_env_NM_value=$NM
765ac_cv_env_NM_set=${NM+set}
766ac_cv_env_NM_value=$NM
767ac_env_RANLIB_set=${RANLIB+set}
768ac_env_RANLIB_value=$RANLIB
769ac_cv_env_RANLIB_set=${RANLIB+set}
770ac_cv_env_RANLIB_value=$RANLIB
771ac_env_STRIP_set=${STRIP+set}
772ac_env_STRIP_value=$STRIP
773ac_cv_env_STRIP_set=${STRIP+set}
774ac_cv_env_STRIP_value=$STRIP
775ac_env_WINDRES_set=${WINDRES+set}
776ac_env_WINDRES_value=$WINDRES
777ac_cv_env_WINDRES_set=${WINDRES+set}
778ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
779ac_env_WINDMC_set=${WINDMC+set}
780ac_env_WINDMC_value=$WINDMC
781ac_cv_env_WINDMC_set=${WINDMC+set}
782ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
783ac_env_OBJCOPY_set=${OBJCOPY+set}
784ac_env_OBJCOPY_value=$OBJCOPY
785ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
786ac_cv_env_OBJCOPY_value=$OBJCOPY
787ac_env_OBJDUMP_set=${OBJDUMP+set}
788ac_env_OBJDUMP_value=$OBJDUMP
789ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
790ac_cv_env_OBJDUMP_value=$OBJDUMP
791ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
792ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
793ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
794ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
795ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
796ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
797ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
798ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
799ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
800ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
801ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
802ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
803ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
804ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
805ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
806ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
807ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
808ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
809ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
810ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
811ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
812ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
813ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
814ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
815ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
816ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
817ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
818ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
819ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
820ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
821ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
822ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
823ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
824ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
825ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
826ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
827ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
828ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
829ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
830ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
831ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
832ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
833ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
834ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
835ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
836ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
837ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
838ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
839ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
840ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
841ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
842ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
843ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
844ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
845ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
846ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
847ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
848ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
849ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
850ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
851ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
852ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
853ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
854ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
855
856#
857# Report the --help message.
858#
859if test "$ac_init_help" = "long"; then
860 # Omit some internal or obsolete options to make the list less imposing.
861 # This message is too long to be a string in the A/UX 3.1 sh.
862 cat <<_ACEOF
863\`configure' configures this package to adapt to many kinds of systems.
864
865Usage: $0 [OPTION]... [VAR=VALUE]...
866
867To assign environment variables (e.g., CC, CFLAGS...), specify them as
868VAR=VALUE. See below for descriptions of some of the useful variables.
869
870Defaults for the options are specified in brackets.
871
872Configuration:
873 -h, --help display this help and exit
874 --help=short display options specific to this package
875 --help=recursive display the short help of all the included packages
876 -V, --version display version information and exit
877 -q, --quiet, --silent do not print \`checking...' messages
878 --cache-file=FILE cache test results in FILE [disabled]
879 -C, --config-cache alias for \`--cache-file=config.cache'
880 -n, --no-create do not create output files
881 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882
2aeb72e9
DD
883_ACEOF
884
885 cat <<_ACEOF
1c710c3c
DJ
886Installation directories:
887 --prefix=PREFIX install architecture-independent files in PREFIX
888 [$ac_default_prefix]
889 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
890 [PREFIX]
891
892By default, \`make install' will install all the files in
893\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
894an installation prefix other than \`$ac_default_prefix' using \`--prefix',
895for instance \`--prefix=\$HOME'.
896
897For better control, use the options below.
898
899Fine tuning of the installation directories:
900 --bindir=DIR user executables [EPREFIX/bin]
901 --sbindir=DIR system admin executables [EPREFIX/sbin]
902 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 903 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
904 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
905 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
906 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
907 --libdir=DIR object code libraries [EPREFIX/lib]
908 --includedir=DIR C header files [PREFIX/include]
909 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
910 --infodir=DIR info documentation [PREFIX/info]
911 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
912_ACEOF
913
914 cat <<\_ACEOF
915
916Program names:
917 --program-prefix=PREFIX prepend PREFIX to installed program names
918 --program-suffix=SUFFIX append SUFFIX to installed program names
919 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920
921System types:
922 --build=BUILD configure for building on BUILD [guessed]
923 --host=HOST cross-compile to build programs to run on HOST [BUILD]
924 --target=TARGET configure for building compilers for TARGET [HOST]
925_ACEOF
926fi
927
928if test -n "$ac_init_help"; then
929
930 cat <<\_ACEOF
931
932Optional Features:
933 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
934 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 935 --enable-gold use gold instead of ld
30b74385
RW
936 --enable-libada build libada directory
937 --enable-libssp build libssp directory
d789184e
SP
938 --disable-ppl-version-check disable check for PPL version
939 --disable-cloog-version-check disable check for CLooG version
30b74385 940 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 941 stage1. Mostly useful for compiler development.
30b74385
RW
942 --enable-objc-gc enable use of Boehm's garbage collector with the
943 GNU Objective-C runtime
944 --enable-bootstrap enable bootstrapping [yes if native build]
945 --enable-serial-[{host,target,build}-]configure
946 force sequential configuration of
1c710c3c 947 sub-packages for the host, target or build
30b74385 948 machine, or all sub-packages
1c710c3c
DJ
949 --enable-maintainer-mode enable make rules and dependencies not useful
950 (and sometimes confusing) to the casual installer
30b74385
RW
951 --enable-stage1-checking[=all] choose additional checking for stage1
952 of the compiler
1c710c3c
DJ
953 --enable-werror enable -Werror in bootstrap stage2 and later
954
955Optional Packages:
956 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
957 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
958 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
959 --with-mpfr-dir=PATH this option has been REMOVED
960 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
961 Equivalent to --with-mpfr-include=PATH/include
962 plus --with-mpfr-lib=PATH/lib
963 --with-mpfr-include=PATH
30b74385
RW
964 specify directory for installed MPFR include files
965 --with-mpfr-lib=PATH specify directory for the installed MPFR library
966 --with-gmp-dir=PATH this option has been REMOVED
967 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
968 Equivalent to --with-gmp-include=PATH/include
969 plus --with-gmp-lib=PATH/lib
30b74385
RW
970 --with-gmp-include=PATH specify directory for installed GMP include files
971 --with-gmp-lib=PATH specify directory for the installed GMP library
f8bf9252
SP
972 --with-ppl=PATH Specify prefix directory for the installed PPL package
973 Equivalent to --with-ppl-include=PATH/include
974 plus --with-ppl-lib=PATH/lib
975 --with-ppl-include=PATH Specify directory for installed PPL include files
976 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 977 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
978 Equivalent to --with-cloog-include=PATH/include
979 plus --with-cloog-lib=PATH/lib
d789184e
SP
980 --with-cloog-include=PATH Specify directory for installed CLooG include files
981 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
30b74385 982 --with-build-sysroot=SYSROOT
1c710c3c 983 use sysroot as the system root during the build
c8aea42c
PB
984 --with-debug-prefix-map='A=B C=D ...'
985 map A to B, C to D ... in debug information
30b74385 986 --with-build-time-tools=PATH
1c710c3c 987 use given path to find target tools during the build
30b74385
RW
988 --with-datarootdir use datarootdir as the data root directory.
989 --with-docdir install documentation in this directory.
990 --with-pdfdir install pdf in this directory.
991 --with-htmldir install html in this directory.
1c710c3c
DJ
992
993Some influential environment variables:
994 CC C compiler command
995 CFLAGS C compiler flags
996 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
997 nonstandard directory <lib dir>
2aeb72e9
DD
998 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
999 headers in a nonstandard directory <include dir>
c3a86da9
DJ
1000 CXX C++ compiler command
1001 CXXFLAGS C++ compiler flags
278a7a38
AO
1002 AR AR for the host
1003 AS AS for the host
1004 DLLTOOL DLLTOOL for the host
1005 LD LD for the host
1006 LIPO LIPO for the host
1007 NM NM for the host
1008 RANLIB RANLIB for the host
1009 STRIP STRIP for the host
1010 WINDRES WINDRES for the host
901119ae 1011 WINDMC WINDMC for the host
278a7a38
AO
1012 OBJCOPY OBJCOPY for the host
1013 OBJDUMP OBJDUMP for the host
1014 CC_FOR_TARGET
1015 CC for the target
1016 CXX_FOR_TARGET
1017 CXX for the target
1018 GCC_FOR_TARGET
1019 GCC for the target
1020 GCJ_FOR_TARGET
1021 GCJ for the target
1022 GFORTRAN_FOR_TARGET
1023 GFORTRAN for the target
1024 AR_FOR_TARGET
1025 AR for the target
1026 AS_FOR_TARGET
1027 AS for the target
1028 DLLTOOL_FOR_TARGET
1029 DLLTOOL for the target
1030 LD_FOR_TARGET
1031 LD for the target
1032 LIPO_FOR_TARGET
1033 LIPO for the target
1034 NM_FOR_TARGET
1035 NM for the target
1036 OBJDUMP_FOR_TARGET
1037 OBJDUMP for the target
1038 RANLIB_FOR_TARGET
1039 RANLIB for the target
1040 STRIP_FOR_TARGET
1041 STRIP for the target
1042 WINDRES_FOR_TARGET
1043 WINDRES for the target
901119ae
KT
1044 WINDMC_FOR_TARGET
1045 WINDMC for the target
1c710c3c
DJ
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
2aeb72e9 1055 ac_popdir=`pwd`
1c710c3c 1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1057 test -d $ac_dir || continue
1c710c3c
DJ
1058 ac_builddir=.
1059
2aeb72e9 1060if test "$ac_dir" != .; then
1c710c3c 1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1c710c3c
DJ
1067
1068case $srcdir in
2aeb72e9 1069 .) # No --srcdir option. We are building in place.
1c710c3c 1070 ac_srcdir=.
2aeb72e9
DD
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1077 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082esac
1083
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1c710c3c 1121esac
2aeb72e9
DD
1122
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1c710c3c
DJ
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1137 fi
1138 cd $ac_popdir
1c710c3c
DJ
1139 done
1140fi
1141
2aeb72e9 1142test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1143if $ac_init_version; then
1144 cat <<\_ACEOF
1145
2aeb72e9 1146Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1147This configure script is free software; the Free Software Foundation
1148gives unlimited permission to copy, distribute and modify it.
1149_ACEOF
2aeb72e9 1150 exit 0
0b0dc272 1151fi
2aeb72e9
DD
1152exec 5>config.log
1153cat >&5 <<_ACEOF
1c710c3c
DJ
1154This file contains any messages produced by compilers while
1155running configure, to aid debugging if configure makes a mistake.
1156
1157It was created by $as_me, which was
2aeb72e9 1158generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1159
1160 $ $0 $@
1161
1162_ACEOF
1163{
1164cat <<_ASUNAME
1165## --------- ##
1166## Platform. ##
1167## --------- ##
1168
1169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177
1178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1181hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185
1186_ASUNAME
1187
1188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189for as_dir in $PATH
1190do
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194done
1195
1196} >&5
1197
1198cat >&5 <<_ACEOF
1199
1200
1201## ----------- ##
1202## Core tests. ##
1203## ----------- ##
1204
1205_ACEOF
1206
1207
1208# Keep a trace of the command line.
1209# Strip out --no-create and --no-recursion so they do not pile up.
1210# Strip out --silent because we don't want to record it for future runs.
1211# Also quote any args containing shell meta-characters.
1212# Make two passes to allow for proper duplicate-argument suppression.
1213ac_configure_args=
1214ac_configure_args0=
1215ac_configure_args1=
2aeb72e9 1216ac_sep=
1c710c3c
DJ
1217ac_must_keep_next=false
1218for ac_pass in 1 2
1219do
1220 for ac_arg
1221 do
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
2aeb72e9 1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232 2)
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1236 else
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1245 ;;
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1248 fi
2aeb72e9
DD
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1c710c3c
DJ
1252 ;;
1253 esac
1254 done
1255done
1256$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259# When interrupted or exit'd, cleanup temporary files, and complete
1260# config.log. We remove comments because anyway the quotes in there
1261# would cause problems or look ugly.
2aeb72e9
DD
1262# WARNING: Be sure not to use single quotes in there, as some shells,
1263# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1264trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1266 {
1267 echo
1268
1269 cat <<\_ASBOX
1270## ---------------- ##
1271## Cache variables. ##
1272## ---------------- ##
1273_ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1276{
1c710c3c 1277 (set) 2>&1 |
2aeb72e9
DD
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1c710c3c 1280 sed -n \
2aeb72e9
DD
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 ;;
1c710c3c 1284 *)
2aeb72e9
DD
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1287 ;;
2aeb72e9
DD
1288 esac;
1289}
1c710c3c
DJ
1290 echo
1291
1292 cat <<\_ASBOX
1293## ----------------- ##
1294## Output variables. ##
1295## ----------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1299 do
2aeb72e9
DD
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1302 done | sort
1303 echo
1304
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
2aeb72e9
DD
1307## ------------- ##
1308## Output files. ##
1309## ------------- ##
1c710c3c
DJ
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1313 do
2aeb72e9
DD
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1316 done | sort
1317 echo
1318 fi
1319
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322## ----------- ##
1323## confdefs.h. ##
1324## ----------- ##
1325_ASBOX
1326 echo
2aeb72e9 1327 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1328 echo
1329 fi
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
2aeb72e9
DD
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1336 exit $exit_status
2aeb72e9 1337 ' 0
1c710c3c
DJ
1338for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340done
1341ac_signal=0
1342
1343# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1344rm -rf conftest* confdefs.h
1345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346echo >confdefs.h
1c710c3c
DJ
1347
1348# Predefined preprocessor variables.
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_NAME "$PACKAGE_NAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362_ACEOF
0b0dc272 1363
1c710c3c
DJ
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_STRING "$PACKAGE_STRING"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372_ACEOF
1373
1374
1375# Let the site file select an alternate cache file if it wants to.
671aa708 1376# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1377if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 fi
671aa708 1383fi
2aeb72e9 1384for ac_site_file in $CONFIG_SITE; do
671aa708 1385 if test -r "$ac_site_file"; then
1c710c3c
DJ
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1389 . "$ac_site_file"
1390 fi
1391done
1392
1393if test -r "$cache_file"; then
1c710c3c
DJ
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
2aeb72e9
DD
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1c710c3c
DJ
1402 esac
1403 fi
671aa708 1404else
1c710c3c
DJ
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1408fi
1409
1410# Check that the precious variables saved in the cache have kept the same
1411# value.
1412ac_cache_corrupted=false
2aeb72e9
DD
1413for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1429 *)
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
7142fb32
PB
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1c710c3c 1436echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
7142fb32
PB
1437 ac_cache_corrupted=:
1438 else
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1442 fi
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
2aeb72e9
DD
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
18c04407
RW
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
671aa708
NN
1470fi
1471
2aeb72e9
DD
1472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477
1c710c3c
DJ
1478
1479
1480
1481
671aa708
NN
1482
1483
d02c69be 1484
1c710c3c
DJ
1485
1486
1487
1488
1489
1490
1491
1492
1493
18c04407
RW
1494
1495
1496
1c710c3c
DJ
1497
1498
1499
ad33ff57
RW
1500
1501progname=$0
1502# if PWD already has a value, it is probably wrong.
1503if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1504
1505# Export original configure arguments for use by sub-configures.
1506# Quote arguments with shell meta charatcers.
1507TOPLEVEL_CONFIGURE_ARGUMENTS=
1508set -- "$progname" "$@"
1509for ac_arg
1510do
1511 case "$ac_arg" in
1512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1514 # if the argument is of the form -foo=baz, quote the baz part only
1515 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1516 *) ;;
1517 esac
1518 # Add the quoted argument to the list.
1519 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1520done
1521if test "$silent" = yes; then
1522 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1523fi
1524# Remove the initial space we just introduced and, as these will be
1525# expanded by make, quote '$'.
1526TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1527
1c710c3c
DJ
1528
1529# Find the build, host, and target systems.
671aa708 1530ac_aux_dir=
2aeb72e9
DD
1531for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1532 if test -f $ac_dir/install-sh; then
671aa708
NN
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install-sh -c"
1535 break
2aeb72e9 1536 elif test -f $ac_dir/install.sh; then
671aa708
NN
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install.sh -c"
1539 break
2aeb72e9 1540 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/shtool install -c"
1543 break
671aa708
NN
1544 fi
1545done
1546if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1548echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1549 { (exit 1); exit 1; }; }
671aa708 1550fi
2aeb72e9
DD
1551ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1554
1c710c3c 1555# Make sure we can run config.sub.
2aeb72e9
DD
1556$ac_config_sub sun4 >/dev/null 2>&1 ||
1557 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1558echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1559 { (exit 1); exit 1; }; }
1560
2aeb72e9
DD
1561echo "$as_me:$LINENO: checking build system type" >&5
1562echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1563if test "${ac_cv_build+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
2aeb72e9
DD
1566 ac_cv_build_alias=$build_alias
1567test -z "$ac_cv_build_alias" &&
1568 ac_cv_build_alias=`$ac_config_guess`
1569test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1571echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1572 { (exit 1); exit 1; }; }
2aeb72e9
DD
1573ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1574 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1575echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1576 { (exit 1); exit 1; }; }
1577
1578fi
2aeb72e9
DD
1579echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1580echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1581build=$ac_cv_build
2aeb72e9
DD
1582build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1585
671aa708 1586
1c710c3c
DJ
1587 case ${build_alias} in
1588 "") build_noncanonical=${build} ;;
1589 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1590esac
1591
1592
af71363e 1593
1c710c3c
DJ
1594 case ${host_alias} in
1595 "") host_noncanonical=${build_noncanonical} ;;
1596 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1597esac
1598
af71363e 1599
1c710c3c
DJ
1600
1601 case ${target_alias} in
1602 "") target_noncanonical=${host_noncanonical} ;;
1603 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1604esac
1605
af71363e 1606
1c710c3c
DJ
1607
1608
1609test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1610 test "$program_prefix$program_suffix$program_transform_name" = \
1611 NONENONEs,x,x, &&
1c710c3c 1612 program_transform_name=s,y,y,
af71363e 1613
2aeb72e9
DD
1614echo "$as_me:$LINENO: checking host system type" >&5
1615echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1616if test "${ac_cv_host+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1618else
2aeb72e9
DD
1619 ac_cv_host_alias=$host_alias
1620test -z "$ac_cv_host_alias" &&
1621 ac_cv_host_alias=$ac_cv_build_alias
1622ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1624echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1625 { (exit 1); exit 1; }; }
1626
af71363e 1627fi
2aeb72e9
DD
1628echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1629echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1630host=$ac_cv_host
2aeb72e9
DD
1631host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636echo "$as_me:$LINENO: checking target system type" >&5
1637echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1638if test "${ac_cv_target+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
2aeb72e9
DD
1641 ac_cv_target_alias=$target_alias
1642test "x$ac_cv_target_alias" = "x" &&
1643 ac_cv_target_alias=$ac_cv_host_alias
1644ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1646echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1647 { (exit 1); exit 1; }; }
1648
1649fi
2aeb72e9
DD
1650echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1651echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1652target=$ac_cv_target
2aeb72e9
DD
1653target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1656
1657
1658# The aliases save the names the user supplied, while $host etc.
1659# will get canonicalized.
1660test -n "$target_alias" &&
1661 test "$program_prefix$program_suffix$program_transform_name" = \
1662 NONENONEs,x,x, &&
1663 program_prefix=${target_alias}-
671aa708 1664test "$program_prefix" != NONE &&
2aeb72e9 1665 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1666# Use a double $ so make ignores it.
1667test "$program_suffix" != NONE &&
2aeb72e9 1668 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1669# Double any \ or $. echo might interpret backslashes.
1670# By default was `s,x,x', remove it if useless.
1671cat <<\_ACEOF >conftest.sed
1672s/[\\$]/&&/g;s/;s,x,x,$//
1673_ACEOF
1674program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1675rm conftest.sed
af71363e 1676
671aa708
NN
1677
1678
775956d0
NN
1679# Get 'install' or 'install-sh' and its variants.
1680# Find a good install program. We prefer a C program (faster),
1681# so one script is as good as another. But avoid the broken or
1682# incompatible versions:
1683# SysV /etc/install, /usr/sbin/install
1684# SunOS /usr/etc/install
1685# IRIX /sbin/install
1686# AIX /bin/install
1c710c3c 1687# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1691# OS/2's system install, which has a completely different semantic
775956d0 1692# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1693# Reject install programs that cannot install multiple files.
2aeb72e9
DD
1694echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1695echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1696if test -z "$INSTALL"; then
1c710c3c
DJ
1697if test "${ac_cv_path_install+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH
1702do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 # Account for people who put trailing slashes in PATH elements.
1706case $as_dir/ in
1707 ./ | .// | /cC/* | \
1708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1710 /usr/ucb/* ) ;;
1711 *)
1712 # OSF1 and SCO ODT 3.0 have their own names for install.
1713 # Don't use installbsd from OSF since it installs stuff as root
1714 # by default.
1715 for ac_prog in ginstall scoinst install; do
1716 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1718 if test $ac_prog = install &&
1c710c3c 1719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1720 # AIX install. It has an incompatible calling convention.
1721 :
1c710c3c
DJ
1722 elif test $ac_prog = install &&
1723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1724 # program-specific install script used by HP pwplus--don't use.
1725 :
775956d0 1726 else
38d24731
RW
1727 rm -rf conftest.one conftest.two conftest.dir
1728 echo one > conftest.one
1729 echo two > conftest.two
1730 mkdir conftest.dir
1731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1732 test -s conftest.one && test -s conftest.two &&
1733 test -s conftest.dir/conftest.one &&
1734 test -s conftest.dir/conftest.two
1735 then
1736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1737 break 3
1738 fi
775956d0
NN
1739 fi
1740 fi
1741 done
1c710c3c
DJ
1742 done
1743 ;;
1744esac
1745done
1746
38d24731 1747rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
1748
1749fi
1750 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1751 INSTALL=$ac_cv_path_install
775956d0 1752 else
38d24731
RW
1753 # As a last resort, use the slow shell script. Don't cache a
1754 # value for INSTALL within a source directory, because that will
775956d0 1755 # break other packages using the cache if that directory is
38d24731 1756 # removed, or if the value is a relative name.
1c710c3c 1757 INSTALL=$ac_install_sh
775956d0
NN
1758 fi
1759fi
2aeb72e9
DD
1760echo "$as_me:$LINENO: result: $INSTALL" >&5
1761echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1762
1763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764# It thinks the first close brace ends the variable substitution.
1765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1c710c3c 1767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1768
1769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
2aeb72e9
DD
1771echo "$as_me:$LINENO: checking whether ln works" >&5
1772echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1773if test "${acx_cv_prog_LN+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1775else
1776 rm -f conftestdata_t
1777echo >conftestdata_f
1778if ln conftestdata_f conftestdata_t 2>/dev/null
1779then
1780 acx_cv_prog_LN=ln
1781else
1782 acx_cv_prog_LN=no
1783fi
1784rm -f conftestdata_f conftestdata_t
1785
1786fi
1787if test $acx_cv_prog_LN = no; then
1788 LN="cp"
2aeb72e9
DD
1789 echo "$as_me:$LINENO: result: no, using $LN" >&5
1790echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1791else
1792 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1793 echo "$as_me:$LINENO: result: yes" >&5
1794echo "${ECHO_T}yes" >&6
ad6717df
PB
1795fi
1796
2aeb72e9
DD
1797echo "$as_me:$LINENO: checking whether ln -s works" >&5
1798echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1799LN_S=$as_ln_s
1800if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1801 echo "$as_me:$LINENO: result: yes" >&5
1802echo "${ECHO_T}yes" >&6
fb0103e5 1803else
2aeb72e9
DD
1804 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1805echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1806fi
1807
775956d0 1808
79c06341 1809### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1810### If we are on Windows, search for the shell. This will permit people
1811### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1812### without also having to set CONFIG_SHELL. This code will work when
1813### using bash, which sets OSTYPE.
1814case "${OSTYPE}" in
1815*win32*)
671aa708
NN
1816 if test x${CONFIG_SHELL} = x ; then
1817 if test ! -f /bin/sh ; then
1818 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1819 CONFIG_SHELL=${SHELL}
1820 export CONFIG_SHELL
1821 else
1822 for prog in sh sh.exe bash bash.exe; do
1823 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1824 for dir in $PATH; do
1825 test -z "$dir" && dir=.
1826 if test -f $dir/$prog; then
1827 CONFIG_SHELL=$dir/$prog
1828 export CONFIG_SHELL
1829 break
1830 fi
1831 done
1832 IFS="$save_ifs"
1833 test -n "${CONFIG_SHELL}" && break
1834 done
1835 fi
1836 fi
1837 fi
1838 ;;
1839esac
1840
1841config_shell=${CONFIG_SHELL-/bin/sh}
1842
671aa708 1843moveifchange=${srcdir}/move-if-change
79c06341 1844
ee6a22df
L
1845srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1846
1847# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1848# a relative path.
1849if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1850 INSTALL="${srcpwd}/install-sh -c"
1851fi
1852
671aa708
NN
1853# Set srcdir to "." if that's what it is.
1854# This is important for multilib support.
1855pwd=`${PWDCMD-pwd}`
671aa708
NN
1856if test "${pwd}" = "${srcpwd}" ; then
1857 srcdir=.
79c06341
JL
1858fi
1859
671aa708 1860topsrcdir=$srcpwd
5d4a5ee6 1861
671aa708 1862extra_host_args=
afabd8e6 1863
671aa708
NN
1864### To add a new directory to the tree, first choose whether it is a target
1865### or a host dependent tool. Then put it into the appropriate list
1866### (library or tools, host or target), doing a dependency sort.
79c06341 1867
1c710c3c 1868# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1869# configdirs, or target_configdirs; see the serialization section below.
79c06341 1870
1c710c3c
DJ
1871# Dependency sorting is only needed when *configuration* must be done in
1872# a particular order. In all cases a dependency should be specified in
671aa708 1873# the Makefile, whether or not it's implicitly specified here.
79c06341 1874
671aa708
NN
1875# Double entries in build_configdirs, configdirs, or target_configdirs may
1876# cause circular dependencies and break everything horribly.
79c06341 1877
23f6b2f9
PB
1878# these library is used by various programs built for the build
1879# environment
1880#
1881build_libs="build-libiberty"
1882
1883# these tools are built for the build environment
71b5d516 1884build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1885
671aa708
NN
1886# these libraries are used by various programs built for the host environment
1887#
f8bf9252 1888host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog"
671aa708 1889
671aa708
NN
1890# these tools are built for the host environment
1891# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1892# know that we are building the simulator.
1893# binutils, gas and ld appear in that order because it makes sense to run
1894# "make check" in that particular order.
5afab7ad 1895# If --enable-gold is used, "gold" will replace "ld".
5395b47b 1896host_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
1897
1898# libgcj represents the runtime libraries only used by gcj.
1899libgcj="target-libffi \
671aa708
NN
1900 target-zlib \
1901 target-qthreads \
1902 target-libjava"
1903
1904# these libraries are built for the target environment, and are built after
1905# the host libraries and the host tools (which may be a cross compiler)
1906#
291f172e
DJ
1907target_libraries="target-libgcc \
1908 target-libiberty \
671aa708
NN
1909 target-libgloss \
1910 target-newlib \
6d3b5aea 1911 target-libgomp \
cb543528 1912 target-libstdc++-v3 \
6de9cd9a 1913 target-libmudflap \
77008252 1914 target-libssp \
6de9cd9a 1915 target-libgfortran \
7cd0cf9c 1916 target-boehm-gc \
77d187bc 1917 ${libgcj} \
d9cdb878 1918 target-libobjc \
6d3b5aea 1919 target-libada"
671aa708 1920
4dbda6f0
NN
1921# these tools are built using the target libraries, and are intended to
1922# run only in the target environment
671aa708 1923#
4dbda6f0 1924# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1925# list belongs in this list. those programs are also very likely
1926# candidates for the "native_only" list which follows
1927#
97286f7f 1928target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1929
671aa708 1930################################################################################
79c06341 1931
671aa708
NN
1932## All tools belong in one of the four categories, and are assigned above
1933## We assign ${configdirs} this way to remove all embedded newlines. This
1934## is important because configure will choke if they ever get through.
1935## ${configdirs} is directories we build using the host tools.
1936## ${target_configdirs} is directories we build using the target tools.
671aa708 1937configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1938target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1939build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1940
ac9e6043
RW
1941
1942
671aa708 1943################################################################################
79c06341 1944
671aa708 1945srcname="gnu development package"
79c06341 1946
671aa708
NN
1947# This gets set non-empty for some net releases of packages.
1948appdirs=""
79c06341 1949
671aa708
NN
1950# Define is_cross_compiler to save on calls to 'test'.
1951is_cross_compiler=
1952if test x"${host}" = x"${target}" ; then
1953 is_cross_compiler=no
79c06341 1954else
671aa708 1955 is_cross_compiler=yes
1c710c3c 1956fi
79c06341 1957
b4acb5ef 1958# Find the build and target subdir names.
8b87bb96 1959
2e9e6f68
DJ
1960# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1961# have matching libraries, they should use host libraries: Makefile.tpl
1962# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1963# However, they still use the build modules, because the corresponding
1964# host modules (e.g. bison) are only built for the host when bootstrap
1965# finishes. So:
1966# - build_subdir is where we find build modules, and never changes.
1967# - build_libsubdir is where we find build libraries, and can be overridden.
1968
1969# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1970build_subdir="build-${build_noncanonical}"
1c710c3c 1971
2aeb72e9 1972# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1973if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1974 withval="$with_build_libsubdir"
1975 build_libsubdir="$withval"
2e9e6f68
DJ
1976else
1977 build_libsubdir="$build_subdir"
2aeb72e9 1978fi;
215c351a
PB
1979# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1980if ( test $srcdir = . && test -d gcc ) \
1981 || test -d $srcdir/../host-${host_noncanonical}; then
1982 host_subdir="host-${host_noncanonical}"
1983else
1984 host_subdir=.
1985fi
8b87bb96
NN
1986# No prefix.
1987target_subdir=${target_noncanonical}
1c710c3c 1988
79c06341 1989
671aa708
NN
1990# Skipdirs are removed silently.
1991skipdirs=
1992# Noconfigdirs are removed loudly.
1993noconfigdirs=""
79c06341 1994
671aa708
NN
1995use_gnu_ld=
1996# Make sure we don't let GNU ld be added if we didn't want it.
1997if test x$with_gnu_ld = xno ; then
1998 use_gnu_ld=no
5afab7ad 1999 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2000fi
2001
671aa708
NN
2002use_gnu_as=
2003# Make sure we don't let GNU as be added if we didn't want it.
2004if test x$with_gnu_as = xno ; then
2005 use_gnu_as=no
2006 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2007fi
2008
1c710c3c 2009# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2010# it's not even worth trying to configure, much less build, that tool.
79c06341 2011
671aa708
NN
2012case ${with_x} in
2013 yes | "") ;; # the default value for this tree is that X11 is available
2014 no)
b4f96efe 2015 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2016 # We won't be able to build gdbtk without X.
1c710c3c 2017 enable_gdbtk=no
671aa708
NN
2018 ;;
2019 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2020esac
79c06341 2021
671aa708 2022# Some tools are only suitable for building in a "native" situation.
1c710c3c 2023# Remove these if host!=target.
9e299237 2024native_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 2025
671aa708
NN
2026# Similarly, some are only suitable for cross toolchains.
2027# Remove these if host=target.
2028cross_only="target-libgloss target-newlib target-opcodes"
2029
2030case $is_cross_compiler in
2031 no) skipdirs="${skipdirs} ${cross_only}" ;;
2032 yes) skipdirs="${skipdirs} ${native_only}" ;;
2033esac
79c06341 2034
671aa708
NN
2035# If both --with-headers and --with-libs are specified, default to
2036# --without-newlib.
ee6a22df
L
2037if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2038 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2039 if test x"${with_newlib}" = x ; then
2040 with_newlib=no
2041 fi
79c06341
JL
2042fi
2043
671aa708
NN
2044# Recognize --with-newlib/--without-newlib.
2045case ${with_newlib} in
2046 no) skipdirs="${skipdirs} target-newlib" ;;
2047 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2048esac
79c06341 2049
5afab7ad
ILT
2050# Handle --enable-gold.
2051
2052# Check whether --enable-gold or --disable-gold was given.
2053if test "${enable_gold+set}" = set; then
2054 enableval="$enable_gold"
2055 ENABLE_GOLD=$enableval
2056else
2057 ENABLE_GOLD=no
2058fi;
2059if test "${ENABLE_GOLD}" = "yes"; then
2060 # Check for ELF target.
2061 is_elf=no
2062 case "${target}" in
2063 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2064 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2065 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*)
2066 case "${target}" in
2067 *-*-linux*aout* | *-*-linux*oldld*)
2068 ;;
2069 *)
2070 is_elf=yes
2071 ;;
2072 esac
2073 esac
2074
2075 if test "$is_elf" = "yes"; then
2076 # Check for target supported by gold.
2077 case "${target}" in
01b79d11 2078 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*)
5afab7ad
ILT
2079 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2080 ;;
2081 esac
2082 fi
2083fi
2084
671aa708 2085# Configure extra directories which are host specific
79c06341 2086
671aa708
NN
2087case "${host}" in
2088 *-cygwin*)
2089 configdirs="$configdirs libtermcap" ;;
2090esac
79c06341 2091
4fab7234
HPN
2092# A target can indicate whether a language isn't supported for some reason.
2093# Only spaces may be used in this macro; not newlines or tabs.
2094unsupported_languages=
2095
1c710c3c 2096# Remove more programs from consideration, based on the host or
671aa708
NN
2097# target this usually means that a port of the program doesn't
2098# exist yet.
ec8d6ddc 2099
671aa708
NN
2100case "${host}" in
2101 hppa*64*-*-*)
2102 noconfigdirs="$noconfigdirs byacc"
2103 ;;
f2a0e225 2104 i[3456789]86-*-vsta)
b4f96efe 2105 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2106 ;;
f2a0e225 2107 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2108 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2109 ;;
95af8923
KT
2110 x86_64-*-mingw*)
2111 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2112 ;;
f2a0e225 2113 i[3456789]86-*-mingw32*)
b4f96efe 2114 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2115 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2116 ;;
f2a0e225 2117 i[3456789]86-*-beos*)
b4f96efe 2118 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2119 ;;
671aa708 2120 *-*-cygwin*)
a22c2d8d 2121 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2122 ;;
2123 *-*-netbsd*)
a22c2d8d 2124 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2125 ;;
2126 ppc*-*-pe)
b4f96efe 2127 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2128 ;;
2129 powerpc-*-beos*)
b4f96efe 2130 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2131 ;;
671aa708 2132esac
ec8d6ddc 2133
6de9cd9a 2134
2aeb72e9 2135# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2136if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2137 enableval="$enable_libada"
2138 ENABLE_LIBADA=$enableval
d9cdb878
AC
2139else
2140 ENABLE_LIBADA=yes
2aeb72e9 2141fi;
d9cdb878 2142if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2143 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2144fi
2145
2aeb72e9 2146# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2147if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2148 enableval="$enable_libssp"
2149 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2150else
2151 ENABLE_LIBSSP=yes
2aeb72e9 2152fi;
ef0087a7 2153
671aa708
NN
2154# Save it here so that, even in case of --enable-libgcj, if the Java
2155# front-end isn't enabled, we still get libgcj disabled.
2156libgcj_saved=$libgcj
2157case $enable_libgcj in
2158yes)
2159 # If we reset it here, it won't get added to noconfigdirs in the
2160 # target-specific build rules, so it will be forcibly enabled
2161 # (unless the Java language itself isn't enabled).
2162 libgcj=
2163 ;;
2164no)
2165 # Make sure we get it printed in the list of not supported target libs.
2166 noconfigdirs="$noconfigdirs ${libgcj}"
2167 ;;
2168esac
ec8d6ddc 2169
6de9cd9a 2170
27079765
AH
2171# Disable libmudflap on some systems.
2172if test x$enable_libmudflap = x ; then
dfcada9a 2173 case "${target}" in
416ac4d4 2174 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 2175 # Enable libmudflap by default in GNU and friends.
dfcada9a 2176 ;;
a3e8d8b4
LR
2177 *-*-freebsd*)
2178 # Enable libmudflap by default in FreeBSD.
2179 ;;
dfcada9a
MM
2180 *)
2181 # Disable it by default everywhere else.
2182 noconfigdirs="$noconfigdirs target-libmudflap"
2183 ;;
2184 esac
27079765 2185fi
6de9cd9a 2186
27079765
AH
2187# Disable libgomp on non POSIX hosted systems.
2188if test x$enable_libgomp = x ; then
953ff289
DN
2189 # Enable libgomp by default on hosted POSIX systems.
2190 case "${target}" in
416ac4d4 2191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
2192 ;;
2193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2194 ;;
04879af3 2195 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2196 ;;
cac90078 2197 *-*-darwin* | *-*-aix*)
953ff289
DN
2198 ;;
2199 *)
2200 noconfigdirs="$noconfigdirs target-libgomp"
2201 ;;
2202 esac
27079765 2203fi
953ff289 2204
c03353e2
RIL
2205# Default libgloss CPU subdirectory.
2206libgloss_dir="$target_cpu"
6de9cd9a 2207
671aa708
NN
2208case "${target}" in
2209 *-*-chorusos)
cb253473 2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2211 ;;
25783c30 2212 powerpc-*-darwin* | x86_64-*-darwin[912]*)
e1514c3f 2213 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 2214 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2215 ;;
0db3a858
TG
2216 i[3456789]86-*-darwin*)
2217 noconfigdirs="$noconfigdirs ld gas gprof"
2218 noconfigdirs="$noconfigdirs sim target-rda"
2219 ;;
42c1cd8a
AT
2220 *-*-darwin*)
2221 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2222 noconfigdirs="$noconfigdirs sim target-rda"
2223 noconfigdirs="$noconfigdirs ${libgcj}"
2224 ;;
671aa708 2225 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2226 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2227 ;;
c3f84f61 2228 *-*-freebsd*)
6de9cd9a
DN
2229 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2230 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2231 && test -f /usr/local/include/gmp.h; then
2232 with_gmp=/usr/local
2233 fi
2234
2235 # Skip some stuff that's unsupported on some FreeBSD configurations.
2236 case "${target}" in
2237 i*86-*-*) ;;
2238 alpha*-*-*) ;;
2239 *)
cb253473 2240 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2241 ;;
2242 esac
2243 ;;
ef4e7569
US
2244 *-*-kaos*)
2245 # Remove unsupported stuff on all kaOS configurations.
cb253473 2246 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2247 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2248 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2249 noconfigdirs="$noconfigdirs target-libgloss"
2250 ;;
671aa708
NN
2251 *-*-netbsd*)
2252 # Skip some stuff on all NetBSD configurations.
2253 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2254
2255 # Skip some stuff that's unsupported on some NetBSD configurations.
2256 case "${target}" in
2257 i*86-*-netbsdelf*) ;;
0590b963 2258 arm*-*-netbsdelf*) ;;
671aa708 2259 *)
cb253473 2260 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2261 ;;
2262 esac
2263 ;;
61fec9ff 2264 *-*-netware*)
cb253473 2265 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2266 ;;
2267 *-*-rtems*)
cb253473 2268 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2269 ;;
a8ba31f2
EC
2270 # The tpf target doesn't support gdb yet.
2271 *-*-tpf*)
cb253473 2272 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2273 ;;
5785c0ed 2274 *-*-uclinux*)
cb253473 2275 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2276 ;;
671aa708 2277 *-*-vxworks*)
cb253473 2278 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2279 ;;
2280 alpha*-dec-osf*)
2281 # ld works, but does not support shared libraries.
2282 # newlib is not 64 bit ready. I'm not sure about fileutils.
2283 # gas doesn't generate exception information.
2284 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2285 ;;
2286 alpha*-*-*vms*)
cb253473 2287 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2288 ;;
2289 alpha*-*-linux*)
2290 # newlib is not 64 bit ready
2291 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2292 ;;
671aa708
NN
2293 alpha*-*-*)
2294 # newlib is not 64 bit ready
cb253473 2295 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2296 ;;
33952f6f 2297 am33_2.0-*-linux*)
cb253473 2298 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2299 ;;
671aa708 2300 sh-*-linux*)
cb253473 2301 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2302 ;;
671aa708 2303 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2304 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2305 noconfigdirs="$noconfigdirs target-examples"
2306 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2307 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2308 noconfigdirs="$noconfigdirs expect dejagnu"
2309 # the C++ libraries don't build on top of CE's C libraries
cb543528 2310 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2311 noconfigdirs="$noconfigdirs target-newlib"
2312 case "${host}" in
2313 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2314 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2315 ;;
2316 esac
c03353e2 2317 libgloss_dir=wince
671aa708
NN
2318 ;;
2319 arc-*-*)
cb253473 2320 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2321 ;;
ee6a22df 2322 arm-semi-aof )
ee6a22df 2323 ;;
671aa708 2324 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2325 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2326 libgloss_dir=arm
671aa708 2327 ;;
b3f8d95d 2328 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2329 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2330 libgloss_dir=arm
671aa708 2331 ;;
077fc835 2332 arm*-*-linux-gnueabi)
c4e9bf2b 2333 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
2334 case ${with_newlib} in
2335 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2336 esac
c03353e2 2337 libgloss_dir=arm
077fc835 2338 ;;
972974fc 2339 arm*-*-symbianelf*)
cb253473 2340 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2341 libgloss_dir=arm
972974fc 2342 ;;
671aa708 2343 arm-*-pe*)
cb253473 2344 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2345 ;;
671aa708 2346 thumb-*-coff)
cb253473 2347 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2348 ;;
2349 thumb-*-elf)
cb253473 2350 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2351 ;;
671aa708 2352 thumb-*-pe)
cb253473 2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2354 ;;
2355 arm-*-riscix*)
cb253473 2356 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2357 ;;
2358 avr-*-*)
ac3949d9 2359 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 2360 ;;
6b65a26d 2361 bfin-*-*)
8b3c6c5a 2362 noconfigdirs="$noconfigdirs gdb"
61efc800 2363 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2364 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2365 fi
2366 ;;
671aa708 2367 c4x-*-* | tic4x-*-*)
cb253473 2368 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2369 ;;
2370 c54x*-*-* | tic54x-*-*)
cb253473 2371 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2372 ;;
c993ae60
SR
2373 cr16-*-*)
2374 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2375 ;;
40d64b5a 2376 cris-*-* | crisv32-*-*)
4fab7234 2377 unsupported_languages="$unsupported_languages java"
40d64b5a 2378 case "${target}" in
c2e0d3a9 2379 *-*-aout)
7f26dfa3 2380 unsupported_languages="$unsupported_languages fortran"
4fab7234 2381 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2382 *-*-elf)
789ec619 2383 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2384 *-*-linux*)
789ec619 2385 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2386 *)
7f26dfa3 2387 unsupported_languages="$unsupported_languages fortran"
cb253473 2388 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2389 esac
c03353e2 2390 libgloss_dir=cris
671aa708 2391 ;;
25b656e7 2392 crx-*-*)
cb253473 2393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2394 ;;
671aa708 2395 d10v-*-*)
cb253473 2396 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2397 ;;
2398 d30v-*-*)
cb253473 2399 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2400 ;;
c03353e2
RIL
2401 ep9312-*-elf | ep9312-*-coff)
2402 libgloss_dir=arm
2403 ;;
671aa708 2404 fr30-*-elf*)
cb253473 2405 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2406 ;;
2407 frv-*-*)
cb253473 2408 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2409 ;;
2410 h8300*-*-*)
cb253473 2411 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2412 ;;
2413 h8500-*-*)
cb253473 2414 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2415 ;;
ee6a22df 2416 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2417 ;;
671aa708
NN
2418 hppa*64*-*-linux* | parisc*64*-*-linux*)
2419 # In this case, it's because the hppa64-linux target is for
2420 # the kernel only at this point and has no libc, and thus no
2421 # headers, crt*.o, etc., all of which are needed by these.
2422 noconfigdirs="$noconfigdirs target-zlib"
2423 ;;
3e732ba0
JDA
2424 parisc*-*-linux* | hppa*-*-linux*)
2425 ;;
671aa708 2426 hppa*-*-*elf* | \
671aa708
NN
2427 hppa*-*-lites* | \
2428 hppa*-*-openbsd* | \
2429 hppa*64*-*-*)
cb253473 2430 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2431 ;;
2a332582
JDA
2432 hppa*-hp-hpux11*)
2433 noconfigdirs="$noconfigdirs ld shellutils"
2434 ;;
c03353e2
RIL
2435 hppa*-*-pro*)
2436 libgloss_dir=pa
2437 ;;
671aa708
NN
2438 hppa*-*-*)
2439 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2440 # build on HP-UX 10.20.
cb253473 2441 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2442 ;;
fb87ad5d 2443 i960-*-*)
cb253473 2444 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2445 ;;
671aa708
NN
2446 ia64*-*-elf*)
2447 # No gdb support yet.
b4f96efe 2448 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2449 ;;
2450 ia64*-**-hpux*)
2451 # No gdb or ld support yet.
cb253473 2452 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2453 ;;
52535a64
DR
2454 ia64*-*-*vms*)
2455 # No gdb or ld support yet.
2456 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
2457 ;;
ee6a22df 2458 i370-*-opened*)
ee6a22df 2459 ;;
f2a0e225 2460 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2461 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2462 libgloss_dir=i386
671aa708 2463 ;;
f2a0e225 2464 i[3456789]86-*-linux*)
671aa708
NN
2465 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2466 # not build java stuff by default.
2467 case "${target}" in
2468 *-*-*libc1*)
cb253473 2469 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2470 esac
2471
2472 # This section makes it possible to build newlib natively on linux.
2473 # If we are using a cross compiler then don't configure newlib.
2474 if test x${is_cross_compiler} != xno ; then
3aa83176 2475 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2476 fi
2477 noconfigdirs="$noconfigdirs target-libgloss"
2478 # If we are not using a cross compiler, do configure newlib.
2479 # Note however, that newlib will only be configured in this situation
2480 # if the --with-newlib option has been given, because otherwise
2481 # 'target-newlib' will appear in skipdirs.
2482 ;;
f2a0e225 2483 i[3456789]86-*-mingw32*)
b91f0a41
CV
2484 target_configdirs="$target_configdirs target-winsup"
2485 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2486 ;;
95af8923
KT
2487 x86_64-*-mingw*)
2488 target_configdirs="$target_configdirs target-winsup"
2489 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2490 ;;
671aa708
NN
2491 *-*-cygwin*)
2492 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2493 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2494 # always build newlib if winsup directory is present.
b91f0a41 2495 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2496 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2497 elif test -d "$srcdir/newlib"; then
b91f0a41 2498 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2499 fi
1c710c3c 2500 ;;
ee6a22df
L
2501 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2502 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2503 ;;
f2a0e225 2504 i[3456789]86-*-pe)
cb253473 2505 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2506 ;;
f2a0e225 2507 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2508 # The linker does not yet know about weak symbols in COFF,
2509 # and is not configured to handle mixed ELF and COFF.
cb253473 2510 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2511 ;;
f2a0e225 2512 i[3456789]86-*-sco*)
cb253473 2513 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2514 ;;
f2a0e225 2515 i[3456789]86-*-solaris2*)
671aa708
NN
2516 noconfigdirs="$noconfigdirs target-libgloss"
2517 ;;
f2a0e225 2518 i[3456789]86-*-sysv4*)
cb253473 2519 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2520 ;;
f2a0e225 2521 i[3456789]86-*-beos*)
cb253473 2522 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2523 ;;
d1f8db0c
PB
2524 i[3456789]86-*-rdos*)
2525 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2526 ;;
fb87ad5d 2527 m32r-*-*)
cb253473 2528 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2529 ;;
671aa708 2530 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2531 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2532 libgloss_dir=m68hc11
671aa708
NN
2533 ;;
2534 m68k-*-elf*)
cb253473 2535 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2536 ;;
2537 m68k-*-coff*)
cb253473 2538 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2539 ;;
c03353e2
RIL
2540 m68*-*-* | fido-*-*)
2541 libgloss_dir=m68k
2542 ;;
671aa708
NN
2543 mcore-*-pe*)
2544 # The EPOC C++ environment does not support exceptions or rtti,
2545 # and so building libstdc++-v3 tends not to always work.
2546 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2547 ;;
2548 mmix-*-*)
4fab7234 2549 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2550 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2551 ;;
2552 mn10200-*-*)
cb253473 2553 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2554 ;;
2555 mn10300-*-*)
cb253473 2556 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2557 ;;
ab34901f 2558 mt-*-*)
79dd769c
AH
2559 noconfigdirs="$noconfigdirs sim"
2560 ;;
671aa708
NN
2561 powerpc-*-aix*)
2562 # copied from rs6000-*-* entry
cb253473 2563 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2564 ;;
2565 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2566 target_configdirs="$target_configdirs target-winsup"
cb253473 2567 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2568 # always build newlib.
2569 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2570 ;;
2571 # This is temporary until we can link against shared libraries
2572 powerpcle-*-solaris*)
cb253473 2573 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2574 libgloss_dir=rs6000
671aa708
NN
2575 ;;
2576 powerpc-*-beos*)
cb253473 2577 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2578 ;;
671aa708 2579 powerpc-*-eabi)
cb253473 2580 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2581 libgloss_dir=rs6000
ee6a22df
L
2582 ;;
2583 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2584 libgloss_dir=rs6000
671aa708 2585 ;;
671aa708 2586 rs6000-*-lynxos*)
cb253473 2587 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2588 ;;
2589 rs6000-*-aix*)
cb253473 2590 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2591 ;;
2592 rs6000-*-*)
cb253473 2593 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2594 ;;
2595 m68k-apollo-*)
cb253473 2596 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2597 ;;
d9dced13
RS
2598 mips*-sde-elf*)
2599 skipdirs="$skipdirs target-libiberty"
2600 noconfigdirs="$noconfigdirs ${libgcj}"
2601 if test x$with_newlib = xyes; then
2602 noconfigdirs="$noconfigdirs gprof"
2603 fi
2604 libgloss_dir=mips
2605 ;;
671aa708 2606 mips*-*-irix5*)
cb253473 2607 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2608 ;;
2609 mips*-*-irix6*)
671aa708
NN
2610 # Linking libjava exceeds command-line length limits on at least
2611 # IRIX 6.2, but not on IRIX 6.5.
2612 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2613 # <oldham@codesourcery.com>
cb253473 2614 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2615 ;;
671aa708 2616 mips*-*-bsd*)
cb253473 2617 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2618 ;;
671aa708
NN
2619 mips*-*-linux*)
2620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2621 ;;
2622 mips*-*-*)
cb253473 2623 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2624 libgloss_dir=mips
671aa708
NN
2625 ;;
2626 romp-*-*)
cb253473 2627 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2628 ;;
669f01d8 2629 sh-*-* | sh64-*-*)
671aa708 2630 case "${host}" in
f2a0e225
KC
2631 i[3456789]86-*-vsta) ;; # don't add gprof back in
2632 i[3456789]86-*-go32*) ;; # don't add gprof back in
2633 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2634 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2635 esac
cb253473 2636 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2637 ;;
c03353e2
RIL
2638 sparclet-*-aout* | sparc86x-*-*)
2639 libgloss_dir=sparc
2640 ;;
671aa708 2641 sparc-*-elf*)
cb253473 2642 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2643 ;;
2644 sparc64-*-elf*)
cb253473 2645 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2646 libgloss_dir=sparc
671aa708
NN
2647 ;;
2648 sparclite-*-*)
cb253473 2649 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2650 libgloss_dir=sparc
671aa708
NN
2651 ;;
2652 sparc-*-sunos4*)
cb253473 2653 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2654 if test x${is_cross_compiler} != xno ; then
2655 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2656 else
2657 use_gnu_ld=no
2658 fi
2659 ;;
bba5e0ca 2660 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2661 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2662 ;;
671aa708
NN
2663 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2664 ;;
2665 v810-*-*)
cb253473 2666 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2667 ;;
2668 v850-*-*)
cb253473 2669 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2670 ;;
2671 v850e-*-*)
cb253473 2672 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2673 ;;
2674 v850ea-*-*)
cb253473 2675 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2676 ;;
2677 vax-*-vms)
cb253473 2678 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2679 ;;
2680 vax-*-*)
cb253473 2681 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2682 ;;
aa12a573 2683 xtensa*-*-*)
cb253473 2684 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2685 ;;
671aa708 2686 ip2k-*-*)
cb253473 2687 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2688 ;;
416ac4d4 2689 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
2690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2691 ;;
2692 *-*-lynxos*)
cb253473 2693 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2694 ;;
671aa708 2695 *-*-*)
cb253473 2696 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2697 ;;
2698esac
79c06341 2699
671aa708
NN
2700# If we aren't building newlib, then don't build libgloss, since libgloss
2701# depends upon some newlib header files.
2702case "${noconfigdirs}" in
2703 *target-libgloss*) ;;
2704 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2705esac
2706
671aa708
NN
2707# Work in distributions that contain no compiler tools, like Autoconf.
2708tentative_cc=""
2709host_makefile_frag=/dev/null
2710if test -d ${srcdir}/config ; then
2711case "${host}" in
2712 m68k-hp-hpux*)
2713 # Avoid "too much defining" errors from HPUX compiler.
2714 tentative_cc="cc -Wp,-H256000"
2715 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2716 # If it's HP/UX ar, this should be harmless.
2717 RANLIB="ar ts"
2718 ;;
2719 m68k-apollo-sysv*)
2720 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2721 ;;
2722 m68k-apollo-bsd*)
2723 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2724 # chokes on bfd, the compiler won't let you assign integers to enums, and
2725 # other problems. Defining CC to gcc is a questionable way to say "don't use
2726 # the apollo compiler" (the preferred version of GCC could be called cc,
2727 # or whatever), but I'm not sure leaving CC as cc is any better...
2728 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2729 # Used to have BISON=yacc.
2730 tentative_cc=gcc
2731 ;;
2732 m88k-dg-dgux*)
2733 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2734 ;;
2735 m88k-harris-cxux*)
2736 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2737 tentative_cc="cc -Xa"
2738 host_makefile_frag="config/mh-cxux"
2739 ;;
2740 m88k-motorola-sysv*)
2741 ;;
2742 mips*-dec-ultrix*)
2743 tentative_cc="cc -Wf,-XNg1000"
2744 host_makefile_frag="config/mh-decstation"
2745 ;;
2746 mips*-nec-sysv4*)
2747 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2748 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2749 host_makefile_frag="config/mh-necv4"
2750 ;;
2751 mips*-sgi-irix4*)
2752 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2753 # environment. Also bump switch table size so that cp-parse will
2754 # compile. Bump string length limit so linker builds.
2755 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2756 ;;
2757 mips*-*-sysv4*)
2758 host_makefile_frag="config/mh-sysv4"
2759 ;;
2760 mips*-*-sysv*)
2761 # This is for a MIPS running RISC/os 4.52C.
2762
2763 # This is needed for GDB, but needs to be in the top-level make because
2764 # if a library is compiled with the bsd headers and gets linked with the
2765 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2766 # a different size).
2767 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2768 # known except to select the sysv environment. Could we use /proc instead?
2769 # These "sysv environments" and "bsd environments" often end up being a pain.
2770 #
2771 # This is not part of CFLAGS because perhaps not all C compilers have this
2772 # option.
2773 tentative_cc="cc -systype sysv"
2774 ;;
2775 i370-ibm-opened*)
2776 tentative_cc="c89"
2777 ;;
f2a0e225 2778 i[3456789]86-*-sysv5*)
671aa708
NN
2779 host_makefile_frag="config/mh-sysv5"
2780 ;;
f2a0e225 2781 i[3456789]86-*-dgux*)
671aa708
NN
2782 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2783 host_makefile_frag="config/mh-dgux386"
2784 ;;
f2a0e225 2785 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2786 # The MetaWare compiler will generate a copyright message unless you
2787 # turn it off by adding the -Hnocopyr flag.
2788 tentative_cc="cc -Hnocopyr"
2789 ;;
f2a0e225 2790 i[3456789]86-ncr-sysv4*)
671aa708
NN
2791 # for an NCR 3000 (i486/SVR4) system.
2792 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2793 # This compiler not only emits obnoxious copyright messages every time
2794 # you run it, but it chokes and dies on a whole bunch of GNU source
2795 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2796 tentative_cc="/usr/ccs/ATT/cc"
2797 host_makefile_frag="config/mh-ncr3000"
2798 ;;
f2a0e225 2799 i[3456789]86-*-sco3.2v5*)
671aa708 2800 ;;
f2a0e225 2801 i[3456789]86-*-sco*)
671aa708
NN
2802 # The native C compiler botches some simple uses of const. Unfortunately,
2803 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2804 tentative_cc="cc -Dconst="
2805 host_makefile_frag="config/mh-sco"
2806 ;;
f2a0e225 2807 i[3456789]86-*-udk*)
671aa708
NN
2808 host_makefile_frag="config/mh-sysv5"
2809 ;;
f2a0e225 2810 i[3456789]86-*-solaris2*)
671aa708
NN
2811 host_makefile_frag="config/mh-sysv4"
2812 ;;
f2a0e225 2813 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2814 host_makefile_frag="config/mh-djgpp"
2815 ;;
2816 *-cygwin*)
2a79c47f
NC
2817
2818echo "$as_me:$LINENO: checking to see if cat works as expected" >&5
2819echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6
2820echo a >cygwin-cat-check
2821if test `cat cygwin-cat-check` == a ; then
2822 rm cygwin-cat-check
2823 echo "$as_me:$LINENO: result: yes" >&5
2824echo "${ECHO_T}yes" >&6
2825else
2826 rm cygwin-cat-check
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
2829 { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters.
2830 Please either mount the build directory in binary mode or run the following
2831 commands before running any configure script:
2832set -o igncr
2833export SHELLOPTS
2834 " >&5
2835echo "$as_me: error: The cat command does not ignore carriage return characters.
2836 Please either mount the build directory in binary mode or run the following
2837 commands before running any configure script:
2838set -o igncr
2839export SHELLOPTS
2840 " >&2;}
2841 { (exit 1); exit 1; }; }
2842fi
2843
671aa708
NN
2844 host_makefile_frag="config/mh-cygwin"
2845 ;;
c53a18d3 2846 *-mingw*)
1f5a6b84 2847 host_makefile_frag="config/mh-mingw"
95af8923 2848 ;;
671aa708
NN
2849 *-interix*)
2850 host_makefile_frag="config/mh-interix"
2851 ;;
2852 vax-*-ultrix2*)
2853 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2854 tentative_cc=gcc
2855 ;;
2856 *-*-solaris2*)
2857 host_makefile_frag="config/mh-solaris"
2858 ;;
2859 m68k-sun-sunos*)
2860 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2861 # without overflowing the jump tables (-J says to use a 32 bit table)
2862 tentative_cc="cc -J"
2863 ;;
efd41714 2864 hppa*-hp-hpux10*)
671aa708 2865 tentative_cc="cc -Wp,-H256000"
efd41714 2866 host_makefile_frag="config/mh-pa-hpux10"
671aa708 2867 ;;
efd41714
PB
2868 hppa*-hp-hpux* | hppa*-*-hiux*)
2869 tentative_cc="cc -Wp,-H256000"
2870 host_makefile_frag="config/mh-pa"
2871 ;;
2872 hppa*-*)
2873 host_makefile_frag="config/mh-pa"
2874 ;;
2875 *-hp-hpux* | *-*-hiux*)
671aa708
NN
2876 tentative_cc="cc -Wp,-H256000"
2877 ;;
2878 rs6000-*-lynxos*)
2879 # /bin/cc is less than useful for our purposes. Always use GCC
2880 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2881 host_makefile_frag="config/mh-lynxrs6k"
2882 ;;
45f366ab 2883 powerpc-*-darwin*)
be8fff81
RB
2884 host_makefile_frag="config/mh-ppc-darwin"
2885 ;;
d19bca38
PB
2886 powerpc-*-aix*)
2887 host_makefile_frag="config/mh-ppc-aix"
2888 ;;
2889 rs6000-*-aix*)
2890 host_makefile_frag="config/mh-ppc-aix"
2891 ;;
671aa708
NN
2892 *-*-lynxos*)
2893 # /bin/cc is less than useful for our purposes. Always use GCC
2894 tentative_cc="/bin/gcc"
2895 ;;
2896 *-*-sysv4*)
2897 host_makefile_frag="config/mh-sysv4"
2898 ;;
95c53c62
RS
2899 # This is placed last to prevent interfering with the cases above.
2900 i[3456789]86-*-*)
2901 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2902 host_makefile_frag="config/mh-x86omitfp"
2903 ;;
671aa708
NN
2904esac
2905fi
2906
55ffb5ed
NN
2907# If we aren't going to be using gcc, see if we can extract a definition
2908# of CC from the fragment.
2909# Actually, use the 'pre-extracted' version above.
2910if test -z "${CC}" && test "${build}" = "${host}" ; then
2911 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2912 found=
2913 for dir in $PATH; do
2914 test -z "$dir" && dir=.
2915 if test -f $dir/gcc; then
2916 found=yes
2917 break
2918 fi
2919 done
2920 IFS="$save_ifs"
2921 if test -z "${found}" && test -n "${tentative_cc}" ; then
2922 CC=$tentative_cc
2923 fi
2924fi
2925
2926if test "${build}" != "${host}" ; then
0999159b
PB
2927 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2928 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2929 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2930 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2931 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2932 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2933 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2934 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2935 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2936 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2937 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2938 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2939else
2940 AR_FOR_BUILD="\$(AR)"
2941 AS_FOR_BUILD="\$(AS)"
fb0103e5 2942 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2943 CXX_FOR_BUILD="\$(CXX)"
2944 GCJ_FOR_BUILD="\$(GCJ)"
2945 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2946 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2947 LD_FOR_BUILD="\$(LD)"
2948 NM_FOR_BUILD="\$(NM)"
2949 RANLIB_FOR_BUILD="\$(RANLIB)"
2950 WINDRES_FOR_BUILD="\$(WINDRES)"
2951 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2952fi
2953
2954ac_ext=c
1c710c3c
DJ
2955ac_cpp='$CPP $CPPFLAGS'
2956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2961set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2962echo "$as_me:$LINENO: checking for $ac_word" >&5
2963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2964if test "${ac_cv_prog_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982done
2983
2984fi
2985fi
2986CC=$ac_cv_prog_CC
2987if test -n "$CC"; then
2aeb72e9
DD
2988 echo "$as_me:$LINENO: result: $CC" >&5
2989echo "${ECHO_T}$CC" >&6
1c710c3c 2990else
2aeb72e9
DD
2991 echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
1c710c3c
DJ
2993fi
2994
2995fi
2996if test -z "$ac_cv_prog_CC"; then
2997 ac_ct_CC=$CC
fb0103e5
RG
2998 # Extract the first word of "gcc", so it can be a program name with args.
2999set dummy gcc; ac_word=$2
2aeb72e9
DD
3000echo "$as_me:$LINENO: checking for $ac_word" >&5
3001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3015 ac_cv_prog_ac_ct_CC="gcc"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019done
3020done
3021
3022fi
3023fi
3024ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3026 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3027echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 3028else
2aeb72e9
DD
3029 echo "$as_me:$LINENO: result: no" >&5
3030echo "${ECHO_T}no" >&6
1c710c3c
DJ
3031fi
3032
2aeb72e9 3033 CC=$ac_ct_CC
1c710c3c
DJ
3034else
3035 CC="$ac_cv_prog_CC"
3036fi
3037
3038if test -z "$CC"; then
2aeb72e9
DD
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3041set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
3042echo "$as_me:$LINENO: checking for $ac_word" >&5
3043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3044if test "${ac_cv_prog_CC+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3046else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
1c710c3c
DJ
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3057 ac_cv_prog_CC="${ac_tool_prefix}cc"
3058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061done
3062done
3063
0b0dc272 3064fi
0b0dc272 3065fi
1c710c3c 3066CC=$ac_cv_prog_CC
af71363e 3067if test -n "$CC"; then
2aeb72e9
DD
3068 echo "$as_me:$LINENO: result: $CC" >&5
3069echo "${ECHO_T}$CC" >&6
0b0dc272 3070else
2aeb72e9
DD
3071 echo "$as_me:$LINENO: result: no" >&5
3072echo "${ECHO_T}no" >&6
0b0dc272
AM
3073fi
3074
2aeb72e9
DD
3075fi
3076if test -z "$ac_cv_prog_CC"; then
3077 ac_ct_CC=$CC
3078 # Extract the first word of "cc", so it can be a program name with args.
3079set dummy cc; ac_word=$2
3080echo "$as_me:$LINENO: checking for $ac_word" >&5
3081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 if test -n "$ac_ct_CC"; then
3086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_ac_ct_CC="cc"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
11a67599 3098 fi
2aeb72e9
DD
3099done
3100done
3101
3102fi
3103fi
3104ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105if test -n "$ac_ct_CC"; then
3106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3107echo "${ECHO_T}$ac_ct_CC" >&6
3108else
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
3111fi
3112
3113 CC=$ac_ct_CC
3114else
3115 CC="$ac_cv_prog_CC"
3116fi
3117
1c710c3c 3118fi
55ffb5ed
NN
3119if test -z "$CC"; then
3120 # Extract the first word of "cc", so it can be a program name with args.
3121set dummy cc; ac_word=$2
2aeb72e9
DD
3122echo "$as_me:$LINENO: checking for $ac_word" >&5
3123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3124if test "${ac_cv_prog_CC+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3126else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129else
0b0dc272 3130 ac_prog_rejected=no
1c710c3c
DJ
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3139 ac_prog_rejected=yes
3140 continue
3141 fi
3142 ac_cv_prog_CC="cc"
3143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3145 fi
3146done
3147done
3148
55ffb5ed
NN
3149if test $ac_prog_rejected = yes; then
3150 # We found a bogon in the path, so make sure we never use it.
3151 set dummy $ac_cv_prog_CC
3152 shift
1c710c3c 3153 if test $# != 0; then
55ffb5ed
NN
3154 # We chose a different compiler from the bogus one.
3155 # However, it has the same basename, so the bogon will be chosen
3156 # first if we set CC to just the basename; use the full file name.
3157 shift
1c710c3c 3158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3159 fi
3160fi
3161fi
3162fi
1c710c3c 3163CC=$ac_cv_prog_CC
55ffb5ed 3164if test -n "$CC"; then
2aeb72e9
DD
3165 echo "$as_me:$LINENO: result: $CC" >&5
3166echo "${ECHO_T}$CC" >&6
55ffb5ed 3167else
2aeb72e9
DD
3168 echo "$as_me:$LINENO: result: no" >&5
3169echo "${ECHO_T}no" >&6
55ffb5ed
NN
3170fi
3171
1c710c3c
DJ
3172fi
3173if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
2aeb72e9 3175 for ac_prog in cl
1c710c3c
DJ
3176 do
3177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3179echo "$as_me:$LINENO: checking for $ac_word" >&5
3180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3181if test "${ac_cv_prog_CC+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3183else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186else
1c710c3c
DJ
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198done
3199done
3200
55ffb5ed
NN
3201fi
3202fi
1c710c3c 3203CC=$ac_cv_prog_CC
55ffb5ed 3204if test -n "$CC"; then
2aeb72e9
DD
3205 echo "$as_me:$LINENO: result: $CC" >&5
3206echo "${ECHO_T}$CC" >&6
a4b9e93e 3207else
2aeb72e9
DD
3208 echo "$as_me:$LINENO: result: no" >&5
3209echo "${ECHO_T}no" >&6
fb0103e5 3210fi
af71363e 3211
1c710c3c
DJ
3212 test -n "$CC" && break
3213 done
af71363e 3214fi
1c710c3c
DJ
3215if test -z "$CC"; then
3216 ac_ct_CC=$CC
2aeb72e9 3217 for ac_prog in cl
1c710c3c
DJ
3218do
3219 # Extract the first word of "$ac_prog", so it can be a program name with args.
3220set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3221echo "$as_me:$LINENO: checking for $ac_word" >&5
3222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3225else
1c710c3c
DJ
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3228else
1c710c3c
DJ
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3236 ac_cv_prog_ac_ct_CC="$ac_prog"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240done
3241done
3242
af71363e
AS
3243fi
3244fi
1c710c3c
DJ
3245ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3248echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3249else
2aeb72e9
DD
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
af71363e 3252fi
0b0dc272 3253
1c710c3c
DJ
3254 test -n "$ac_ct_CC" && break
3255done
3256
2aeb72e9 3257 CC=$ac_ct_CC
1c710c3c
DJ
3258fi
3259
3260fi
3261
3262
18c04407
RW
3263test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3264echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1c710c3c
DJ
3266See \`config.log' for more details." >&5
3267echo "$as_me: error: no acceptable C compiler found in \$PATH
3268See \`config.log' for more details." >&2;}
18c04407 3269 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3270
3271# Provide some information about the compiler.
2aeb72e9
DD
3272echo "$as_me:$LINENO:" \
3273 "checking for C compiler version" >&5
1c710c3c 3274ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3275{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3276 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }
2aeb72e9
DD
3280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3281 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
2aeb72e9
DD
3285{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3286 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }
3290
3291cat >conftest.$ac_ext <<_ACEOF
3292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
3296/* end confdefs.h. */
3297
3298int
3299main ()
3300{
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306ac_clean_files_save=$ac_clean_files
3307ac_clean_files="$ac_clean_files a.out a.exe b.out"
3308# Try to create an executable without -o first, disregard a.out.
3309# It will help us diagnose broken compilers, and finding out an intuition
3310# of exeext.
2aeb72e9
DD
3311echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3312echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3313ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3314if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3315 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; then
2aeb72e9
DD
3319 # Find the output, starting from the most likely. This scheme is
3320# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3321# resort.
3322
3323# Be careful to initialize this variable, since it used to be cached.
3324# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3325ac_cv_exeext=
3326# b.out is created by i960 compilers.
3327for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3328do
3329 test -f "$ac_file" || continue
3330 case $ac_file in
2aeb72e9
DD
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3332 ;;
3333 conftest.$ac_ext )
3334 # This is the source file.
1c710c3c
DJ
3335 ;;
3336 [ab].out )
3337 # We found the default executable, but exeext='' is most
3338 # certainly right.
3339 break;;
3340 *.* )
2aeb72e9
DD
3341 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 # FIXME: I believe we export ac_cv_exeext for Libtool,
3343 # but it would be cool to find out if it's true. Does anybody
3344 # maintain Libtool? --akim.
3345 export ac_cv_exeext
1c710c3c
DJ
3346 break;;
3347 * )
3348 break;;
3349 esac
3350done
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
18c04407
RW
3355{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3356echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3357{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3358See \`config.log' for more details." >&5
3359echo "$as_me: error: C compiler cannot create executables
3360See \`config.log' for more details." >&2;}
18c04407 3361 { (exit 77); exit 77; }; }; }
1c710c3c
DJ
3362fi
3363
3364ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3365echo "$as_me:$LINENO: result: $ac_file" >&5
3366echo "${ECHO_T}$ac_file" >&6
1c710c3c 3367
2aeb72e9 3368# Check the compiler produces executables we can run. If not, either
1c710c3c 3369# the compiler is broken, or we cross compile.
2aeb72e9
DD
3370echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3371echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3372# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3373# If not cross compiling, check that we can run a simple program.
3374if test "$cross_compiling" != yes; then
3375 if { ac_try='./$ac_file'
2aeb72e9
DD
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
1c710c3c
DJ
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 cross_compiling=no
3382 else
3383 if test "$cross_compiling" = maybe; then
3384 cross_compiling=yes
3385 else
18c04407
RW
3386 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3387echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1c710c3c
DJ
3389If you meant to cross compile, use \`--host'.
3390See \`config.log' for more details." >&5
3391echo "$as_me: error: cannot run C compiled programs.
3392If you meant to cross compile, use \`--host'.
3393See \`config.log' for more details." >&2;}
18c04407 3394 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3395 fi
3396 fi
3397fi
2aeb72e9
DD
3398echo "$as_me:$LINENO: result: yes" >&5
3399echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3400
3401rm -f a.out a.exe conftest$ac_cv_exeext b.out
3402ac_clean_files=$ac_clean_files_save
2aeb72e9 3403# Check the compiler produces executables we can run. If not, either
1c710c3c 3404# the compiler is broken, or we cross compile.
2aeb72e9
DD
3405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3407echo "$as_me:$LINENO: result: $cross_compiling" >&5
3408echo "${ECHO_T}$cross_compiling" >&6
3409
3410echo "$as_me:$LINENO: checking for suffix of executables" >&5
3411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3413 (eval $ac_link) 2>&5
1c710c3c
DJ
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; then
3417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3418# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3419# work properly (i.e., refer to `conftest.exe'), while it won't with
3420# `rm'.
3421for ac_file in conftest.exe conftest conftest.*; do
3422 test -f "$ac_file" || continue
3423 case $ac_file in
2aeb72e9 3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3426 export ac_cv_exeext
1c710c3c
DJ
3427 break;;
3428 * ) break;;
3429 esac
3430done
af71363e 3431else
18c04407
RW
3432 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3433echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1c710c3c
DJ
3435See \`config.log' for more details." >&5
3436echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3437See \`config.log' for more details." >&2;}
18c04407 3438 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3439fi
3440
3441rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3442echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3443echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3444
3445rm -f conftest.$ac_ext
3446EXEEXT=$ac_cv_exeext
3447ac_exeext=$EXEEXT
2aeb72e9
DD
3448echo "$as_me:$LINENO: checking for suffix of object files" >&5
3449echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3450if test "${ac_cv_objext+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
3453 cat >conftest.$ac_ext <<_ACEOF
3454/* confdefs.h. */
3455_ACEOF
3456cat confdefs.h >>conftest.$ac_ext
3457cat >>conftest.$ac_ext <<_ACEOF
3458/* end confdefs.h. */
3459
3460int
3461main ()
3462{
3463
3464 ;
3465 return 0;
3466}
3467_ACEOF
3468rm -f conftest.o conftest.obj
2aeb72e9
DD
3469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>&5
1c710c3c
DJ
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; then
2aeb72e9 3474 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3475 case $ac_file in
2aeb72e9 3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3478 break;;
3479 esac
3480done
3481else
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
18c04407
RW
3485{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3486echo "$as_me: error: in \`$ac_pwd':" >&2;}
1c710c3c
DJ
3487{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3488See \`config.log' for more details." >&5
3489echo "$as_me: error: cannot compute suffix of object files: cannot compile
3490See \`config.log' for more details." >&2;}
18c04407 3491 { (exit 1); exit 1; }; }; }
1c710c3c
DJ
3492fi
3493
3494rm -f conftest.$ac_cv_objext conftest.$ac_ext
3495fi
2aeb72e9
DD
3496echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3497echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3498OBJEXT=$ac_cv_objext
3499ac_objext=$OBJEXT
2aeb72e9
DD
3500echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3501echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3502if test "${ac_cv_c_compiler_gnu+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505 cat >conftest.$ac_ext <<_ACEOF
3506/* confdefs.h. */
3507_ACEOF
3508cat confdefs.h >>conftest.$ac_ext
3509cat >>conftest.$ac_ext <<_ACEOF
3510/* end confdefs.h. */
3511
3512int
3513main ()
3514{
3515#ifndef __GNUC__
3516 choke me
3517#endif
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
2aeb72e9
DD
3524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
1c710c3c
DJ
3545 ac_compiler_gnu=yes
3546else
3547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
2aeb72e9 3550ac_compiler_gnu=no
1c710c3c 3551fi
2aeb72e9 3552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3553ac_cv_c_compiler_gnu=$ac_compiler_gnu
3554
3555fi
2aeb72e9
DD
3556echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3557echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3558GCC=`test $ac_compiler_gnu = yes && echo yes`
3559ac_test_CFLAGS=${CFLAGS+set}
3560ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3561CFLAGS="-g"
3562echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3563echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3564if test "${ac_cv_prog_cc_g+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566else
2aeb72e9 3567 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h. */
3573
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582rm -f conftest.$ac_objext
2aeb72e9
DD
3583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3584 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3590 (exit $ac_status); } &&
3591 { ac_try='test -z "$ac_c_werror_flag"
3592 || test ! -s conftest.err'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
1c710c3c
DJ
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
1c710c3c
DJ
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3603 (exit $ac_status); }; }; then
55ffb5ed
NN
3604 ac_cv_prog_cc_g=yes
3605else
1c710c3c
DJ
3606 echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3608
2aeb72e9 3609ac_cv_prog_cc_g=no
0b0dc272 3610fi
2aeb72e9 3611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3612fi
2aeb72e9
DD
3613echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3614echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3615if test "$ac_test_CFLAGS" = set; then
1c710c3c 3616 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3617elif test $ac_cv_prog_cc_g = yes; then
3618 if test "$GCC" = yes; then
3619 CFLAGS="-g -O2"
3620 else
3621 CFLAGS="-g"
3622 fi
3623else
3624 if test "$GCC" = yes; then
3625 CFLAGS="-O2"
3626 else
3627 CFLAGS=
3628 fi
3629fi
2aeb72e9
DD
3630echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3631echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3632if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
2aeb72e9 3635 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3636ac_save_CC=$CC
3637cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h. */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h. */
3643#include <stdarg.h>
3644#include <stdio.h>
3645#include <sys/types.h>
3646#include <sys/stat.h>
3647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3648struct buf { int x; };
3649FILE * (*rcsopen) (struct buf *, struct stat *, int);
3650static char *e (p, i)
3651 char **p;
3652 int i;
3653{
3654 return p[i];
3655}
3656static char *f (char * (*g) (char **, int), char **p, ...)
3657{
3658 char *s;
3659 va_list v;
3660 va_start (v,p);
3661 s = g (p, va_arg (v,int));
3662 va_end (v);
3663 return s;
3664}
3665
3666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3667 function prototypes and stuff, but not '\xHH' hex character constants.
3668 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3669 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3671 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3672 that's true only with -std1. */
1c710c3c
DJ
3673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3674
3675int test (int i, double x);
3676struct s1 {int (*f) (int a);};
3677struct s2 {int (*f) (double a);};
3678int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679int argc;
3680char **argv;
3681int
3682main ()
3683{
3684return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3685 ;
3686 return 0;
3687}
3688_ACEOF
2aeb72e9
DD
3689# Don't try gcc -ansi; that turns off useful extensions and
3690# breaks some systems' header files.
3691# AIX -qlanglvl=ansi
3692# Ultrix and OSF/1 -std1
3693# HP-UX 10.20 and later -Ae
3694# HP-UX older versions -Aa -D_HPUX_SOURCE
3695# SVR4 -Xc -D__EXTENSIONS__
3696for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3697do
3698 CC="$ac_save_CC $ac_arg"
3699 rm -f conftest.$ac_objext
2aeb72e9
DD
3700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3707 (exit $ac_status); } &&
3708 { ac_try='test -z "$ac_c_werror_flag"
3709 || test ! -s conftest.err'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 (eval $ac_try) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; } &&
3715 { ac_try='test -s conftest.$ac_objext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 ac_cv_prog_cc_stdc=$ac_arg
3722break
1c710c3c
DJ
3723else
3724 echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727fi
2aeb72e9 3728rm -f conftest.err conftest.$ac_objext
1c710c3c 3729done
2aeb72e9 3730rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3731CC=$ac_save_CC
3732
3733fi
2aeb72e9
DD
3734
3735case "x$ac_cv_prog_cc_stdc" in
3736 x|xno)
3737 echo "$as_me:$LINENO: result: none needed" >&5
3738echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3739 *)
2aeb72e9
DD
3740 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3741echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3742 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3743esac
3744
2aeb72e9
DD
3745# Some people use a C++ compiler to compile C. Since we use `exit',
3746# in C++ we need to declare it. In case someone uses the same compiler
3747# for both compiling C and C++ we need to have the C++ compiler decide
3748# the declaration of exit, since it's the most demanding environment.
3749cat >conftest.$ac_ext <<_ACEOF
3750#ifndef __cplusplus
3751 choke me
3752#endif
3753_ACEOF
3754rm -f conftest.$ac_objext
3755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -z "$ac_c_werror_flag"
3764 || test ! -s conftest.err'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 for ac_declaration in \
3777 '' \
3778 'extern "C" void std::exit (int) throw (); using std::exit;' \
3779 'extern "C" void std::exit (int); using std::exit;' \
3780 'extern "C" void exit (int) throw ();' \
3781 'extern "C" void exit (int);' \
3782 'void exit (int);'
3783do
3784 cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
3790$ac_declaration
3791#include <stdlib.h>
3792int
3793main ()
3794{
3795exit (42);
3796 ;
3797 return 0;
3798}
3799_ACEOF
3800rm -f conftest.$ac_objext
3801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -z "$ac_c_werror_flag"
3810 || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 :
3823else
3824 echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827continue
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
3836$ac_declaration
3837int
3838main ()
3839{
3840exit (42);
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 break
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872fi
3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874done
3875rm -f conftest*
3876if test -n "$ac_declaration"; then
3877 echo '#ifdef __cplusplus' >>confdefs.h
3878 echo $ac_declaration >>confdefs.h
3879 echo '#endif' >>confdefs.h
3880fi
3881
3882else
3883 echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886fi
3887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3888ac_ext=c
3889ac_cpp='$CPP $CPPFLAGS'
3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894ac_ext=cc
3895ac_cpp='$CXXCPP $CPPFLAGS'
3896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3899if test -n "$ac_tool_prefix"; then
3900 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3901 do
3902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904echo "$as_me:$LINENO: checking for $ac_word" >&5
3905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906if test "${ac_cv_prog_CXX+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 if test -n "$CXX"; then
3910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3911else
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924done
55ffb5ed 3925
c3a86da9
DJ
3926fi
3927fi
3928CXX=$ac_cv_prog_CXX
3929if test -n "$CXX"; then
2aeb72e9
DD
3930 echo "$as_me:$LINENO: result: $CXX" >&5
3931echo "${ECHO_T}$CXX" >&6
c3a86da9 3932else
2aeb72e9
DD
3933 echo "$as_me:$LINENO: result: no" >&5
3934echo "${ECHO_T}no" >&6
c3a86da9
DJ
3935fi
3936
3937 test -n "$CXX" && break
3938 done
3939fi
3940if test -z "$CXX"; then
3941 ac_ct_CXX=$CXX
2aeb72e9 3942 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3943do
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3946echo "$as_me:$LINENO: checking for $ac_word" >&5
3947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3948if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 if test -n "$ac_ct_CXX"; then
3952 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3953else
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3961 ac_cv_prog_ac_ct_CXX="$ac_prog"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965done
3966done
3967
3968fi
3969fi
3970ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3971if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3972 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3973echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3974else
2aeb72e9
DD
3975 echo "$as_me:$LINENO: result: no" >&5
3976echo "${ECHO_T}no" >&6
c3a86da9
DJ
3977fi
3978
3979 test -n "$ac_ct_CXX" && break
3980done
2aeb72e9 3981test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3982
2aeb72e9 3983 CXX=$ac_ct_CXX
c3a86da9
DJ
3984fi
3985
2aeb72e9 3986
c3a86da9 3987# Provide some information about the compiler.
2aeb72e9
DD
3988echo "$as_me:$LINENO:" \
3989 "checking for C++ compiler version" >&5
c3a86da9 3990ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3991{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3992 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
2aeb72e9
DD
3996{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3997 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }
2aeb72e9
DD
4001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4002 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }
4006
2aeb72e9
DD
4007echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4008echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
4009if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012 cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
4018
4019int
4020main ()
4021{
4022#ifndef __GNUC__
4023 choke me
4024#endif
4025
4026 ;
4027 return 0;
4028}
4029_ACEOF
4030rm -f conftest.$ac_objext
2aeb72e9
DD
4031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4033 ac_status=$?
4034 grep -v '^ *+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4038 (exit $ac_status); } &&
4039 { ac_try='test -z "$ac_cxx_werror_flag"
4040 || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 (eval $ac_try) 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 (eval $ac_try) 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
c3a86da9
DJ
4052 ac_compiler_gnu=yes
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
2aeb72e9 4057ac_compiler_gnu=no
c3a86da9 4058fi
2aeb72e9 4059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4061
4062fi
2aeb72e9
DD
4063echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
4065GXX=`test $ac_compiler_gnu = yes && echo yes`
4066ac_test_CXXFLAGS=${CXXFLAGS+set}
4067ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
4068CXXFLAGS="-g"
4069echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4070echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
4071if test "${ac_cv_prog_cxx_g+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
2aeb72e9 4074 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4075/* confdefs.h. */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h. */
4080
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089rm -f conftest.$ac_objext
2aeb72e9
DD
4090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_cxx_werror_flag"
4099 || test ! -s conftest.err'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
c3a86da9
DJ
4111 ac_cv_prog_cxx_g=yes
4112else
4113 echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
2aeb72e9
DD
4116ac_cv_prog_cxx_g=no
4117fi
4118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119fi
4120echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4121echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4122if test "$ac_test_CXXFLAGS" = set; then
4123 CXXFLAGS=$ac_save_CXXFLAGS
4124elif test $ac_cv_prog_cxx_g = yes; then
4125 if test "$GXX" = yes; then
4126 CXXFLAGS="-g -O2"
4127 else
4128 CXXFLAGS="-g"
4129 fi
4130else
4131 if test "$GXX" = yes; then
4132 CXXFLAGS="-O2"
4133 else
4134 CXXFLAGS=
4135 fi
4136fi
4137for ac_declaration in \
4138 '' \
4139 'extern "C" void std::exit (int) throw (); using std::exit;' \
4140 'extern "C" void std::exit (int); using std::exit;' \
4141 'extern "C" void exit (int) throw ();' \
4142 'extern "C" void exit (int);' \
4143 'void exit (int);'
4144do
4145 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4146/* confdefs.h. */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h. */
2aeb72e9
DD
4151$ac_declaration
4152#include <stdlib.h>
c3a86da9
DJ
4153int
4154main ()
4155{
2aeb72e9 4156exit (42);
c3a86da9
DJ
4157 ;
4158 return 0;
4159}
4160_ACEOF
4161rm -f conftest.$ac_objext
2aeb72e9
DD
4162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_cxx_werror_flag"
4171 || test ! -s conftest.err'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
c3a86da9
DJ
4183 :
4184else
4185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4187
2aeb72e9
DD
4188continue
4189fi
4190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4191 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
2aeb72e9 4197$ac_declaration
c3a86da9
DJ
4198int
4199main ()
4200{
2aeb72e9 4201exit (42);
c3a86da9
DJ
4202 ;
4203 return 0;
4204}
4205_ACEOF
4206rm -f conftest.$ac_objext
2aeb72e9
DD
4207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4209 ac_status=$?
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4214 (exit $ac_status); } &&
4215 { ac_try='test -z "$ac_cxx_werror_flag"
4216 || test ! -s conftest.err'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; } &&
4222 { ac_try='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 break
c3a86da9
DJ
4229else
4230 echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
11a67599 4233fi
2aeb72e9
DD
4234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4235done
4236rm -f conftest*
4237if test -n "$ac_declaration"; then
4238 echo '#ifdef __cplusplus' >>confdefs.h
4239 echo $ac_declaration >>confdefs.h
4240 echo '#endif' >>confdefs.h
c3a86da9
DJ
4241fi
4242
4243ac_ext=c
4244ac_cpp='$CPP $CPPFLAGS'
4245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248
4249
4250# We must set the default linker to the linker used by gcc for the correct
4251# operation of libtool. If LD is not defined and we are using gcc, try to
4252# set the LD default to the ld used by gcc.
4253if test -z "$LD"; then
4254 if test "$GCC" = yes; then
4255 case $build in
4256 *-*-mingw*)
4257 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4258 *)
4259 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4260 esac
4261 case $gcc_prog_ld in
4262 # Accept absolute paths.
4263 [\\/]* | [A-Za-z]:[\\/]*)
4264 LD="$gcc_prog_ld" ;;
4265 esac
4266 fi
23f6b2f9
PB
4267fi
4268
23f6b2f9
PB
4269
4270
55ffb5ed 4271
1c710c3c
DJ
4272if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4274set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4275echo "$as_me:$LINENO: checking for $ac_word" >&5
4276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4277if test "${ac_cv_prog_GNATBIND+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4279else
4280 if test -n "$GNATBIND"; then
4281 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4282else
1c710c3c
DJ
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4290 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 break 2
4293 fi
4294done
4295done
4296
55ffb5ed
NN
4297fi
4298fi
1c710c3c 4299GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4300if test -n "$GNATBIND"; then
2aeb72e9
DD
4301 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4302echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4303else
2aeb72e9
DD
4304 echo "$as_me:$LINENO: result: no" >&5
4305echo "${ECHO_T}no" >&6
55ffb5ed
NN
4306fi
4307
1c710c3c 4308fi
55ffb5ed 4309if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4310 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4311 # Extract the first word of "gnatbind", so it can be a program name with args.
4312set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4313echo "$as_me:$LINENO: checking for $ac_word" >&5
4314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4315if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4317else
1c710c3c
DJ
4318 if test -n "$ac_ct_GNATBIND"; then
4319 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4320else
1c710c3c
DJ
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4328 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332done
4333done
4334
2aeb72e9 4335 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4336fi
4337fi
1c710c3c
DJ
4338ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4339if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4340 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4341echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4342else
2aeb72e9
DD
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
55ffb5ed
NN
4345fi
4346
2aeb72e9 4347 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4348else
1c710c3c 4349 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4350fi
4351
1c710c3c
DJ
4352if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4354set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4355echo "$as_me:$LINENO: checking for $ac_word" >&5
4356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4357if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4359else
4360 if test -n "$GNATMAKE"; then
4361 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4362else
1c710c3c
DJ
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4370 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374done
4375done
4376
5305be7e
RG
4377fi
4378fi
1c710c3c 4379GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4380if test -n "$GNATMAKE"; then
2aeb72e9
DD
4381 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4382echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4383else
2aeb72e9
DD
4384 echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6
5305be7e
RG
4386fi
4387
1c710c3c 4388fi
5305be7e 4389if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4390 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4391 # Extract the first word of "gnatmake", so it can be a program name with args.
4392set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4393echo "$as_me:$LINENO: checking for $ac_word" >&5
4394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4395if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4397else
1c710c3c
DJ
4398 if test -n "$ac_ct_GNATMAKE"; then
4399 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4400else
1c710c3c
DJ
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4408 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4411 fi
4412done
4413done
4414
2aeb72e9 4415 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4416fi
4417fi
1c710c3c
DJ
4418ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4419if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4420 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4421echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4422else
2aeb72e9
DD
4423 echo "$as_me:$LINENO: result: no" >&5
4424echo "${ECHO_T}no" >&6
5305be7e
RG
4425fi
4426
2aeb72e9 4427 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4428else
1c710c3c 4429 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4430fi
4431
2aeb72e9
DD
4432echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4433echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4434if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4436else
4437 cat >conftest.adb <<EOF
4438procedure conftest is begin null; end conftest;
4439EOF
4440acx_cv_cc_gcc_supports_ada=no
4441# There is a bug in old released versions of GCC which causes the
4442# driver to exit successfully when the appropriate language module
4443# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4444# Therefore we must check for the error message as well as an
4445# unsuccessful exit.
1db673ca
RO
4446# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4447# given a .adb file, but produce no object file. So we must check
4448# if an object file was really produced to guard against this.
55ffb5ed 4449errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4450if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4451 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4452fi
4453rm -f conftest.*
4454fi
2aeb72e9
DD
4455echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4456echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4457
5305be7e 4458if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4459 have_gnat=yes
4460else
4461 have_gnat=no
4462fi
4463
2aeb72e9
DD
4464echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4465echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4466if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4468else
4469 echo abfoo >t1
4470 echo cdfoo >t2
4471 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4472 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4473 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4474 :
4475 else
4476 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4477 fi
4478 fi
a76494aa
PB
4479 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4480 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4481 :
a76494aa
PB
4482 else
4483 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4484 fi
4485 fi
4486 rm t1 t2
4487
4488fi
2aeb72e9
DD
4489echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4490echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4491do_compare="$gcc_cv_prog_cmp_skip"
4492
4493
55ffb5ed 4494
bebf829d 4495# Check for GMP and MPFR
e69bf64b 4496gmplibs="-lmpfr -lgmp"
6de9cd9a 4497gmpinc=
e69bf64b
PB
4498have_gmp=no
4499
bebf829d
PB
4500# Specify a location for mpfr
4501# check for this first so it ends up on the link line before gmp.
1c710c3c 4502
2aeb72e9 4503# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4504if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4505 withval="$with_mpfr_dir"
4506 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4507Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4508echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4509Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4510 { (exit 1); exit 1; }; }
2aeb72e9 4511fi;
bebf829d
PB
4512
4513
2aeb72e9 4514# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4515if test "${with_mpfr+set}" = set; then
2aeb72e9 4516 withval="$with_mpfr"
1c710c3c 4517
2aeb72e9 4518fi;
bebf829d 4519
2aeb72e9 4520# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4521if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4522 withval="$with_mpfr_include"
1c710c3c 4523
2aeb72e9 4524fi;
8a877c9c 4525
2aeb72e9 4526# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4527if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4528 withval="$with_mpfr_lib"
8a877c9c 4529
2aeb72e9 4530fi;
bebf829d
PB
4531
4532if test "x$with_mpfr" != x; then
4533 gmplibs="-L$with_mpfr/lib $gmplibs"
4534 gmpinc="-I$with_mpfr/include"
4535fi
8a877c9c
KG
4536if test "x$with_mpfr_include" != x; then
4537 gmpinc="-I$with_mpfr_include"
4538fi
4539if test "x$with_mpfr_lib" != x; then
4540 gmplibs="-L$with_mpfr_lib $gmplibs"
4541fi
e69bf64b
PB
4542if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4543 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4544 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4545 # Do not test the mpfr version. Assume that it is sufficient, since
4546 # it is in the source tree, and the library has not been built yet
4547 # but it would be included on the link line in the version check below
4548 # hence making the test fail.
4549 have_gmp=yes
4550fi
bebf829d 4551
6de9cd9a 4552# Specify a location for gmp
1c710c3c 4553
2aeb72e9 4554# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4555if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4556 withval="$with_gmp_dir"
4557 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4558Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4559echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4560Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4561 { (exit 1); exit 1; }; }
2aeb72e9 4562fi;
6de9cd9a 4563
6de9cd9a 4564
2aeb72e9 4565# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4566if test "${with_gmp+set}" = set; then
2aeb72e9 4567 withval="$with_gmp"
1c710c3c 4568
2aeb72e9 4569fi;
6de9cd9a 4570
2aeb72e9 4571# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4572if test "${with_gmp_include+set}" = set; then
2aeb72e9 4573 withval="$with_gmp_include"
1c710c3c 4574
2aeb72e9 4575fi;
8a877c9c 4576
2aeb72e9 4577# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4578if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4579 withval="$with_gmp_lib"
8a877c9c 4580
2aeb72e9 4581fi;
8a877c9c 4582
6de9cd9a 4583
bebf829d
PB
4584if test "x$with_gmp" != x; then
4585 gmplibs="-L$with_gmp/lib $gmplibs"
4586 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4587fi
8a877c9c
KG
4588if test "x$with_gmp_include" != x; then
4589 gmpinc="-I$with_gmp_include $gmpinc"
4590fi
4591if test "x$with_gmp_lib" != x; then
4592 gmplibs="-L$with_gmp_lib $gmplibs"
4593fi
e69bf64b
PB
4594if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4595 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4596 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4597 # Do not test the gmp version. Assume that it is sufficient, since
4598 # it is in the source tree, and the library has not been built yet
4599 # but it would be included on the link line in the version check below
4600 # hence making the test fail.
4601 have_gmp=yes
4602fi
6de9cd9a 4603
d943d7c4 4604if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4605 have_gmp=yes
4606 saved_CFLAGS="$CFLAGS"
4607 CFLAGS="$CFLAGS $gmpinc"
4608 # Check GMP actually works
2aeb72e9
DD
4609 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4610echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4611
4612cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h. */
6de9cd9a 4618#include "gmp.h"
1c710c3c
DJ
4619int
4620main ()
4621{
6de9cd9a 4622
e69bf64b
PB
4623 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4624 choke me
4625 #endif
1c710c3c
DJ
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631rm -f conftest.$ac_objext
2aeb72e9
DD
4632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4634 ac_status=$?
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4639 (exit $ac_status); } &&
4640 { ac_try='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 echo "$as_me:$LINENO: result: yes" >&5
4654echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
2aeb72e9
DD
4659echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4661fi
2aeb72e9 4662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4663
e69bf64b
PB
4664 if test x"$have_gmp" = xyes; then
4665 saved_LIBS="$LIBS"
4666 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4667 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4668echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4669 cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
70ec446f 4675#include <gmp.h>
e69bf64b 4676 #include <mpfr.h>
1c710c3c
DJ
4677int
4678main ()
4679{
e48d66a9 4680
36c713e0 4681 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
e69bf64b
PB
4682 choke me
4683 #endif
54e433bc
MK
4684 mpfr_t n;
4685 mpfr_t x;
e69bf64b 4686 int t;
54e433bc
MK
4687 mpfr_init (n);
4688 mpfr_init (x);
e69bf64b
PB
4689 mpfr_atan2 (n, n, x, GMP_RNDN);
4690 mpfr_erfc (n, x, GMP_RNDN);
4691 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4692
4693 ;
4694 return 0;
4695}
4696_ACEOF
4697rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4699 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4705 (exit $ac_status); } &&
4706 { ac_try='test -z "$ac_c_werror_flag"
4707 || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
1c710c3c
DJ
4719 cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
a3993f33 4725#include <gmp.h>
e69bf64b 4726 #include <mpfr.h>
1c710c3c
DJ
4727int
4728main ()
4729{
a3993f33 4730
36c713e0 4731 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
4732 choke me
4733 #endif
4734 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4735
4736 ;
4737 return 0;
4738}
4739_ACEOF
4740rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4742 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4743 ac_status=$?
4744 grep -v '^ *+' conftest.er1 >conftest.err
4745 rm -f conftest.er1
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4748 (exit $ac_status); } &&
4749 { ac_try='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try='test -s conftest$ac_exeext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 echo "$as_me:$LINENO: result: yes" >&5
4763echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4764else
4765 echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
2aeb72e9
DD
4768echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4769echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4770fi
2aeb72e9 4771rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4772 conftest$ac_exeext conftest.$ac_ext
4773else
4774 echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
2aeb72e9
DD
4777echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4779fi
2aeb72e9 4780rm -f conftest.err conftest.$ac_objext \
1c710c3c 4781 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4782 LIBS="$saved_LIBS"
4783 fi
4784 CFLAGS="$saved_CFLAGS"
6de9cd9a 4785
e69bf64b 4786 if test x$have_gmp != xyes; then
36c713e0 4787 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
1c710c3c
DJ
4788Try the --with-gmp and/or --with-mpfr options to specify their locations.
4789Copies of these libraries' source code can be found at their respective
4790hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4791See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4792If you obtained GMP and/or MPFR from a vendor distribution package, make
4793sure that you have installed both the libraries and the header files.
4794They may be located in separate packages." >&5
36c713e0 4795echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
ca558912
KG
4796Try the --with-gmp and/or --with-mpfr options to specify their locations.
4797Copies of these libraries' source code can be found at their respective
4798hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4799See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4800If you obtained GMP and/or MPFR from a vendor distribution package, make
4801sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4802They may be located in separate packages." >&2;}
4803 { (exit 1); exit 1; }; }
e69bf64b 4804 fi
70ec446f
KG
4805fi
4806
bebf829d 4807# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4808
4809
4810
f8bf9252
SP
4811
4812# Check for PPL
4813ppl_major_version=0
4814ppl_minor_version=10
0a280b35 4815ppllibs=" -lppl_c -lppl -lgmpxx "
f8bf9252
SP
4816pplinc=
4817
4818
4819# Check whether --with-ppl or --without-ppl was given.
4820if test "${with_ppl+set}" = set; then
4821 withval="$with_ppl"
4822
4823fi;
4824
4825# Check whether --with-ppl_include or --without-ppl_include was given.
4826if test "${with_ppl_include+set}" = set; then
4827 withval="$with_ppl_include"
4828
4829fi;
4830
4831# Check whether --with-ppl_lib or --without-ppl_lib was given.
4832if test "${with_ppl_lib+set}" = set; then
4833 withval="$with_ppl_lib"
4834
4835fi;
4836
53095c56
SP
4837case $with_ppl in
4838 no)
4839 ppllibs=
4840 ;;
4841 *)
4842 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
4843 pplinc="-I$with_ppl/include $pplinc"
4844 LIBS="$ppllibs $LIBS"
4845 ;;
4846esac
f8bf9252
SP
4847if test "x$with_ppl_include" != x; then
4848 pplinc="-I$with_ppl_include $pplinc"
4849fi
4850if test "x$with_ppl_lib" != x; then
4851 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
4852 LIBS="$ppllibs $LIBS"
4853fi
4854if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
4855 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
4856 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
4857 LIBS="$ppllibs $LIBS"
4858fi
4859
d789184e
SP
4860# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
4861if test "${enable_ppl_version_check+set}" = set; then
4862 enableval="$enable_ppl_version_check"
4863 ENABLE_PPL_CHECK=$enableval
4864else
4865 ENABLE_PPL_CHECK=yes
f8bf9252
SP
4866fi;
4867
d789184e
SP
4868if test "${ENABLE_PPL_CHECK}" = "yes"; then
4869 saved_CFLAGS="$CFLAGS"
4870 CFLAGS="$CFLAGS $pplinc $gmpinc"
4871 echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
f8bf9252 4872echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
d789184e 4873 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
4874/* confdefs.h. */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h. */
4879#include "ppl_c.h"
4880int
4881main ()
4882{
4883
d789184e
SP
4884 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
4885 choke me
4886 #endif
f8bf9252
SP
4887
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892rm -f conftest.$ac_objext
4893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894 (eval $ac_compile) 2>conftest.er1
4895 ac_status=$?
4896 grep -v '^ *+' conftest.er1 >conftest.err
4897 rm -f conftest.er1
4898 cat conftest.err >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -z "$ac_c_werror_flag"
4902 || test ! -s conftest.err'
4903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 (eval $ac_try) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); }; } &&
4908 { ac_try='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 echo "$as_me:$LINENO: result: yes" >&5
4915echo "${ECHO_T}yes" >&6
4916else
4917 echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920echo "$as_me:$LINENO: result: no" >&5
d789184e 4921echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
f8bf9252
SP
4922fi
4923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
4924 CFLAGS="$saved_CFLAGS"
4925fi
4926
4927# Flags needed for PPL
4928
4929
f8bf9252 4930
f8bf9252 4931
d789184e 4932# Check for CLOOG
23d9794a 4933clooglibs=" -lcloog "
d789184e
SP
4934clooginc=" -DCLOOG_PPL_BACKEND "
4935
4936
4937# Check whether --with-cloog or --without-cloog was given.
4938if test "${with_cloog+set}" = set; then
4939 withval="$with_cloog"
4940
4941fi;
4942
4943# Check whether --with-cloog_include or --without-cloog_include was given.
4944if test "${with_cloog_include+set}" = set; then
4945 withval="$with_cloog_include"
4946
4947fi;
4948
4949# Check whether --with-cloog_lib or --without-cloog_lib was given.
4950if test "${with_cloog_lib+set}" = set; then
4951 withval="$with_cloog_lib"
4952
4953fi;
4954
53095c56
SP
4955case $with_cloog in
4956 no)
4957 clooglibs=
4958 clooginc=
4959 ;;
4960 *)
4961 clooglibs="-L$with_cloog/lib -lcloog"
4962 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
4963 LIBS="$clooglibs $LIBS"
4964 ;;
4965esac
d789184e
SP
4966if test "x$with_cloog_include" != x; then
4967 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
4968fi
4969if test "x$with_cloog_lib" != x; then
4970 clooglibs="-L$with_cloog_lib -lcloog"
4971 LIBS="$clooglibs $LIBS"
4972fi
4973if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
4974 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
4975 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
4976 LIBS="$clooglibs $LIBS"
4977fi
4978
4979# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
4980if test "${enable_cloog_version_check+set}" = set; then
4981 enableval="$enable_cloog_version_check"
4982 ENABLE_CLOOG_CHECK=$enableval
4983else
4984 ENABLE_CLOOG_CHECK=yes
4985fi;
4986
4987if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
4988 saved_CFLAGS="$CFLAGS"
4989 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
4990 echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
f8bf9252 4991echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
d789184e 4992 cat >conftest.$ac_ext <<_ACEOF
f8bf9252
SP
4993/* confdefs.h. */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h. */
4998#include "cloog/cloog.h"
4999int
5000main ()
5001{
5002
d789184e
SP
5003 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5004 choke me
5005 #endif
f8bf9252
SP
5006
5007 ;
5008 return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext
5012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013 (eval $ac_compile) 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest.$ac_objext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6
5035else
5036 echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
5041fi
5042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5043 CFLAGS="$saved_CFLAGS"
5044fi
f8bf9252
SP
5045
5046# Flags needed for CLOOG
5047
5048
5049
5050
1e0f07d3 5051# By default, C is the only stage 1 language.
e1888513 5052stage1_languages=,c,
2805b53a 5053
55ffb5ed
NN
5054# Figure out what language subdirectories are present.
5055# Look if the user specified --enable-languages="..."; if not, use
5056# the environment variable $LANGUAGES if defined. $LANGUAGES might
5057# go away some day.
5058# NB: embedded tabs in this IF block -- do not untabify
5059if test -d ${srcdir}/gcc; then
5060 if test x"${enable_languages+set}" != xset; then
5061 if test x"${LANGUAGES+set}" = xset; then
5062 enable_languages="${LANGUAGES}"
5063 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5064 else
5065 enable_languages=all
5066 fi
5067 else
5068 if test x"${enable_languages}" = x ||
5069 test x"${enable_languages}" = xyes;
5070 then
5071 echo configure.in: --enable-languages needs at least one language argument 1>&2
5072 exit 1
5073 fi
5074 fi
5075 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5076
7f26dfa3
FXC
5077 # 'f95' is the old name for the 'fortran' language. We issue a warning
5078 # and make the substitution.
5079 case ,${enable_languages}, in
5080 *,f95,*)
5081 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5082 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5083 ;;
5084 esac
5085
55ffb5ed
NN
5086 # First scan to see if an enabled language requires some other language.
5087 # We assume that a given config-lang.in will list all the language
5088 # front ends it requires, even if some are required indirectly.
5089 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5090 case ${lang_frag} in
5091 ..) ;;
5092 # The odd quoting in the next line works around
5093 # an apparent bug in bash 1.12 on linux.
5094 ${srcdir}/gcc/[*]/config-lang.in) ;;
5095 *)
5096 # From the config-lang.in, get $language, $lang_requires
5097 language=
5098 lang_requires=
5099 . ${lang_frag}
5100 for other in ${lang_requires} ; do
5101 case ,${enable_languages}, in
5102 *,$other,*) ;;
5103 *,all,*) ;;
5104 *,$language,*)
5105 echo " \`$other' language required by \`$language'; enabling" 1>&2
5106 enable_languages="${enable_languages},${other}"
5107 ;;
5108 esac
5109 done
5110 ;;
5111 esac
5112 done
5113
e1888513 5114 new_enable_languages=,c,
55ffb5ed 5115 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 5116 potential_languages=,c,
55ffb5ed
NN
5117
5118 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5119 case ${lang_frag} in
5120 ..) ;;
5121 # The odd quoting in the next line works around
5122 # an apparent bug in bash 1.12 on linux.
5123 ${srcdir}/gcc/[*]/config-lang.in) ;;
5124 *)
1c710c3c 5125 # From the config-lang.in, get $language, $target_libs,
2805b53a 5126 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
5127 language=
5128 target_libs=
5129 lang_dirs=
1546bb64 5130 subdir_requires=
e1888513
PB
5131 boot_language=no
5132 build_by_default=yes
55ffb5ed 5133 . ${lang_frag}
e1888513
PB
5134 if test x${language} = x; then
5135 echo "${lang_frag} doesn't set \$language." 1>&2
5136 exit 1
5137 fi
5138
5139 case ,${enable_languages}, in
5140 *,${language},*)
55ffb5ed
NN
5141 # Language was explicitly selected; include it.
5142 add_this_lang=yes
5143 ;;
e1888513
PB
5144 *,all,*)
5145 # 'all' was selected, select it if it is a default language
5146 add_this_lang=${build_by_default}
55ffb5ed
NN
5147 ;;
5148 *)
5149 add_this_lang=no
5150 ;;
5151 esac
6de9cd9a 5152
1546bb64 5153 # Disable languages that need other directories if these aren't available.
95695ad3 5154 for i in $subdir_requires; do
b6348cb3 5155 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
5156 case ,${enable_languages}, in
5157 *,${language},*)
5158 # Specifically requested language; tell them.
1c710c3c
DJ
5159 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
5160echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
5161 { (exit 1); exit 1; }; }
1546bb64
PB
5162 ;;
5163 *)
5164 # Silently disable.
e1888513 5165 add_this_lang=unsupported
1546bb64
PB
5166 ;;
5167 esac
5168 done
5169
e1888513
PB
5170 # Disable Ada if no preexisting GNAT is available.
5171 case ,${enable_languages},:${language}:${have_gnat} in
5172 *,${language},*:ada:no)
5173 # Specifically requested language; tell them.
1c710c3c
DJ
5174 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
5175echo "$as_me: error: GNAT is required to build $language" >&2;}
5176 { (exit 1); exit 1; }; }
e1888513
PB
5177 ;;
5178 *:ada:no)
5179 # Silently disable.
5180 add_this_lang=unsupported
5181 ;;
5182 esac
5183
4fab7234
HPN
5184 # Disable a language that is unsupported by the target.
5185 case " $unsupported_languages " in
5186 *" $language "*)
e1888513 5187 add_this_lang=unsupported
4fab7234
HPN
5188 ;;
5189 esac
5190
6de9cd9a 5191 case $add_this_lang in
e1888513 5192 unsupported)
55ffb5ed 5193 # Remove language-dependent dirs.
2805b53a
NN
5194 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5195 ;;
e1888513
PB
5196 no)
5197 # Remove language-dependent dirs; still show language as supported.
5198 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5199 potential_languages="${potential_languages}${language},"
5200 ;;
5201 yes)
5202 new_enable_languages="${new_enable_languages}${language},"
5203 potential_languages="${potential_languages}${language},"
2805b53a
NN
5204 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5205 case ${boot_language} in
5206 yes)
340de83f 5207 # Add to (comma-separated) list of stage 1 languages.
e1888513 5208 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
5209 ;;
5210 esac
5211 ;;
55ffb5ed
NN
5212 esac
5213 ;;
5214 esac
5215 done
5216
2aeb72e9 5217 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 5218if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
5219 enableval="$enable_stage1_languages"
5220 case ,${enable_stage1_languages}, in
e1888513
PB
5221 ,no,|,,)
5222 # Set it to something that will have no effect in the loop below
5223 enable_stage1_languages=c ;;
5224 ,yes,)
5225 enable_stage1_languages=`echo $new_enable_languages | \
5226 sed -e "s/^,//" -e "s/,$//" ` ;;
5227 *,all,*)
5228 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5229 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5230 esac
5231
5232 # Add "good" languages from enable_stage1_languages to stage1_languages,
5233 # while "bad" languages go in missing_languages. Leave no duplicates.
5234 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5235 case $potential_languages in
5236 *,$i,*)
5237 case $stage1_languages in
5238 *,$i,*) ;;
5239 *) stage1_languages="$stage1_languages$i," ;;
5240 esac ;;
5241 *)
5242 case $missing_languages in
5243 *,$i,*) ;;
5244 *) missing_languages="$missing_languages$i," ;;
5245 esac ;;
5246 esac
5247 done
2aeb72e9 5248fi;
e1888513
PB
5249
5250 # Remove leading/trailing commas that were added for simplicity
5251 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 5252 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
5253 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5254 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5255
55ffb5ed 5256 if test "x$missing_languages" != x; then
1c710c3c 5257 { { echo "$as_me:$LINENO: error:
0cf085e4 5258The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
5259Supported languages are: ${potential_languages}" >&5
5260echo "$as_me: error:
5261The following requested languages could not be built: ${missing_languages}
5262Supported languages are: ${potential_languages}" >&2;}
5263 { (exit 1); exit 1; }; }
55ffb5ed 5264 fi
55ffb5ed
NN
5265 if test "x$new_enable_languages" != "x$enable_languages"; then
5266 echo The following languages will be built: ${new_enable_languages}
e1888513 5267 enable_languages="$new_enable_languages"
55ffb5ed 5268 fi
e1888513 5269
1c710c3c 5270
b2eaac4a 5271 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
5272fi
5273
27079765
AH
5274# Handle --disable-<component> generically.
5275for dir in $configdirs $build_configdirs $target_configdirs ; do
5276 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
5277 varname=`echo $dirname | sed -e s/+/_/g`
5278 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
5279 noconfigdirs="$noconfigdirs $dir"
5280 fi
5281done
5282
7cd0cf9c 5283# Check for Boehm's garbage collector
2aeb72e9 5284# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 5285if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
5286 enableval="$enable_objc_gc"
5287 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 5288 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
5289 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
5290echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
5291 { (exit 1); exit 1; }; }
7cd0cf9c
DA
5292 ;;
5293esac
2aeb72e9 5294fi;
7cd0cf9c
DA
5295
5296# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
5297case ,${enable_languages},:${enable_objc_gc} in
5298 *,objc,*:yes)
7cd0cf9c
DA
5299 # Keep target-boehm-gc if requested for Objective-C.
5300 ;;
7cd0cf9c 5301 *)
2a79fd67
DA
5302 # Otherwise remove target-boehm-gc depending on target-libjava.
5303 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5304 noconfigdirs="$noconfigdirs target-boehm-gc"
5305 fi
7cd0cf9c
DA
5306 ;;
5307esac
5308
ee6a22df
L
5309# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5310# $build_configdirs and $target_configdirs.
55ffb5ed
NN
5311# If we have the source for $noconfigdirs entries, add them to $notsupp.
5312
5313notsupp=""
5314for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 5315 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
5316 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5317 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5318 if test -r $srcdir/$dirname/configure ; then
5319 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5320 true
5321 else
5322 notsupp="$notsupp $dir"
5323 fi
5324 fi
5325 fi
ee6a22df
L
5326 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5327 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5328 if test -r $srcdir/$dirname/configure ; then
5329 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5330 true
5331 else
5332 notsupp="$notsupp $dir"
5333 fi
5334 fi
5335 fi
55ffb5ed
NN
5336 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5337 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5338 if test -r $srcdir/$dirname/configure ; then
5339 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5340 true
5341 else
5342 notsupp="$notsupp $dir"
5343 fi
5344 fi
5345 fi
5346done
5347
5348# Sometimes the tools are distributed with libiberty but with no other
5349# libraries. In that case, we don't want to build target-libiberty.
54fdc474 5350# Don't let libgcc imply libiberty either.
55ffb5ed 5351if test -n "${target_configdirs}" ; then
54fdc474 5352 libgcc=
55ffb5ed
NN
5353 others=
5354 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
5355 if test "$i" = "libgcc"; then
5356 libgcc=target-libgcc
5357 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
5358 if test -r $srcdir/$i/configure ; then
5359 others=yes;
5360 break;
5361 fi
5362 fi
5363 done
5364 if test -z "${others}" ; then
54fdc474 5365 target_configdirs=$libgcc
55ffb5ed
NN
5366 fi
5367fi
5368
5369# Quietly strip out all directories which aren't configurable in this tree.
5370# This relies on all configurable subdirectories being autoconfiscated, which
5371# is now the case.
23f6b2f9
PB
5372build_configdirs_all="$build_configdirs"
5373build_configdirs=
5374for i in ${build_configdirs_all} ; do
1c710c3c 5375 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5376 if test -f ${srcdir}/$j/configure ; then
5377 build_configdirs="${build_configdirs} $i"
5378 fi
5379done
5380
55ffb5ed
NN
5381configdirs_all="$configdirs"
5382configdirs=
5383for i in ${configdirs_all} ; do
5384 if test -f ${srcdir}/$i/configure ; then
5385 configdirs="${configdirs} $i"
5386 fi
5387done
23f6b2f9 5388
55ffb5ed
NN
5389target_configdirs_all="$target_configdirs"
5390target_configdirs=
5391for i in ${target_configdirs_all} ; do
1c710c3c 5392 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5393 if test -f ${srcdir}/$j/configure ; then
5394 target_configdirs="${target_configdirs} $i"
5395 fi
5396done
5397
5398# Produce a warning message for the subdirs we can't configure.
5399# This isn't especially interesting in the Cygnus tree, but in the individual
5400# FSF releases, it's important to let people know when their machine isn't
5401# supported by the one or two programs in a package.
5402
5403if test -n "${notsupp}" && test -z "${norecursion}" ; then
5404 # If $appdirs is non-empty, at least one of those directories must still
5405 # be configured, or we error out. (E.g., if the gas release supports a
5406 # specified target in some subdirs but not the gas subdir, we shouldn't
5407 # pretend that all is well.)
5408 if test -n "$appdirs" ; then
5409 for dir in $appdirs ; do
5410 if test -r $dir/Makefile.in ; then
5411 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5412 appdirs=""
5413 break
5414 fi
23f6b2f9 5415 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5416 appdirs=""
5417 break
5418 fi
5419 fi
5420 done
5421 if test -n "$appdirs" ; then
5422 echo "*** This configuration is not supported by this package." 1>&2
5423 exit 1
5424 fi
5425 fi
5426 # Okay, some application will build, or we don't care to check. Still
5427 # notify of subdirs not getting built.
5428 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5429 echo " ${notsupp}" 1>&2
5430 echo " (Any other directories should still work fine.)" 1>&2
5431fi
5432
5433case "$host" in
5434 *msdosdjgpp*)
5435 enable_gdbtk=no ;;
5436esac
5437
c3a86da9
DJ
5438# To find our prefix, in gcc_cv_tool_prefix.
5439
5440# The user is always right.
5441if test "${PATH_SEPARATOR+set}" != set; then
5442 echo "#! /bin/sh" >conf$$.sh
5443 echo "exit 0" >>conf$$.sh
5444 chmod +x conf$$.sh
5445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5446 PATH_SEPARATOR=';'
5447 else
5448 PATH_SEPARATOR=:
5449 fi
5450 rm -f conf$$.sh
5451fi
5452
5453
5454
5455if test "x$exec_prefix" = xNONE; then
5456 if test "x$prefix" = xNONE; then
5457 gcc_cv_tool_prefix=$ac_default_prefix
5458 else
5459 gcc_cv_tool_prefix=$prefix
5460 fi
5461else
5462 gcc_cv_tool_prefix=$exec_prefix
5463fi
5464
5465# If there is no compiler in the tree, use the PATH only. In any
5466# case, if there is no compiler in the tree nobody should use
5467# AS_FOR_TARGET and LD_FOR_TARGET.
5468if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5469 gcc_version=`cat $srcdir/gcc/BASE-VER`
5470 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5471 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5472 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5473 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5474 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5475 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5476else
5477 gcc_cv_tool_dirs=
5478fi
5479
5480if test x$build = x$target && test -n "$md_exec_prefix"; then
5481 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5482fi
5483
5484
5485
55ffb5ed
NN
5486copy_dirs=
5487
1c710c3c 5488
2aeb72e9 5489# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5490if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5491 withval="$with_build_sysroot"
5492 if test x"$withval" != x ; then
526635cb
MM
5493 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5494 fi
5495else
5496 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5497fi;
526635cb
MM
5498
5499
c8aea42c
PB
5500
5501# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5502if test "${with_debug_prefix_map+set}" = set; then
5503 withval="$with_debug_prefix_map"
5504 if test x"$withval" != x; then
5505 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5506 for debug_map in $withval; do
5507 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5508 done
5509 fi
5510else
5511 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5512fi;
5513
5514
1c8bd6a3
PB
5515# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5516# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5517# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5518# We want to ensure that TARGET libraries (which we know are built with
5519# gcc) are built with "-O2 -g", so include those options when setting
5520# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5521if test "x$CFLAGS_FOR_TARGET" = x; then
5522 CFLAGS_FOR_TARGET=$CFLAGS
5523 case " $CFLAGS " in
5524 *" -O2 "*) ;;
5525 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5526 esac
5527 case " $CFLAGS " in
5528 *" -g "* | *" -g3 "*) ;;
5529 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5530 esac
5531fi
5532
5533
5534if test "x$CXXFLAGS_FOR_TARGET" = x; then
5535 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5536 case " $CXXFLAGS " in
5537 *" -O2 "*) ;;
5538 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5539 esac
5540 case " $CXXFLAGS " in
5541 *" -g "* | *" -g3 "*) ;;
5542 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5543 esac
5544fi
5545
5546
55ffb5ed
NN
5547# Handle --with-headers=XXX. If the value is not "yes", the contents of
5548# the named directory are copied to $(tooldir)/sys-include.
5549if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5550 if test x${is_cross_compiler} = xno ; then
5551 echo 1>&2 '***' --with-headers is only supported when cross compiling
5552 exit 1
5553 fi
5554 if test x"${with_headers}" != xyes ; then
c3a86da9 5555 x=${gcc_cv_tool_prefix}
1c710c3c 5556 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5557 fi
5558fi
5559
5560# Handle --with-libs=XXX. If the value is not "yes", the contents of
5561# the name directories are copied to $(tooldir)/lib. Multiple directories
5562# are permitted.
5563if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5564 if test x${is_cross_compiler} = xno ; then
5565 echo 1>&2 '***' --with-libs is only supported when cross compiling
5566 exit 1
5567 fi
5568 if test x"${with_libs}" != xyes ; then
5569 # Copy the libraries in reverse order, so that files in the first named
5570 # library override files in subsequent libraries.
c3a86da9 5571 x=${gcc_cv_tool_prefix}
55ffb5ed 5572 for l in ${with_libs}; do
1c710c3c 5573 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5574 done
5575 fi
5576fi
5577
e8b05380
PB
5578# Set with_gnu_as and with_gnu_ld as appropriate.
5579#
5580# This is done by determining whether or not the appropriate directory
5581# is available, and by checking whether or not specific configurations
5582# have requested that this magic not happen.
1c710c3c
DJ
5583#
5584# The command line options always override the explicit settings in
e8b05380
PB
5585# configure.in, and the settings in configure.in override this magic.
5586#
1c710c3c 5587# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5588# want to do that, then you should use the --without-gnu-as and
5589# --without-gnu-ld options for the configure script.
5590
5591if test x${use_gnu_as} = x &&
5592 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5593 with_gnu_as=yes
5594 extra_host_args="$extra_host_args --with-gnu-as"
5595fi
5596
5597if test x${use_gnu_ld} = x &&
5afab7ad 5598 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
5599 with_gnu_ld=yes
5600 extra_host_args="$extra_host_args --with-gnu-ld"
5601fi
5602
5603# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5604# can detect this case.
5605
5606if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5607 with_newlib=yes
5608 extra_host_args="$extra_host_args --with-newlib"
5609fi
5610
55ffb5ed
NN
5611# Handle ${copy_dirs}
5612set fnord ${copy_dirs}
5613shift
5614while test $# != 0 ; do
5615 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5616 :
5617 else
5618 echo Copying $1 to $2
5619
5620 # Use the install script to create the directory and all required
5621 # parent directories.
5622 if test -d $2 ; then
5623 :
5624 else
5625 echo >config.temp
5626 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5627 fi
5628
5629 # Copy the directory, assuming we have tar.
5630 # FIXME: Should we use B in the second tar? Not all systems support it.
5631 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5632
5633 # It is the responsibility of the user to correctly adjust all
5634 # symlinks. If somebody can figure out how to handle them correctly
5635 # here, feel free to add the code.
5636
5637 echo $1 > $2/COPIED
5638 fi
5639 shift; shift
5640done
5641
e8b05380
PB
5642# Determine a target-dependent exec_prefix that the installed
5643# gcc will search in. Keep this list sorted by triplet, with
5644# the *-*-osname triplets last.
5645md_exec_prefix=
5646case "${target}" in
5647 alpha*-*-*vms*)
5648 md_exec_prefix=/gnu/lib/gcc-lib
5649 ;;
30b74385 5650 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5651 md_exec_prefix=/dev/env/DJDIR/bin
5652 ;;
30b74385 5653 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5654 if test $with_gnu_as = yes; then
5655 md_exec_prefix=/usr/gnu/bin
5656 else
5657 md_exec_prefix=/usr/ccs/bin/elf
5658 fi
5659 ;;
5660
5661 mn10300-*-* | \
5662 powerpc-*-chorusos* | \
5663 powerpc*-*-eabi* | \
5664 powerpc*-*-sysv* | \
5665 powerpc*-*-kaos* | \
5666 s390x-ibm-tpf*)
5667 md_exec_prefix=/usr/ccs/bin
5668 ;;
5669 sparc64-*-elf*)
5670 ;;
5671 v850*-*-*)
5672 md_exec_prefix=/usr/ccs/bin
5673 ;;
aa12a573 5674 xtensa*-*-elf*)
e8b05380
PB
5675 ;;
5676
5677 *-*-beos* | \
5678 *-*-elf* | \
5679 *-*-hpux* | \
5680 *-*-netware* | \
5681 *-*-nto-qnx* | \
5682 *-*-rtems* | \
5683 *-*-solaris2* | \
30b74385 5684 *-*-sysv[45]* | \
e8b05380
PB
5685 *-*-vxworks* | \
5686 *-wrs-windiss)
5687 md_exec_prefix=/usr/ccs/bin
5688 ;;
5689esac
5690
671aa708
NN
5691extra_arflags_for_target=
5692extra_nmflags_for_target=
5693extra_ranlibflags_for_target=
5694target_makefile_frag=/dev/null
5695case "${target}" in
3e19841a
PB
5696 mep*-*-*)
5697 target_makefile_frag="config/mt-mep"
5698 ;;
58e24147
AM
5699 spu-*-*)
5700 target_makefile_frag="config/mt-spu"
5701 ;;
4bf6c438
RS
5702 mips*-sde-elf*)
5703 target_makefile_frag="config/mt-sde"
5704 ;;
1ec3b87b
RS
5705 mipsisa*-*-elfoabi*)
5706 target_makefile_frag="config/mt-mips-elfoabi"
5707 ;;
08d0963a
RS
5708 mips*-*-*linux* | mips*-*-gnu*)
5709 target_makefile_frag="config/mt-mips-gnu"
5710 ;;
61fec9ff 5711 *-*-netware*)
671aa708
NN
5712 target_makefile_frag="config/mt-netware"
5713 ;;
416ac4d4 5714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 5715 target_makefile_frag="config/mt-gnu"
671aa708
NN
5716 ;;
5717 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5718 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5719 # commands to handle both 32-bit and 64-bit objects. These flags are
5720 # harmless if we're using GNU nm or ar.
5721 extra_arflags_for_target=" -X32_64"
5722 extra_nmflags_for_target=" -B -X32_64"
5723 ;;
5724 *-*-darwin*)
5725 # ranlib from Darwin requires the -c flag to look at common symbols.
5726 extra_ranlibflags_for_target=" -c"
5727 ;;
5728 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5729 target_makefile_frag="config/mt-wince"
5730 ;;
5731esac
5732
5733alphaieee_frag=/dev/null
5734case $target in
5735 alpha*-*-*)
5736 # This just makes sure to use the -mieee option to build target libs.
5737 # This should probably be set individually by each library.
5738 alphaieee_frag="config/mt-alphaieee"
5739 ;;
5740esac
5741
5742# If --enable-target-optspace always use -Os instead of -O2 to build
5743# the target libraries, similarly if it is not specified, use -Os
5744# on selected platforms.
5745ospace_frag=/dev/null
5746case "${enable_target_optspace}:${target}" in
5747 yes:*)
5748 ospace_frag="config/mt-ospace"
5749 ;;
5750 :d30v-*)
5751 ospace_frag="config/mt-d30v"
5752 ;;
5753 :m32r-* | :d10v-* | :fr30-*)
5754 ospace_frag="config/mt-ospace"
5755 ;;
5756 no:* | :*)
5757 ;;
5758 *)
5759 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5760 ;;
5761esac
5762
671aa708
NN
5763# Default to using --with-stabs for certain targets.
5764if test x${with_stabs} = x ; then
5765 case "${target}" in
89a95129 5766 mips*-*-irix[56]*)
671aa708
NN
5767 ;;
5768 mips*-*-* | alpha*-*-osf*)
5769 with_stabs=yes;
5770 extra_host_args="${extra_host_args} --with-stabs"
5771 ;;
5772 esac
5773fi
5774
5775# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5776# them automatically.
5777case "${host}" in
1c710c3c 5778 hppa*64*-*-hpux11*)
671aa708
NN
5779 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5780 ;;
5781esac
5782
671aa708
NN
5783# Some systems (e.g., one of the i386-aix systems the gas testers are
5784# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5785tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5786build_tooldir=${tooldir}
5787
671aa708
NN
5788# Create a .gdbinit file which runs the one in srcdir
5789# and tells GDB to look there for source files.
5790
5791if test -r ${srcdir}/.gdbinit ; then
5792 case ${srcdir} in
5793 .) ;;
5794 *) cat > ./.gdbinit <<EOF
5795# ${NO_EDIT}
5796dir ${srcdir}
5797dir .
5798source ${srcdir}/.gdbinit
5799EOF
5800 ;;
5801 esac
5802fi
5803
671aa708
NN
5804# Make sure that the compiler is able to generate an executable. If it
5805# can't, we are probably in trouble. We don't care whether we can run the
5806# executable--we might be using a cross compiler--we only care whether it
5807# can be created. At this point the main configure script has set CC.
5808we_are_ok=no
5809echo "int main () { return 0; }" > conftest.c
5810${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5811if test $? = 0 ; then
5812 if test -s conftest || test -s conftest.exe ; then
5813 we_are_ok=yes
5814 fi
1c710c3c 5815fi
671aa708
NN
5816case $we_are_ok in
5817 no)
5818 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5819 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5820 rm -f conftest*
5821 exit 1
5822 ;;
5823esac
5824rm -f conftest*
5825
5826# The Solaris /usr/ucb/cc compiler does not appear to work.
5827case "${host}" in
5828 sparc-sun-solaris2*)
5829 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5830 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5831 could_use=
5832 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5833 if test -d /opt/cygnus/bin ; then
5834 if test "$could_use" = "" ; then
5835 could_use="/opt/cygnus/bin"
5836 else
5837 could_use="$could_use or /opt/cygnus/bin"
5838 fi
5839 fi
5840 if test "$could_use" = "" ; then
5841 echo "Warning: compilation may fail because you're using"
5842 echo "/usr/ucb/cc. You should change your PATH or CC "
5843 echo "variable and rerun configure."
5844 else
5845 echo "Warning: compilation may fail because you're using"
5846 echo "/usr/ucb/cc, when you should use the C compiler from"
5847 echo "$could_use. You should change your"
5848 echo "PATH or CC variable and rerun configure."
5849 fi
5850 fi
5851 ;;
5852esac
5853
d89f0ad6 5854# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
5855case "${host}" in
5856 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5857 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 5858 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
5859 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5860esac
5861
d89f0ad6
AL
5862# On systems where the dynamic library environment variable is PATH,
5863# gcc/ will put dynamic libraries into a subdirectory to avoid adding
5864# built executables to PATH.
5865if test "$RPATH_ENVVAR" = PATH; then
5866 GCC_SHLIB_SUBDIR=/shlib
5867else
5868 GCC_SHLIB_SUBDIR=
5869fi
5870
671aa708
NN
5871# Record target_configdirs and the configure arguments for target and
5872# build configuration in Makefile.
5873target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5874build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5875
671aa708
NN
5876# Determine whether gdb needs tk/tcl or not.
5877# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5878# and in that case we want gdb to be built without tk. Ugh!
5879# In fact I believe gdb is the *only* package directly dependent on tk,
5880# so we should be able to put the 'maybe's in unconditionally and
5881# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5882# 100% sure that that's safe though.
e914a571 5883
b4f96efe 5884gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5885case "$enable_gdbtk" in
5886 no)
5887 GDB_TK="" ;;
e914a571
AC
5888 yes)
5889 GDB_TK="${gdb_tk}" ;;
671aa708 5890 *)
e914a571
AC
5891 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5892 # distro. Eventually someone will fix this and move Insight, nee
5893 # gdbtk to a separate directory.
5894 if test -d ${srcdir}/gdb/gdbtk ; then
5895 GDB_TK="${gdb_tk}"
5896 else
5897 GDB_TK=""
5898 fi
5899 ;;
671aa708 5900esac
ef9db8d5
DJ
5901CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5902INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5903
60975492 5904# Strip out unwanted targets.
8b87bb96
NN
5905
5906# While at that, we remove Makefiles if we were started for recursive
5907# configuration, so that the top-level Makefile reconfigures them,
5908# like we used to do when configure itself was recursive.
8b87bb96 5909
60975492
PB
5910# Loop over modules. $extrasub must be used with care, limiting as
5911# much as possible the usage of range addresses. That's because autoconf
5912# splits the sed script to overcome limits in the number of commands,
5913# and relying on carefully-timed sed passes may turn out to be very hard
5914# to maintain later. In this particular case, you just have to be careful
5915# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5916
2aeb72e9 5917# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5918if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5919 enableval="$enable_bootstrap"
5920
f516a7da 5921else
ce521a9c 5922 enable_bootstrap=default
2aeb72e9 5923fi;
f516a7da 5924
ce521a9c
PB
5925# Issue errors and warnings for invalid/strange bootstrap combinations.
5926case "$configdirs" in
5927 *gcc*) have_compiler=yes ;;
5928 *) have_compiler=no ;;
5929esac
5930
5931case "$have_compiler:$host:$target:$enable_bootstrap" in
5932 *:*:*:no) ;;
5933
1ca26cd2 5934 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5935 # and we are in a native configuration.
5936 yes:$build:$build:default)
1ca26cd2 5937 enable_bootstrap=yes ;;
ce521a9c
PB
5938
5939 *:*:*:default)
5940 enable_bootstrap=no ;;
5941
5942 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5943 yes:$build:$build:yes)
ce521a9c
PB
5944 ;;
5945
5946 # Other configurations, but we have a compiler. Assume the user knows
5947 # what he's doing.
2d309510 5948 yes:*:*:yes)
1c710c3c
DJ
5949 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5950echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5951 ;;
5952
5953 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5954 no:*:*:yes)
1c710c3c
DJ
5955 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5956echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5957 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5958
5959 # Fail if wrong command line
5960 *)
1c710c3c
DJ
5961 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5962echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5963 { (exit 1); exit 1; }; }
ce521a9c
PB
5964 ;;
5965esac
5966
5967# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5968case "$enable_bootstrap" in
5969 yes)
5607edfd 5970 bootstrap_suffix=bootstrap ;;
f516a7da 5971 no)
5607edfd 5972 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5973esac
5974
23f6b2f9 5975for module in ${build_configdirs} ; do
5607edfd
PB
5976 if test -z "${no_recursion}" \
5977 && test -f ${build_subdir}/${module}/Makefile; then
5978 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5979 rm -f ${build_subdir}/${module}/Makefile
5980 fi
5981 extrasub="$extrasub
5982/^@if build-$module\$/d
5983/^@endif build-$module\$/d
5984/^@if build-$module-$bootstrap_suffix\$/d
5985/^@endif build-$module-$bootstrap_suffix\$/d"
5986done
5987for module in ${configdirs} ; do
a6fbc1e2 5988 if test -z "${no_recursion}"; then
f063a9ed 5989 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5990 if test -f ${file}; then
5991 echo 1>&2 "*** removing ${file} to force reconfigure"
5992 rm -f ${file}
5993 fi
5994 done
5607edfd
PB
5995 fi
5996 extrasub="$extrasub
5997/^@if $module\$/d
5998/^@endif $module\$/d
5999/^@if $module-$bootstrap_suffix\$/d
6000/^@endif $module-$bootstrap_suffix\$/d"
6001done
6002for module in ${target_configdirs} ; do
6003 if test -z "${no_recursion}" \
6004 && test -f ${target_subdir}/${module}/Makefile; then
6005 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6006 rm -f ${target_subdir}/${module}/Makefile
6007 fi
6008 extrasub="$extrasub
6009/^@if target-$module\$/d
6010/^@endif target-$module\$/d
6011/^@if target-$module-$bootstrap_suffix\$/d
6012/^@endif target-$module-$bootstrap_suffix\$/d"
6013done
6014
60975492
PB
6015extrasub="$extrasub
6016/^@if /,/^@endif /d"
671aa708
NN
6017
6018# Create the serialization dependencies. This uses a temporary file.
6019
2aeb72e9 6020# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 6021if test "${enable_serial_configure+set}" = set; then
2aeb72e9 6022 enableval="$enable_serial_configure"
ade82b16 6023
2aeb72e9 6024fi;
ade82b16 6025
bf1d3e81
NN
6026case ${enable_serial_configure} in
6027 yes)
6028 enable_serial_build_configure=yes
6029 enable_serial_host_configure=yes
6030 enable_serial_target_configure=yes
6031 ;;
6032esac
6033
671aa708
NN
6034# These force 'configure's to be done one at a time, to avoid problems
6035# with contention over a shared config.cache.
6036rm -f serdep.tmp
ade82b16 6037echo '# serdep.tmp' > serdep.tmp
671aa708 6038olditem=
bf1d3e81 6039test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
6040for item in ${build_configdirs} ; do
6041 case ${olditem} in
6042 "") ;;
ade82b16 6043 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
6044 esac
6045 olditem=${item}
6046done
6047olditem=
bf1d3e81 6048test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
6049for item in ${configdirs} ; do
6050 case ${olditem} in
6051 "") ;;
ade82b16 6052 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
6053 esac
6054 olditem=${item}
6055done
6056olditem=
bf1d3e81 6057test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
6058for item in ${target_configdirs} ; do
6059 case ${olditem} in
6060 "") ;;
ade82b16 6061 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
6062 esac
6063 olditem=${item}
6064done
6065serialization_dependencies=serdep.tmp
6066
6067
ade82b16 6068# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
6069# target, nonopt, and variable assignments. These are the ones we
6070# might not want to pass down to subconfigures. Also strip
6071# program-prefix, program-suffix, and program-transform-name, so that
6072# we can pass down a consistent program-transform-name.
6073baseargs=
6074keep_next=no
6075skip_next=no
6076eval "set -- $ac_configure_args"
44bfc3ac
DJ
6077for ac_arg
6078do
1c710c3c
DJ
6079 if test X"$skip_next" = X"yes"; then
6080 skip_next=no
6081 continue
6082 fi
6083 if test X"$keep_next" = X"yes"; then
6084 case $ac_arg in
6085 *\'*)
6086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6087 esac
6088 baseargs="$baseargs '$ac_arg'"
6089 keep_next=no
6090 continue
6091 fi
6092
6093 # Handle separated arguments. Based on the logic generated by
6094 # autoconf 2.59.
6095 case $ac_arg in
6096 *=* | --config-cache | -C | -disable-* | --disable-* \
6097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6099 | -with-* | --with-* | -without-* | --without-* | --x)
6100 separate_arg=no
6101 ;;
6102 -*)
6103 separate_arg=yes
6104 ;;
6105 *)
6106 separate_arg=no
6107 ;;
6108 esac
6109
6110 case "$ac_arg" in
6111 --no*)
6112 continue
6113 ;;
6114 --c* | \
6115 --sr* | \
6116 --ho* | \
6117 --bu* | \
6118 --t* | \
6119 --program-* | \
6120 -cache_file* | \
6121 -srcdir* | \
6122 -host* | \
6123 -build* | \
6124 -target* | \
6125 -program-prefix* | \
6126 -program-suffix* | \
6127 -program-transform-name* )
6128 skip_next=$separate_arg
6129 continue
6130 ;;
6131 -*)
6132 # An option. Add it.
6133 case $ac_arg in
6134 *\'*)
6135 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6136 esac
6137 baseargs="$baseargs '$ac_arg'"
6138 keep_next=$separate_arg
6139 ;;
6140 *)
6141 # Either a variable assignment, or a nonopt (triplet). Don't
6142 # pass it down; let the Makefile handle this.
6143 continue
6144 ;;
6145 esac
6146done
6147# Remove the initial space we just introduced and, as these will be
6148# expanded by make, quote '$'.
6149baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 6150
43bb47c2
DJ
6151# Add in --program-transform-name, after --program-prefix and
6152# --program-suffix have been applied to it. Autoconf has already
6153# doubled dollar signs and backslashes in program_transform_name; we want
6154# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 6155# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
6156# Also, because we want to override the logic in subdir configure scripts to
6157# choose program_transform_name, replace any s,x,x, with s,y,y,.
6158sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6159${program_transform_name}
6160EOF_SED
6161gcc_transform_name=`cat conftestsed.out`
6162rm -f conftestsed.out
6163baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
6164if test "$silent" = yes; then
6165 baseargs="$baseargs --silent"
6166fi
43bb47c2 6167
671aa708
NN
6168# For the build-side libraries, we just need to pretend we're native,
6169# and not use the same cache file. Multilibs are neither needed nor
6170# desired.
e69bf64b 6171build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
6172
6173# For host modules, accept cache file option, or specification as blank.
6174case "${cache_file}" in
6175"") # empty
6176 cache_file_option="" ;;
6177/* | [A-Za-z]:[\\/]* ) # absolute path
6178 cache_file_option="--cache-file=${cache_file}" ;;
6179*) # relative path
6180 cache_file_option="--cache-file=../${cache_file}" ;;
6181esac
6182
09438bde
NN
6183# Host dirs don't like to share a cache file either, horribly enough.
6184# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 6185host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
6186
6187target_configargs=${baseargs}
6188
6189# Passing a --with-cross-host argument lets the target libraries know
6190# whether they are being built with a cross-compiler or being built
6191# native. However, it would be better to use other mechanisms to make the
6192# sorts of decisions they want to make on this basis. Please consider
6193# this option to be deprecated. FIXME.
6194if test x${is_cross_compiler} = xyes ; then
1c710c3c 6195 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
6196fi
6197
6198# Default to --enable-multilib.
6199if test x${enable_multilib} = x ; then
6200 target_configargs="--enable-multilib ${target_configargs}"
6201fi
6202
6203# Pass --with-newlib if appropriate. Note that target_configdirs has
6204# changed from the earlier setting of with_newlib.
6205if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6206 target_configargs="--with-newlib ${target_configargs}"
6207fi
6208
6b9eb62c
NN
6209# Different target subdirs use different values of certain variables
6210# (notably CXX). Worse, multilibs use *lots* of different values.
6211# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6212# it doesn't automatically accept command-line overrides of them.
6213# This means it's not safe for target subdirs to share a cache file,
6214# which is disgusting, but there you have it. Hopefully this can be
6215# fixed in future. It's still worthwhile to use a cache file for each
6216# directory. I think.
6217
bebcd931
MS
6218# Pass the appropriate --build, --host, --target and --cache-file arguments.
6219# We need to pass --target, as newer autoconf's requires consistency
6220# for target_alias and gcc doesn't manage it consistently.
e69bf64b 6221target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 6222
671aa708
NN
6223FLAGS_FOR_TARGET=
6224case " $target_configdirs " in
6225 *" newlib "*)
6226 case " $target_configargs " in
6227 *" --with-newlib "*)
6228 case "$target" in
6229 *-cygwin*)
aa8f1f57 6230 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
6231 esac
6232
6233 # If we're not building GCC, don't discard standard headers.
6234 if test -d ${srcdir}/gcc; then
6235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6236
6237 if test "${build}" != "${host}"; then
6238 # On Canadian crosses, CC_FOR_TARGET will have already been set
6239 # by `configure', so we won't have an opportunity to add -Bgcc/
6240 # to it. This is right: we don't want to search that directory
6241 # for binaries, but we want the header files in there, so add
6242 # them explicitly.
215c351a 6243 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
6244
6245 # Someone might think of using the pre-installed headers on
6246 # Canadian crosses, in case the installed compiler is not fully
6247 # compatible with the compiler being built. In this case, it
6248 # would be better to flag an error than risking having
6249 # incompatible object files being constructed. We can't
6250 # guarantee that an error will be flagged, but let's hope the
6251 # compiler will do it, when presented with incompatible header
6252 # files.
6253 fi
6254 fi
6255
6256 case "${target}-${is_cross_compiler}" in
f2a0e225 6257 i[3456789]86-*-linux*-no)
671aa708
NN
6258 # Here host == target, so we don't need to build gcc,
6259 # so we don't want to discard standard headers.
6260 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6261 ;;
6262 *)
6263 # If we're building newlib, use its generic headers last, but search
6264 # for any libc-related directories first (so make it the last -B
6265 # switch).
6266 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
6267
6268 # If we're building libgloss, find the startup file, simulator library
6269 # and linker script.
6270 case " $target_configdirs " in
6271 *" libgloss "*)
6272 # Look for startup file, simulator library and maybe linker script.
6273 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6274 # Look for libnosys.a in case the target needs it.
6275 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6276 # Most targets have the linker script in the source directory.
6277 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6278 ;;
6279 esac
671aa708
NN
6280 ;;
6281 esac
6282 ;;
6283 esac
6284 ;;
6285esac
b91f0a41
CV
6286case "$target" in
6287*-mingw*)
6288 # Can't be handled as Cygwin above since Mingw does not use newlib.
6289 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' ;;
6290esac
671aa708 6291
6691a79e
ME
6292# Allow the user to override the flags for
6293# our build compiler if desired.
f019adc1
MF
6294if test x"${build}" = x"${host}" ; then
6295 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6296 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6297 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6298fi
6691a79e 6299
671aa708
NN
6300# On Canadian crosses, we'll be searching the right directories for
6301# the previously-installed cross compiler, so don't bother to add
6302# flags for directories within the install tree of the compiler
6303# being built; programs in there won't even run.
6304if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6305 # Search for pre-installed headers if nothing else fits.
9124bc53 6306 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
6307fi
6308
6309if test "x${use_gnu_ld}" = x &&
6310 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6311 # Arrange for us to find uninstalled linker scripts.
215c351a 6312 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
6313fi
6314
e88a2c09
DD
6315# Search for other target-specific linker scripts and such.
6316case "${target}" in
3e19841a
PB
6317 mep*)
6318 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6319 ;;
e88a2c09
DD
6320esac
6321
671aa708 6322# Makefile fragments.
7b61653a
PE
6323for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6324do
6325 eval fragval=\$$frag
6326 if test $fragval != /dev/null; then
6327 eval $frag=${srcdir}/$fragval
6328 fi
6329done
671aa708
NN
6330
6331
6332
6333
6334
6335# Miscellanea: directories, flags, etc.
6336
6337
6338
6339
6340
6341
6342
d89f0ad6 6343
23f6b2f9 6344# Build module lists & subconfigure args.
671aa708
NN
6345
6346
6347
2abefe3d
PB
6348# Host module lists & subconfigure args.
6349
6350
6351
6352# Target module lists & subconfigure args.
6353
6354
6355
6356# Build tools.
6357
6358
6359
0999159b
PB
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
2abefe3d
PB
6374# Generate default definitions for YACC, M4, LEX and other programs that run
6375# on the build machine. These are used if the Makefile can't locate these
6376# programs in objdir.
6377MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6378
6379for ac_prog in 'bison -y' byacc yacc
6380do
1c710c3c 6381 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6382set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6383echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6385if test "${ac_cv_prog_YACC+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6387else
6388 if test -n "$YACC"; then
6389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6390else
1c710c3c
DJ
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6398 ac_cv_prog_YACC="$ac_prog"
6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402done
6403done
6404
2abefe3d
PB
6405fi
6406fi
1c710c3c 6407YACC=$ac_cv_prog_YACC
2abefe3d 6408if test -n "$YACC"; then
2aeb72e9
DD
6409 echo "$as_me:$LINENO: result: $YACC" >&5
6410echo "${ECHO_T}$YACC" >&6
2abefe3d 6411else
2aeb72e9
DD
6412 echo "$as_me:$LINENO: result: no" >&5
6413echo "${ECHO_T}no" >&6
2abefe3d
PB
6414fi
6415
1c710c3c 6416 test -n "$YACC" && break
2abefe3d
PB
6417done
6418test -n "$YACC" || YACC="$MISSING bison -y"
6419
6420case " $build_configdirs " in
6421 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6422 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6423esac
6424
6425for ac_prog in bison
6426do
1c710c3c 6427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6428set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6429echo "$as_me:$LINENO: checking for $ac_word" >&5
6430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6431if test "${ac_cv_prog_BISON+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6433else
6434 if test -n "$BISON"; then
6435 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6436else
1c710c3c
DJ
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6444 ac_cv_prog_BISON="$ac_prog"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448done
6449done
6450
2abefe3d
PB
6451fi
6452fi
1c710c3c 6453BISON=$ac_cv_prog_BISON
2abefe3d 6454if test -n "$BISON"; then
2aeb72e9
DD
6455 echo "$as_me:$LINENO: result: $BISON" >&5
6456echo "${ECHO_T}$BISON" >&6
2abefe3d 6457else
2aeb72e9
DD
6458 echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6
2abefe3d
PB
6460fi
6461
1c710c3c 6462 test -n "$BISON" && break
2abefe3d
PB
6463done
6464test -n "$BISON" || BISON="$MISSING bison"
6465
6466case " $build_configdirs " in
6467 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6468esac
6469
6470for ac_prog in gm4 gnum4 m4
6471do
1c710c3c 6472 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6473set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6474echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6476if test "${ac_cv_prog_M4+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6478else
6479 if test -n "$M4"; then
6480 ac_cv_prog_M4="$M4" # Let the user override the test.
6481else
1c710c3c
DJ
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6489 ac_cv_prog_M4="$ac_prog"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493done
6494done
6495
2abefe3d
PB
6496fi
6497fi
1c710c3c 6498M4=$ac_cv_prog_M4
2abefe3d 6499if test -n "$M4"; then
2aeb72e9
DD
6500 echo "$as_me:$LINENO: result: $M4" >&5
6501echo "${ECHO_T}$M4" >&6
2abefe3d 6502else
2aeb72e9
DD
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
2abefe3d
PB
6505fi
6506
1c710c3c 6507 test -n "$M4" && break
2abefe3d
PB
6508done
6509test -n "$M4" || M4="$MISSING m4"
6510
6511case " $build_configdirs " in
6512 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6513esac
6514
6515for ac_prog in flex lex
6516do
1c710c3c 6517 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6518set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6519echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6521if test "${ac_cv_prog_LEX+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6523else
6524 if test -n "$LEX"; then
6525 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6526else
1c710c3c
DJ
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6534 ac_cv_prog_LEX="$ac_prog"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538done
6539done
6540
2abefe3d
PB
6541fi
6542fi
1c710c3c 6543LEX=$ac_cv_prog_LEX
2abefe3d 6544if test -n "$LEX"; then
2aeb72e9
DD
6545 echo "$as_me:$LINENO: result: $LEX" >&5
6546echo "${ECHO_T}$LEX" >&6
2abefe3d 6547else
2aeb72e9
DD
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
2abefe3d
PB
6550fi
6551
1c710c3c 6552 test -n "$LEX" && break
2abefe3d
PB
6553done
6554test -n "$LEX" || LEX="$MISSING flex"
6555
6556case " $build_configdirs " in
6557 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6558 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6559esac
6560
6561for ac_prog in flex
6562do
1c710c3c 6563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6564set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6565echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6567if test "${ac_cv_prog_FLEX+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6569else
6570 if test -n "$FLEX"; then
6571 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6572else
1c710c3c
DJ
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6580 ac_cv_prog_FLEX="$ac_prog"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584done
6585done
6586
2abefe3d
PB
6587fi
6588fi
1c710c3c 6589FLEX=$ac_cv_prog_FLEX
2abefe3d 6590if test -n "$FLEX"; then
2aeb72e9
DD
6591 echo "$as_me:$LINENO: result: $FLEX" >&5
6592echo "${ECHO_T}$FLEX" >&6
2abefe3d 6593else
2aeb72e9
DD
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
2abefe3d
PB
6596fi
6597
1c710c3c 6598 test -n "$FLEX" && break
2abefe3d
PB
6599done
6600test -n "$FLEX" || FLEX="$MISSING flex"
6601
6602case " $build_configdirs " in
6603 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6604esac
6605
6606for ac_prog in makeinfo
6607do
1c710c3c 6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6609set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6610echo "$as_me:$LINENO: checking for $ac_word" >&5
6611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6612if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6614else
6615 if test -n "$MAKEINFO"; then
6616 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6617else
1c710c3c
DJ
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6625 ac_cv_prog_MAKEINFO="$ac_prog"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630done
6631
2abefe3d
PB
6632fi
6633fi
1c710c3c 6634MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6635if test -n "$MAKEINFO"; then
2aeb72e9
DD
6636 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6637echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6638else
2aeb72e9
DD
6639 echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
2abefe3d
PB
6641fi
6642
1c710c3c 6643 test -n "$MAKEINFO" && break
2abefe3d
PB
6644done
6645test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6646
6647case " $build_configdirs " in
6648 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6649 *)
6650
4fe7e755 6651 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6652 # higher, else we use the "missing" dummy.
6653 if ${MAKEINFO} --version \
4fe7e755 6654 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6655 :
6656 else
6657 MAKEINFO="$MISSING makeinfo"
6658 fi
6659 ;;
6660
6661esac
671aa708 6662
2abefe3d 6663# FIXME: expect and dejagnu may become build tools?
671aa708 6664
2abefe3d
PB
6665for ac_prog in expect
6666do
1c710c3c 6667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6668set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6669echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6671if test "${ac_cv_prog_EXPECT+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6673else
6674 if test -n "$EXPECT"; then
6675 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6676else
1c710c3c
DJ
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6684 ac_cv_prog_EXPECT="$ac_prog"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689done
6690
2abefe3d
PB
6691fi
6692fi
1c710c3c 6693EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6694if test -n "$EXPECT"; then
2aeb72e9
DD
6695 echo "$as_me:$LINENO: result: $EXPECT" >&5
6696echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6697else
2aeb72e9
DD
6698 echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6
2abefe3d 6700fi
671aa708 6701
1c710c3c 6702 test -n "$EXPECT" && break
2abefe3d
PB
6703done
6704test -n "$EXPECT" || EXPECT="expect"
671aa708 6705
2abefe3d
PB
6706case " $configdirs " in
6707 *" expect "*)
6708 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6709 ;;
6710esac
671aa708 6711
2abefe3d
PB
6712for ac_prog in runtest
6713do
1c710c3c 6714 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6715set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6716echo "$as_me:$LINENO: checking for $ac_word" >&5
6717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6718if test "${ac_cv_prog_RUNTEST+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6720else
6721 if test -n "$RUNTEST"; then
6722 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6723else
1c710c3c
DJ
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6731 ac_cv_prog_RUNTEST="$ac_prog"
6732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735done
6736done
6737
2abefe3d
PB
6738fi
6739fi
1c710c3c 6740RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6741if test -n "$RUNTEST"; then
2aeb72e9
DD
6742 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6743echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6744else
2aeb72e9
DD
6745 echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6
2abefe3d 6747fi
671aa708 6748
1c710c3c 6749 test -n "$RUNTEST" && break
2abefe3d
PB
6750done
6751test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6752
2abefe3d
PB
6753case " $configdirs " in
6754 *" dejagnu "*)
c394e891 6755 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6756 ;;
6757esac
671aa708
NN
6758
6759
671aa708 6760# Host tools.
ca9f4b81
AO
6761ncn_tool_prefix=
6762test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6763ncn_target_tool_prefix=
6764test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6765
278a7a38
AO
6766
6767
6768if test -n "$AR"; then
6769 ac_cv_prog_AR=$AR
6770elif test -n "$ac_cv_prog_AR"; then
6771 AR=$ac_cv_prog_AR
6772fi
6773
6774if test -n "$ac_cv_prog_AR"; then
6775 for ncn_progname in ar; do
6776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6777set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6778echo "$as_me:$LINENO: checking for $ac_word" >&5
6779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6780if test "${ac_cv_prog_AR+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783 if test -n "$AR"; then
6784 ac_cv_prog_AR="$AR" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6793 ac_cv_prog_AR="${ncn_progname}"
6794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797done
6798done
6799
6800fi
6801fi
6802AR=$ac_cv_prog_AR
6803if test -n "$AR"; then
2aeb72e9
DD
6804 echo "$as_me:$LINENO: result: $AR" >&5
6805echo "${ECHO_T}$AR" >&6
278a7a38 6806else
2aeb72e9
DD
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
278a7a38
AO
6809fi
6810
6811 done
6812fi
6813
6814for ncn_progname in ar; do
2693c0b0
PB
6815 if test -n "$ncn_tool_prefix"; then
6816 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6817set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6818echo "$as_me:$LINENO: checking for $ac_word" >&5
6819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6820if test "${ac_cv_prog_AR+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6822else
6823 if test -n "$AR"; then
6824 ac_cv_prog_AR="$AR" # Let the user override the test.
6825else
1c710c3c
DJ
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6833 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838done
6839
ca9f4b81
AO
6840fi
6841fi
1c710c3c 6842AR=$ac_cv_prog_AR
ca9f4b81 6843if test -n "$AR"; then
2aeb72e9
DD
6844 echo "$as_me:$LINENO: result: $AR" >&5
6845echo "${ECHO_T}$AR" >&6
ca9f4b81 6846else
2aeb72e9
DD
6847 echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6
ca9f4b81
AO
6849fi
6850
2693c0b0
PB
6851 fi
6852 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6854set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6855echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6857if test "${ac_cv_prog_AR+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6859else
2693c0b0 6860 if test -n "$AR"; then
af71363e
AS
6861 ac_cv_prog_AR="$AR" # Let the user override the test.
6862else
1c710c3c
DJ
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6870 ac_cv_prog_AR="${ncn_progname}"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874done
6875done
6876
ca9f4b81
AO
6877fi
6878fi
1c710c3c 6879AR=$ac_cv_prog_AR
2693c0b0 6880if test -n "$AR"; then
2aeb72e9
DD
6881 echo "$as_me:$LINENO: result: $AR" >&5
6882echo "${ECHO_T}$AR" >&6
ca9f4b81 6883else
2aeb72e9
DD
6884 echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6
ca9f4b81 6886fi
1c710c3c 6887
2693c0b0
PB
6888 fi
6889 test -n "$ac_cv_prog_AR" && break
6890done
6891
6892if test -z "$ac_cv_prog_AR" ; then
6893 set dummy ar
6894 if test $build = $host ; then
6895 AR="$2"
ca9f4b81 6896 else
2693c0b0 6897 AR="${ncn_tool_prefix}$2"
ca9f4b81 6898 fi
ca9f4b81
AO
6899fi
6900
278a7a38
AO
6901
6902
6903if test -n "$AS"; then
6904 ac_cv_prog_AS=$AS
6905elif test -n "$ac_cv_prog_AS"; then
6906 AS=$ac_cv_prog_AS
6907fi
6908
6909if test -n "$ac_cv_prog_AS"; then
6910 for ncn_progname in as; do
6911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6912set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6913echo "$as_me:$LINENO: checking for $ac_word" >&5
6914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6915if test "${ac_cv_prog_AS+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918 if test -n "$AS"; then
6919 ac_cv_prog_AS="$AS" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6928 ac_cv_prog_AS="${ncn_progname}"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932done
6933done
6934
6935fi
6936fi
6937AS=$ac_cv_prog_AS
6938if test -n "$AS"; then
2aeb72e9
DD
6939 echo "$as_me:$LINENO: result: $AS" >&5
6940echo "${ECHO_T}$AS" >&6
278a7a38 6941else
2aeb72e9
DD
6942 echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6
278a7a38
AO
6944fi
6945
6946 done
6947fi
6948
6949for ncn_progname in as; do
2693c0b0
PB
6950 if test -n "$ncn_tool_prefix"; then
6951 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6952set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6953echo "$as_me:$LINENO: checking for $ac_word" >&5
6954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6955if test "${ac_cv_prog_AS+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6957else
6958 if test -n "$AS"; then
6959 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6960else
1c710c3c
DJ
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6968 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972done
6973done
6974
ca9f4b81
AO
6975fi
6976fi
1c710c3c 6977AS=$ac_cv_prog_AS
ca9f4b81 6978if test -n "$AS"; then
2aeb72e9
DD
6979 echo "$as_me:$LINENO: result: $AS" >&5
6980echo "${ECHO_T}$AS" >&6
ca9f4b81 6981else
2aeb72e9
DD
6982 echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6
ca9f4b81
AO
6984fi
6985
2693c0b0
PB
6986 fi
6987 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6989set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6990echo "$as_me:$LINENO: checking for $ac_word" >&5
6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6992if test "${ac_cv_prog_AS+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6994else
2693c0b0
PB
6995 if test -n "$AS"; then
6996 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6997else
1c710c3c
DJ
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7005 ac_cv_prog_AS="${ncn_progname}"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010done
7011
ca9f4b81
AO
7012fi
7013fi
1c710c3c 7014AS=$ac_cv_prog_AS
2693c0b0 7015if test -n "$AS"; then
2aeb72e9
DD
7016 echo "$as_me:$LINENO: result: $AS" >&5
7017echo "${ECHO_T}$AS" >&6
ca9f4b81 7018else
2aeb72e9
DD
7019 echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6
ca9f4b81 7021fi
1c710c3c 7022
2693c0b0
PB
7023 fi
7024 test -n "$ac_cv_prog_AS" && break
7025done
7026
7027if test -z "$ac_cv_prog_AS" ; then
7028 set dummy as
7029 if test $build = $host ; then
7030 AS="$2"
ca9f4b81 7031 else
2693c0b0 7032 AS="${ncn_tool_prefix}$2"
ca9f4b81 7033 fi
ca9f4b81
AO
7034fi
7035
278a7a38
AO
7036
7037
7038if test -n "$DLLTOOL"; then
7039 ac_cv_prog_DLLTOOL=$DLLTOOL
7040elif test -n "$ac_cv_prog_DLLTOOL"; then
7041 DLLTOOL=$ac_cv_prog_DLLTOOL
7042fi
7043
7044if test -n "$ac_cv_prog_DLLTOOL"; then
7045 for ncn_progname in dlltool; do
7046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7047set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7048echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7050if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 if test -n "$DLLTOOL"; then
7054 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7063 ac_cv_prog_DLLTOOL="${ncn_progname}"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068done
7069
7070fi
7071fi
7072DLLTOOL=$ac_cv_prog_DLLTOOL
7073if test -n "$DLLTOOL"; then
2aeb72e9
DD
7074 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7075echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 7076else
2aeb72e9
DD
7077 echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6
278a7a38
AO
7079fi
7080
7081 done
7082fi
7083
7084for ncn_progname in dlltool; do
2693c0b0
PB
7085 if test -n "$ncn_tool_prefix"; then
7086 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7087set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7088echo "$as_me:$LINENO: checking for $ac_word" >&5
7089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7090if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7092else
7093 if test -n "$DLLTOOL"; then
7094 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7095else
1c710c3c
DJ
7096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097for as_dir in $PATH
7098do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7103 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107done
7108done
7109
ca9f4b81
AO
7110fi
7111fi
1c710c3c 7112DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 7113if test -n "$DLLTOOL"; then
2aeb72e9
DD
7114 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7115echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7116else
2aeb72e9
DD
7117 echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6
ca9f4b81
AO
7119fi
7120
2693c0b0
PB
7121 fi
7122 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7124set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7125echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7127if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7129else
2693c0b0
PB
7130 if test -n "$DLLTOOL"; then
7131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 7132else
1c710c3c
DJ
7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7140 ac_cv_prog_DLLTOOL="${ncn_progname}"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144done
7145done
7146
ca9f4b81
AO
7147fi
7148fi
1c710c3c 7149DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 7150if test -n "$DLLTOOL"; then
2aeb72e9
DD
7151 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7152echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 7153else
2aeb72e9
DD
7154 echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6
ca9f4b81 7156fi
1c710c3c 7157
2693c0b0
PB
7158 fi
7159 test -n "$ac_cv_prog_DLLTOOL" && break
7160done
7161
7162if test -z "$ac_cv_prog_DLLTOOL" ; then
7163 set dummy dlltool
7164 if test $build = $host ; then
7165 DLLTOOL="$2"
ca9f4b81 7166 else
2693c0b0 7167 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 7168 fi
ca9f4b81
AO
7169fi
7170
278a7a38
AO
7171
7172
7173if test -n "$LD"; then
7174 ac_cv_prog_LD=$LD
7175elif test -n "$ac_cv_prog_LD"; then
7176 LD=$ac_cv_prog_LD
7177fi
7178
7179if test -n "$ac_cv_prog_LD"; then
7180 for ncn_progname in ld; do
7181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7182set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7183echo "$as_me:$LINENO: checking for $ac_word" >&5
7184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7185if test "${ac_cv_prog_LD+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 if test -n "$LD"; then
7189 ac_cv_prog_LD="$LD" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7198 ac_cv_prog_LD="${ncn_progname}"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202done
7203done
7204
7205fi
7206fi
7207LD=$ac_cv_prog_LD
7208if test -n "$LD"; then
2aeb72e9
DD
7209 echo "$as_me:$LINENO: result: $LD" >&5
7210echo "${ECHO_T}$LD" >&6
278a7a38 7211else
2aeb72e9
DD
7212 echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6
278a7a38
AO
7214fi
7215
7216 done
7217fi
7218
7219for ncn_progname in ld; do
2693c0b0
PB
7220 if test -n "$ncn_tool_prefix"; then
7221 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7222set dummy ${ncn_tool_prefix}${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
1c710c3c
DJ
7225if test "${ac_cv_prog_LD+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7227else
7228 if test -n "$LD"; then
7229 ac_cv_prog_LD="$LD" # Let the user override the test.
7230else
1c710c3c
DJ
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
1c710c3c
DJ
7238 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242done
7243done
7244
ca9f4b81
AO
7245fi
7246fi
1c710c3c 7247LD=$ac_cv_prog_LD
ca9f4b81 7248if test -n "$LD"; then
2aeb72e9
DD
7249 echo "$as_me:$LINENO: result: $LD" >&5
7250echo "${ECHO_T}$LD" >&6
ca9f4b81 7251else
2aeb72e9
DD
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
ca9f4b81
AO
7254fi
7255
2693c0b0
PB
7256 fi
7257 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7259set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7260echo "$as_me:$LINENO: checking for $ac_word" >&5
7261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7262if test "${ac_cv_prog_LD+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7264else
2693c0b0
PB
7265 if test -n "$LD"; then
7266 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 7267else
1c710c3c
DJ
7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7275 ac_cv_prog_LD="${ncn_progname}"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279done
7280done
7281
ca9f4b81
AO
7282fi
7283fi
1c710c3c 7284LD=$ac_cv_prog_LD
2693c0b0 7285if test -n "$LD"; then
2aeb72e9
DD
7286 echo "$as_me:$LINENO: result: $LD" >&5
7287echo "${ECHO_T}$LD" >&6
ca9f4b81 7288else
2aeb72e9
DD
7289 echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6
ca9f4b81 7291fi
1c710c3c 7292
2693c0b0
PB
7293 fi
7294 test -n "$ac_cv_prog_LD" && break
7295done
7296
7297if test -z "$ac_cv_prog_LD" ; then
7298 set dummy ld
7299 if test $build = $host ; then
7300 LD="$2"
ca9f4b81 7301 else
2693c0b0 7302 LD="${ncn_tool_prefix}$2"
ca9f4b81 7303 fi
ca9f4b81
AO
7304fi
7305
278a7a38
AO
7306
7307
7308if test -n "$LIPO"; then
7309 ac_cv_prog_LIPO=$LIPO
7310elif test -n "$ac_cv_prog_LIPO"; then
7311 LIPO=$ac_cv_prog_LIPO
7312fi
7313
7314if test -n "$ac_cv_prog_LIPO"; then
7315 for ncn_progname in lipo; do
7316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7317set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7318echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7320if test "${ac_cv_prog_LIPO+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323 if test -n "$LIPO"; then
7324 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7333 ac_cv_prog_LIPO="${ncn_progname}"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337done
7338done
7339
7340fi
7341fi
7342LIPO=$ac_cv_prog_LIPO
7343if test -n "$LIPO"; then
2aeb72e9
DD
7344 echo "$as_me:$LINENO: result: $LIPO" >&5
7345echo "${ECHO_T}$LIPO" >&6
278a7a38 7346else
2aeb72e9
DD
7347 echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6
278a7a38
AO
7349fi
7350
7351 done
7352fi
7353
7354for ncn_progname in lipo; do
2abefe3d
PB
7355 if test -n "$ncn_tool_prefix"; then
7356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7357set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7358echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7360if test "${ac_cv_prog_LIPO+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7362else
7363 if test -n "$LIPO"; then
7364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7365else
1c710c3c
DJ
7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7373 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377done
7378done
7379
2abefe3d
PB
7380fi
7381fi
1c710c3c 7382LIPO=$ac_cv_prog_LIPO
2abefe3d 7383if test -n "$LIPO"; then
2aeb72e9
DD
7384 echo "$as_me:$LINENO: result: $LIPO" >&5
7385echo "${ECHO_T}$LIPO" >&6
2abefe3d 7386else
2aeb72e9
DD
7387 echo "$as_me:$LINENO: result: no" >&5
7388echo "${ECHO_T}no" >&6
2abefe3d
PB
7389fi
7390
7391 fi
7392 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7394set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7395echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7397if test "${ac_cv_prog_LIPO+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7399else
7400 if test -n "$LIPO"; then
7401 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7402else
1c710c3c
DJ
7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7410 ac_cv_prog_LIPO="${ncn_progname}"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7413 fi
7414done
7415done
7416
2abefe3d
PB
7417fi
7418fi
1c710c3c 7419LIPO=$ac_cv_prog_LIPO
2abefe3d 7420if test -n "$LIPO"; then
2aeb72e9
DD
7421 echo "$as_me:$LINENO: result: $LIPO" >&5
7422echo "${ECHO_T}$LIPO" >&6
2abefe3d 7423else
2aeb72e9
DD
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
2abefe3d 7426fi
1c710c3c 7427
2abefe3d
PB
7428 fi
7429 test -n "$ac_cv_prog_LIPO" && break
7430done
7431
7432if test -z "$ac_cv_prog_LIPO" ; then
7433 set dummy lipo
7434 if test $build = $host ; then
7435 LIPO="$2"
7436 else
7437 LIPO="${ncn_tool_prefix}$2"
7438 fi
7439fi
7440
278a7a38
AO
7441
7442
7443if test -n "$NM"; then
7444 ac_cv_prog_NM=$NM
7445elif test -n "$ac_cv_prog_NM"; then
7446 NM=$ac_cv_prog_NM
7447fi
7448
7449if test -n "$ac_cv_prog_NM"; then
7450 for ncn_progname in nm; do
7451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7452set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7453echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7455if test "${ac_cv_prog_NM+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7457else
7458 if test -n "$NM"; then
7459 ac_cv_prog_NM="$NM" # Let the user override the test.
7460else
1c710c3c
DJ
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464 IFS=$as_save_IFS
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7468 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 break 2
7471 fi
7472done
7473done
7474
ca9f4b81
AO
7475fi
7476fi
1c710c3c 7477NM=$ac_cv_prog_NM
ca9f4b81 7478if test -n "$NM"; then
2aeb72e9
DD
7479 echo "$as_me:$LINENO: result: $NM" >&5
7480echo "${ECHO_T}$NM" >&6
ca9f4b81 7481else
2aeb72e9
DD
7482 echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
ca9f4b81
AO
7484fi
7485
278a7a38
AO
7486 done
7487fi
7488
7489for ncn_progname in nm; do
7490 if test -n "$ncn_tool_prefix"; then
7491 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7492set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7493echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7495if test "${ac_cv_prog_NM+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7497else
2693c0b0
PB
7498 if test -n "$NM"; then
7499 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7500else
1c710c3c
DJ
7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502for as_dir in $PATH
7503do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7508 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512done
7513done
7514
ca9f4b81
AO
7515fi
7516fi
1c710c3c 7517NM=$ac_cv_prog_NM
2693c0b0 7518if test -n "$NM"; then
2aeb72e9
DD
7519 echo "$as_me:$LINENO: result: $NM" >&5
7520echo "${ECHO_T}$NM" >&6
ca9f4b81 7521else
2aeb72e9
DD
7522 echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6
ca9f4b81 7524fi
1c710c3c 7525
2693c0b0 7526 fi
278a7a38
AO
7527 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7529set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7530echo "$as_me:$LINENO: checking for $ac_word" >&5
7531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7532if test "${ac_cv_prog_NM+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 if test -n "$NM"; then
7536 ac_cv_prog_NM="$NM" # Let the user override the test.
7537else
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7545 ac_cv_prog_NM="${ncn_progname}"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550done
7551
7552fi
7553fi
7554NM=$ac_cv_prog_NM
7555if test -n "$NM"; then
2aeb72e9
DD
7556 echo "$as_me:$LINENO: result: $NM" >&5
7557echo "${ECHO_T}$NM" >&6
278a7a38 7558else
2aeb72e9
DD
7559 echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6
278a7a38
AO
7561fi
7562
7563 fi
7564 test -n "$ac_cv_prog_NM" && break
7565done
7566
7567if test -z "$ac_cv_prog_NM" ; then
7568 set dummy nm
7569 if test $build = $host ; then
7570 NM="$2"
7571 else
7572 NM="${ncn_tool_prefix}$2"
7573 fi
7574fi
7575
7576
7577
7578if test -n "$RANLIB"; then
7579 ac_cv_prog_RANLIB=$RANLIB
7580elif test -n "$ac_cv_prog_RANLIB"; then
7581 RANLIB=$ac_cv_prog_RANLIB
7582fi
7583
7584if test -n "$ac_cv_prog_RANLIB"; then
7585 for ncn_progname in ranlib; do
7586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7587set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7588echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7590if test "${ac_cv_prog_RANLIB+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 if test -n "$RANLIB"; then
7594 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7595else
7596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7603 ac_cv_prog_RANLIB="${ncn_progname}"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607done
7608done
7609
7610fi
7611fi
7612RANLIB=$ac_cv_prog_RANLIB
7613if test -n "$RANLIB"; then
2aeb72e9
DD
7614 echo "$as_me:$LINENO: result: $RANLIB" >&5
7615echo "${ECHO_T}$RANLIB" >&6
278a7a38 7616else
2aeb72e9
DD
7617 echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6
278a7a38
AO
7619fi
7620
7621 done
7622fi
ca9f4b81 7623
278a7a38 7624for ncn_progname in ranlib; do
2693c0b0
PB
7625 if test -n "$ncn_tool_prefix"; then
7626 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7627set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7628echo "$as_me:$LINENO: checking for $ac_word" >&5
7629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7630if test "${ac_cv_prog_RANLIB+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7632else
7633 if test -n "$RANLIB"; then
7634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7635else
1c710c3c
DJ
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7643 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648done
7649
ca9f4b81
AO
7650fi
7651fi
1c710c3c 7652RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7653if test -n "$RANLIB"; then
2aeb72e9
DD
7654 echo "$as_me:$LINENO: result: $RANLIB" >&5
7655echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7656else
2aeb72e9
DD
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
ca9f4b81
AO
7659fi
7660
2693c0b0
PB
7661 fi
7662 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7664set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7665echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7667if test "${ac_cv_prog_RANLIB+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7669else
2693c0b0
PB
7670 if test -n "$RANLIB"; then
7671 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7672else
1c710c3c
DJ
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7680 ac_cv_prog_RANLIB="${ncn_progname}"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686
ca9f4b81
AO
7687fi
7688fi
1c710c3c 7689RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7690if test -n "$RANLIB"; then
2aeb72e9
DD
7691 echo "$as_me:$LINENO: result: $RANLIB" >&5
7692echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7693else
2aeb72e9
DD
7694 echo "$as_me:$LINENO: result: no" >&5
7695echo "${ECHO_T}no" >&6
ca9f4b81 7696fi
1c710c3c 7697
ca9f4b81 7698 fi
2693c0b0
PB
7699 test -n "$ac_cv_prog_RANLIB" && break
7700done
7701
7702if test -z "$ac_cv_prog_RANLIB" ; then
7703 RANLIB=":"
ca9f4b81
AO
7704fi
7705
278a7a38
AO
7706
7707
7708if test -n "$STRIP"; then
7709 ac_cv_prog_STRIP=$STRIP
7710elif test -n "$ac_cv_prog_STRIP"; then
7711 STRIP=$ac_cv_prog_STRIP
7712fi
7713
7714if test -n "$ac_cv_prog_STRIP"; then
7715 for ncn_progname in strip; do
7716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7717set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7718echo "$as_me:$LINENO: checking for $ac_word" >&5
7719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7720if test "${ac_cv_prog_STRIP+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 if test -n "$STRIP"; then
7724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7725else
7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7733 ac_cv_prog_STRIP="${ncn_progname}"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7736 fi
7737done
7738done
7739
7740fi
7741fi
7742STRIP=$ac_cv_prog_STRIP
7743if test -n "$STRIP"; then
2aeb72e9
DD
7744 echo "$as_me:$LINENO: result: $STRIP" >&5
7745echo "${ECHO_T}$STRIP" >&6
278a7a38 7746else
2aeb72e9
DD
7747 echo "$as_me:$LINENO: result: no" >&5
7748echo "${ECHO_T}no" >&6
278a7a38
AO
7749fi
7750
7751 done
7752fi
7753
7754for ncn_progname in strip; do
2abefe3d
PB
7755 if test -n "$ncn_tool_prefix"; then
7756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7757set dummy ${ncn_tool_prefix}${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
1c710c3c
DJ
7760if test "${ac_cv_prog_STRIP+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7762else
7763 if test -n "$STRIP"; then
7764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7765else
1c710c3c
DJ
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
1c710c3c
DJ
7773 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777done
7778done
7779
2abefe3d
PB
7780fi
7781fi
1c710c3c 7782STRIP=$ac_cv_prog_STRIP
2abefe3d 7783if test -n "$STRIP"; then
2aeb72e9
DD
7784 echo "$as_me:$LINENO: result: $STRIP" >&5
7785echo "${ECHO_T}$STRIP" >&6
2abefe3d 7786else
2aeb72e9
DD
7787 echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
2abefe3d
PB
7789fi
7790
7791 fi
7792 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7794set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7795echo "$as_me:$LINENO: checking for $ac_word" >&5
7796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7797if test "${ac_cv_prog_STRIP+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7799else
7800 if test -n "$STRIP"; then
7801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7802else
1c710c3c
DJ
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806 IFS=$as_save_IFS
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7810 ac_cv_prog_STRIP="${ncn_progname}"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 break 2
7813 fi
7814done
7815done
7816
2abefe3d
PB
7817fi
7818fi
1c710c3c 7819STRIP=$ac_cv_prog_STRIP
2abefe3d 7820if test -n "$STRIP"; then
2aeb72e9
DD
7821 echo "$as_me:$LINENO: result: $STRIP" >&5
7822echo "${ECHO_T}$STRIP" >&6
2abefe3d 7823else
2aeb72e9
DD
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
2abefe3d 7826fi
1c710c3c 7827
2abefe3d
PB
7828 fi
7829 test -n "$ac_cv_prog_STRIP" && break
7830done
7831
7832if test -z "$ac_cv_prog_STRIP" ; then
7833 STRIP=":"
7834fi
7835
278a7a38
AO
7836
7837
7838if test -n "$WINDRES"; then
7839 ac_cv_prog_WINDRES=$WINDRES
7840elif test -n "$ac_cv_prog_WINDRES"; then
7841 WINDRES=$ac_cv_prog_WINDRES
7842fi
7843
7844if test -n "$ac_cv_prog_WINDRES"; then
7845 for ncn_progname in windres; do
7846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7847set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7848echo "$as_me:$LINENO: checking for $ac_word" >&5
7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7850if test "${ac_cv_prog_WINDRES+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 if test -n "$WINDRES"; then
7854 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7863 ac_cv_prog_WINDRES="${ncn_progname}"
7864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 break 2
7866 fi
7867done
7868done
7869
7870fi
7871fi
7872WINDRES=$ac_cv_prog_WINDRES
7873if test -n "$WINDRES"; then
2aeb72e9
DD
7874 echo "$as_me:$LINENO: result: $WINDRES" >&5
7875echo "${ECHO_T}$WINDRES" >&6
278a7a38 7876else
2aeb72e9
DD
7877 echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6
278a7a38
AO
7879fi
7880
7881 done
7882fi
7883
7884for ncn_progname in windres; do
2693c0b0
PB
7885 if test -n "$ncn_tool_prefix"; then
7886 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7887set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7888echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7890if test "${ac_cv_prog_WINDRES+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7892else
7893 if test -n "$WINDRES"; then
7894 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7895else
1c710c3c
DJ
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7903 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907done
7908done
7909
ca9f4b81
AO
7910fi
7911fi
1c710c3c 7912WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7913if test -n "$WINDRES"; then
2aeb72e9
DD
7914 echo "$as_me:$LINENO: result: $WINDRES" >&5
7915echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7916else
2aeb72e9
DD
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
ca9f4b81
AO
7919fi
7920
2693c0b0
PB
7921 fi
7922 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7924set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7925echo "$as_me:$LINENO: checking for $ac_word" >&5
7926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7927if test "${ac_cv_prog_WINDRES+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7929else
2693c0b0
PB
7930 if test -n "$WINDRES"; then
7931 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7932else
1c710c3c
DJ
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7940 ac_cv_prog_WINDRES="${ncn_progname}"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944done
7945done
7946
ca9f4b81
AO
7947fi
7948fi
1c710c3c 7949WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7950if test -n "$WINDRES"; then
2aeb72e9
DD
7951 echo "$as_me:$LINENO: result: $WINDRES" >&5
7952echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7953else
2aeb72e9
DD
7954 echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6
ca9f4b81 7956fi
1c710c3c 7957
2693c0b0
PB
7958 fi
7959 test -n "$ac_cv_prog_WINDRES" && break
7960done
7961
7962if test -z "$ac_cv_prog_WINDRES" ; then
7963 set dummy windres
7964 if test $build = $host ; then
7965 WINDRES="$2"
ca9f4b81 7966 else
2693c0b0 7967 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7968 fi
ca9f4b81
AO
7969fi
7970
278a7a38
AO
7971
7972
901119ae
KT
7973if test -n "$WINDMC"; then
7974 ac_cv_prog_WINDMC=$WINDMC
7975elif test -n "$ac_cv_prog_WINDMC"; then
7976 WINDMC=$ac_cv_prog_WINDMC
7977fi
7978
7979if test -n "$ac_cv_prog_WINDMC"; then
7980 for ncn_progname in windmc; do
7981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7982set dummy ${ncn_progname}; ac_word=$2
7983echo "$as_me:$LINENO: checking for $ac_word" >&5
7984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7985if test "${ac_cv_prog_WINDMC+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987else
7988 if test -n "$WINDMC"; then
7989 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7990else
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_WINDMC="${ncn_progname}"
7999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002done
8003done
8004
8005fi
8006fi
8007WINDMC=$ac_cv_prog_WINDMC
8008if test -n "$WINDMC"; then
8009 echo "$as_me:$LINENO: result: $WINDMC" >&5
8010echo "${ECHO_T}$WINDMC" >&6
8011else
8012 echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6
8014fi
8015
8016 done
8017fi
8018
8019for ncn_progname in windmc; do
8020 if test -n "$ncn_tool_prefix"; then
8021 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8022set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8023echo "$as_me:$LINENO: checking for $ac_word" >&5
8024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8025if test "${ac_cv_prog_WINDMC+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028 if test -n "$WINDMC"; then
8029 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8030else
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8041 fi
8042done
8043done
8044
8045fi
8046fi
8047WINDMC=$ac_cv_prog_WINDMC
8048if test -n "$WINDMC"; then
8049 echo "$as_me:$LINENO: result: $WINDMC" >&5
8050echo "${ECHO_T}$WINDMC" >&6
8051else
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054fi
8055
8056 fi
8057 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8059set dummy ${ncn_progname}; ac_word=$2
8060echo "$as_me:$LINENO: checking for $ac_word" >&5
8061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8062if test "${ac_cv_prog_WINDMC+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064else
8065 if test -n "$WINDMC"; then
8066 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8067else
8068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8075 ac_cv_prog_WINDMC="${ncn_progname}"
8076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079done
8080done
8081
8082fi
8083fi
8084WINDMC=$ac_cv_prog_WINDMC
8085if test -n "$WINDMC"; then
8086 echo "$as_me:$LINENO: result: $WINDMC" >&5
8087echo "${ECHO_T}$WINDMC" >&6
8088else
8089 echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6
8091fi
8092
8093 fi
8094 test -n "$ac_cv_prog_WINDMC" && break
8095done
8096
8097if test -z "$ac_cv_prog_WINDMC" ; then
8098 set dummy windmc
8099 if test $build = $host ; then
8100 WINDMC="$2"
8101 else
8102 WINDMC="${ncn_tool_prefix}$2"
8103 fi
8104fi
8105
8106
8107
278a7a38
AO
8108if test -n "$OBJCOPY"; then
8109 ac_cv_prog_OBJCOPY=$OBJCOPY
8110elif test -n "$ac_cv_prog_OBJCOPY"; then
8111 OBJCOPY=$ac_cv_prog_OBJCOPY
8112fi
8113
8114if test -n "$ac_cv_prog_OBJCOPY"; then
8115 for ncn_progname in objcopy; do
8116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8117set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8118echo "$as_me:$LINENO: checking for $ac_word" >&5
8119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8120if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122else
8123 if test -n "$OBJCOPY"; then
8124 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8125else
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8133 ac_cv_prog_OBJCOPY="${ncn_progname}"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137done
8138done
8139
8140fi
8141fi
8142OBJCOPY=$ac_cv_prog_OBJCOPY
8143if test -n "$OBJCOPY"; then
2aeb72e9
DD
8144 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8145echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 8146else
2aeb72e9
DD
8147 echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
278a7a38
AO
8149fi
8150
8151 done
8152fi
8153
8154for ncn_progname in objcopy; do
2693c0b0
PB
8155 if test -n "$ncn_tool_prefix"; then
8156 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8157set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8158echo "$as_me:$LINENO: checking for $ac_word" >&5
8159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8160if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8162else
8163 if test -n "$OBJCOPY"; then
8164 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8165else
1c710c3c
DJ
8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
8171 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8173 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 break 2
8176 fi
8177done
8178done
8179
ca9f4b81
AO
8180fi
8181fi
1c710c3c 8182OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 8183if test -n "$OBJCOPY"; then
2aeb72e9
DD
8184 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8185echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8186else
2aeb72e9
DD
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
ca9f4b81
AO
8189fi
8190
2693c0b0
PB
8191 fi
8192 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8194set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8195echo "$as_me:$LINENO: checking for $ac_word" >&5
8196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8197if test "${ac_cv_prog_OBJCOPY+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8199else
2693c0b0
PB
8200 if test -n "$OBJCOPY"; then
8201 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 8202else
1c710c3c
DJ
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8210 ac_cv_prog_OBJCOPY="${ncn_progname}"
8211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214done
8215done
8216
ca9f4b81
AO
8217fi
8218fi
1c710c3c 8219OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 8220if test -n "$OBJCOPY"; then
2aeb72e9
DD
8221 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
8222echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 8223else
2aeb72e9
DD
8224 echo "$as_me:$LINENO: result: no" >&5
8225echo "${ECHO_T}no" >&6
ca9f4b81 8226fi
1c710c3c 8227
2693c0b0
PB
8228 fi
8229 test -n "$ac_cv_prog_OBJCOPY" && break
8230done
8231
8232if test -z "$ac_cv_prog_OBJCOPY" ; then
8233 set dummy objcopy
8234 if test $build = $host ; then
8235 OBJCOPY="$2"
ca9f4b81 8236 else
2693c0b0 8237 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 8238 fi
ca9f4b81
AO
8239fi
8240
278a7a38
AO
8241
8242
8243if test -n "$OBJDUMP"; then
8244 ac_cv_prog_OBJDUMP=$OBJDUMP
8245elif test -n "$ac_cv_prog_OBJDUMP"; then
8246 OBJDUMP=$ac_cv_prog_OBJDUMP
8247fi
8248
8249if test -n "$ac_cv_prog_OBJDUMP"; then
8250 for ncn_progname in objdump; do
8251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8252set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8253echo "$as_me:$LINENO: checking for $ac_word" >&5
8254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8255if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258 if test -n "$OBJDUMP"; then
8259 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8260else
8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262for as_dir in $PATH
8263do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8268 ac_cv_prog_OBJDUMP="${ncn_progname}"
8269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272done
8273done
8274
8275fi
8276fi
8277OBJDUMP=$ac_cv_prog_OBJDUMP
8278if test -n "$OBJDUMP"; then
2aeb72e9
DD
8279 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8280echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 8281else
2aeb72e9
DD
8282 echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6
278a7a38
AO
8284fi
8285
8286 done
8287fi
8288
8289for ncn_progname in objdump; do
2693c0b0
PB
8290 if test -n "$ncn_tool_prefix"; then
8291 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8292set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8293echo "$as_me:$LINENO: checking for $ac_word" >&5
8294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8295if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
8297else
8298 if test -n "$OBJDUMP"; then
8299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8300else
1c710c3c
DJ
8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302for as_dir in $PATH
8303do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8308 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
8309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312done
8313done
8314
ca9f4b81
AO
8315fi
8316fi
1c710c3c 8317OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 8318if test -n "$OBJDUMP"; then
2aeb72e9
DD
8319 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8320echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8321else
2aeb72e9
DD
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
ca9f4b81
AO
8324fi
8325
2693c0b0
PB
8326 fi
8327 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8329set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8330echo "$as_me:$LINENO: checking for $ac_word" >&5
8331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8332if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8334else
2693c0b0
PB
8335 if test -n "$OBJDUMP"; then
8336 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 8337else
1c710c3c
DJ
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8345 ac_cv_prog_OBJDUMP="${ncn_progname}"
8346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349done
8350done
8351
ca9f4b81
AO
8352fi
8353fi
1c710c3c 8354OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 8355if test -n "$OBJDUMP"; then
2aeb72e9
DD
8356 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8357echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 8358else
2aeb72e9
DD
8359 echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
ca9f4b81 8361fi
1c710c3c 8362
2693c0b0
PB
8363 fi
8364 test -n "$ac_cv_prog_OBJDUMP" && break
8365done
8366
8367if test -z "$ac_cv_prog_OBJDUMP" ; then
8368 set dummy objdump
8369 if test $build = $host ; then
8370 OBJDUMP="$2"
ca9f4b81 8371 else
2693c0b0 8372 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 8373 fi
ca9f4b81
AO
8374fi
8375
671aa708
NN
8376
8377
8378
8379
8380
2abefe3d 8381# Target tools.
1c710c3c 8382
2aeb72e9 8383# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 8384if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
8385 withval="$with_build_time_tools"
8386 case x"$withval" in
e8b05380
PB
8387 x/*) ;;
8388 *)
8389 with_build_time_tools=
1c710c3c
DJ
8390 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8391echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
8392 ;;
8393 esac
ca9f4b81 8394else
e8b05380 8395 with_build_time_tools=
2aeb72e9 8396fi;
ca9f4b81 8397
278a7a38
AO
8398
8399
8400if test -n "$CC_FOR_TARGET"; then
8401 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8402elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8403 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8404fi
8405
8406if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8407 for ncn_progname in cc gcc; do
8408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8409set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8410echo "$as_me:$LINENO: checking for $ac_word" >&5
8411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8412if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 if test -n "$CC_FOR_TARGET"; then
8416 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8417else
8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8425 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8428 fi
8429done
8430done
8431
8432fi
8433fi
8434CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8435if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8436 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8437echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8438else
2aeb72e9
DD
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
278a7a38
AO
8441fi
8442
8443 done
8444fi
8445
8446if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8447 for ncn_progname in cc gcc; do
2aeb72e9
DD
8448 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8449echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8450 if test -x $with_build_time_tools/${ncn_progname}; then
8451 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8452 echo "$as_me:$LINENO: result: yes" >&5
8453echo "${ECHO_T}yes" >&6
72a7ab82 8454 break
e8b05380 8455 else
2aeb72e9
DD
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
72a7ab82
AP
8458 fi
8459 done
4de997d1
PB
8460fi
8461
e8b05380
PB
8462if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8463 for ncn_progname in cc gcc; do
8464 if test -n "$ncn_target_tool_prefix"; then
8465 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8466set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8467echo "$as_me:$LINENO: checking for $ac_word" >&5
8468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8469if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8471else
8472 if test -n "$CC_FOR_TARGET"; then
8473 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8474else
1c710c3c
DJ
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
8480 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8482 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486done
8487done
8488
4de997d1
PB
8489fi
8490fi
1c710c3c 8491CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8492if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8493 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8494echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8495else
2aeb72e9
DD
8496 echo "$as_me:$LINENO: result: no" >&5
8497echo "${ECHO_T}no" >&6
4de997d1
PB
8498fi
8499
e8b05380
PB
8500 fi
8501 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8503set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8504echo "$as_me:$LINENO: checking for $ac_word" >&5
8505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8506if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8508else
2693c0b0
PB
8509 if test -n "$CC_FOR_TARGET"; then
8510 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8511else
1c710c3c
DJ
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8519 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8522 fi
8523done
8524done
8525
4de997d1
PB
8526fi
8527fi
1c710c3c 8528CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8529if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8530 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8531echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8532else
2aeb72e9
DD
8533 echo "$as_me:$LINENO: result: no" >&5
8534echo "${ECHO_T}no" >&6
4de997d1 8535fi
1c710c3c 8536
e8b05380
PB
8537 fi
8538 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8539 done
8540fi
1c710c3c 8541
2693c0b0
PB
8542if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8543 set dummy cc gcc
8544 if test $build = $target ; then
8545 CC_FOR_TARGET="$2"
4de997d1 8546 else
2693c0b0 8547 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8548 fi
1c00b503
PB
8549else
8550 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8551fi
8552
278a7a38
AO
8553
8554
8555if test -n "$CXX_FOR_TARGET"; then
8556 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8557elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8558 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8559fi
8560
8561if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8562 for ncn_progname in c++ g++ cxx gxx; do
8563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8564set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8565echo "$as_me:$LINENO: checking for $ac_word" >&5
8566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8567if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8569else
8570 if test -n "$CXX_FOR_TARGET"; then
8571 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8572else
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8580 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584done
8585done
8586
8587fi
8588fi
8589CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8590if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8591 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8592echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8593else
2aeb72e9
DD
8594 echo "$as_me:$LINENO: result: no" >&5
8595echo "${ECHO_T}no" >&6
278a7a38
AO
8596fi
8597
8598 done
8599fi
8600
8601if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8602 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8603 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8604echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8605 if test -x $with_build_time_tools/${ncn_progname}; then
8606 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8607 echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
e8b05380
PB
8609 break
8610 else
2aeb72e9
DD
8611 echo "$as_me:$LINENO: result: no" >&5
8612echo "${ECHO_T}no" >&6
e8b05380
PB
8613 fi
8614 done
8615fi
8616
8617if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8618 for ncn_progname in c++ g++ cxx gxx; do
8619 if test -n "$ncn_target_tool_prefix"; then
8620 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8621set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8622echo "$as_me:$LINENO: checking for $ac_word" >&5
8623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8624if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8626else
8627 if test -n "$CXX_FOR_TARGET"; then
8628 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8629else
1c710c3c
DJ
8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631for as_dir in $PATH
8632do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8637 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641done
8642done
8643
4de997d1
PB
8644fi
8645fi
1c710c3c 8646CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8647if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8648 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8649echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8650else
2aeb72e9
DD
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
4de997d1
PB
8653fi
8654
e8b05380
PB
8655 fi
8656 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8658set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8659echo "$as_me:$LINENO: checking for $ac_word" >&5
8660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8661if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8663else
2693c0b0
PB
8664 if test -n "$CXX_FOR_TARGET"; then
8665 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8666else
1c710c3c
DJ
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8674 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678done
8679done
8680
4de997d1
PB
8681fi
8682fi
1c710c3c 8683CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8684if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8685 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8686echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8687else
2aeb72e9
DD
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
4de997d1 8690fi
1c710c3c 8691
e8b05380
PB
8692 fi
8693 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8694 done
8695fi
1c710c3c 8696
2693c0b0
PB
8697if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8698 set dummy c++ g++ cxx gxx
8699 if test $build = $target ; then
8700 CXX_FOR_TARGET="$2"
4de997d1 8701 else
2693c0b0 8702 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8703 fi
1c00b503
PB
8704else
8705 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8706fi
8707
278a7a38
AO
8708
8709
8710if test -n "$GCC_FOR_TARGET"; then
8711 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8712elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8713 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8714fi
8715
8716if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8717 for ncn_progname in gcc; do
8718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8719set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8720echo "$as_me:$LINENO: checking for $ac_word" >&5
8721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8722if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724else
8725 if test -n "$GCC_FOR_TARGET"; then
8726 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8727else
8728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729for as_dir in $PATH
8730do
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8735 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8738 fi
8739done
8740done
8741
8742fi
8743fi
8744GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8745if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8746 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8747echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8748else
2aeb72e9
DD
8749 echo "$as_me:$LINENO: result: no" >&5
8750echo "${ECHO_T}no" >&6
278a7a38
AO
8751fi
8752
8753 done
8754fi
8755
8756if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8757 for ncn_progname in gcc; do
2aeb72e9
DD
8758 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8759echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8760 if test -x $with_build_time_tools/${ncn_progname}; then
8761 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8762 echo "$as_me:$LINENO: result: yes" >&5
8763echo "${ECHO_T}yes" >&6
e8b05380
PB
8764 break
8765 else
2aeb72e9
DD
8766 echo "$as_me:$LINENO: result: no" >&5
8767echo "${ECHO_T}no" >&6
e8b05380
PB
8768 fi
8769 done
8770fi
8771
8772if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8773 for ncn_progname in gcc; do
8774 if test -n "$ncn_target_tool_prefix"; then
8775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8777echo "$as_me:$LINENO: checking for $ac_word" >&5
8778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8779if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8781else
e8b05380
PB
8782 if test -n "$GCC_FOR_TARGET"; then
8783 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8784else
1c710c3c
DJ
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8792 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8795 fi
8796done
8797done
8798
ca9f4b81
AO
8799fi
8800fi
1c710c3c 8801GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8802if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8803 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8804echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8805else
2aeb72e9
DD
8806 echo "$as_me:$LINENO: result: no" >&5
8807echo "${ECHO_T}no" >&6
ca9f4b81
AO
8808fi
8809
e8b05380
PB
8810 fi
8811 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8813set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8814echo "$as_me:$LINENO: checking for $ac_word" >&5
8815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8816if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8818else
e8b05380
PB
8819 if test -n "$GCC_FOR_TARGET"; then
8820 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8821else
1c710c3c
DJ
8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823for as_dir in $PATH
8824do
8825 IFS=$as_save_IFS
8826 test -z "$as_dir" && as_dir=.
8827 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8829 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 break 2
8832 fi
8833done
8834done
8835
ca9f4b81
AO
8836fi
8837fi
1c710c3c 8838GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8839if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8840 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8841echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8842else
2aeb72e9
DD
8843 echo "$as_me:$LINENO: result: no" >&5
8844echo "${ECHO_T}no" >&6
ca9f4b81 8845fi
1c710c3c 8846
e8b05380
PB
8847 fi
8848 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8849 done
8850fi
1c710c3c 8851
e8b05380
PB
8852if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8853 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8854else
8855 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8856fi
8857
278a7a38
AO
8858
8859
8860if test -n "$GCJ_FOR_TARGET"; then
8861 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8862elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8863 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8864fi
8865
8866if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8867 for ncn_progname in gcj; do
8868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8869set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8870echo "$as_me:$LINENO: checking for $ac_word" >&5
8871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8872if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874else
8875 if test -n "$GCJ_FOR_TARGET"; then
8876 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8877else
8878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879for as_dir in $PATH
8880do
8881 IFS=$as_save_IFS
8882 test -z "$as_dir" && as_dir=.
8883 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8885 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 break 2
8888 fi
8889done
8890done
8891
8892fi
8893fi
8894GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8895if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8896 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8897echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8898else
2aeb72e9
DD
8899 echo "$as_me:$LINENO: result: no" >&5
8900echo "${ECHO_T}no" >&6
278a7a38
AO
8901fi
8902
8903 done
8904fi
8905
8906if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8907 for ncn_progname in gcj; do
2aeb72e9
DD
8908 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8909echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8910 if test -x $with_build_time_tools/${ncn_progname}; then
8911 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8912 echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
e8b05380
PB
8914 break
8915 else
2aeb72e9
DD
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
e8b05380
PB
8918 fi
8919 done
8920fi
8921
8922if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8923 for ncn_progname in gcj; do
8924 if test -n "$ncn_target_tool_prefix"; then
8925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8926set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8927echo "$as_me:$LINENO: checking for $ac_word" >&5
8928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8929if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8931else
fb0103e5
RG
8932 if test -n "$GCJ_FOR_TARGET"; then
8933 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8934else
1c710c3c
DJ
8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH
8937do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8942 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8945 fi
8946done
8947done
8948
e8b05380
PB
8949fi
8950fi
278a7a38
AO
8951GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8952if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8953 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8954echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8955else
2aeb72e9
DD
8956 echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6
278a7a38
AO
8958fi
8959
8960 fi
8961 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8963set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8964echo "$as_me:$LINENO: checking for $ac_word" >&5
8965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8966if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969 if test -n "$GCJ_FOR_TARGET"; then
8970 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8971else
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8979 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8982 fi
8983done
8984done
8985
8986fi
8987fi
8988GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8989if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8990 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8991echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8992else
2aeb72e9
DD
8993 echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
278a7a38
AO
8995fi
8996
8997 fi
8998 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8999 done
9000fi
9001
9002if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9003 set dummy gcj
9004 if test $build = $target ; then
9005 GCJ_FOR_TARGET="$2"
9006 else
9007 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9008 fi
1c00b503
PB
9009else
9010 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
9011fi
9012
9013
9014
9015if test -n "$GFORTRAN_FOR_TARGET"; then
9016 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9017elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9018 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
9019fi
9020
278a7a38
AO
9021if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9022 for ncn_progname in gfortran; do
9023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 9024set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9025echo "$as_me:$LINENO: checking for $ac_word" >&5
9026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9027if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 9028 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9029else
278a7a38
AO
9030 if test -n "$GFORTRAN_FOR_TARGET"; then
9031 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 9032else
1c710c3c
DJ
9033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034for as_dir in $PATH
9035do
9036 IFS=$as_save_IFS
9037 test -z "$as_dir" && as_dir=.
9038 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9040 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 break 2
9043 fi
9044done
9045done
9046
e8b05380
PB
9047fi
9048fi
278a7a38
AO
9049GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9050if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9051 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9052echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9053else
2aeb72e9
DD
9054 echo "$as_me:$LINENO: result: no" >&5
9055echo "${ECHO_T}no" >&6
e8b05380 9056fi
1c710c3c 9057
e8b05380
PB
9058 done
9059fi
1c710c3c 9060
278a7a38 9061if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9062 for ncn_progname in gfortran; do
2aeb72e9
DD
9063 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9064echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9065 if test -x $with_build_time_tools/${ncn_progname}; then
9066 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9067 echo "$as_me:$LINENO: result: yes" >&5
9068echo "${ECHO_T}yes" >&6
e8b05380
PB
9069 break
9070 else
2aeb72e9
DD
9071 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
e8b05380
PB
9073 fi
9074 done
9075fi
9076
9077if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9078 for ncn_progname in gfortran; do
9079 if test -n "$ncn_target_tool_prefix"; then
9080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9081set dummy ${ncn_target_tool_prefix}${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_GFORTRAN_FOR_TARGET+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9086else
9087 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
9088 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9089else
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_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101done
9102done
9103
e8b05380
PB
9104fi
9105fi
1c710c3c 9106GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9107if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9108 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9109echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9110else
2aeb72e9
DD
9111 echo "$as_me:$LINENO: result: no" >&5
9112echo "${ECHO_T}no" >&6
e8b05380
PB
9113fi
9114
9115 fi
9116 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9118set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9119echo "$as_me:$LINENO: checking for $ac_word" >&5
9120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9121if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9123else
9124 if test -n "$GFORTRAN_FOR_TARGET"; then
9125 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9126else
1c710c3c
DJ
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9134 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9137 fi
9138done
9139done
9140
e8b05380
PB
9141fi
9142fi
1c710c3c 9143GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 9144if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
9145 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
9146echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 9147else
2aeb72e9
DD
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
e8b05380 9150fi
1c710c3c 9151
e8b05380
PB
9152 fi
9153 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9154 done
9155fi
1c710c3c 9156
e8b05380
PB
9157if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9158 set dummy gfortran
2693c0b0 9159 if test $build = $target ; then
e8b05380 9160 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 9161 else
e8b05380
PB
9162 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9163 fi
1c00b503
PB
9164else
9165 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
9166fi
9167
9168
9169
e8b05380
PB
9170cat > conftest.c << \EOF
9171#ifdef __GNUC__
9172 gcc_yay;
9173#endif
9174EOF
9175if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9176 have_gcc_for_target=yes
9177else
9178 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9179 have_gcc_for_target=no
9180fi
9181rm conftest.c
9182
9183
9184
9185
9186if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9187 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9188 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
9189echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9190 if test -x $with_build_time_tools/ar; then
9191 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9192 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
9193 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
9194echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 9195 else
2aeb72e9
DD
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
d1f8db0c 9198 fi
e8b05380
PB
9199 elif test $build != $host && test $have_gcc_for_target = yes; then
9200 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
9201 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9202 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
9203 fi
9204fi
3e19841a 9205if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9206 # Extract the first word of "ar", so it can be a program name with args.
9207set dummy ar; ac_word=$2
2aeb72e9
DD
9208echo "$as_me:$LINENO: checking for $ac_word" >&5
9209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9210if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9212else
1c710c3c
DJ
9213 case $AR_FOR_TARGET in
9214 [\\/]* | ?:[\\/]*)
e8b05380
PB
9215 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9216 ;;
e8b05380 9217 *)
1c710c3c
DJ
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219for as_dir in $gcc_cv_tool_dirs
9220do
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9225 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9228 fi
9229done
9230done
9231
e8b05380
PB
9232 ;;
9233esac
9234fi
1c710c3c 9235AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 9236
e8b05380 9237if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9238 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9239echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9240else
2aeb72e9
DD
9241 echo "$as_me:$LINENO: result: no" >&5
9242echo "${ECHO_T}no" >&6
4de997d1
PB
9243fi
9244
e8b05380
PB
9245fi
9246if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
9247
9248
9249if test -n "$AR_FOR_TARGET"; then
9250 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9251elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9252 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9253fi
9254
9255if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9256 for ncn_progname in ar; do
9257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9258set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9259echo "$as_me:$LINENO: checking for $ac_word" >&5
9260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9261if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264 if test -n "$AR_FOR_TARGET"; then
9265 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9266else
9267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268for as_dir in $PATH
9269do
9270 IFS=$as_save_IFS
9271 test -z "$as_dir" && as_dir=.
9272 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9274 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9276 break 2
9277 fi
9278done
9279done
9280
9281fi
9282fi
9283AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9284if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9285 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9286echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 9287else
2aeb72e9
DD
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
278a7a38
AO
9290fi
9291
9292 done
9293fi
9294
9295if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9296 for ncn_progname in ar; do
2aeb72e9
DD
9297 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9298echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9299 if test -x $with_build_time_tools/${ncn_progname}; then
9300 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9301 echo "$as_me:$LINENO: result: yes" >&5
9302echo "${ECHO_T}yes" >&6
e8b05380
PB
9303 break
9304 else
2aeb72e9
DD
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
e8b05380
PB
9307 fi
9308 done
9309fi
9310
9311if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9312 for ncn_progname in ar; do
9313 if test -n "$ncn_target_tool_prefix"; then
9314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9315set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9316echo "$as_me:$LINENO: checking for $ac_word" >&5
9317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9318if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9320else
e8b05380
PB
9321 if test -n "$AR_FOR_TARGET"; then
9322 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 9323else
1c710c3c
DJ
9324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325for as_dir in $PATH
9326do
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9331 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9334 fi
9335done
9336done
9337
4de997d1
PB
9338fi
9339fi
1c710c3c 9340AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9341if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9342 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9343echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 9344else
2aeb72e9
DD
9345 echo "$as_me:$LINENO: result: no" >&5
9346echo "${ECHO_T}no" >&6
4de997d1
PB
9347fi
9348
e8b05380
PB
9349 fi
9350 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9352set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9353echo "$as_me:$LINENO: checking for $ac_word" >&5
9354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9355if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9357else
9358 if test -n "$AR_FOR_TARGET"; then
9359 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9360else
1c710c3c
DJ
9361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9362for as_dir in $PATH
9363do
9364 IFS=$as_save_IFS
9365 test -z "$as_dir" && as_dir=.
9366 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9368 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
9369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 break 2
9371 fi
9372done
9373done
9374
e8b05380
PB
9375fi
9376fi
1c710c3c 9377AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 9378if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
9379 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
9380echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 9381else
2aeb72e9
DD
9382 echo "$as_me:$LINENO: result: no" >&5
9383echo "${ECHO_T}no" >&6
e8b05380 9384fi
1c710c3c 9385
e8b05380
PB
9386 fi
9387 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9388 done
9389fi
1c710c3c 9390
e8b05380
PB
9391if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9392 set dummy ar
9393 if test $build = $target ; then
9394 AR_FOR_TARGET="$2"
9395 else
9396 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 9397 fi
1c00b503
PB
9398else
9399 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
9400fi
9401
d1f8db0c
PB
9402else
9403 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
9404fi
9405
9406
9407
9408
9409if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9410 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9411 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9412echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9413 if test -x $with_build_time_tools/as; then
9414 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9415 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
9416 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9417echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9418 else
2aeb72e9
DD
9419 echo "$as_me:$LINENO: result: no" >&5
9420echo "${ECHO_T}no" >&6
d1f8db0c 9421 fi
e8b05380
PB
9422 elif test $build != $host && test $have_gcc_for_target = yes; then
9423 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9424 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9425 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9426 fi
9427fi
3e19841a 9428if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9429 # Extract the first word of "as", so it can be a program name with args.
9430set dummy as; ac_word=$2
2aeb72e9
DD
9431echo "$as_me:$LINENO: checking for $ac_word" >&5
9432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9433if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9435else
1c710c3c
DJ
9436 case $AS_FOR_TARGET in
9437 [\\/]* | ?:[\\/]*)
e8b05380
PB
9438 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9439 ;;
e8b05380 9440 *)
1c710c3c
DJ
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442for as_dir in $gcc_cv_tool_dirs
9443do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
9446 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9448 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 break 2
9451 fi
9452done
9453done
9454
e8b05380
PB
9455 ;;
9456esac
9457fi
1c710c3c 9458AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9459
e8b05380 9460if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9461 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9462echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9463else
2aeb72e9
DD
9464 echo "$as_me:$LINENO: result: no" >&5
9465echo "${ECHO_T}no" >&6
e8b05380
PB
9466fi
9467
9468fi
9469if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9470
9471
9472if test -n "$AS_FOR_TARGET"; then
9473 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9474elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9475 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9476fi
9477
9478if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9479 for ncn_progname in as; do
9480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9482echo "$as_me:$LINENO: checking for $ac_word" >&5
9483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9484if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487 if test -n "$AS_FOR_TARGET"; then
9488 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9489else
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9497 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9500 fi
9501done
9502done
9503
9504fi
9505fi
9506AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9507if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9508 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9509echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9510else
2aeb72e9
DD
9511 echo "$as_me:$LINENO: result: no" >&5
9512echo "${ECHO_T}no" >&6
278a7a38
AO
9513fi
9514
9515 done
9516fi
9517
9518if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9519 for ncn_progname in as; do
2aeb72e9
DD
9520 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9521echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9522 if test -x $with_build_time_tools/${ncn_progname}; then
9523 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9524 echo "$as_me:$LINENO: result: yes" >&5
9525echo "${ECHO_T}yes" >&6
e8b05380
PB
9526 break
9527 else
2aeb72e9
DD
9528 echo "$as_me:$LINENO: result: no" >&5
9529echo "${ECHO_T}no" >&6
e8b05380
PB
9530 fi
9531 done
9532fi
9533
9534if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9535 for ncn_progname in as; do
9536 if test -n "$ncn_target_tool_prefix"; then
9537 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9538set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9539echo "$as_me:$LINENO: checking for $ac_word" >&5
9540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9541if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9543else
9544 if test -n "$AS_FOR_TARGET"; then
9545 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9546else
1c710c3c
DJ
9547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548for as_dir in $PATH
9549do
9550 IFS=$as_save_IFS
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9554 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9556 break 2
9557 fi
9558done
9559done
9560
e8b05380
PB
9561fi
9562fi
1c710c3c 9563AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9564if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9565 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9566echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9567else
2aeb72e9
DD
9568 echo "$as_me:$LINENO: result: no" >&5
9569echo "${ECHO_T}no" >&6
e8b05380
PB
9570fi
9571
9572 fi
9573 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9575set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9576echo "$as_me:$LINENO: checking for $ac_word" >&5
9577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9578if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9580else
e8b05380
PB
9581 if test -n "$AS_FOR_TARGET"; then
9582 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9583else
1c710c3c
DJ
9584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585for as_dir in $PATH
9586do
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9591 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 break 2
9594 fi
9595done
9596done
9597
4de997d1
PB
9598fi
9599fi
1c710c3c 9600AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9601if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9602 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9603echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9604else
2aeb72e9
DD
9605 echo "$as_me:$LINENO: result: no" >&5
9606echo "${ECHO_T}no" >&6
4de997d1 9607fi
1c710c3c 9608
e8b05380
PB
9609 fi
9610 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9611 done
9612fi
1c710c3c 9613
e8b05380
PB
9614if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9615 set dummy as
9616 if test $build = $target ; then
9617 AS_FOR_TARGET="$2"
9618 else
9619 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9620 fi
1c00b503
PB
9621else
9622 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9623fi
2693c0b0 9624
d1f8db0c
PB
9625else
9626 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9627fi
9628
e8b05380
PB
9629
9630
9631
9632if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9633 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9634 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9635echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9636 if test -x $with_build_time_tools/dlltool; then
9637 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9638 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9639 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9640echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9641 else
2aeb72e9
DD
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
d1f8db0c 9644 fi
e8b05380
PB
9645 elif test $build != $host && test $have_gcc_for_target = yes; then
9646 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9647 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9648 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9649 fi
9650fi
3e19841a 9651if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9652 # Extract the first word of "dlltool", so it can be a program name with args.
9653set dummy dlltool; ac_word=$2
2aeb72e9
DD
9654echo "$as_me:$LINENO: checking for $ac_word" >&5
9655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9656if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9658else
1c710c3c
DJ
9659 case $DLLTOOL_FOR_TARGET in
9660 [\\/]* | ?:[\\/]*)
e8b05380
PB
9661 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9662 ;;
e8b05380 9663 *)
1c710c3c
DJ
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $gcc_cv_tool_dirs
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9671 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 break 2
9674 fi
9675done
9676done
9677
e8b05380
PB
9678 ;;
9679esac
4de997d1 9680fi
1c710c3c 9681DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9682
e8b05380 9683if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9684 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9685echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9686else
2aeb72e9
DD
9687 echo "$as_me:$LINENO: result: no" >&5
9688echo "${ECHO_T}no" >&6
4de997d1
PB
9689fi
9690
e8b05380
PB
9691fi
9692if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9693
9694
9695if test -n "$DLLTOOL_FOR_TARGET"; then
9696 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9697elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9698 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9699fi
9700
9701if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9702 for ncn_progname in dlltool; do
9703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9704set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9705echo "$as_me:$LINENO: checking for $ac_word" >&5
9706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9707if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710 if test -n "$DLLTOOL_FOR_TARGET"; then
9711 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9712else
9713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714for as_dir in $PATH
9715do
9716 IFS=$as_save_IFS
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9720 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 break 2
9723 fi
9724done
9725done
9726
9727fi
9728fi
9729DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9730if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9731 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9732echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9733else
2aeb72e9
DD
9734 echo "$as_me:$LINENO: result: no" >&5
9735echo "${ECHO_T}no" >&6
278a7a38
AO
9736fi
9737
9738 done
9739fi
9740
9741if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9742 for ncn_progname in dlltool; do
2aeb72e9
DD
9743 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9744echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9745 if test -x $with_build_time_tools/${ncn_progname}; then
9746 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9747 echo "$as_me:$LINENO: result: yes" >&5
9748echo "${ECHO_T}yes" >&6
e8b05380
PB
9749 break
9750 else
2aeb72e9
DD
9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
e8b05380
PB
9753 fi
9754 done
9755fi
9756
9757if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9758 for ncn_progname in dlltool; do
9759 if test -n "$ncn_target_tool_prefix"; then
9760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9761set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9762echo "$as_me:$LINENO: checking for $ac_word" >&5
9763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9764if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9766else
e8b05380
PB
9767 if test -n "$DLLTOOL_FOR_TARGET"; then
9768 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9769else
1c710c3c
DJ
9770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771for as_dir in $PATH
9772do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9777 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781done
9782done
9783
4de997d1
PB
9784fi
9785fi
1c710c3c 9786DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9787if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9788 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9789echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9790else
2aeb72e9
DD
9791 echo "$as_me:$LINENO: result: no" >&5
9792echo "${ECHO_T}no" >&6
4de997d1 9793fi
4de997d1 9794
e8b05380
PB
9795 fi
9796 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9798set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9799echo "$as_me:$LINENO: checking for $ac_word" >&5
9800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9801if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9803else
e8b05380
PB
9804 if test -n "$DLLTOOL_FOR_TARGET"; then
9805 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9806else
1c710c3c
DJ
9807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808for as_dir in $PATH
9809do
9810 IFS=$as_save_IFS
9811 test -z "$as_dir" && as_dir=.
9812 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9814 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9816 break 2
9817 fi
9818done
9819done
9820
4de997d1
PB
9821fi
9822fi
1c710c3c 9823DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9824if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9825 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9826echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9827else
2aeb72e9
DD
9828 echo "$as_me:$LINENO: result: no" >&5
9829echo "${ECHO_T}no" >&6
4de997d1 9830fi
1c710c3c 9831
e8b05380
PB
9832 fi
9833 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9834 done
9835fi
1c710c3c 9836
e8b05380
PB
9837if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9838 set dummy dlltool
9839 if test $build = $target ; then
9840 DLLTOOL_FOR_TARGET="$2"
9841 else
9842 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9843 fi
1c00b503
PB
9844else
9845 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9846fi
9847
d1f8db0c
PB
9848else
9849 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9850fi
9851
4de997d1 9852
e8b05380
PB
9853
9854
9855if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9856 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9857 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9858echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9859 if test -x $with_build_time_tools/ld; then
9860 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9861 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9862 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9863echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9864 else
2aeb72e9
DD
9865 echo "$as_me:$LINENO: result: no" >&5
9866echo "${ECHO_T}no" >&6
d1f8db0c 9867 fi
e8b05380
PB
9868 elif test $build != $host && test $have_gcc_for_target = yes; then
9869 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9870 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9871 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9872 fi
e8b05380 9873fi
3e19841a 9874if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9875 # Extract the first word of "ld", so it can be a program name with args.
9876set dummy ld; ac_word=$2
2aeb72e9
DD
9877echo "$as_me:$LINENO: checking for $ac_word" >&5
9878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9879if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9881else
1c710c3c
DJ
9882 case $LD_FOR_TARGET in
9883 [\\/]* | ?:[\\/]*)
e8b05380
PB
9884 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9885 ;;
e8b05380 9886 *)
1c710c3c
DJ
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $gcc_cv_tool_dirs
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9894 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9897 fi
9898done
9899done
9900
e8b05380
PB
9901 ;;
9902esac
4de997d1 9903fi
1c710c3c 9904LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9905
e8b05380 9906if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9907 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9908echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9909else
2aeb72e9
DD
9910 echo "$as_me:$LINENO: result: no" >&5
9911echo "${ECHO_T}no" >&6
4de997d1 9912fi
2693c0b0 9913
e8b05380
PB
9914fi
9915if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9916
9917
9918if test -n "$LD_FOR_TARGET"; then
9919 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9920elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9921 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9922fi
9923
9924if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9925 for ncn_progname in ld; do
9926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9927set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9928echo "$as_me:$LINENO: checking for $ac_word" >&5
9929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9930if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933 if test -n "$LD_FOR_TARGET"; then
9934 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9935else
9936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937for as_dir in $PATH
9938do
9939 IFS=$as_save_IFS
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9943 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 break 2
9946 fi
9947done
9948done
9949
9950fi
9951fi
9952LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9953if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9954 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9955echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9956else
2aeb72e9
DD
9957 echo "$as_me:$LINENO: result: no" >&5
9958echo "${ECHO_T}no" >&6
278a7a38
AO
9959fi
9960
9961 done
9962fi
9963
9964if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9965 for ncn_progname in ld; do
2aeb72e9
DD
9966 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9967echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9968 if test -x $with_build_time_tools/${ncn_progname}; then
9969 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9970 echo "$as_me:$LINENO: result: yes" >&5
9971echo "${ECHO_T}yes" >&6
e8b05380
PB
9972 break
9973 else
2aeb72e9
DD
9974 echo "$as_me:$LINENO: result: no" >&5
9975echo "${ECHO_T}no" >&6
e8b05380
PB
9976 fi
9977 done
ca9f4b81
AO
9978fi
9979
e8b05380
PB
9980if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9981 for ncn_progname in ld; do
9982 if test -n "$ncn_target_tool_prefix"; then
9983 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9984set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9985echo "$as_me:$LINENO: checking for $ac_word" >&5
9986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9987if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9989else
4de997d1
PB
9990 if test -n "$LD_FOR_TARGET"; then
9991 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9992else
1c710c3c
DJ
9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10000 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10003 fi
10004done
10005done
10006
ca9f4b81
AO
10007fi
10008fi
1c710c3c 10009LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 10010if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10011 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10012echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10013else
2aeb72e9
DD
10014 echo "$as_me:$LINENO: result: no" >&5
10015echo "${ECHO_T}no" >&6
ca9f4b81
AO
10016fi
10017
e8b05380
PB
10018 fi
10019 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10021set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10022echo "$as_me:$LINENO: checking for $ac_word" >&5
10023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10024if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10026else
2693c0b0
PB
10027 if test -n "$LD_FOR_TARGET"; then
10028 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 10029else
1c710c3c
DJ
10030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10037 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041done
10042done
10043
ca9f4b81
AO
10044fi
10045fi
1c710c3c 10046LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 10047if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
10048 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
10049echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 10050else
2aeb72e9
DD
10051 echo "$as_me:$LINENO: result: no" >&5
10052echo "${ECHO_T}no" >&6
ca9f4b81 10053fi
1c710c3c 10054
e8b05380
PB
10055 fi
10056 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10057 done
10058fi
1c710c3c 10059
2693c0b0
PB
10060if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10061 set dummy ld
10062 if test $build = $target ; then
10063 LD_FOR_TARGET="$2"
ca9f4b81 10064 else
2693c0b0 10065 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10066 fi
1c00b503
PB
10067else
10068 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
10069fi
10070
d1f8db0c
PB
10071else
10072 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
10073fi
10074
10075
10076
10077
10078if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10079 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10080 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
10081echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10082 if test -x $with_build_time_tools/lipo; then
10083 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10084 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
10085 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10086echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 10087 else
2aeb72e9
DD
10088 echo "$as_me:$LINENO: result: no" >&5
10089echo "${ECHO_T}no" >&6
d1f8db0c 10090 fi
e8b05380
PB
10091 elif test $build != $host && test $have_gcc_for_target = yes; then
10092 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
10093 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10094 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
10095 fi
10096fi
278a7a38
AO
10097if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10098 # Extract the first word of "lipo", so it can be a program name with args.
10099set dummy lipo; ac_word=$2
2aeb72e9
DD
10100echo "$as_me:$LINENO: checking for $ac_word" >&5
10101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10102if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105 case $LIPO_FOR_TARGET in
10106 [\\/]* | ?:[\\/]*)
10107 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10108 ;;
10109 *)
10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111for as_dir in $gcc_cv_tool_dirs
10112do
10113 IFS=$as_save_IFS
10114 test -z "$as_dir" && as_dir=.
10115 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10117 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 break 2
10120 fi
10121done
10122done
10123
10124 ;;
10125esac
10126fi
10127LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 10128
278a7a38 10129if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10130 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10131echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 10132else
2aeb72e9
DD
10133 echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
278a7a38
AO
10135fi
10136
10137fi
10138if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10139
10140
10141if test -n "$LIPO_FOR_TARGET"; then
10142 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10143elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10144 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10145fi
10146
10147if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10148 for ncn_progname in lipo; do
10149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10150set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10151echo "$as_me:$LINENO: checking for $ac_word" >&5
10152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 10153if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 10154 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10155else
278a7a38
AO
10156 if test -n "$LIPO_FOR_TARGET"; then
10157 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10158else
10159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160for as_dir in $PATH
1c710c3c
DJ
10161do
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10166 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
10167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10169 fi
10170done
10171done
10172
e8b05380 10173fi
278a7a38
AO
10174fi
10175LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 10176if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10177 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10178echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 10179else
2aeb72e9
DD
10180 echo "$as_me:$LINENO: result: no" >&5
10181echo "${ECHO_T}no" >&6
e8b05380
PB
10182fi
10183
278a7a38 10184 done
e8b05380 10185fi
278a7a38
AO
10186
10187if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10188 for ncn_progname in lipo; do
2aeb72e9
DD
10189 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10190echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10191 if test -x $with_build_time_tools/${ncn_progname}; then
10192 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10193 echo "$as_me:$LINENO: result: yes" >&5
10194echo "${ECHO_T}yes" >&6
e8b05380
PB
10195 break
10196 else
2aeb72e9
DD
10197 echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6
e8b05380
PB
10199 fi
10200 done
10201fi
10202
10203if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10204 for ncn_progname in lipo; do
10205 if test -n "$ncn_target_tool_prefix"; then
10206 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10207set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10208echo "$as_me:$LINENO: checking for $ac_word" >&5
10209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10210if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10212else
10213 if test -n "$LIPO_FOR_TARGET"; then
10214 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10215else
1c710c3c
DJ
10216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217for as_dir in $PATH
10218do
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10223 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10226 fi
10227done
10228done
10229
040b1c5a
GK
10230fi
10231fi
1c710c3c 10232LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10233if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10234 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10235echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10236else
2aeb72e9
DD
10237 echo "$as_me:$LINENO: result: no" >&5
10238echo "${ECHO_T}no" >&6
040b1c5a
GK
10239fi
10240
e8b05380
PB
10241 fi
10242 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10244set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10245echo "$as_me:$LINENO: checking for $ac_word" >&5
10246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10247if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10249else
10250 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
10251 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10252else
1c710c3c
DJ
10253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254for as_dir in $PATH
10255do
10256 IFS=$as_save_IFS
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10260 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 break 2
10263 fi
10264done
10265done
10266
040b1c5a
GK
10267fi
10268fi
1c710c3c 10269LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 10270if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
10271 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
10272echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 10273else
2aeb72e9
DD
10274 echo "$as_me:$LINENO: result: no" >&5
10275echo "${ECHO_T}no" >&6
040b1c5a 10276fi
1c710c3c 10277
e8b05380
PB
10278 fi
10279 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10280 done
10281fi
1c710c3c 10282
040b1c5a
GK
10283if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10284 set dummy lipo
10285 if test $build = $target ; then
10286 LIPO_FOR_TARGET="$2"
10287 else
10288 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10289 fi
1c00b503
PB
10290else
10291 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
10292fi
10293
d1f8db0c
PB
10294else
10295 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
10296fi
10297
10298
10299
10300
10301if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10302 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10303 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
10304echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10305 if test -x $with_build_time_tools/nm; then
10306 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10307 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
10308 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
10309echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 10310 else
2aeb72e9
DD
10311 echo "$as_me:$LINENO: result: no" >&5
10312echo "${ECHO_T}no" >&6
d1f8db0c 10313 fi
e8b05380
PB
10314 elif test $build != $host && test $have_gcc_for_target = yes; then
10315 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
10316 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10317 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
10318 fi
10319fi
3e19841a 10320if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10321 # Extract the first word of "nm", so it can be a program name with args.
10322set dummy nm; ac_word=$2
2aeb72e9
DD
10323echo "$as_me:$LINENO: checking for $ac_word" >&5
10324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10325if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10327else
1c710c3c
DJ
10328 case $NM_FOR_TARGET in
10329 [\\/]* | ?:[\\/]*)
e8b05380
PB
10330 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10331 ;;
e8b05380 10332 *)
1c710c3c
DJ
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334for as_dir in $gcc_cv_tool_dirs
10335do
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10340 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 break 2
10343 fi
10344done
10345done
10346
e8b05380
PB
10347 ;;
10348esac
10349fi
1c710c3c 10350NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 10351
e8b05380 10352if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10353 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10354echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 10355else
2aeb72e9
DD
10356 echo "$as_me:$LINENO: result: no" >&5
10357echo "${ECHO_T}no" >&6
e8b05380
PB
10358fi
10359
10360fi
10361if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
10362
10363
10364if test -n "$NM_FOR_TARGET"; then
10365 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
10366elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10367 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10368fi
10369
10370if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
10371 for ncn_progname in nm; do
10372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10373set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10374echo "$as_me:$LINENO: checking for $ac_word" >&5
10375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10376if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378else
10379 if test -n "$NM_FOR_TARGET"; then
10380 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10381else
10382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383for as_dir in $PATH
10384do
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10389 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 break 2
10392 fi
10393done
10394done
10395
10396fi
10397fi
10398NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10399if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10400 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10401echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 10402else
2aeb72e9
DD
10403 echo "$as_me:$LINENO: result: no" >&5
10404echo "${ECHO_T}no" >&6
278a7a38
AO
10405fi
10406
10407 done
10408fi
10409
10410if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10411 for ncn_progname in nm; do
2aeb72e9
DD
10412 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10413echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10414 if test -x $with_build_time_tools/${ncn_progname}; then
10415 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10416 echo "$as_me:$LINENO: result: yes" >&5
10417echo "${ECHO_T}yes" >&6
e8b05380
PB
10418 break
10419 else
2aeb72e9
DD
10420 echo "$as_me:$LINENO: result: no" >&5
10421echo "${ECHO_T}no" >&6
e8b05380
PB
10422 fi
10423 done
10424fi
10425
10426if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10427 for ncn_progname in nm; do
10428 if test -n "$ncn_target_tool_prefix"; then
10429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10430set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10431echo "$as_me:$LINENO: checking for $ac_word" >&5
10432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10433if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10435else
4de997d1
PB
10436 if test -n "$NM_FOR_TARGET"; then
10437 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10438else
1c710c3c
DJ
10439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in $PATH
10441do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10446 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10449 fi
10450done
10451done
10452
ca9f4b81
AO
10453fi
10454fi
1c710c3c 10455NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10456if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10457 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10458echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10459else
2aeb72e9
DD
10460 echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
ca9f4b81
AO
10462fi
10463
e8b05380
PB
10464 fi
10465 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10467set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10468echo "$as_me:$LINENO: checking for $ac_word" >&5
10469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10470if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10472else
2693c0b0
PB
10473 if test -n "$NM_FOR_TARGET"; then
10474 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10475else
1c710c3c
DJ
10476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477for as_dir in $PATH
10478do
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10483 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10486 fi
10487done
10488done
10489
ca9f4b81
AO
10490fi
10491fi
1c710c3c 10492NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10493if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10494 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10495echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10496else
2aeb72e9
DD
10497 echo "$as_me:$LINENO: result: no" >&5
10498echo "${ECHO_T}no" >&6
ca9f4b81 10499fi
1c710c3c 10500
e8b05380
PB
10501 fi
10502 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10503 done
10504fi
1c710c3c 10505
2693c0b0
PB
10506if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10507 set dummy nm
10508 if test $build = $target ; then
10509 NM_FOR_TARGET="$2"
ca9f4b81 10510 else
2693c0b0 10511 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10512 fi
1c00b503
PB
10513else
10514 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10515fi
10516
d1f8db0c
PB
10517else
10518 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10519fi
10520
10521
10522
10523
10524if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10525 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10526 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10527echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10528 if test -x $with_build_time_tools/objdump; then
10529 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10530 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10531 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10532echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10533 else
2aeb72e9
DD
10534 echo "$as_me:$LINENO: result: no" >&5
10535echo "${ECHO_T}no" >&6
d1f8db0c 10536 fi
e8b05380
PB
10537 elif test $build != $host && test $have_gcc_for_target = yes; then
10538 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10539 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10540 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10541 fi
10542fi
3e19841a 10543if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10544 # Extract the first word of "objdump", so it can be a program name with args.
10545set dummy objdump; ac_word=$2
2aeb72e9
DD
10546echo "$as_me:$LINENO: checking for $ac_word" >&5
10547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10548if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10550else
1c710c3c
DJ
10551 case $OBJDUMP_FOR_TARGET in
10552 [\\/]* | ?:[\\/]*)
e8b05380
PB
10553 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10554 ;;
e8b05380 10555 *)
1c710c3c
DJ
10556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557for as_dir in $gcc_cv_tool_dirs
10558do
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10563 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567done
10568done
10569
e8b05380
PB
10570 ;;
10571esac
10572fi
1c710c3c 10573OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10574
e8b05380 10575if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10576 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10577echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10578else
2aeb72e9
DD
10579 echo "$as_me:$LINENO: result: no" >&5
10580echo "${ECHO_T}no" >&6
e8b05380
PB
10581fi
10582
10583fi
10584if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10585
10586
10587if test -n "$OBJDUMP_FOR_TARGET"; then
10588 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10589elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10590 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10591fi
10592
10593if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10594 for ncn_progname in objdump; do
10595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10596set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10597echo "$as_me:$LINENO: checking for $ac_word" >&5
10598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10599if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601else
10602 if test -n "$OBJDUMP_FOR_TARGET"; then
10603 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10604else
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10612 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 break 2
10615 fi
10616done
10617done
10618
10619fi
10620fi
10621OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10622if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10623 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10624echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10625else
2aeb72e9
DD
10626 echo "$as_me:$LINENO: result: no" >&5
10627echo "${ECHO_T}no" >&6
278a7a38
AO
10628fi
10629
10630 done
10631fi
10632
10633if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10634 for ncn_progname in objdump; do
2aeb72e9
DD
10635 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10636echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10637 if test -x $with_build_time_tools/${ncn_progname}; then
10638 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10639 echo "$as_me:$LINENO: result: yes" >&5
10640echo "${ECHO_T}yes" >&6
e8b05380
PB
10641 break
10642 else
2aeb72e9
DD
10643 echo "$as_me:$LINENO: result: no" >&5
10644echo "${ECHO_T}no" >&6
e8b05380
PB
10645 fi
10646 done
10647fi
10648
10649if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10650 for ncn_progname in objdump; do
10651 if test -n "$ncn_target_tool_prefix"; then
10652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10653set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10654echo "$as_me:$LINENO: checking for $ac_word" >&5
10655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10656if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10658else
10659 if test -n "$OBJDUMP_FOR_TARGET"; then
10660 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10661else
1c710c3c
DJ
10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
10664do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10669 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673done
10674done
10675
d739199a
DJ
10676fi
10677fi
1c710c3c 10678OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10679if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10680 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10681echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10682else
2aeb72e9
DD
10683 echo "$as_me:$LINENO: result: no" >&5
10684echo "${ECHO_T}no" >&6
d739199a
DJ
10685fi
10686
e8b05380
PB
10687 fi
10688 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10690set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10691echo "$as_me:$LINENO: checking for $ac_word" >&5
10692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10693if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10695else
10696 if test -n "$OBJDUMP_FOR_TARGET"; then
10697 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10698else
1c710c3c
DJ
10699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700for as_dir in $PATH
10701do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10706 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 break 2
10709 fi
10710done
10711done
10712
d739199a
DJ
10713fi
10714fi
1c710c3c 10715OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10716if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10717 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10718echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10719else
2aeb72e9
DD
10720 echo "$as_me:$LINENO: result: no" >&5
10721echo "${ECHO_T}no" >&6
d739199a 10722fi
1c710c3c 10723
e8b05380
PB
10724 fi
10725 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10726 done
10727fi
1c710c3c 10728
d739199a
DJ
10729if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10730 set dummy objdump
10731 if test $build = $target ; then
10732 OBJDUMP_FOR_TARGET="$2"
10733 else
10734 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10735 fi
1c00b503
PB
10736else
10737 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10738fi
10739
d1f8db0c
PB
10740else
10741 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10742fi
10743
10744
10745
10746
10747if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10748 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10749 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10750echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10751 if test -x $with_build_time_tools/ranlib; then
10752 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10753 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10754 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10755echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10756 else
2aeb72e9
DD
10757 echo "$as_me:$LINENO: result: no" >&5
10758echo "${ECHO_T}no" >&6
d1f8db0c 10759 fi
e8b05380
PB
10760 elif test $build != $host && test $have_gcc_for_target = yes; then
10761 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10762 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10763 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10764 fi
10765fi
3e19841a 10766if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10767 # Extract the first word of "ranlib", so it can be a program name with args.
10768set dummy ranlib; ac_word=$2
2aeb72e9
DD
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10771if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10773else
1c710c3c
DJ
10774 case $RANLIB_FOR_TARGET in
10775 [\\/]* | ?:[\\/]*)
e8b05380
PB
10776 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10777 ;;
e8b05380 10778 *)
1c710c3c
DJ
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $gcc_cv_tool_dirs
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10786 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790done
10791done
10792
e8b05380
PB
10793 ;;
10794esac
10795fi
1c710c3c 10796RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10797
e8b05380 10798if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10799 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10800echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10801else
2aeb72e9
DD
10802 echo "$as_me:$LINENO: result: no" >&5
10803echo "${ECHO_T}no" >&6
e8b05380
PB
10804fi
10805
10806fi
10807if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10808
10809
10810if test -n "$RANLIB_FOR_TARGET"; then
10811 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10812elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10813 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10814fi
10815
10816if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10817 for ncn_progname in ranlib; do
10818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10819set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10820echo "$as_me:$LINENO: checking for $ac_word" >&5
10821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10822if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824else
10825 if test -n "$RANLIB_FOR_TARGET"; then
10826 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10827else
10828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829for as_dir in $PATH
10830do
10831 IFS=$as_save_IFS
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10835 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10837 break 2
10838 fi
10839done
10840done
10841
10842fi
10843fi
10844RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10845if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10846 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10847echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10848else
2aeb72e9
DD
10849 echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6
278a7a38
AO
10851fi
10852
10853 done
10854fi
10855
10856if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10857 for ncn_progname in ranlib; do
2aeb72e9
DD
10858 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10859echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10860 if test -x $with_build_time_tools/${ncn_progname}; then
10861 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10862 echo "$as_me:$LINENO: result: yes" >&5
10863echo "${ECHO_T}yes" >&6
e8b05380
PB
10864 break
10865 else
2aeb72e9
DD
10866 echo "$as_me:$LINENO: result: no" >&5
10867echo "${ECHO_T}no" >&6
e8b05380
PB
10868 fi
10869 done
10870fi
10871
10872if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10873 for ncn_progname in ranlib; do
10874 if test -n "$ncn_target_tool_prefix"; then
10875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10876set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10877echo "$as_me:$LINENO: checking for $ac_word" >&5
10878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10879if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10881else
4de997d1
PB
10882 if test -n "$RANLIB_FOR_TARGET"; then
10883 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10884else
1c710c3c
DJ
10885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886for as_dir in $PATH
10887do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10892 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10895 fi
10896done
10897done
10898
ca9f4b81
AO
10899fi
10900fi
1c710c3c 10901RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10902if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10903 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10904echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10905else
2aeb72e9
DD
10906 echo "$as_me:$LINENO: result: no" >&5
10907echo "${ECHO_T}no" >&6
ca9f4b81
AO
10908fi
10909
e8b05380
PB
10910 fi
10911 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10913set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10914echo "$as_me:$LINENO: checking for $ac_word" >&5
10915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10916if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10918else
2693c0b0
PB
10919 if test -n "$RANLIB_FOR_TARGET"; then
10920 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10921else
1c710c3c
DJ
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10929 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10932 fi
10933done
10934done
10935
ca9f4b81
AO
10936fi
10937fi
1c710c3c 10938RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10939if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10940 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10941echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10942else
2aeb72e9
DD
10943 echo "$as_me:$LINENO: result: no" >&5
10944echo "${ECHO_T}no" >&6
ca9f4b81 10945fi
1c710c3c 10946
e8b05380
PB
10947 fi
10948 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10949 done
10950fi
1c710c3c 10951
e8b05380
PB
10952if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10953 set dummy ranlib
10954 if test $build = $target ; then
10955 RANLIB_FOR_TARGET="$2"
10956 else
10957 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10958 fi
1c00b503
PB
10959else
10960 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10961fi
2693c0b0 10962
d1f8db0c
PB
10963else
10964 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10965fi
10966
e8b05380
PB
10967
10968
10969
10970if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10971 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10972 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10973echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10974 if test -x $with_build_time_tools/strip; then
10975 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10976 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10977 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10978echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10979 else
2aeb72e9
DD
10980 echo "$as_me:$LINENO: result: no" >&5
10981echo "${ECHO_T}no" >&6
d1f8db0c 10982 fi
e8b05380
PB
10983 elif test $build != $host && test $have_gcc_for_target = yes; then
10984 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10985 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10986 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10987 fi
10988fi
3e19841a 10989if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10990 # Extract the first word of "strip", so it can be a program name with args.
10991set dummy strip; ac_word=$2
2aeb72e9
DD
10992echo "$as_me:$LINENO: checking for $ac_word" >&5
10993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10994if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10996else
1c710c3c
DJ
10997 case $STRIP_FOR_TARGET in
10998 [\\/]* | ?:[\\/]*)
e8b05380
PB
10999 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11000 ;;
e8b05380 11001 *)
1c710c3c
DJ
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $gcc_cv_tool_dirs
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11009 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11012 fi
11013done
11014done
11015
e8b05380
PB
11016 ;;
11017esac
11018fi
1c710c3c 11019STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 11020
e8b05380 11021if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11022 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11023echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 11024else
2aeb72e9
DD
11025 echo "$as_me:$LINENO: result: no" >&5
11026echo "${ECHO_T}no" >&6
e8b05380
PB
11027fi
11028
11029fi
11030if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
11031
11032
11033if test -n "$STRIP_FOR_TARGET"; then
11034 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11035elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11036 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11037fi
11038
11039if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11040 for ncn_progname in strip; do
11041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11042set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11043echo "$as_me:$LINENO: checking for $ac_word" >&5
11044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11045if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else
11048 if test -n "$STRIP_FOR_TARGET"; then
11049 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11050else
11051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052for as_dir in $PATH
11053do
11054 IFS=$as_save_IFS
11055 test -z "$as_dir" && as_dir=.
11056 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11058 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11060 break 2
11061 fi
11062done
11063done
11064
11065fi
11066fi
11067STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11068if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11069 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11070echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 11071else
2aeb72e9
DD
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
278a7a38
AO
11074fi
11075
11076 done
11077fi
11078
11079if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11080 for ncn_progname in strip; do
2aeb72e9
DD
11081 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11082echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11083 if test -x $with_build_time_tools/${ncn_progname}; then
11084 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11085 echo "$as_me:$LINENO: result: yes" >&5
11086echo "${ECHO_T}yes" >&6
e8b05380
PB
11087 break
11088 else
2aeb72e9
DD
11089 echo "$as_me:$LINENO: result: no" >&5
11090echo "${ECHO_T}no" >&6
e8b05380
PB
11091 fi
11092 done
11093fi
11094
11095if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11096 for ncn_progname in strip; do
11097 if test -n "$ncn_target_tool_prefix"; then
11098 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11099set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11100echo "$as_me:$LINENO: checking for $ac_word" >&5
11101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11102if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
11104else
11105 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
11106 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11107else
11108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109for as_dir in $PATH
11110do
11111 IFS=$as_save_IFS
11112 test -z "$as_dir" && as_dir=.
11113 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11115 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 break 2
11118 fi
11119done
11120done
11121
040b1c5a
GK
11122fi
11123fi
1c710c3c 11124STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11125if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11126 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11127echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11128else
2aeb72e9
DD
11129 echo "$as_me:$LINENO: result: no" >&5
11130echo "${ECHO_T}no" >&6
040b1c5a
GK
11131fi
11132
e8b05380
PB
11133 fi
11134 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11136set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11137echo "$as_me:$LINENO: checking for $ac_word" >&5
11138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11139if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
11141else
11142 if test -n "$STRIP_FOR_TARGET"; then
11143 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11144else
1c710c3c
DJ
11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11152 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11155 fi
11156done
11157done
11158
040b1c5a
GK
11159fi
11160fi
1c710c3c 11161STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 11162if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
11163 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
11164echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 11165else
2aeb72e9
DD
11166 echo "$as_me:$LINENO: result: no" >&5
11167echo "${ECHO_T}no" >&6
040b1c5a 11168fi
1c710c3c 11169
e8b05380
PB
11170 fi
11171 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11172 done
11173fi
1c710c3c 11174
040b1c5a
GK
11175if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11176 set dummy strip
11177 if test $build = $target ; then
11178 STRIP_FOR_TARGET="$2"
11179 else
11180 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11181 fi
1c00b503
PB
11182else
11183 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
11184fi
11185
d1f8db0c
PB
11186else
11187 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
11188fi
11189
11190
11191
11192
11193if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11194 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
11195 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
11196echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11197 if test -x $with_build_time_tools/windres; then
11198 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11199 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
11200 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11201echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 11202 else
2aeb72e9
DD
11203 echo "$as_me:$LINENO: result: no" >&5
11204echo "${ECHO_T}no" >&6
d1f8db0c 11205 fi
e8b05380
PB
11206 elif test $build != $host && test $have_gcc_for_target = yes; then
11207 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
11208 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11209 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
11210 fi
11211fi
3e19841a 11212if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11213 # Extract the first word of "windres", so it can be a program name with args.
11214set dummy windres; ac_word=$2
2aeb72e9
DD
11215echo "$as_me:$LINENO: checking for $ac_word" >&5
11216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11217if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 11219else
1c710c3c
DJ
11220 case $WINDRES_FOR_TARGET in
11221 [\\/]* | ?:[\\/]*)
e8b05380
PB
11222 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11223 ;;
e8b05380 11224 *)
1c710c3c
DJ
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $gcc_cv_tool_dirs
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11232 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236done
11237done
11238
e8b05380
PB
11239 ;;
11240esac
11241fi
1c710c3c 11242WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 11243
e8b05380 11244if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11245 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11246echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 11247else
2aeb72e9
DD
11248 echo "$as_me:$LINENO: result: no" >&5
11249echo "${ECHO_T}no" >&6
e8b05380
PB
11250fi
11251
11252fi
11253if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
11254
11255
11256if test -n "$WINDRES_FOR_TARGET"; then
11257 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11258elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11259 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11260fi
11261
11262if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11263 for ncn_progname in windres; do
11264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11265set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11266echo "$as_me:$LINENO: checking for $ac_word" >&5
11267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
11268if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 if test -n "$WINDRES_FOR_TARGET"; then
11272 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11273else
11274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
11281 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285done
11286done
11287
11288fi
11289fi
11290WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11291if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11292 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11293echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 11294else
2aeb72e9
DD
11295 echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6
278a7a38
AO
11297fi
11298
11299 done
11300fi
11301
11302if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11303 for ncn_progname in windres; do
2aeb72e9
DD
11304 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11305echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
11306 if test -x $with_build_time_tools/${ncn_progname}; then
11307 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
11308 echo "$as_me:$LINENO: result: yes" >&5
11309echo "${ECHO_T}yes" >&6
e8b05380
PB
11310 break
11311 else
2aeb72e9
DD
11312 echo "$as_me:$LINENO: result: no" >&5
11313echo "${ECHO_T}no" >&6
e8b05380
PB
11314 fi
11315 done
11316fi
11317
11318if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11319 for ncn_progname in windres; do
11320 if test -n "$ncn_target_tool_prefix"; then
11321 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11322set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
11323echo "$as_me:$LINENO: checking for $ac_word" >&5
11324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11325if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11327else
4de997d1
PB
11328 if test -n "$WINDRES_FOR_TARGET"; then
11329 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11330else
1c710c3c
DJ
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11338 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 break 2
11341 fi
11342done
11343done
11344
ca9f4b81
AO
11345fi
11346fi
1c710c3c 11347WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 11348if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11349 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11350echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11351else
2aeb72e9
DD
11352 echo "$as_me:$LINENO: result: no" >&5
11353echo "${ECHO_T}no" >&6
ca9f4b81
AO
11354fi
11355
e8b05380
PB
11356 fi
11357 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
11358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11359set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
11360echo "$as_me:$LINENO: checking for $ac_word" >&5
11361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
11362if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 11364else
2693c0b0
PB
11365 if test -n "$WINDRES_FOR_TARGET"; then
11366 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 11367else
1c710c3c
DJ
11368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369for as_dir in $PATH
11370do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 11374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
11375 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
11376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11378 fi
11379done
11380done
11381
ca9f4b81
AO
11382fi
11383fi
1c710c3c 11384WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 11385if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
11386 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11387echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 11388else
2aeb72e9
DD
11389 echo "$as_me:$LINENO: result: no" >&5
11390echo "${ECHO_T}no" >&6
ca9f4b81 11391fi
1c710c3c 11392
e8b05380
PB
11393 fi
11394 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11395 done
11396fi
1c710c3c 11397
2693c0b0
PB
11398if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11399 set dummy windres
11400 if test $build = $target ; then
11401 WINDRES_FOR_TARGET="$2"
ca9f4b81 11402 else
2693c0b0 11403 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11404 fi
1c00b503
PB
11405else
11406 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
11407fi
11408
d1f8db0c
PB
11409else
11410 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
11411fi
11412
4977bab6 11413
901119ae
KT
11414
11415
11416if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11417 if test -n "$with_build_time_tools"; then
11418 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11419echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11420 if test -x $with_build_time_tools/windmc; then
11421 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11422 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11423 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11424echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11425 else
11426 echo "$as_me:$LINENO: result: no" >&5
11427echo "${ECHO_T}no" >&6
11428 fi
11429 elif test $build != $host && test $have_gcc_for_target = yes; then
11430 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11431 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11432 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11433 fi
11434fi
11435if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11436 # Extract the first word of "windmc", so it can be a program name with args.
11437set dummy windmc; ac_word=$2
11438echo "$as_me:$LINENO: checking for $ac_word" >&5
11439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11440if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11442else
11443 case $WINDMC_FOR_TARGET in
11444 [\\/]* | ?:[\\/]*)
11445 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11446 ;;
11447 *)
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449for as_dir in $gcc_cv_tool_dirs
11450do
11451 IFS=$as_save_IFS
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11455 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11457 break 2
11458 fi
11459done
11460done
11461
11462 ;;
11463esac
11464fi
11465WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11466
11467if test -n "$WINDMC_FOR_TARGET"; then
11468 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11469echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11470else
11471 echo "$as_me:$LINENO: result: no" >&5
11472echo "${ECHO_T}no" >&6
11473fi
11474
11475fi
11476if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11477
11478
11479if test -n "$WINDMC_FOR_TARGET"; then
11480 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11481elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11482 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11483fi
11484
11485if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11486 for ncn_progname in windmc; do
11487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11488set dummy ${ncn_progname}; ac_word=$2
11489echo "$as_me:$LINENO: checking for $ac_word" >&5
11490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11491if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 if test -n "$WINDMC_FOR_TARGET"; then
11495 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11496else
11497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498for as_dir in $PATH
11499do
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11504 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 break 2
11507 fi
11508done
11509done
11510
11511fi
11512fi
11513WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11514if test -n "$WINDMC_FOR_TARGET"; then
11515 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11516echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11517else
11518 echo "$as_me:$LINENO: result: no" >&5
11519echo "${ECHO_T}no" >&6
11520fi
11521
11522 done
11523fi
11524
11525if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11526 for ncn_progname in windmc; do
11527 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11528echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11529 if test -x $with_build_time_tools/${ncn_progname}; then
11530 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11531 echo "$as_me:$LINENO: result: yes" >&5
11532echo "${ECHO_T}yes" >&6
11533 break
11534 else
11535 echo "$as_me:$LINENO: result: no" >&5
11536echo "${ECHO_T}no" >&6
11537 fi
11538 done
11539fi
11540
11541if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11542 for ncn_progname in windmc; do
11543 if test -n "$ncn_target_tool_prefix"; then
11544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11545set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11546echo "$as_me:$LINENO: checking for $ac_word" >&5
11547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11548if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 if test -n "$WINDMC_FOR_TARGET"; then
11552 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11553else
11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11564 fi
11565done
11566done
11567
11568fi
11569fi
11570WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11571if test -n "$WINDMC_FOR_TARGET"; then
11572 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11573echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11574else
11575 echo "$as_me:$LINENO: result: no" >&5
11576echo "${ECHO_T}no" >&6
11577fi
11578
11579 fi
11580 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11582set dummy ${ncn_progname}; ac_word=$2
11583echo "$as_me:$LINENO: checking for $ac_word" >&5
11584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11585if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else
11588 if test -n "$WINDMC_FOR_TARGET"; then
11589 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11590else
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11601 fi
11602done
11603done
11604
11605fi
11606fi
11607WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11608if test -n "$WINDMC_FOR_TARGET"; then
11609 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11610echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11611else
11612 echo "$as_me:$LINENO: result: no" >&5
11613echo "${ECHO_T}no" >&6
11614fi
11615
11616 fi
11617 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11618 done
11619fi
11620
11621if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11622 set dummy windmc
11623 if test $build = $target ; then
11624 WINDMC_FOR_TARGET="$2"
11625 else
11626 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11627 fi
1c00b503
PB
11628else
11629 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11630fi
11631
11632else
11633 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11634fi
11635
11636
2abefe3d
PB
11637RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11638
2aeb72e9
DD
11639echo "$as_me:$LINENO: checking where to find the target ar" >&5
11640echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11641if test "x${build}" != "x${host}" ; then
e8b05380
PB
11642 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11643 # We already found the complete path
172e41aa 11644 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11645 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11646echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11647 else
11648 # Canadian cross, just use what we found
2aeb72e9
DD
11649 echo "$as_me:$LINENO: result: pre-installed" >&5
11650echo "${ECHO_T}pre-installed" >&6
e8b05380 11651 fi
2abefe3d
PB
11652else
11653 ok=yes
11654 case " ${configdirs} " in
11655 *" binutils "*) ;;
11656 *) ok=no ;;
11657 esac
1c710c3c 11658
2abefe3d
PB
11659 if test $ok = yes; then
11660 # An in-tree tool is available and we can use it
11661 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11662 echo "$as_me:$LINENO: result: just compiled" >&5
11663echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11664 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11665 # We already found the complete path
172e41aa 11666 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11667 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11668echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11669 elif test "x$target" = "x$host"; then
11670 # We can use an host tool
11671 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11672 echo "$as_me:$LINENO: result: host tool" >&5
11673echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11674 else
11675 # We need a cross tool
2aeb72e9
DD
11676 echo "$as_me:$LINENO: result: pre-installed" >&5
11677echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11678 fi
11679fi
0b0dc272 11680
2aeb72e9
DD
11681echo "$as_me:$LINENO: checking where to find the target as" >&5
11682echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11683if test "x${build}" != "x${host}" ; then
e8b05380
PB
11684 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11685 # We already found the complete path
172e41aa 11686 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11687 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11688echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11689 else
11690 # Canadian cross, just use what we found
2aeb72e9
DD
11691 echo "$as_me:$LINENO: result: pre-installed" >&5
11692echo "${ECHO_T}pre-installed" >&6
e8b05380 11693 fi
2abefe3d
PB
11694else
11695 ok=yes
11696 case " ${configdirs} " in
11697 *" gas "*) ;;
11698 *) ok=no ;;
11699 esac
1c710c3c 11700
2abefe3d
PB
11701 if test $ok = yes; then
11702 # An in-tree tool is available and we can use it
11703 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11704 echo "$as_me:$LINENO: result: just compiled" >&5
11705echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11706 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11707 # We already found the complete path
172e41aa 11708 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11709 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11710echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11711 elif test "x$target" = "x$host"; then
11712 # We can use an host tool
11713 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11714 echo "$as_me:$LINENO: result: host tool" >&5
11715echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11716 else
11717 # We need a cross tool
2aeb72e9
DD
11718 echo "$as_me:$LINENO: result: pre-installed" >&5
11719echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11720 fi
11721fi
0b0dc272 11722
2aeb72e9
DD
11723echo "$as_me:$LINENO: checking where to find the target cc" >&5
11724echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11725if test "x${build}" != "x${host}" ; then
e8b05380
PB
11726 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11727 # We already found the complete path
172e41aa 11728 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11729 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11730echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11731 else
11732 # Canadian cross, just use what we found
2aeb72e9
DD
11733 echo "$as_me:$LINENO: result: pre-installed" >&5
11734echo "${ECHO_T}pre-installed" >&6
e8b05380 11735 fi
2abefe3d
PB
11736else
11737 ok=yes
11738 case " ${configdirs} " in
11739 *" gcc "*) ;;
11740 *) ok=no ;;
11741 esac
1c710c3c 11742
2abefe3d
PB
11743 if test $ok = yes; then
11744 # An in-tree tool is available and we can use it
11745 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11746 echo "$as_me:$LINENO: result: just compiled" >&5
11747echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11748 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11749 # We already found the complete path
172e41aa 11750 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11751 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11752echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11753 elif test "x$target" = "x$host"; then
11754 # We can use an host tool
11755 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11756 echo "$as_me:$LINENO: result: host tool" >&5
11757echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11758 else
11759 # We need a cross tool
2aeb72e9
DD
11760 echo "$as_me:$LINENO: result: pre-installed" >&5
11761echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11762 fi
11763fi
0b0dc272 11764
2aeb72e9
DD
11765echo "$as_me:$LINENO: checking where to find the target c++" >&5
11766echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11767if test "x${build}" != "x${host}" ; then
e8b05380
PB
11768 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11769 # We already found the complete path
172e41aa 11770 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11771 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11772echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11773 else
11774 # Canadian cross, just use what we found
2aeb72e9
DD
11775 echo "$as_me:$LINENO: result: pre-installed" >&5
11776echo "${ECHO_T}pre-installed" >&6
e8b05380 11777 fi
2abefe3d
PB
11778else
11779 ok=yes
11780 case " ${configdirs} " in
11781 *" gcc "*) ;;
11782 *) ok=no ;;
11783 esac
11784 case ,${enable_languages}, in
11785 *,c++,*) ;;
11786 *) ok=no ;;
11787 esac
11788 if test $ok = yes; then
11789 # An in-tree tool is available and we can use it
11790 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
11791 echo "$as_me:$LINENO: result: just compiled" >&5
11792echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11793 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
172e41aa 11795 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11796 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11797echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11798 elif test "x$target" = "x$host"; then
11799 # We can use an host tool
11800 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11801 echo "$as_me:$LINENO: result: host tool" >&5
11802echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11803 else
11804 # We need a cross tool
2aeb72e9
DD
11805 echo "$as_me:$LINENO: result: pre-installed" >&5
11806echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11807 fi
11808fi
0b0dc272 11809
2aeb72e9
DD
11810echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11811echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11812if test "x${build}" != "x${host}" ; then
e8b05380
PB
11813 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11814 # We already found the complete path
172e41aa 11815 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11816 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11817echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11818 else
11819 # Canadian cross, just use what we found
2aeb72e9
DD
11820 echo "$as_me:$LINENO: result: pre-installed" >&5
11821echo "${ECHO_T}pre-installed" >&6
e8b05380 11822 fi
2abefe3d
PB
11823else
11824 ok=yes
11825 case " ${configdirs} " in
11826 *" gcc "*) ;;
11827 *) ok=no ;;
11828 esac
11829 case ,${enable_languages}, in
11830 *,c++,*) ;;
11831 *) ok=no ;;
11832 esac
11833 if test $ok = yes; then
11834 # An in-tree tool is available and we can use it
11835 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
11836 echo "$as_me:$LINENO: result: just compiled" >&5
11837echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11838 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11839 # We already found the complete path
172e41aa 11840 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11841 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11842echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11843 elif test "x$target" = "x$host"; then
11844 # We can use an host tool
11845 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11846 echo "$as_me:$LINENO: result: host tool" >&5
11847echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11848 else
11849 # We need a cross tool
2aeb72e9
DD
11850 echo "$as_me:$LINENO: result: pre-installed" >&5
11851echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11852 fi
11853fi
0b0dc272 11854
2aeb72e9
DD
11855echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11856echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11857if test "x${build}" != "x${host}" ; then
e8b05380
PB
11858 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11859 # We already found the complete path
172e41aa 11860 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11861 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11862echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11863 else
11864 # Canadian cross, just use what we found
2aeb72e9
DD
11865 echo "$as_me:$LINENO: result: pre-installed" >&5
11866echo "${ECHO_T}pre-installed" >&6
e8b05380 11867 fi
2abefe3d
PB
11868else
11869 ok=yes
11870 case " ${configdirs} " in
11871 *" binutils "*) ;;
11872 *) ok=no ;;
11873 esac
1c710c3c 11874
2abefe3d
PB
11875 if test $ok = yes; then
11876 # An in-tree tool is available and we can use it
11877 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11878 echo "$as_me:$LINENO: result: just compiled" >&5
11879echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11880 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11881 # We already found the complete path
172e41aa 11882 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11883 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11884echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11885 elif test "x$target" = "x$host"; then
11886 # We can use an host tool
11887 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11888 echo "$as_me:$LINENO: result: host tool" >&5
11889echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11890 else
11891 # We need a cross tool
2aeb72e9
DD
11892 echo "$as_me:$LINENO: result: pre-installed" >&5
11893echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11894 fi
11895fi
0b0dc272 11896
2aeb72e9
DD
11897echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11898echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11899if test "x${build}" != "x${host}" ; then
e8b05380
PB
11900 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11901 # We already found the complete path
172e41aa 11902 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11903 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11904echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11905 else
11906 # Canadian cross, just use what we found
2aeb72e9
DD
11907 echo "$as_me:$LINENO: result: pre-installed" >&5
11908echo "${ECHO_T}pre-installed" >&6
e8b05380 11909 fi
2abefe3d
PB
11910else
11911 ok=yes
11912 case " ${configdirs} " in
11913 *" gcc "*) ;;
11914 *) ok=no ;;
11915 esac
1c710c3c 11916
2abefe3d
PB
11917 if test $ok = yes; then
11918 # An in-tree tool is available and we can use it
11919 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11920 echo "$as_me:$LINENO: result: just compiled" >&5
11921echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11922 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11923 # We already found the complete path
172e41aa 11924 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11925 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11926echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11927 elif test "x$target" = "x$host"; then
11928 # We can use an host tool
11929 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11930 echo "$as_me:$LINENO: result: host tool" >&5
11931echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11932 else
11933 # We need a cross tool
2aeb72e9
DD
11934 echo "$as_me:$LINENO: result: pre-installed" >&5
11935echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11936 fi
11937fi
0b0dc272 11938
2aeb72e9
DD
11939echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11940echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11941if test "x${build}" != "x${host}" ; then
e8b05380
PB
11942 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11943 # We already found the complete path
172e41aa 11944 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11945 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11946echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11947 else
11948 # Canadian cross, just use what we found
2aeb72e9
DD
11949 echo "$as_me:$LINENO: result: pre-installed" >&5
11950echo "${ECHO_T}pre-installed" >&6
e8b05380 11951 fi
2abefe3d
PB
11952else
11953 ok=yes
11954 case " ${configdirs} " in
11955 *" gcc "*) ;;
11956 *) ok=no ;;
11957 esac
11958 case ,${enable_languages}, in
11959 *,java,*) ;;
11960 *) ok=no ;;
11961 esac
11962 if test $ok = yes; then
11963 # An in-tree tool is available and we can use it
11964 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11965 echo "$as_me:$LINENO: result: just compiled" >&5
11966echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11967 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11968 # We already found the complete path
172e41aa 11969 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11970 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11971echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11972 elif test "x$target" = "x$host"; then
11973 # We can use an host tool
11974 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11975 echo "$as_me:$LINENO: result: host tool" >&5
11976echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11977 else
11978 # We need a cross tool
2aeb72e9
DD
11979 echo "$as_me:$LINENO: result: pre-installed" >&5
11980echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11981 fi
11982fi
0b0dc272 11983
2aeb72e9
DD
11984echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11985echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11986if test "x${build}" != "x${host}" ; then
e8b05380
PB
11987 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11988 # We already found the complete path
172e41aa 11989 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11990 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11991echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11992 else
11993 # Canadian cross, just use what we found
2aeb72e9
DD
11994 echo "$as_me:$LINENO: result: pre-installed" >&5
11995echo "${ECHO_T}pre-installed" >&6
e8b05380 11996 fi
2abefe3d
PB
11997else
11998 ok=yes
11999 case " ${configdirs} " in
12000 *" gcc "*) ;;
12001 *) ok=no ;;
12002 esac
12003 case ,${enable_languages}, in
12004 *,fortran,*) ;;
12005 *) ok=no ;;
12006 esac
12007 if test $ok = yes; then
12008 # An in-tree tool is available and we can use it
12009 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
12010 echo "$as_me:$LINENO: result: just compiled" >&5
12011echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12012 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12013 # We already found the complete path
172e41aa 12014 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
12015 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12016echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12017 elif test "x$target" = "x$host"; then
12018 # We can use an host tool
12019 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
12020 echo "$as_me:$LINENO: result: host tool" >&5
12021echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12022 else
12023 # We need a cross tool
2aeb72e9
DD
12024 echo "$as_me:$LINENO: result: pre-installed" >&5
12025echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12026 fi
12027fi
0b0dc272 12028
2aeb72e9
DD
12029echo "$as_me:$LINENO: checking where to find the target ld" >&5
12030echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 12031if test "x${build}" != "x${host}" ; then
e8b05380
PB
12032 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12033 # We already found the complete path
172e41aa 12034 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12035 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12036echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12037 else
12038 # Canadian cross, just use what we found
2aeb72e9
DD
12039 echo "$as_me:$LINENO: result: pre-installed" >&5
12040echo "${ECHO_T}pre-installed" >&6
e8b05380 12041 fi
2abefe3d
PB
12042else
12043 ok=yes
12044 case " ${configdirs} " in
12045 *" ld "*) ;;
12046 *) ok=no ;;
12047 esac
1c710c3c 12048
2abefe3d
PB
12049 if test $ok = yes; then
12050 # An in-tree tool is available and we can use it
12051 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
12052 echo "$as_me:$LINENO: result: just compiled" >&5
12053echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12054 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12055 # We already found the complete path
172e41aa 12056 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
12057 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12058echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12059 elif test "x$target" = "x$host"; then
12060 # We can use an host tool
12061 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
12062 echo "$as_me:$LINENO: result: host tool" >&5
12063echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12064 else
12065 # We need a cross tool
2aeb72e9
DD
12066 echo "$as_me:$LINENO: result: pre-installed" >&5
12067echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12068 fi
12069fi
0b0dc272 12070
2aeb72e9
DD
12071echo "$as_me:$LINENO: checking where to find the target lipo" >&5
12072echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 12073if test "x${build}" != "x${host}" ; then
e8b05380
PB
12074 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12075 # We already found the complete path
172e41aa 12076 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12077 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12078echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12079 else
12080 # Canadian cross, just use what we found
2aeb72e9
DD
12081 echo "$as_me:$LINENO: result: pre-installed" >&5
12082echo "${ECHO_T}pre-installed" >&6
e8b05380 12083 fi
2abefe3d 12084else
e8b05380
PB
12085 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12086 # We already found the complete path
172e41aa 12087 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
12088 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12089echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 12090 elif test "x$target" = "x$host"; then
2abefe3d
PB
12091 # We can use an host tool
12092 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
12093 echo "$as_me:$LINENO: result: host tool" >&5
12094echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12095 else
12096 # We need a cross tool
2aeb72e9
DD
12097 echo "$as_me:$LINENO: result: pre-installed" >&5
12098echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12099 fi
12100fi
0b0dc272 12101
2aeb72e9
DD
12102echo "$as_me:$LINENO: checking where to find the target nm" >&5
12103echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 12104if test "x${build}" != "x${host}" ; then
e8b05380
PB
12105 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12106 # We already found the complete path
172e41aa 12107 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12108 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12109echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12110 else
12111 # Canadian cross, just use what we found
2aeb72e9
DD
12112 echo "$as_me:$LINENO: result: pre-installed" >&5
12113echo "${ECHO_T}pre-installed" >&6
e8b05380 12114 fi
2abefe3d
PB
12115else
12116 ok=yes
12117 case " ${configdirs} " in
12118 *" binutils "*) ;;
12119 *) ok=no ;;
12120 esac
1c710c3c 12121
2abefe3d
PB
12122 if test $ok = yes; then
12123 # An in-tree tool is available and we can use it
12124 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
12125 echo "$as_me:$LINENO: result: just compiled" >&5
12126echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12127 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12128 # We already found the complete path
172e41aa 12129 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
12130 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12131echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12132 elif test "x$target" = "x$host"; then
12133 # We can use an host tool
12134 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
12135 echo "$as_me:$LINENO: result: host tool" >&5
12136echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12137 else
12138 # We need a cross tool
2aeb72e9
DD
12139 echo "$as_me:$LINENO: result: pre-installed" >&5
12140echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12141 fi
12142fi
0b0dc272 12143
2aeb72e9
DD
12144echo "$as_me:$LINENO: checking where to find the target objdump" >&5
12145echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 12146if test "x${build}" != "x${host}" ; then
e8b05380
PB
12147 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12148 # We already found the complete path
172e41aa 12149 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12150 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12151echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12152 else
12153 # Canadian cross, just use what we found
2aeb72e9
DD
12154 echo "$as_me:$LINENO: result: pre-installed" >&5
12155echo "${ECHO_T}pre-installed" >&6
e8b05380 12156 fi
2abefe3d
PB
12157else
12158 ok=yes
12159 case " ${configdirs} " in
12160 *" binutils "*) ;;
12161 *) ok=no ;;
12162 esac
1c710c3c 12163
2abefe3d
PB
12164 if test $ok = yes; then
12165 # An in-tree tool is available and we can use it
12166 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
12167 echo "$as_me:$LINENO: result: just compiled" >&5
12168echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12169 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12170 # We already found the complete path
172e41aa 12171 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
12172 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12173echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12174 elif test "x$target" = "x$host"; then
12175 # We can use an host tool
12176 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
12177 echo "$as_me:$LINENO: result: host tool" >&5
12178echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12179 else
12180 # We need a cross tool
2aeb72e9
DD
12181 echo "$as_me:$LINENO: result: pre-installed" >&5
12182echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12183 fi
12184fi
0b0dc272 12185
2aeb72e9
DD
12186echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
12187echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 12188if test "x${build}" != "x${host}" ; then
e8b05380
PB
12189 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12190 # We already found the complete path
172e41aa 12191 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12192 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12193echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12194 else
12195 # Canadian cross, just use what we found
2aeb72e9
DD
12196 echo "$as_me:$LINENO: result: pre-installed" >&5
12197echo "${ECHO_T}pre-installed" >&6
e8b05380 12198 fi
2abefe3d
PB
12199else
12200 ok=yes
12201 case " ${configdirs} " in
12202 *" binutils "*) ;;
12203 *) ok=no ;;
12204 esac
1c710c3c 12205
2abefe3d
PB
12206 if test $ok = yes; then
12207 # An in-tree tool is available and we can use it
12208 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
12209 echo "$as_me:$LINENO: result: just compiled" >&5
12210echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12211 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12212 # We already found the complete path
172e41aa 12213 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
12214 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12215echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12216 elif test "x$target" = "x$host"; then
12217 # We can use an host tool
12218 RANLIB_FOR_TARGET='$(RANLIB)'
2aeb72e9
DD
12219 echo "$as_me:$LINENO: result: host tool" >&5
12220echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12221 else
12222 # We need a cross tool
2aeb72e9
DD
12223 echo "$as_me:$LINENO: result: pre-installed" >&5
12224echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12225 fi
12226fi
0b0dc272 12227
2aeb72e9
DD
12228echo "$as_me:$LINENO: checking where to find the target strip" >&5
12229echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 12230if test "x${build}" != "x${host}" ; then
e8b05380
PB
12231 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12232 # We already found the complete path
172e41aa 12233 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12234 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12235echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12236 else
12237 # Canadian cross, just use what we found
2aeb72e9
DD
12238 echo "$as_me:$LINENO: result: pre-installed" >&5
12239echo "${ECHO_T}pre-installed" >&6
e8b05380 12240 fi
2abefe3d
PB
12241else
12242 ok=yes
12243 case " ${configdirs} " in
12244 *" binutils "*) ;;
12245 *) ok=no ;;
12246 esac
1c710c3c 12247
2abefe3d
PB
12248 if test $ok = yes; then
12249 # An in-tree tool is available and we can use it
12250 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
12251 echo "$as_me:$LINENO: result: just compiled" >&5
12252echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12253 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12254 # We already found the complete path
172e41aa 12255 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
12256 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12257echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12258 elif test "x$target" = "x$host"; then
12259 # We can use an host tool
12260 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
12261 echo "$as_me:$LINENO: result: host tool" >&5
12262echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12263 else
12264 # We need a cross tool
2aeb72e9
DD
12265 echo "$as_me:$LINENO: result: pre-installed" >&5
12266echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
12267 fi
12268fi
0b0dc272 12269
2aeb72e9
DD
12270echo "$as_me:$LINENO: checking where to find the target windres" >&5
12271echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 12272if test "x${build}" != "x${host}" ; then
e8b05380
PB
12273 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12274 # We already found the complete path
172e41aa 12275 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12276 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12277echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
12278 else
12279 # Canadian cross, just use what we found
2aeb72e9
DD
12280 echo "$as_me:$LINENO: result: pre-installed" >&5
12281echo "${ECHO_T}pre-installed" >&6
e8b05380 12282 fi
2abefe3d
PB
12283else
12284 ok=yes
12285 case " ${configdirs} " in
12286 *" binutils "*) ;;
12287 *) ok=no ;;
12288 esac
1c710c3c 12289
2abefe3d
PB
12290 if test $ok = yes; then
12291 # An in-tree tool is available and we can use it
12292 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
12293 echo "$as_me:$LINENO: result: just compiled" >&5
12294echo "${ECHO_T}just compiled" >&6
e8b05380
PB
12295 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12296 # We already found the complete path
172e41aa 12297 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
12298 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12299echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
12300 elif test "x$target" = "x$host"; then
12301 # We can use an host tool
12302 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
12303 echo "$as_me:$LINENO: result: host tool" >&5
12304echo "${ECHO_T}host tool" >&6
2abefe3d
PB
12305 else
12306 # We need a cross tool
2aeb72e9
DD
12307 echo "$as_me:$LINENO: result: pre-installed" >&5
12308echo "${ECHO_T}pre-installed" >&6
2abefe3d 12309 fi
671aa708 12310fi
be912515 12311
901119ae
KT
12312echo "$as_me:$LINENO: checking where to find the target windmc" >&5
12313echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
12314if test "x${build}" != "x${host}" ; then
12315 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12316 # We already found the complete path
12317 ac_dir=`dirname $WINDMC_FOR_TARGET`
12318 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12319echo "${ECHO_T}pre-installed in $ac_dir" >&6
12320 else
12321 # Canadian cross, just use what we found
12322 echo "$as_me:$LINENO: result: pre-installed" >&5
12323echo "${ECHO_T}pre-installed" >&6
12324 fi
12325else
12326 ok=yes
12327 case " ${configdirs} " in
12328 *" binutils "*) ;;
12329 *) ok=no ;;
12330 esac
12331
12332 if test $ok = yes; then
12333 # An in-tree tool is available and we can use it
12334 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
12335 echo "$as_me:$LINENO: result: just compiled" >&5
12336echo "${ECHO_T}just compiled" >&6
12337 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
12338 # We already found the complete path
12339 ac_dir=`dirname $WINDMC_FOR_TARGET`
12340 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
12341echo "${ECHO_T}pre-installed in $ac_dir" >&6
12342 elif test "x$target" = "x$host"; then
12343 # We can use an host tool
12344 WINDMC_FOR_TARGET='$(WINDMC)'
12345 echo "$as_me:$LINENO: result: host tool" >&5
12346echo "${ECHO_T}host tool" >&6
12347 else
12348 # We need a cross tool
12349 echo "$as_me:$LINENO: result: pre-installed" >&5
12350echo "${ECHO_T}pre-installed" >&6
12351 fi
12352fi
12353
be912515
NN
12354
12355
2abefe3d 12356
0b0dc272 12357
671aa708
NN
12358# Certain tools may need extra flags.
12359AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
12360RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
12361NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
12362
2abefe3d
PB
12363# When building target libraries, except in a Canadian cross, we use
12364# the same toolchain as the compiler we just built.
12365COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
12366COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
12367COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
12368if test $host = $build; then
12369 case " $configdirs " in
12370 *" gcc "*)
12371 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
12372 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
12373 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
12374 ;;
12375 esac
12376fi
12377
12378
12379
12380
12381
2aeb72e9
DD
12382echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12383echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12384# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 12385if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
12386 enableval="$enable_maintainer_mode"
12387 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
12388else
12389 USE_MAINTAINER_MODE=no
2aeb72e9
DD
12390fi;
12391echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12392echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
12393
12394
12395if test "$USE_MAINTAINER_MODE" = yes; then
12396 MAINTAINER_MODE_TRUE=
12397 MAINTAINER_MODE_FALSE='#'
12398else
12399 MAINTAINER_MODE_TRUE='#'
12400 MAINTAINER_MODE_FALSE=
1c710c3c 12401fi
ee03dc5e
AO
12402MAINT=$MAINTAINER_MODE_TRUE
12403
2805b53a
NN
12404# ---------------------
12405# GCC bootstrap support
12406# ---------------------
12407
12408# Stage specific cflags for build.
12409stage1_cflags="-g"
12410case $build in
12411 vax-*-*)
12412 case ${GCC} in
12413 yes) stage1_cflags="-g -Wa,-J" ;;
12414 *) stage1_cflags="-g -J" ;;
12415 esac ;;
2805b53a
NN
12416esac
12417
0b50988a
EB
12418# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12419if test "$GCC" = yes; then
12420 saved_CFLAGS="$CFLAGS"
12421
12422 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12423 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12424 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12425echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12426 cat >conftest.$ac_ext <<_ACEOF
12427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
12432
9cc1244e
JJ
12433#if (__GNUC__ < 3) \
12434 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12435 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12436#error http://gcc.gnu.org/PR29382
12437#endif
12438
1c710c3c
DJ
12439int
12440main ()
12441{
12442
12443 ;
12444 return 0;
12445}
12446_ACEOF
12447rm -f conftest.$ac_objext
2aeb72e9
DD
12448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12449 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12455 (exit $ac_status); } &&
12456 { ac_try='test -z "$ac_c_werror_flag"
12457 || test ! -s conftest.err'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 echo "$as_me:$LINENO: result: yes" >&5
12470echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12471else
12472 echo "$as_me: failed program was:" >&5
12473sed 's/^/| /' conftest.$ac_ext >&5
12474
2aeb72e9
DD
12475echo "$as_me:$LINENO: result: no" >&5
12476echo "${ECHO_T}no" >&6
1c710c3c 12477fi
2aeb72e9 12478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12479
12480 CFLAGS="$saved_CFLAGS"
12481fi
12482
12483
2805b53a 12484
8efea775 12485# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12486# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12487if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12488 enableval="$enable_stage1_checking"
12489 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12490else
e643dc23 12491 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12492 stage1_checking=--enable-checking=yes,types
8efea775 12493else
e643dc23 12494 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12495fi
2aeb72e9 12496fi;
8efea775
PB
12497
12498
2805b53a 12499# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12500# Check whether --enable-werror or --disable-werror was given.
2805b53a 12501if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12502 enableval="$enable_werror"
12503
2805b53a 12504else
416cfb5e 12505 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12506 enable_werror=yes
88fceb68
PB
12507else
12508 enable_werror=no
12509fi
2aeb72e9 12510fi;
09a9c095
NN
12511case ${enable_werror} in
12512 yes) stage2_werror_flag="--enable-werror-always" ;;
12513 *) stage2_werror_flag="" ;;
2805b53a
NN
12514esac
12515
12516
32845532 12517# Flags needed to enable html installing and building
1c710c3c 12518
2aeb72e9 12519# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12520if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12521 withval="$with_datarootdir"
12522 datarootdir="\${prefix}/${withval}"
32845532
CD
12523else
12524 datarootdir="\${prefix}/share"
2aeb72e9 12525fi;
32845532
CD
12526
12527
2aeb72e9 12528# Check whether --with-docdir or --without-docdir was given.
32845532 12529if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12530 withval="$with_docdir"
12531 docdir="\${prefix}/${withval}"
32845532
CD
12532else
12533 docdir="\${datarootdir}/doc"
2aeb72e9 12534fi;
32845532
CD
12535
12536
2aeb72e9 12537# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12538if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12539 withval="$with_pdfdir"
12540 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12541else
12542 pdfdir="\${docdir}"
2aeb72e9 12543fi;
9c4d2493
BM
12544
12545
2aeb72e9 12546# Check whether --with-htmldir or --without-htmldir was given.
32845532 12547if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12548 withval="$with_htmldir"
12549 htmldir="\${prefix}/${withval}"
32845532
CD
12550else
12551 htmldir="\${docdir}"
2aeb72e9 12552fi;
32845532
CD
12553
12554
12555
12556
172e41aa 12557
11a67599 12558
2aeb72e9 12559 ac_config_files="$ac_config_files Makefile"
1c710c3c 12560cat >confcache <<\_ACEOF
671aa708
NN
12561# This file is a shell script that caches the results of configure
12562# tests run on this system so they can be shared between configure
1c710c3c
DJ
12563# scripts and configure runs, see configure's option --config-cache.
12564# It is not useful on other systems. If it contains results you don't
12565# want to keep, you may remove or edit it.
671aa708 12566#
1c710c3c
DJ
12567# config.status only pays attention to the cache file if you give it
12568# the --recheck option to rerun configure.
671aa708 12569#
1c710c3c
DJ
12570# `ac_cv_env_foo' variables (set or unset) will be overridden when
12571# loading this file, other *unset* `ac_cv_foo' will be assigned the
12572# following values.
12573
12574_ACEOF
12575
671aa708
NN
12576# The following way of writing the cache mishandles newlines in values,
12577# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12578# So, don't put newlines in cache variables' values.
671aa708
NN
12579# Ultrix sh set writes to stderr and can't be redirected directly,
12580# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12581{
1c710c3c 12582 (set) 2>&1 |
2aeb72e9
DD
12583 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12584 *ac_space=\ *)
1c710c3c
DJ
12585 # `set' does not quote correctly, so add quotes (double-quote
12586 # substitution turns \\\\ into \\, and sed turns \\ into \).
12587 sed -n \
12588 "s/'/'\\\\''/g;
12589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12590 ;;
1c710c3c
DJ
12591 *)
12592 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12593 sed -n \
12594 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12595 ;;
2aeb72e9
DD
12596 esac;
12597} |
1c710c3c
DJ
12598 sed '
12599 t clear
2aeb72e9 12600 : clear
1c710c3c
DJ
12601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12602 t end
2aeb72e9
DD
12603 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12604 : end' >>confcache
12605if diff $cache_file confcache >/dev/null 2>&1; then :; else
12606 if test -w $cache_file; then
12607 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12608 cat confcache >$cache_file
671aa708 12609 else
2aeb72e9 12610 echo "not updating unwritable cache $cache_file"
671aa708 12611 fi
4977bab6 12612fi
671aa708 12613rm -f confcache
79c06341 12614
671aa708
NN
12615test "x$prefix" = xNONE && prefix=$ac_default_prefix
12616# Let make expand exec_prefix.
12617test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12618
2aeb72e9
DD
12619# VPATH may cause trouble with some makes, so we remove $(srcdir),
12620# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12621# trailing colons and then remove the whole line if VPATH becomes empty
12622# (actually we leave an empty line to preserve line numbers).
12623if test "x$srcdir" = x.; then
12624 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12625s/:*\$(srcdir):*/:/;
12626s/:*\${srcdir}:*/:/;
12627s/:*@srcdir@:*/:/;
12628s/^\([^=]*=[ ]*\):*/\1/;
12629s/:*$//;
12630s/^[^=]*=[ ]*$//;
12631}'
12632fi
12633
671aa708
NN
12634# Transform confdefs.h into DEFS.
12635# Protect against shell expansion while executing Makefile rules.
12636# Protect against Makefile macro expansion.
1c710c3c
DJ
12637#
12638# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12639# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12640# look for a macro that doesn't take arguments.
2aeb72e9 12641cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12642t clear
2aeb72e9
DD
12643: clear
12644s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12645t quote
2aeb72e9 12646s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12647t quote
2aeb72e9
DD
12648d
12649: quote
12650s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12651s,\[,\\&,g
12652s,\],\\&,g
12653s,\$,$$,g
12654p
12655_ACEOF
12656# We use echo to avoid assuming a particular line-breaking character.
12657# The extra dot is to prevent the shell from consuming trailing
12658# line-breaks from the sub-command output. A line-break within
12659# single-quotes doesn't work because, if this script is created in a
12660# platform that uses two characters for line-breaks (e.g., DOS), tr
12661# would break.
12662ac_LF_and_DOT=`echo; echo .`
12663DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12664rm -f confdef2opt.sed
1c710c3c
DJ
12665
12666
12667ac_libobjs=
12668ac_ltlibobjs=
12669for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12670 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12671 ac_i=`echo "$ac_i" |
12672 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12673 # 2. Add them.
12674 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12675 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12676done
12677LIBOBJS=$ac_libobjs
fb0103e5 12678
1c710c3c 12679LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12680
af71363e 12681
1c710c3c
DJ
12682
12683: ${CONFIG_STATUS=./config.status}
12684ac_clean_files_save=$ac_clean_files
12685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12686{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12687echo "$as_me: creating $CONFIG_STATUS" >&6;}
12688cat >$CONFIG_STATUS <<_ACEOF
12689#! $SHELL
12690# Generated by $as_me.
671aa708 12691# Run this file to recreate the current configuration.
671aa708 12692# Compiler output produced by configure, useful for debugging
1c710c3c 12693# configure, is in config.log if it exists.
0b0dc272 12694
1c710c3c
DJ
12695debug=false
12696ac_cs_recheck=false
12697ac_cs_silent=false
12698SHELL=\${CONFIG_SHELL-$SHELL}
12699_ACEOF
12700
12701cat >>$CONFIG_STATUS <<\_ACEOF
12702## --------------------- ##
12703## M4sh Initialization. ##
12704## --------------------- ##
12705
2aeb72e9 12706# Be Bourne compatible
1c710c3c
DJ
12707if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12708 emulate sh
12709 NULLCMD=:
12710 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12711 # is contrary to our usage. Disable this feature.
12712 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12713elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12714 set -o posix
1c710c3c 12715fi
2aeb72e9 12716DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12717
12718# Support unset when possible.
12719if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12720 as_unset=unset
12721else
12722 as_unset=false
12723fi
12724
12725
12726# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12727$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12728PS1='$ '
12729PS2='> '
12730PS4='+ '
12731
12732# NLS nuisances.
12733for as_var in \
12734 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12735 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12736 LC_TELEPHONE LC_TIME
12737do
12738 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12739 eval $as_var=C; export $as_var
12740 else
2aeb72e9 12741 $as_unset $as_var
1c710c3c
DJ
12742 fi
12743done
12744
12745# Required to use basename.
2aeb72e9 12746if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12747 as_expr=expr
12748else
12749 as_expr=false
12750fi
12751
2aeb72e9 12752if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12753 as_basename=basename
12754else
12755 as_basename=false
12756fi
12757
12758
12759# Name of the executable.
2aeb72e9 12760as_me=`$as_basename "$0" ||
1c710c3c
DJ
12761$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12762 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12763 X"$0" : 'X\(/\)$' \| \
12764 . : '\(.\)' 2>/dev/null ||
1c710c3c 12765echo X/"$0" |
2aeb72e9
DD
12766 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12767 /^X\/\(\/\/\)$/{ s//\1/; q; }
12768 /^X\/\(\/\).*/{ s//\1/; q; }
12769 s/.*/./; q'`
1c710c3c 12770
2aeb72e9
DD
12771
12772# PATH needs CR, and LINENO needs CR and PATH.
12773# Avoid depending upon Character Ranges.
12774as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12775as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12776as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12777as_cr_digits='0123456789'
12778as_cr_alnum=$as_cr_Letters$as_cr_digits
12779
12780# The user is always right.
12781if test "${PATH_SEPARATOR+set}" != set; then
12782 echo "#! /bin/sh" >conf$$.sh
12783 echo "exit 0" >>conf$$.sh
12784 chmod +x conf$$.sh
12785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12786 PATH_SEPARATOR=';'
12787 else
12788 PATH_SEPARATOR=:
12789 fi
12790 rm -f conf$$.sh
12791fi
1c710c3c
DJ
12792
12793
2aeb72e9
DD
12794 as_lineno_1=$LINENO
12795 as_lineno_2=$LINENO
12796 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12797 test "x$as_lineno_1" != "x$as_lineno_2" &&
12798 test "x$as_lineno_3" = "x$as_lineno_2" || {
12799 # Find who we are. Look in the path if we contain no path at all
12800 # relative or not.
12801 case $0 in
12802 *[\\/]* ) as_myself=$0 ;;
12803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804for as_dir in $PATH
12805do
12806 IFS=$as_save_IFS
12807 test -z "$as_dir" && as_dir=.
12808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12809done
1c710c3c 12810
2aeb72e9
DD
12811 ;;
12812 esac
12813 # We did not find ourselves, most probably we were run as `sh COMMAND'
12814 # in which case we are not to be found in the path.
12815 if test "x$as_myself" = x; then
12816 as_myself=$0
12817 fi
12818 if test ! -f "$as_myself"; then
12819 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12820echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12821 { (exit 1); exit 1; }; }
12822 fi
12823 case $CONFIG_SHELL in
12824 '')
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12827do
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for as_base in sh bash ksh sh5; do
12831 case $as_dir in
12832 /*)
12833 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12834 as_lineno_1=$LINENO
12835 as_lineno_2=$LINENO
2aeb72e9 12836 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12837 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12838 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12839 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12840 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12841 CONFIG_SHELL=$as_dir/$as_base
12842 export CONFIG_SHELL
12843 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12844 fi;;
12845 esac
12846 done
12847done
12848;;
12849 esac
1c710c3c
DJ
12850
12851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12852 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12853 # line-number line before each line; the second 'sed' does the real
12854 # work. The second script uses 'N' to pair each line-number line
12855 # with the numbered line, and appends trailing '-' during
12856 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12857 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12858 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12859 sed '=' <$as_myself |
1c710c3c
DJ
12860 sed '
12861 N
2aeb72e9
DD
12862 s,$,-,
12863 : loop
12864 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12865 t loop
2aeb72e9
DD
12866 s,-$,,
12867 s,^['$as_cr_digits']*\n,,
1c710c3c 12868 ' >$as_me.lineno &&
2aeb72e9
DD
12869 chmod +x $as_me.lineno ||
12870 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12871echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12872 { (exit 1); exit 1; }; }
12873
12874 # Don't try to exec as it changes $[0], causing all sort of problems
12875 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12876 # original and so on. Autoconf is especially sensible to this).
12877 . ./$as_me.lineno
1c710c3c
DJ
12878 # Exit status is that of the last command.
12879 exit
12880}
12881
12882
2aeb72e9
DD
12883case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12884 *c*,-n*) ECHO_N= ECHO_C='
12885' ECHO_T=' ' ;;
12886 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12887 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12888esac
12889
2aeb72e9 12890if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12891 as_expr=expr
12892else
12893 as_expr=false
12894fi
12895
12896rm -f conf$$ conf$$.exe conf$$.file
12897echo >conf$$.file
12898if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12899 # We could just check for DJGPP; but this test a) works b) is more generic
12900 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12901 if test -f conf$$.exe; then
12902 # Don't use ln at all; we don't have any links
1c710c3c 12903 as_ln_s='cp -p'
2aeb72e9
DD
12904 else
12905 as_ln_s='ln -s'
12906 fi
1c710c3c
DJ
12907elif ln conf$$.file conf$$ 2>/dev/null; then
12908 as_ln_s=ln
12909else
12910 as_ln_s='cp -p'
12911fi
2aeb72e9 12912rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12913
12914if mkdir -p . 2>/dev/null; then
12915 as_mkdir_p=:
12916else
12917 test -d ./-p && rmdir ./-p
12918 as_mkdir_p=false
12919fi
12920
2aeb72e9 12921as_executable_p="test -f"
1c710c3c
DJ
12922
12923# Sed expression to map a string onto a valid CPP name.
12924as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12925
12926# Sed expression to map a string onto a valid variable name.
12927as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12928
12929
2aeb72e9
DD
12930# IFS
12931# We need space, tab and new line, in precisely that order.
12932as_nl='
12933'
12934IFS=" $as_nl"
12935
12936# CDPATH.
12937$as_unset CDPATH
12938
1c710c3c
DJ
12939exec 6>&1
12940
2aeb72e9 12941# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12942# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12943# values after options handling. Logging --version etc. is OK.
12944exec 5>>config.log
12945{
12946 echo
12947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12948## Running $as_me. ##
12949_ASBOX
12950} >&5
12951cat >&5 <<_CSEOF
12952
1c710c3c 12953This file was extended by $as_me, which was
2aeb72e9 12954generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12955
12956 CONFIG_FILES = $CONFIG_FILES
12957 CONFIG_HEADERS = $CONFIG_HEADERS
12958 CONFIG_LINKS = $CONFIG_LINKS
12959 CONFIG_COMMANDS = $CONFIG_COMMANDS
12960 $ $0 $@
12961
2aeb72e9
DD
12962_CSEOF
12963echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12964echo >&5
1c710c3c
DJ
12965_ACEOF
12966
12967# Files that config.status was made for.
2aeb72e9
DD
12968if test -n "$ac_config_files"; then
12969 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12970fi
1c710c3c 12971
2aeb72e9
DD
12972if test -n "$ac_config_headers"; then
12973 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12974fi
12975
12976if test -n "$ac_config_links"; then
12977 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12978fi
12979
12980if test -n "$ac_config_commands"; then
12981 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12982fi
1c710c3c
DJ
12983
12984cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12985
1c710c3c
DJ
12986ac_cs_usage="\
12987\`$as_me' instantiates files from templates according to the
12988current configuration.
12989
12990Usage: $0 [OPTIONS] [FILE]...
12991
12992 -h, --help print this help, then exit
2aeb72e9 12993 -V, --version print version number, then exit
1c710c3c
DJ
12994 -q, --quiet do not print progress messages
12995 -d, --debug don't remove temporary files
12996 --recheck update $as_me by reconfiguring in the same conditions
12997 --file=FILE[:TEMPLATE]
12998 instantiate the configuration file FILE
12999
13000Configuration files:
13001$config_files
13002
13003Report bugs to <bug-autoconf@gnu.org>."
11a67599 13004_ACEOF
2aeb72e9 13005
1c710c3c
DJ
13006cat >>$CONFIG_STATUS <<_ACEOF
13007ac_cs_version="\\
13008config.status
2aeb72e9
DD
13009configured by $0, generated by GNU Autoconf 2.59,
13010 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 13011
2aeb72e9 13012Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
13013This config.status script is free software; the Free Software Foundation
13014gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
13015srcdir=$srcdir
13016INSTALL="$INSTALL"
1c710c3c
DJ
13017_ACEOF
13018
13019cat >>$CONFIG_STATUS <<\_ACEOF
13020# If no file are specified by the user, then we need to provide default
13021# value. By we need to know if files were specified by the user.
13022ac_need_defaults=:
13023while test $# != 0
a4b9e93e 13024do
1c710c3c
DJ
13025 case $1 in
13026 --*=*)
2aeb72e9
DD
13027 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13028 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
13029 ac_shift=:
13030 ;;
2aeb72e9 13031 -*)
1c710c3c
DJ
13032 ac_option=$1
13033 ac_optarg=$2
13034 ac_shift=shift
13035 ;;
2aeb72e9
DD
13036 *) # This is not an option, so the user has probably given explicit
13037 # arguments.
13038 ac_option=$1
13039 ac_need_defaults=false;;
1c710c3c
DJ
13040 esac
13041
13042 case $ac_option in
13043 # Handling of the options.
2aeb72e9
DD
13044_ACEOF
13045cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 13046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 13047 ac_cs_recheck=: ;;
2aeb72e9
DD
13048 --version | --vers* | -V )
13049 echo "$ac_cs_version"; exit 0 ;;
13050 --he | --h)
13051 # Conflict between --help and --header
13052 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13053Try \`$0 --help' for more information." >&5
13054echo "$as_me: error: ambiguous option: $1
13055Try \`$0 --help' for more information." >&2;}
13056 { (exit 1); exit 1; }; };;
13057 --help | --hel | -h )
13058 echo "$ac_cs_usage"; exit 0 ;;
13059 --debug | --d* | -d )
1c710c3c
DJ
13060 debug=: ;;
13061 --file | --fil | --fi | --f )
13062 $ac_shift
13063 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13064 ac_need_defaults=false;;
2aeb72e9
DD
13065 --header | --heade | --head | --hea )
13066 $ac_shift
13067 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13068 ac_need_defaults=false;;
1c710c3c
DJ
13069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13070 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13071 ac_cs_silent=: ;;
13072
13073 # This is an error.
2aeb72e9
DD
13074 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13075Try \`$0 --help' for more information." >&5
13076echo "$as_me: error: unrecognized option: $1
13077Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
13078 { (exit 1); exit 1; }; } ;;
13079
2aeb72e9 13080 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 13081
0b0dc272 13082 esac
1c710c3c 13083 shift
0b0dc272
AM
13084done
13085
1c710c3c 13086ac_configure_extra_args=
0b0dc272 13087
1c710c3c
DJ
13088if $ac_cs_silent; then
13089 exec 6>/dev/null
13090 ac_configure_extra_args="$ac_configure_extra_args --silent"
13091fi
0b0dc272 13092
1c710c3c
DJ
13093_ACEOF
13094cat >>$CONFIG_STATUS <<_ACEOF
13095if \$ac_cs_recheck; then
2aeb72e9
DD
13096 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13097 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
13098fi
13099
13100_ACEOF
13101
1c710c3c 13102
11a67599 13103
2aeb72e9
DD
13104
13105
13106cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
13107for ac_config_target in $ac_config_targets
13108do
2aeb72e9
DD
13109 case "$ac_config_target" in
13110 # Handling of arguments.
13111 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
13112 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13113echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13114 { (exit 1); exit 1; }; };;
13115 esac
13116done
13117
13118# If the user did not use the arguments to specify the items to instantiate,
13119# then the envvar interface is used. Set only those that are not.
13120# We use the long form for the default assignment because of an extremely
13121# bizarre bug on SunOS 4.1.3.
13122if $ac_need_defaults; then
13123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13124fi
13125
13126# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 13127# simply because there is no reason to put it here, and in addition,
1c710c3c 13128# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 13129# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
13130$debug ||
13131{
2aeb72e9 13132 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
13133 trap '{ (exit 1); exit 1; }' 1 2 13 15
13134}
2aeb72e9 13135
1c710c3c
DJ
13136# Create a (secure) tmp directory for tmp files.
13137
13138{
2aeb72e9 13139 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
13140 test -n "$tmp" && test -d "$tmp"
13141} ||
13142{
2aeb72e9
DD
13143 tmp=./confstat$$-$RANDOM
13144 (umask 077 && mkdir $tmp)
1c710c3c
DJ
13145} ||
13146{
13147 echo "$me: cannot create a temporary directory in ." >&2
13148 { (exit 1); exit 1; }
13149}
13150
2aeb72e9
DD
13151_ACEOF
13152
13153cat >>$CONFIG_STATUS <<_ACEOF
13154
1c710c3c 13155#
2aeb72e9 13156# CONFIG_FILES section.
1c710c3c
DJ
13157#
13158
13159# No need to generate the scripts if there are no CONFIG_FILES.
13160# This happens for instance when ./config.status config.h
2aeb72e9
DD
13161if test -n "\$CONFIG_FILES"; then
13162 # Protect against being on the right side of a sed subst in config.status.
13163 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13164 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13165s,@SHELL@,$SHELL,;t t
13166s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13167s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13168s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13169s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13170s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13171s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13172s,@exec_prefix@,$exec_prefix,;t t
13173s,@prefix@,$prefix,;t t
13174s,@program_transform_name@,$program_transform_name,;t t
13175s,@bindir@,$bindir,;t t
13176s,@sbindir@,$sbindir,;t t
13177s,@libexecdir@,$libexecdir,;t t
13178s,@datadir@,$datadir,;t t
13179s,@sysconfdir@,$sysconfdir,;t t
13180s,@sharedstatedir@,$sharedstatedir,;t t
13181s,@localstatedir@,$localstatedir,;t t
13182s,@libdir@,$libdir,;t t
13183s,@includedir@,$includedir,;t t
13184s,@oldincludedir@,$oldincludedir,;t t
13185s,@infodir@,$infodir,;t t
13186s,@mandir@,$mandir,;t t
13187s,@build_alias@,$build_alias,;t t
13188s,@host_alias@,$host_alias,;t t
13189s,@target_alias@,$target_alias,;t t
13190s,@DEFS@,$DEFS,;t t
13191s,@ECHO_C@,$ECHO_C,;t t
13192s,@ECHO_N@,$ECHO_N,;t t
13193s,@ECHO_T@,$ECHO_T,;t t
13194s,@LIBS@,$LIBS,;t t
ad33ff57 13195s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
2aeb72e9
DD
13196s,@build@,$build,;t t
13197s,@build_cpu@,$build_cpu,;t t
13198s,@build_vendor@,$build_vendor,;t t
13199s,@build_os@,$build_os,;t t
13200s,@build_noncanonical@,$build_noncanonical,;t t
13201s,@host_noncanonical@,$host_noncanonical,;t t
13202s,@target_noncanonical@,$target_noncanonical,;t t
13203s,@host@,$host,;t t
13204s,@host_cpu@,$host_cpu,;t t
13205s,@host_vendor@,$host_vendor,;t t
13206s,@host_os@,$host_os,;t t
13207s,@target@,$target,;t t
13208s,@target_cpu@,$target_cpu,;t t
13209s,@target_vendor@,$target_vendor,;t t
13210s,@target_os@,$target_os,;t t
13211s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13212s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13213s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13214s,@LN@,$LN,;t t
13215s,@LN_S@,$LN_S,;t t
2aeb72e9
DD
13216s,@build_libsubdir@,$build_libsubdir,;t t
13217s,@build_subdir@,$build_subdir,;t t
13218s,@host_subdir@,$host_subdir,;t t
13219s,@target_subdir@,$target_subdir,;t t
13220s,@CC@,$CC,;t t
13221s,@CFLAGS@,$CFLAGS,;t t
13222s,@LDFLAGS@,$LDFLAGS,;t t
13223s,@CPPFLAGS@,$CPPFLAGS,;t t
13224s,@ac_ct_CC@,$ac_ct_CC,;t t
13225s,@EXEEXT@,$EXEEXT,;t t
13226s,@OBJEXT@,$OBJEXT,;t t
13227s,@CXX@,$CXX,;t t
13228s,@CXXFLAGS@,$CXXFLAGS,;t t
13229s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13230s,@GNATBIND@,$GNATBIND,;t t
13231s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13232s,@GNATMAKE@,$GNATMAKE,;t t
13233s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
13234s,@do_compare@,$do_compare,;t t
13235s,@gmplibs@,$gmplibs,;t t
13236s,@gmpinc@,$gmpinc,;t t
f8bf9252
SP
13237s,@ppllibs@,$ppllibs,;t t
13238s,@pplinc@,$pplinc,;t t
13239s,@clooglibs@,$clooglibs,;t t
13240s,@clooginc@,$clooginc,;t t
2aeb72e9
DD
13241s,@stage1_languages@,$stage1_languages,;t t
13242s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 13243s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
1c8bd6a3
PB
13244s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
13245s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
2aeb72e9 13246s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
d89f0ad6 13247s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t
2aeb72e9
DD
13248s,@tooldir@,$tooldir,;t t
13249s,@build_tooldir@,$build_tooldir,;t t
13250s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
13251s,@GDB_TK@,$GDB_TK,;t t
13252s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
13253s,@build_configargs@,$build_configargs,;t t
13254s,@build_configdirs@,$build_configdirs,;t t
13255s,@host_configargs@,$host_configargs,;t t
13256s,@configdirs@,$configdirs,;t t
13257s,@target_configargs@,$target_configargs,;t t
0999159b
PB
13258s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
13259s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 13260s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
13261s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
13262s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
13263s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
13264s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
13265s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
13266s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
13267s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
13268s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
13269s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
13270s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
13271s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
13272s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
13273s,@config_shell@,$config_shell,;t t
13274s,@YACC@,$YACC,;t t
13275s,@BISON@,$BISON,;t t
13276s,@M4@,$M4,;t t
13277s,@LEX@,$LEX,;t t
13278s,@FLEX@,$FLEX,;t t
13279s,@MAKEINFO@,$MAKEINFO,;t t
13280s,@EXPECT@,$EXPECT,;t t
13281s,@RUNTEST@,$RUNTEST,;t t
13282s,@AR@,$AR,;t t
13283s,@AS@,$AS,;t t
13284s,@DLLTOOL@,$DLLTOOL,;t t
13285s,@LD@,$LD,;t t
13286s,@LIPO@,$LIPO,;t t
13287s,@NM@,$NM,;t t
13288s,@RANLIB@,$RANLIB,;t t
13289s,@STRIP@,$STRIP,;t t
13290s,@WINDRES@,$WINDRES,;t t
901119ae 13291s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
13292s,@OBJCOPY@,$OBJCOPY,;t t
13293s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
13294s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
13295s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
13296s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
13297s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
13298s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
13299s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
13300s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
13301s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
13302s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
13303s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
13304s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
13305s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
13306s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
13307s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
13308s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 13309s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
13310s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
13311s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
13312s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
13313s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
13314s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
13315s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13316s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13317s,@MAINT@,$MAINT,;t t
13318s,@stage1_cflags@,$stage1_cflags,;t t
13319s,@stage1_checking@,$stage1_checking,;t t
13320s,@stage2_werror_flag@,$stage2_werror_flag,;t t
13321s,@datarootdir@,$datarootdir,;t t
13322s,@docdir@,$docdir,;t t
13323s,@pdfdir@,$pdfdir,;t t
13324s,@htmldir@,$htmldir,;t t
13325s,@LIBOBJS@,$LIBOBJS,;t t
13326s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13327/@serialization_dependencies@/r $serialization_dependencies
13328s,@serialization_dependencies@,,;t t
13329/@host_makefile_frag@/r $host_makefile_frag
13330s,@host_makefile_frag@,,;t t
13331/@target_makefile_frag@/r $target_makefile_frag
13332s,@target_makefile_frag@,,;t t
13333/@alphaieee_frag@/r $alphaieee_frag
13334s,@alphaieee_frag@,,;t t
13335/@ospace_frag@/r $ospace_frag
13336s,@ospace_frag@,,;t t
13337CEOF
79c06341 13338
1c710c3c
DJ
13339_ACEOF
13340
2aeb72e9
DD
13341 cat >>$CONFIG_STATUS <<\_ACEOF
13342 # Split the substitutions into bite-sized pieces for seds with
13343 # small command number limits, like on Digital OSF/1 and HP-UX.
13344 ac_max_sed_lines=48
13345 ac_sed_frag=1 # Number of current file.
13346 ac_beg=1 # First line for current file.
13347 ac_end=$ac_max_sed_lines # Line after last line for current file.
13348 ac_more_lines=:
13349 ac_sed_cmds=
13350 while $ac_more_lines; do
13351 if test $ac_beg -gt 1; then
13352 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13353 else
13354 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13355 fi
13356 if test ! -s $tmp/subs.frag; then
13357 ac_more_lines=false
13358 else
13359 # The purpose of the label and of the branching condition is to
13360 # speed up the sed processing (if there are no `@' at all, there
13361 # is no need to browse any of the substitutions).
13362 # These are the two extra sed commands mentioned above.
13363 (echo ':t
13364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13365 if test -z "$ac_sed_cmds"; then
13366 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13367 else
13368 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13369 fi
13370 ac_sed_frag=`expr $ac_sed_frag + 1`
13371 ac_beg=$ac_end
13372 ac_end=`expr $ac_end + $ac_max_sed_lines`
13373 fi
13374 done
13375 if test -z "$ac_sed_cmds"; then
13376 ac_sed_cmds=cat
11a67599 13377 fi
2aeb72e9 13378fi # test -n "$CONFIG_FILES"
11a67599 13379
11a67599 13380_ACEOF
1c710c3c 13381cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
13382for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13383 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13384 case $ac_file in
13385 - | *:- | *:-:* ) # input from stdin
13386 cat >$tmp/stdin
13387 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13388 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13389 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13391 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
13392 esac
13393
2aeb72e9
DD
13394 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13395 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
13396$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13397 X"$ac_file" : 'X\(//\)[^/]' \| \
13398 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
13399 X"$ac_file" : 'X\(/\)' \| \
13400 . : '\(.\)' 2>/dev/null ||
1c710c3c 13401echo X"$ac_file" |
2aeb72e9
DD
13402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13404 /^X\(\/\/\)$/{ s//\1/; q; }
13405 /^X\(\/\).*/{ s//\1/; q; }
13406 s/.*/./; q'`
13407 { if $as_mkdir_p; then
13408 mkdir -p "$ac_dir"
13409 else
13410 as_dir="$ac_dir"
1c710c3c 13411 as_dirs=
2aeb72e9
DD
13412 while test ! -d "$as_dir"; do
13413 as_dirs="$as_dir $as_dirs"
13414 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
13415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13416 X"$as_dir" : 'X\(//\)[^/]' \| \
13417 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
13418 X"$as_dir" : 'X\(/\)' \| \
13419 . : '\(.\)' 2>/dev/null ||
1c710c3c 13420echo X"$as_dir" |
2aeb72e9
DD
13421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13422 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13423 /^X\(\/\/\)$/{ s//\1/; q; }
13424 /^X\(\/\).*/{ s//\1/; q; }
13425 s/.*/./; q'`
1c710c3c 13426 done
2aeb72e9
DD
13427 test ! -n "$as_dirs" || mkdir $as_dirs
13428 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13429echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13430 { (exit 1); exit 1; }; }; }
2aeb72e9 13431
1c710c3c 13432 ac_builddir=.
0b0dc272 13433
2aeb72e9 13434if test "$ac_dir" != .; then
1c710c3c 13435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13436 # A "../" for each directory in $ac_dir_suffix.
13437 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13438else
13439 ac_dir_suffix= ac_top_builddir=
13440fi
1c710c3c
DJ
13441
13442case $srcdir in
2aeb72e9 13443 .) # No --srcdir option. We are building in place.
1c710c3c 13444 ac_srcdir=.
2aeb72e9
DD
13445 if test -z "$ac_top_builddir"; then
13446 ac_top_srcdir=.
13447 else
13448 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13449 fi ;;
13450 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13451 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13452 ac_top_srcdir=$srcdir ;;
13453 *) # Relative path.
13454 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13455 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13456esac
a4b9e93e 13457
2aeb72e9
DD
13458# Do not use `cd foo && pwd` to compute absolute paths, because
13459# the directories may not exist.
13460case `pwd` in
13461.) ac_abs_builddir="$ac_dir";;
13462*)
13463 case "$ac_dir" in
13464 .) ac_abs_builddir=`pwd`;;
13465 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13466 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13467 esac;;
13468esac
13469case $ac_abs_builddir in
13470.) ac_abs_top_builddir=${ac_top_builddir}.;;
13471*)
13472 case ${ac_top_builddir}. in
13473 .) ac_abs_top_builddir=$ac_abs_builddir;;
13474 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13475 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13476 esac;;
13477esac
13478case $ac_abs_builddir in
13479.) ac_abs_srcdir=$ac_srcdir;;
13480*)
13481 case $ac_srcdir in
13482 .) ac_abs_srcdir=$ac_abs_builddir;;
13483 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13484 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13485 esac;;
13486esac
13487case $ac_abs_builddir in
13488.) ac_abs_top_srcdir=$ac_top_srcdir;;
13489*)
13490 case $ac_top_srcdir in
13491 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13492 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13493 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13494 esac;;
13495esac
0b0dc272 13496
1c710c3c
DJ
13497
13498 case $INSTALL in
13499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13500 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13501 esac
11a67599 13502
2aeb72e9
DD
13503 if test x"$ac_file" != x-; then
13504 { echo "$as_me:$LINENO: creating $ac_file" >&5
13505echo "$as_me: creating $ac_file" >&6;}
13506 rm -f "$ac_file"
13507 fi
13508 # Let's still pretend it is `configure' which instantiates (i.e., don't
13509 # use $as_me), people would be surprised to read:
13510 # /* config.h. Generated by config.status. */
13511 if test x"$ac_file" = x-; then
13512 configure_input=
13513 else
13514 configure_input="$ac_file. "
13515 fi
13516 configure_input=$configure_input"Generated from `echo $ac_file_in |
13517 sed 's,.*/,,'` by configure."
13518
13519 # First look for the input files in the build tree, otherwise in the
13520 # src tree.
13521 ac_file_inputs=`IFS=:
13522 for f in $ac_file_in; do
13523 case $f in
13524 -) echo $tmp/stdin ;;
13525 [\\/$]*)
13526 # Absolute (can't be DOS-style, as IFS=:)
13527 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13528echo "$as_me: error: cannot find input file: $f" >&2;}
13529 { (exit 1); exit 1; }; }
13530 echo "$f";;
13531 *) # Relative
13532 if test -f "$f"; then
13533 # Build tree
13534 echo "$f"
13535 elif test -f "$srcdir/$f"; then
13536 # Source tree
13537 echo "$srcdir/$f"
13538 else
13539 # /dev/null tree
13540 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13541echo "$as_me: error: cannot find input file: $f" >&2;}
13542 { (exit 1); exit 1; }; }
13543 fi;;
13544 esac
13545 done` || { (exit 1); exit 1; }
11a67599 13546_ACEOF
1c710c3c
DJ
13547cat >>$CONFIG_STATUS <<_ACEOF
13548 sed "$ac_vpsub
13549$extrasub
13550_ACEOF
13551cat >>$CONFIG_STATUS <<\_ACEOF
13552:t
13553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13554s,@configure_input@,$configure_input,;t t
13555s,@srcdir@,$ac_srcdir,;t t
13556s,@abs_srcdir@,$ac_abs_srcdir,;t t
13557s,@top_srcdir@,$ac_top_srcdir,;t t
13558s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13559s,@builddir@,$ac_builddir,;t t
13560s,@abs_builddir@,$ac_abs_builddir,;t t
13561s,@top_builddir@,$ac_top_builddir,;t t
13562s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13563s,@INSTALL@,$ac_INSTALL,;t t
13564" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13565 rm -f $tmp/stdin
13566 if test x"$ac_file" != x-; then
13567 mv $tmp/out $ac_file
13568 else
13569 cat $tmp/out
13570 rm -f $tmp/out
13571 fi
11a67599 13572
2aeb72e9
DD
13573done
13574_ACEOF
11a67599 13575
2aeb72e9 13576cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13577
1c710c3c
DJ
13578{ (exit 0); exit 0; }
13579_ACEOF
671aa708 13580chmod +x $CONFIG_STATUS
1c710c3c
DJ
13581ac_clean_files=$ac_clean_files_save
13582
13583
13584# configure is writing to config.log, and then calls config.status.
13585# config.status does its own redirection, appending to config.log.
13586# Unfortunately, on DOS this fails, as config.log is still kept open
13587# by configure, so config.status won't be able to write to it; its
13588# output is simply discarded. So we exec the FD to /dev/null,
13589# effectively closing config.log, so it can be properly (re)opened and
13590# appended to by config.status. When coming back to configure, we
13591# need to make the FD available again.
13592if test "$no_create" != yes; then
13593 ac_cs_success=:
13594 ac_config_status_args=
13595 test "$silent" = yes &&
13596 ac_config_status_args="$ac_config_status_args --quiet"
13597 exec 5>/dev/null
13598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13599 exec 5>>config.log
13600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13601 # would make configure fail if this is the last instruction.
13602 $ac_cs_success || { (exit 1); exit 1; }
13603fi
79c06341 13604