]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR ada/33454 (Wrong system.ads for --with-cpu=default32)
[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"
0999159b 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs 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'
671aa708
NN
277
278# Initialize some variables set by options.
1c710c3c
DJ
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
1c710c3c 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
1c710c3c
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
2aeb72e9 306datadir='${prefix}/share'
671aa708
NN
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
2aeb72e9 310libdir='${exec_prefix}/lib'
671aa708
NN
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
2aeb72e9
DD
313infodir='${prefix}/info'
314mandir='${prefix}/man'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
2aeb72e9 321 eval "$ac_prev=\$ac_option"
671aa708
NN
322 ac_prev=
323 continue
324 fi
79c06341 325
2aeb72e9 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
2aeb72e9 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
1c710c3c 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 340 build_alias=$ac_optarg ;;
671aa708
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708 351
2aeb72e9 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
671aa708 353 ac_prev=datadir ;;
2aeb72e9
DD
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
1c710c3c 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
1c710c3c 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
2aeb72e9 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
2aeb72e9
DD
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
1c710c3c 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
2aeb72e9 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
2aeb72e9
DD
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
1c710c3c 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
1c710c3c
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
1c710c3c 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 403 host_alias=$ac_optarg ;;
671aa708
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 420 libdir=$ac_optarg ;;
671aa708
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
1c710c3c 427 libexecdir=$ac_optarg ;;
671aa708
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
2aeb72e9
DD
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
671aa708
NN
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2aeb72e9
DD
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1c710c3c 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 441 mandir=$ac_optarg ;;
671aa708
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 448 | --no-cr | --no-c | -n)
671aa708
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 467 prefix=$ac_optarg ;;
671aa708
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 474 program_prefix=$ac_optarg ;;
671aa708
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 481 program_suffix=$ac_optarg ;;
671aa708
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 498 program_transform_name=$ac_optarg ;;
671aa708
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
1c710c3c 508 sbindir=$ac_optarg ;;
671aa708
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
1c710c3c 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
1c710c3c 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 529 srcdir=$ac_optarg ;;
671aa708
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
1c710c3c
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
1c710c3c 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
2aeb72e9 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
2aeb72e9
DD
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
1c710c3c 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
2aeb72e9 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1c710c3c
DJ
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
2aeb72e9
DD
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
671aa708
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 580 x_includes=$ac_optarg ;;
671aa708
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 587 x_libraries=$ac_optarg ;;
671aa708 588
1c710c3c
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
1c710c3c
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
2aeb72e9
DD
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
1c710c3c
DJ
602 export $ac_envvar ;;
603
671aa708 604 *)
1c710c3c
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
1c710c3c
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
af71363e 619fi
af71363e 620
2aeb72e9
DD
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
671aa708 623do
2aeb72e9 624 eval ac_val=$`echo $ac_var`
1c710c3c 625 case $ac_val in
2aeb72e9
DD
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
631
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
671aa708
NN
641 esac
642done
643
1c710c3c
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
0b0dc272 650
1c710c3c
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
2aeb72e9
DD
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
1c710c3c
DJ
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
1c710c3c 678echo X"$0" |
2aeb72e9
DD
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
671aa708 684 srcdir=$ac_confdir
2aeb72e9 685 if test ! -r $srcdir/$ac_unique_file; then
671aa708
NN
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
2aeb72e9
DD
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1c710c3c 697 { (exit 1); exit 1; }; }
2aeb72e9 698 fi
1c710c3c 699fi
2aeb72e9
DD
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1c710c3c 702 { (exit 1); exit 1; }; }
2aeb72e9
DD
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_AR_set=${AR+set}
741ac_env_AR_value=$AR
742ac_cv_env_AR_set=${AR+set}
743ac_cv_env_AR_value=$AR
744ac_env_AS_set=${AS+set}
745ac_env_AS_value=$AS
746ac_cv_env_AS_set=${AS+set}
747ac_cv_env_AS_value=$AS
748ac_env_DLLTOOL_set=${DLLTOOL+set}
749ac_env_DLLTOOL_value=$DLLTOOL
750ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
751ac_cv_env_DLLTOOL_value=$DLLTOOL
752ac_env_LD_set=${LD+set}
753ac_env_LD_value=$LD
754ac_cv_env_LD_set=${LD+set}
755ac_cv_env_LD_value=$LD
756ac_env_LIPO_set=${LIPO+set}
757ac_env_LIPO_value=$LIPO
758ac_cv_env_LIPO_set=${LIPO+set}
759ac_cv_env_LIPO_value=$LIPO
760ac_env_NM_set=${NM+set}
761ac_env_NM_value=$NM
762ac_cv_env_NM_set=${NM+set}
763ac_cv_env_NM_value=$NM
764ac_env_RANLIB_set=${RANLIB+set}
765ac_env_RANLIB_value=$RANLIB
766ac_cv_env_RANLIB_set=${RANLIB+set}
767ac_cv_env_RANLIB_value=$RANLIB
768ac_env_STRIP_set=${STRIP+set}
769ac_env_STRIP_value=$STRIP
770ac_cv_env_STRIP_set=${STRIP+set}
771ac_cv_env_STRIP_value=$STRIP
772ac_env_WINDRES_set=${WINDRES+set}
773ac_env_WINDRES_value=$WINDRES
774ac_cv_env_WINDRES_set=${WINDRES+set}
775ac_cv_env_WINDRES_value=$WINDRES
901119ae
KT
776ac_env_WINDMC_set=${WINDMC+set}
777ac_env_WINDMC_value=$WINDMC
778ac_cv_env_WINDMC_set=${WINDMC+set}
779ac_cv_env_WINDMC_value=$WINDMC
2aeb72e9
DD
780ac_env_OBJCOPY_set=${OBJCOPY+set}
781ac_env_OBJCOPY_value=$OBJCOPY
782ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
783ac_cv_env_OBJCOPY_value=$OBJCOPY
784ac_env_OBJDUMP_set=${OBJDUMP+set}
785ac_env_OBJDUMP_value=$OBJDUMP
786ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
787ac_cv_env_OBJDUMP_value=$OBJDUMP
788ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
789ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
790ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
793ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
794ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
797ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
798ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
801ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
802ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
805ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
806ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
809ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
810ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
813ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
814ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
817ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
818ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
821ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
822ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
825ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
826ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
829ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
830ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
833ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
834ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
837ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
838ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
841ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
842ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
845ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
846ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
901119ae
KT
848ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
849ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
850ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
1c710c3c
DJ
852
853#
854# Report the --help message.
855#
856if test "$ac_init_help" = "long"; then
857 # Omit some internal or obsolete options to make the list less imposing.
858 # This message is too long to be a string in the A/UX 3.1 sh.
859 cat <<_ACEOF
860\`configure' configures this package to adapt to many kinds of systems.
861
862Usage: $0 [OPTION]... [VAR=VALUE]...
863
864To assign environment variables (e.g., CC, CFLAGS...), specify them as
865VAR=VALUE. See below for descriptions of some of the useful variables.
866
867Defaults for the options are specified in brackets.
868
869Configuration:
870 -h, --help display this help and exit
871 --help=short display options specific to this package
872 --help=recursive display the short help of all the included packages
873 -V, --version display version information and exit
874 -q, --quiet, --silent do not print \`checking...' messages
875 --cache-file=FILE cache test results in FILE [disabled]
876 -C, --config-cache alias for \`--cache-file=config.cache'
877 -n, --no-create do not create output files
878 --srcdir=DIR find the sources in DIR [configure dir or \`..']
879
2aeb72e9
DD
880_ACEOF
881
882 cat <<_ACEOF
1c710c3c
DJ
883Installation directories:
884 --prefix=PREFIX install architecture-independent files in PREFIX
885 [$ac_default_prefix]
886 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
887 [PREFIX]
888
889By default, \`make install' will install all the files in
890\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
891an installation prefix other than \`$ac_default_prefix' using \`--prefix',
892for instance \`--prefix=\$HOME'.
893
894For better control, use the options below.
895
896Fine tuning of the installation directories:
897 --bindir=DIR user executables [EPREFIX/bin]
898 --sbindir=DIR system admin executables [EPREFIX/sbin]
899 --libexecdir=DIR program executables [EPREFIX/libexec]
2aeb72e9 900 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1c710c3c
DJ
901 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
902 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
903 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
904 --libdir=DIR object code libraries [EPREFIX/lib]
905 --includedir=DIR C header files [PREFIX/include]
906 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2aeb72e9
DD
907 --infodir=DIR info documentation [PREFIX/info]
908 --mandir=DIR man documentation [PREFIX/man]
1c710c3c
DJ
909_ACEOF
910
911 cat <<\_ACEOF
912
913Program names:
914 --program-prefix=PREFIX prepend PREFIX to installed program names
915 --program-suffix=SUFFIX append SUFFIX to installed program names
916 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
917
918System types:
919 --build=BUILD configure for building on BUILD [guessed]
920 --host=HOST cross-compile to build programs to run on HOST [BUILD]
921 --target=TARGET configure for building compilers for TARGET [HOST]
922_ACEOF
923fi
924
925if test -n "$ac_init_help"; then
926
927 cat <<\_ACEOF
928
929Optional Features:
930 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
931 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
30b74385
RW
932 --enable-libada build libada directory
933 --enable-libssp build libssp directory
934 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 935 stage1. Mostly useful for compiler development.
30b74385
RW
936 --enable-objc-gc enable use of Boehm's garbage collector with the
937 GNU Objective-C runtime
938 --enable-bootstrap enable bootstrapping [yes if native build]
939 --enable-serial-[{host,target,build}-]configure
940 force sequential configuration of
1c710c3c 941 sub-packages for the host, target or build
30b74385 942 machine, or all sub-packages
1c710c3c
DJ
943 --enable-maintainer-mode enable make rules and dependencies not useful
944 (and sometimes confusing) to the casual installer
30b74385
RW
945 --enable-stage1-checking[=all] choose additional checking for stage1
946 of the compiler
1c710c3c
DJ
947 --enable-werror enable -Werror in bootstrap stage2 and later
948
949Optional Packages:
950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
952 --with-build-libsubdir=DIR Directory where to find libraries for build system
30b74385
RW
953 --with-mpfr-dir=PATH this option has been REMOVED
954 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
955 Equivalent to --with-mpfr-include=PATH/include
956 plus --with-mpfr-lib=PATH/lib
957 --with-mpfr-include=PATH
30b74385
RW
958 specify directory for installed MPFR include files
959 --with-mpfr-lib=PATH specify directory for the installed MPFR library
960 --with-gmp-dir=PATH this option has been REMOVED
961 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
962 Equivalent to --with-gmp-include=PATH/include
963 plus --with-gmp-lib=PATH/lib
30b74385
RW
964 --with-gmp-include=PATH specify directory for installed GMP include files
965 --with-gmp-lib=PATH specify directory for the installed GMP library
966 --with-build-sysroot=SYSROOT
1c710c3c 967 use sysroot as the system root during the build
c8aea42c
PB
968 --with-debug-prefix-map='A=B C=D ...'
969 map A to B, C to D ... in debug information
30b74385 970 --with-build-time-tools=PATH
1c710c3c 971 use given path to find target tools during the build
30b74385
RW
972 --with-datarootdir use datarootdir as the data root directory.
973 --with-docdir install documentation in this directory.
974 --with-pdfdir install pdf in this directory.
975 --with-htmldir install html in this directory.
1c710c3c
DJ
976
977Some influential environment variables:
978 CC C compiler command
979 CFLAGS C compiler flags
980 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
981 nonstandard directory <lib dir>
2aeb72e9
DD
982 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
983 headers in a nonstandard directory <include dir>
c3a86da9
DJ
984 CXX C++ compiler command
985 CXXFLAGS C++ compiler flags
278a7a38
AO
986 AR AR for the host
987 AS AS for the host
988 DLLTOOL DLLTOOL for the host
989 LD LD for the host
990 LIPO LIPO for the host
991 NM NM for the host
992 RANLIB RANLIB for the host
993 STRIP STRIP for the host
994 WINDRES WINDRES for the host
901119ae 995 WINDMC WINDMC for the host
278a7a38
AO
996 OBJCOPY OBJCOPY for the host
997 OBJDUMP OBJDUMP for the host
998 CC_FOR_TARGET
999 CC for the target
1000 CXX_FOR_TARGET
1001 CXX for the target
1002 GCC_FOR_TARGET
1003 GCC for the target
1004 GCJ_FOR_TARGET
1005 GCJ for the target
1006 GFORTRAN_FOR_TARGET
1007 GFORTRAN for the target
1008 AR_FOR_TARGET
1009 AR for the target
1010 AS_FOR_TARGET
1011 AS for the target
1012 DLLTOOL_FOR_TARGET
1013 DLLTOOL for the target
1014 LD_FOR_TARGET
1015 LD for the target
1016 LIPO_FOR_TARGET
1017 LIPO for the target
1018 NM_FOR_TARGET
1019 NM for the target
1020 OBJDUMP_FOR_TARGET
1021 OBJDUMP for the target
1022 RANLIB_FOR_TARGET
1023 RANLIB for the target
1024 STRIP_FOR_TARGET
1025 STRIP for the target
1026 WINDRES_FOR_TARGET
1027 WINDRES for the target
901119ae
KT
1028 WINDMC_FOR_TARGET
1029 WINDMC for the target
1c710c3c
DJ
1030
1031Use these variables to override the choices made by `configure' or to help
1032it to find libraries and programs with nonstandard names/locations.
1033
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
2aeb72e9 1039 ac_popdir=`pwd`
1c710c3c 1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2aeb72e9 1041 test -d $ac_dir || continue
1c710c3c
DJ
1042 ac_builddir=.
1043
2aeb72e9 1044if test "$ac_dir" != .; then
1c710c3c 1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1c710c3c
DJ
1051
1052case $srcdir in
2aeb72e9 1053 .) # No --srcdir option. We are building in place.
1c710c3c 1054 ac_srcdir=.
2aeb72e9
DD
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 1061 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067
1068# Do not use `cd foo && pwd` to compute absolute paths, because
1069# the directories may not exist.
1070case `pwd` in
1071.) ac_abs_builddir="$ac_dir";;
1072*)
1073 case "$ac_dir" in
1074 .) ac_abs_builddir=`pwd`;;
1075 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1076 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1077 esac;;
1078esac
1079case $ac_abs_builddir in
1080.) ac_abs_top_builddir=${ac_top_builddir}.;;
1081*)
1082 case ${ac_top_builddir}. in
1083 .) ac_abs_top_builddir=$ac_abs_builddir;;
1084 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1085 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1086 esac;;
1087esac
1088case $ac_abs_builddir in
1089.) ac_abs_srcdir=$ac_srcdir;;
1090*)
1091 case $ac_srcdir in
1092 .) ac_abs_srcdir=$ac_abs_builddir;;
1093 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1094 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1095 esac;;
1096esac
1097case $ac_abs_builddir in
1098.) ac_abs_top_srcdir=$ac_top_srcdir;;
1099*)
1100 case $ac_top_srcdir in
1101 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1102 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1103 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1104 esac;;
1c710c3c 1105esac
2aeb72e9
DD
1106
1107 cd $ac_dir
1108 # Check for guested configure; otherwise get Cygnus style configure.
1109 if test -f $ac_srcdir/configure.gnu; then
1110 echo
1111 $SHELL $ac_srcdir/configure.gnu --help=recursive
1112 elif test -f $ac_srcdir/configure; then
1113 echo
1114 $SHELL $ac_srcdir/configure --help=recursive
1115 elif test -f $ac_srcdir/configure.ac ||
1116 test -f $ac_srcdir/configure.in; then
1117 echo
1118 $ac_configure --help
1c710c3c
DJ
1119 else
1120 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2aeb72e9
DD
1121 fi
1122 cd $ac_popdir
1c710c3c
DJ
1123 done
1124fi
1125
2aeb72e9 1126test -n "$ac_init_help" && exit 0
1c710c3c
DJ
1127if $ac_init_version; then
1128 cat <<\_ACEOF
1129
2aeb72e9 1130Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
1131This configure script is free software; the Free Software Foundation
1132gives unlimited permission to copy, distribute and modify it.
1133_ACEOF
2aeb72e9 1134 exit 0
0b0dc272 1135fi
2aeb72e9
DD
1136exec 5>config.log
1137cat >&5 <<_ACEOF
1c710c3c
DJ
1138This file contains any messages produced by compilers while
1139running configure, to aid debugging if configure makes a mistake.
1140
1141It was created by $as_me, which was
2aeb72e9 1142generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
1143
1144 $ $0 $@
1145
1146_ACEOF
1147{
1148cat <<_ASUNAME
1149## --------- ##
1150## Platform. ##
1151## --------- ##
1152
1153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1154uname -m = `(uname -m) 2>/dev/null || echo unknown`
1155uname -r = `(uname -r) 2>/dev/null || echo unknown`
1156uname -s = `(uname -s) 2>/dev/null || echo unknown`
1157uname -v = `(uname -v) 2>/dev/null || echo unknown`
1158
1159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1161
1162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2aeb72e9 1165hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1169
1170_ASUNAME
1171
1172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173for as_dir in $PATH
1174do
1175 IFS=$as_save_IFS
1176 test -z "$as_dir" && as_dir=.
1177 echo "PATH: $as_dir"
1178done
1179
1180} >&5
1181
1182cat >&5 <<_ACEOF
1183
1184
1185## ----------- ##
1186## Core tests. ##
1187## ----------- ##
1188
1189_ACEOF
1190
1191
1192# Keep a trace of the command line.
1193# Strip out --no-create and --no-recursion so they do not pile up.
1194# Strip out --silent because we don't want to record it for future runs.
1195# Also quote any args containing shell meta-characters.
1196# Make two passes to allow for proper duplicate-argument suppression.
1197ac_configure_args=
1198ac_configure_args0=
1199ac_configure_args1=
2aeb72e9 1200ac_sep=
1c710c3c
DJ
1201ac_must_keep_next=false
1202for ac_pass in 1 2
1203do
1204 for ac_arg
1205 do
1206 case $ac_arg in
1207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 continue ;;
2aeb72e9 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1c710c3c
DJ
1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1213 esac
1214 case $ac_pass in
1215 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1216 2)
1217 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1218 if test $ac_must_keep_next = true; then
1219 ac_must_keep_next=false # Got value, back to normal.
1220 else
1221 case $ac_arg in
1222 *=* | --config-cache | -C | -disable-* | --disable-* \
1223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1225 | -with-* | --with-* | -without-* | --without-* | --x)
1226 case "$ac_configure_args0 " in
1227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1228 esac
1229 ;;
1230 -* ) ac_must_keep_next=true ;;
1231 esac
1232 fi
2aeb72e9
DD
1233 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1234 # Get rid of the leading space.
1235 ac_sep=" "
1c710c3c
DJ
1236 ;;
1237 esac
1238 done
1239done
1240$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1241$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1242
1243# When interrupted or exit'd, cleanup temporary files, and complete
1244# config.log. We remove comments because anyway the quotes in there
1245# would cause problems or look ugly.
2aeb72e9
DD
1246# WARNING: Be sure not to use single quotes in there, as some shells,
1247# such as our DU 5.0 friend, will then `close' the trap.
1c710c3c
DJ
1248trap 'exit_status=$?
1249 # Save into config.log some information that might help in debugging.
1250 {
1251 echo
1252
1253 cat <<\_ASBOX
1254## ---------------- ##
1255## Cache variables. ##
1256## ---------------- ##
1257_ASBOX
1258 echo
1259 # The following way of writing the cache mishandles newlines in values,
2aeb72e9 1260{
1c710c3c 1261 (set) 2>&1 |
2aeb72e9
DD
1262 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263 *ac_space=\ *)
1c710c3c 1264 sed -n \
2aeb72e9
DD
1265 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1267 ;;
1c710c3c 1268 *)
2aeb72e9
DD
1269 sed -n \
1270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 1271 ;;
2aeb72e9
DD
1272 esac;
1273}
1c710c3c
DJ
1274 echo
1275
1276 cat <<\_ASBOX
1277## ----------------- ##
1278## Output variables. ##
1279## ----------------- ##
1280_ASBOX
1281 echo
1282 for ac_var in $ac_subst_vars
1283 do
2aeb72e9
DD
1284 eval ac_val=$`echo $ac_var`
1285 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1286 done | sort
1287 echo
1288
1289 if test -n "$ac_subst_files"; then
1290 cat <<\_ASBOX
2aeb72e9
DD
1291## ------------- ##
1292## Output files. ##
1293## ------------- ##
1c710c3c
DJ
1294_ASBOX
1295 echo
1296 for ac_var in $ac_subst_files
1297 do
2aeb72e9
DD
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1c710c3c
DJ
1300 done | sort
1301 echo
1302 fi
1303
1304 if test -s confdefs.h; then
1305 cat <<\_ASBOX
1306## ----------- ##
1307## confdefs.h. ##
1308## ----------- ##
1309_ASBOX
1310 echo
2aeb72e9 1311 sed "/^$/d" confdefs.h | sort
1c710c3c
DJ
1312 echo
1313 fi
1314 test "$ac_signal" != 0 &&
1315 echo "$as_me: caught signal $ac_signal"
1316 echo "$as_me: exit $exit_status"
1317 } >&5
2aeb72e9
DD
1318 rm -f core *.core &&
1319 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1320 exit $exit_status
2aeb72e9 1321 ' 0
1c710c3c
DJ
1322for ac_signal in 1 2 13 15; do
1323 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1324done
1325ac_signal=0
1326
1327# confdefs.h avoids OS command line length limits that DEFS can exceed.
2aeb72e9
DD
1328rm -rf conftest* confdefs.h
1329# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1330echo >confdefs.h
1c710c3c
DJ
1331
1332# Predefined preprocessor variables.
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_NAME "$PACKAGE_NAME"
1336_ACEOF
1337
1338
1339cat >>confdefs.h <<_ACEOF
1340#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1341_ACEOF
1342
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_VERSION "$PACKAGE_VERSION"
1346_ACEOF
0b0dc272 1347
1c710c3c
DJ
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_STRING "$PACKAGE_STRING"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1356_ACEOF
1357
1358
1359# Let the site file select an alternate cache file if it wants to.
671aa708 1360# Prefer explicitly selected file to automatically selected ones.
2aeb72e9
DD
1361if test -z "$CONFIG_SITE"; then
1362 if test "x$prefix" != xNONE; then
1363 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1364 else
1365 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1366 fi
671aa708 1367fi
2aeb72e9 1368for ac_site_file in $CONFIG_SITE; do
671aa708 1369 if test -r "$ac_site_file"; then
1c710c3c
DJ
1370 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1371echo "$as_me: loading site script $ac_site_file" >&6;}
1372 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1373 . "$ac_site_file"
1374 fi
1375done
1376
1377if test -r "$cache_file"; then
1c710c3c
DJ
1378 # Some versions of bash will fail to source /dev/null (special
1379 # files actually), so we avoid doing that.
1380 if test -f "$cache_file"; then
1381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1382echo "$as_me: loading cache $cache_file" >&6;}
1383 case $cache_file in
2aeb72e9
DD
1384 [\\/]* | ?:[\\/]* ) . $cache_file;;
1385 *) . ./$cache_file;;
1c710c3c
DJ
1386 esac
1387 fi
671aa708 1388else
1c710c3c
DJ
1389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1390echo "$as_me: creating cache $cache_file" >&6;}
1391 >$cache_file
1392fi
1393
1394# Check that the precious variables saved in the cache have kept the same
1395# value.
1396ac_cache_corrupted=false
2aeb72e9
DD
1397for ac_var in `(set) 2>&1 |
1398 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1c710c3c
DJ
1399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1400 eval ac_new_set=\$ac_env_${ac_var}_set
2aeb72e9
DD
1401 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1402 eval ac_new_val="\$ac_env_${ac_var}_value"
1c710c3c
DJ
1403 case $ac_old_set,$ac_new_set in
1404 set,)
1405 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1406echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1407 ac_cache_corrupted=: ;;
1408 ,set)
1409 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1410echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1411 ac_cache_corrupted=: ;;
1412 ,);;
1413 *)
1414 if test "x$ac_old_val" != "x$ac_new_val"; then
1415 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1416echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1417 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1418echo "$as_me: former value: $ac_old_val" >&2;}
1419 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1420echo "$as_me: current value: $ac_new_val" >&2;}
1421 ac_cache_corrupted=:
1422 fi;;
1423 esac
1424 # Pass precious variables to config.status.
1425 if test "$ac_new_set" = set; then
1426 case $ac_new_val in
2aeb72e9
DD
1427 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1428 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1429 *) ac_arg=$ac_var=$ac_new_val ;;
1430 esac
1431 case " $ac_configure_args " in
1432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1433 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1434 esac
1435 fi
1436done
1437if $ac_cache_corrupted; then
1438 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1439echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1440 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1441echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1442 { (exit 1); exit 1; }; }
671aa708
NN
1443fi
1444
2aeb72e9
DD
1445ac_ext=c
1446ac_cpp='$CPP $CPPFLAGS'
1447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1449ac_compiler_gnu=$ac_cv_c_compiler_gnu
1450
1c710c3c
DJ
1451
1452
1453
1454
671aa708
NN
1455
1456
d02c69be 1457
1c710c3c
DJ
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471# Find the build, host, and target systems.
671aa708 1472ac_aux_dir=
2aeb72e9
DD
1473for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474 if test -f $ac_dir/install-sh; then
671aa708
NN
1475 ac_aux_dir=$ac_dir
1476 ac_install_sh="$ac_aux_dir/install-sh -c"
1477 break
2aeb72e9 1478 elif test -f $ac_dir/install.sh; then
671aa708
NN
1479 ac_aux_dir=$ac_dir
1480 ac_install_sh="$ac_aux_dir/install.sh -c"
1481 break
2aeb72e9 1482 elif test -f $ac_dir/shtool; then
1c710c3c
DJ
1483 ac_aux_dir=$ac_dir
1484 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 break
671aa708
NN
1486 fi
1487done
1488if test -z "$ac_aux_dir"; then
2aeb72e9
DD
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1c710c3c 1491 { (exit 1); exit 1; }; }
671aa708 1492fi
2aeb72e9
DD
1493ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1496
1c710c3c 1497# Make sure we can run config.sub.
2aeb72e9
DD
1498$ac_config_sub sun4 >/dev/null 2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1c710c3c
DJ
1501 { (exit 1); exit 1; }; }
1502
2aeb72e9
DD
1503echo "$as_me:$LINENO: checking build system type" >&5
1504echo $ECHO_N "checking build system type... $ECHO_C" >&6
1c710c3c
DJ
1505if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
2aeb72e9
DD
1508 ac_cv_build_alias=$build_alias
1509test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias=`$ac_config_guess`
1511test -z "$ac_cv_build_alias" &&
1c710c3c
DJ
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
2aeb72e9
DD
1515ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1c710c3c
DJ
1518 { (exit 1); exit 1; }; }
1519
1520fi
2aeb72e9
DD
1521echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522echo "${ECHO_T}$ac_cv_build" >&6
1c710c3c 1523build=$ac_cv_build
2aeb72e9
DD
1524build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1527
671aa708 1528
1c710c3c
DJ
1529 case ${build_alias} in
1530 "") build_noncanonical=${build} ;;
1531 *) build_noncanonical=${build_alias} ;;
af71363e
AS
1532esac
1533
1534
af71363e 1535
1c710c3c
DJ
1536 case ${host_alias} in
1537 "") host_noncanonical=${build_noncanonical} ;;
1538 *) host_noncanonical=${host_alias} ;;
af71363e
AS
1539esac
1540
af71363e 1541
1c710c3c
DJ
1542
1543 case ${target_alias} in
1544 "") target_noncanonical=${host_noncanonical} ;;
1545 *) target_noncanonical=${target_alias} ;;
af71363e
AS
1546esac
1547
af71363e 1548
1c710c3c
DJ
1549
1550
1551test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
1552 test "$program_prefix$program_suffix$program_transform_name" = \
1553 NONENONEs,x,x, &&
1c710c3c 1554 program_transform_name=s,y,y,
af71363e 1555
2aeb72e9
DD
1556echo "$as_me:$LINENO: checking host system type" >&5
1557echo $ECHO_N "checking host system type... $ECHO_C" >&6
1c710c3c
DJ
1558if test "${ac_cv_host+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e 1560else
2aeb72e9
DD
1561 ac_cv_host_alias=$host_alias
1562test -z "$ac_cv_host_alias" &&
1563 ac_cv_host_alias=$ac_cv_build_alias
1564ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1565 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1566echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1c710c3c
DJ
1567 { (exit 1); exit 1; }; }
1568
af71363e 1569fi
2aeb72e9
DD
1570echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1571echo "${ECHO_T}$ac_cv_host" >&6
1c710c3c 1572host=$ac_cv_host
2aeb72e9
DD
1573host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578echo "$as_me:$LINENO: checking target system type" >&5
1579echo $ECHO_N "checking target system type... $ECHO_C" >&6
1c710c3c
DJ
1580if test "${ac_cv_target+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
2aeb72e9
DD
1583 ac_cv_target_alias=$target_alias
1584test "x$ac_cv_target_alias" = "x" &&
1585 ac_cv_target_alias=$ac_cv_host_alias
1586ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1588echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1c710c3c
DJ
1589 { (exit 1); exit 1; }; }
1590
1591fi
2aeb72e9
DD
1592echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1593echo "${ECHO_T}$ac_cv_target" >&6
1c710c3c 1594target=$ac_cv_target
2aeb72e9
DD
1595target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1c710c3c
DJ
1598
1599
1600# The aliases save the names the user supplied, while $host etc.
1601# will get canonicalized.
1602test -n "$target_alias" &&
1603 test "$program_prefix$program_suffix$program_transform_name" = \
1604 NONENONEs,x,x, &&
1605 program_prefix=${target_alias}-
671aa708 1606test "$program_prefix" != NONE &&
2aeb72e9 1607 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1608# Use a double $ so make ignores it.
1609test "$program_suffix" != NONE &&
2aeb72e9 1610 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1c710c3c
DJ
1611# Double any \ or $. echo might interpret backslashes.
1612# By default was `s,x,x', remove it if useless.
1613cat <<\_ACEOF >conftest.sed
1614s/[\\$]/&&/g;s/;s,x,x,$//
1615_ACEOF
1616program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2aeb72e9 1617rm conftest.sed
af71363e 1618
671aa708
NN
1619
1620
775956d0
NN
1621# Get 'install' or 'install-sh' and its variants.
1622# Find a good install program. We prefer a C program (faster),
1623# so one script is as good as another. But avoid the broken or
1624# incompatible versions:
1625# SysV /etc/install, /usr/sbin/install
1626# SunOS /usr/etc/install
1627# IRIX /sbin/install
1628# AIX /bin/install
1c710c3c 1629# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 1633# OS/2's system install, which has a completely different semantic
775956d0 1634# ./install, which can be erroneously created by make from ./install.sh.
2aeb72e9
DD
1635echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1637if test -z "$INSTALL"; then
1c710c3c
DJ
1638if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1659 if test $ac_prog = install &&
1c710c3c 1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1661 # AIX install. It has an incompatible calling convention.
1662 :
1c710c3c
DJ
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
775956d0 1667 else
1c710c3c
DJ
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
775956d0
NN
1670 fi
1671 fi
1672 done
1c710c3c
DJ
1673 done
1674 ;;
1675esac
1676done
1677
775956d0
NN
1678
1679fi
1680 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 1681 INSTALL=$ac_cv_path_install
775956d0 1682 else
2aeb72e9
DD
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
775956d0 1685 # break other packages using the cache if that directory is
2aeb72e9 1686 # removed, or if the path is relative.
1c710c3c 1687 INSTALL=$ac_install_sh
775956d0
NN
1688 fi
1689fi
2aeb72e9
DD
1690echo "$as_me:$LINENO: result: $INSTALL" >&5
1691echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1692
1693# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694# It thinks the first close brace ends the variable substitution.
1695test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1c710c3c 1697test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1698
1699test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
2aeb72e9
DD
1701echo "$as_me:$LINENO: checking whether ln works" >&5
1702echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1c710c3c
DJ
1703if test "${acx_cv_prog_LN+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1705else
1706 rm -f conftestdata_t
1707echo >conftestdata_f
1708if ln conftestdata_f conftestdata_t 2>/dev/null
1709then
1710 acx_cv_prog_LN=ln
1711else
1712 acx_cv_prog_LN=no
1713fi
1714rm -f conftestdata_f conftestdata_t
1715
1716fi
1717if test $acx_cv_prog_LN = no; then
1718 LN="cp"
2aeb72e9
DD
1719 echo "$as_me:$LINENO: result: no, using $LN" >&5
1720echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1721else
1722 LN="$acx_cv_prog_LN"
2aeb72e9
DD
1723 echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
ad6717df
PB
1725fi
1726
2aeb72e9
DD
1727echo "$as_me:$LINENO: checking whether ln -s works" >&5
1728echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1c710c3c
DJ
1729LN_S=$as_ln_s
1730if test "$LN_S" = "ln -s"; then
2aeb72e9
DD
1731 echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
fb0103e5 1733else
2aeb72e9
DD
1734 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1735echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1736fi
1737
775956d0 1738
79c06341 1739### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1740### If we are on Windows, search for the shell. This will permit people
1741### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1742### without also having to set CONFIG_SHELL. This code will work when
1743### using bash, which sets OSTYPE.
1744case "${OSTYPE}" in
1745*win32*)
671aa708
NN
1746 if test x${CONFIG_SHELL} = x ; then
1747 if test ! -f /bin/sh ; then
1748 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1749 CONFIG_SHELL=${SHELL}
1750 export CONFIG_SHELL
1751 else
1752 for prog in sh sh.exe bash bash.exe; do
1753 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1754 for dir in $PATH; do
1755 test -z "$dir" && dir=.
1756 if test -f $dir/$prog; then
1757 CONFIG_SHELL=$dir/$prog
1758 export CONFIG_SHELL
1759 break
1760 fi
1761 done
1762 IFS="$save_ifs"
1763 test -n "${CONFIG_SHELL}" && break
1764 done
1765 fi
1766 fi
1767 fi
1768 ;;
1769esac
1770
1771config_shell=${CONFIG_SHELL-/bin/sh}
1772
79c06341
JL
1773progname=$0
1774# if PWD already has a value, it is probably wrong.
671aa708 1775if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1776
beeaf216
MM
1777# Export original configure arguments for use by sub-configures.
1778# Quote arguments with shell meta charatcers.
1779TOPLEVEL_CONFIGURE_ARGUMENTS=
1780set -- "$progname" "$@"
9f8c6739
JM
1781for ac_arg
1782do
beeaf216 1783 case "$ac_arg" in
8c79f3c4 1784 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
beeaf216
MM
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1786 # if the argument is of the form -foo=baz, quote the baz part only
1787 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1788 *) ;;
1789 esac
1790 # Add the quoted argument to the list.
1791 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1792done
d9acb717
RW
1793if test "$silent" = yes; then
1794 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1795fi
beeaf216
MM
1796# Remove the initial space we just introduced and, as these will be
1797# expanded by make, quote '$'.
1798TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
3dfabf63 1799
cc1e60ea 1800
671aa708 1801moveifchange=${srcdir}/move-if-change
79c06341 1802
ee6a22df
L
1803srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1804
1805# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1806# a relative path.
1807if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1808 INSTALL="${srcpwd}/install-sh -c"
1809fi
1810
671aa708
NN
1811# Set srcdir to "." if that's what it is.
1812# This is important for multilib support.
1813pwd=`${PWDCMD-pwd}`
671aa708
NN
1814if test "${pwd}" = "${srcpwd}" ; then
1815 srcdir=.
79c06341
JL
1816fi
1817
671aa708 1818topsrcdir=$srcpwd
5d4a5ee6 1819
671aa708 1820extra_host_args=
afabd8e6 1821
671aa708
NN
1822### To add a new directory to the tree, first choose whether it is a target
1823### or a host dependent tool. Then put it into the appropriate list
1824### (library or tools, host or target), doing a dependency sort.
79c06341 1825
1c710c3c 1826# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1827# configdirs, or target_configdirs; see the serialization section below.
79c06341 1828
1c710c3c
DJ
1829# Dependency sorting is only needed when *configuration* must be done in
1830# a particular order. In all cases a dependency should be specified in
671aa708 1831# the Makefile, whether or not it's implicitly specified here.
79c06341 1832
671aa708
NN
1833# Double entries in build_configdirs, configdirs, or target_configdirs may
1834# cause circular dependencies and break everything horribly.
79c06341 1835
23f6b2f9
PB
1836# these library is used by various programs built for the build
1837# environment
1838#
1839build_libs="build-libiberty"
1840
1841# these tools are built for the build environment
71b5d516 1842build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1843
671aa708
NN
1844# these libraries are used by various programs built for the host environment
1845#
e69bf64b 1846host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
671aa708 1847
671aa708
NN
1848# these tools are built for the host environment
1849# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1850# know that we are building the simulator.
1851# binutils, gas and ld appear in that order because it makes sense to run
1852# "make check" in that particular order.
5395b47b 1853host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1854
1855# libgcj represents the runtime libraries only used by gcj.
1856libgcj="target-libffi \
671aa708
NN
1857 target-zlib \
1858 target-qthreads \
1859 target-libjava"
1860
1861# these libraries are built for the target environment, and are built after
1862# the host libraries and the host tools (which may be a cross compiler)
1863#
291f172e
DJ
1864target_libraries="target-libgcc \
1865 target-libiberty \
671aa708
NN
1866 target-libgloss \
1867 target-newlib \
6d3b5aea 1868 target-libgomp \
cb543528 1869 target-libstdc++-v3 \
6de9cd9a 1870 target-libmudflap \
77008252 1871 target-libssp \
6de9cd9a 1872 target-libgfortran \
7cd0cf9c 1873 target-boehm-gc \
77d187bc 1874 ${libgcj} \
d9cdb878 1875 target-libobjc \
6d3b5aea 1876 target-libada"
671aa708 1877
4dbda6f0
NN
1878# these tools are built using the target libraries, and are intended to
1879# run only in the target environment
671aa708 1880#
4dbda6f0 1881# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1882# list belongs in this list. those programs are also very likely
1883# candidates for the "native_only" list which follows
1884#
97286f7f 1885target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1886
671aa708 1887################################################################################
79c06341 1888
671aa708
NN
1889## All tools belong in one of the four categories, and are assigned above
1890## We assign ${configdirs} this way to remove all embedded newlines. This
1891## is important because configure will choke if they ever get through.
1892## ${configdirs} is directories we build using the host tools.
1893## ${target_configdirs} is directories we build using the target tools.
671aa708 1894configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1895target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1896build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1897
671aa708 1898################################################################################
79c06341 1899
671aa708 1900srcname="gnu development package"
79c06341 1901
671aa708
NN
1902# This gets set non-empty for some net releases of packages.
1903appdirs=""
79c06341 1904
671aa708
NN
1905# Define is_cross_compiler to save on calls to 'test'.
1906is_cross_compiler=
1907if test x"${host}" = x"${target}" ; then
1908 is_cross_compiler=no
79c06341 1909else
671aa708 1910 is_cross_compiler=yes
1c710c3c 1911fi
79c06341 1912
b4acb5ef 1913# Find the build and target subdir names.
8b87bb96 1914
2e9e6f68
DJ
1915# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1916# have matching libraries, they should use host libraries: Makefile.tpl
1917# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1918# However, they still use the build modules, because the corresponding
1919# host modules (e.g. bison) are only built for the host when bootstrap
1920# finishes. So:
1921# - build_subdir is where we find build modules, and never changes.
1922# - build_libsubdir is where we find build libraries, and can be overridden.
1923
1924# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1925build_subdir="build-${build_noncanonical}"
1c710c3c 1926
2aeb72e9 1927# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
2e9e6f68 1928if test "${with_build_libsubdir+set}" = set; then
2aeb72e9
DD
1929 withval="$with_build_libsubdir"
1930 build_libsubdir="$withval"
2e9e6f68
DJ
1931else
1932 build_libsubdir="$build_subdir"
2aeb72e9 1933fi;
215c351a
PB
1934# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1935if ( test $srcdir = . && test -d gcc ) \
1936 || test -d $srcdir/../host-${host_noncanonical}; then
1937 host_subdir="host-${host_noncanonical}"
1938else
1939 host_subdir=.
1940fi
8b87bb96
NN
1941# No prefix.
1942target_subdir=${target_noncanonical}
1c710c3c 1943
79c06341 1944
671aa708
NN
1945# Skipdirs are removed silently.
1946skipdirs=
1947# Noconfigdirs are removed loudly.
1948noconfigdirs=""
79c06341 1949
671aa708
NN
1950use_gnu_ld=
1951# Make sure we don't let GNU ld be added if we didn't want it.
1952if test x$with_gnu_ld = xno ; then
1953 use_gnu_ld=no
1954 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1955fi
1956
671aa708
NN
1957use_gnu_as=
1958# Make sure we don't let GNU as be added if we didn't want it.
1959if test x$with_gnu_as = xno ; then
1960 use_gnu_as=no
1961 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1962fi
1963
1c710c3c 1964# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1965# it's not even worth trying to configure, much less build, that tool.
79c06341 1966
671aa708
NN
1967case ${with_x} in
1968 yes | "") ;; # the default value for this tree is that X11 is available
1969 no)
b4f96efe 1970 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1971 # We won't be able to build gdbtk without X.
1c710c3c 1972 enable_gdbtk=no
671aa708
NN
1973 ;;
1974 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1975esac
79c06341 1976
671aa708 1977# Some tools are only suitable for building in a "native" situation.
1c710c3c 1978# Remove these if host!=target.
9e299237 1979native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1980
671aa708
NN
1981# Similarly, some are only suitable for cross toolchains.
1982# Remove these if host=target.
1983cross_only="target-libgloss target-newlib target-opcodes"
1984
1985case $is_cross_compiler in
1986 no) skipdirs="${skipdirs} ${cross_only}" ;;
1987 yes) skipdirs="${skipdirs} ${native_only}" ;;
1988esac
79c06341 1989
671aa708
NN
1990# If both --with-headers and --with-libs are specified, default to
1991# --without-newlib.
ee6a22df
L
1992if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1993 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1994 if test x"${with_newlib}" = x ; then
1995 with_newlib=no
1996 fi
79c06341
JL
1997fi
1998
671aa708
NN
1999# Recognize --with-newlib/--without-newlib.
2000case ${with_newlib} in
2001 no) skipdirs="${skipdirs} target-newlib" ;;
2002 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2003esac
79c06341 2004
671aa708 2005# Configure extra directories which are host specific
79c06341 2006
671aa708
NN
2007case "${host}" in
2008 *-cygwin*)
2009 configdirs="$configdirs libtermcap" ;;
2010esac
79c06341 2011
4fab7234
HPN
2012# A target can indicate whether a language isn't supported for some reason.
2013# Only spaces may be used in this macro; not newlines or tabs.
2014unsupported_languages=
2015
1c710c3c 2016# Remove more programs from consideration, based on the host or
671aa708
NN
2017# target this usually means that a port of the program doesn't
2018# exist yet.
ec8d6ddc 2019
671aa708
NN
2020case "${host}" in
2021 hppa*64*-*-*)
2022 noconfigdirs="$noconfigdirs byacc"
2023 ;;
f2a0e225 2024 i[3456789]86-*-vsta)
b4f96efe 2025 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2026 ;;
f2a0e225 2027 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2028 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2029 ;;
95af8923
KT
2030 x86_64-*-mingw*)
2031 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2032 ;;
f2a0e225 2033 i[3456789]86-*-mingw32*)
b4f96efe 2034 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2035 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2036 ;;
f2a0e225 2037 i[3456789]86-*-beos*)
b4f96efe 2038 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2039 ;;
671aa708 2040 *-*-cygwin*)
a22c2d8d 2041 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2042 ;;
2043 *-*-netbsd*)
a22c2d8d 2044 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2045 ;;
2046 ppc*-*-pe)
b4f96efe 2047 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2048 ;;
2049 powerpc-*-beos*)
b4f96efe 2050 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2051 ;;
671aa708 2052esac
ec8d6ddc 2053
6de9cd9a 2054
2aeb72e9 2055# Check whether --enable-libada or --disable-libada was given.
d9cdb878 2056if test "${enable_libada+set}" = set; then
2aeb72e9
DD
2057 enableval="$enable_libada"
2058 ENABLE_LIBADA=$enableval
d9cdb878
AC
2059else
2060 ENABLE_LIBADA=yes
2aeb72e9 2061fi;
d9cdb878 2062if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2063 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2064fi
2065
2aeb72e9 2066# Check whether --enable-libssp or --disable-libssp was given.
ef0087a7 2067if test "${enable_libssp+set}" = set; then
2aeb72e9
DD
2068 enableval="$enable_libssp"
2069 ENABLE_LIBSSP=$enableval
ef0087a7
KH
2070else
2071 ENABLE_LIBSSP=yes
2aeb72e9 2072fi;
ef0087a7 2073
671aa708
NN
2074# Save it here so that, even in case of --enable-libgcj, if the Java
2075# front-end isn't enabled, we still get libgcj disabled.
2076libgcj_saved=$libgcj
2077case $enable_libgcj in
2078yes)
2079 # If we reset it here, it won't get added to noconfigdirs in the
2080 # target-specific build rules, so it will be forcibly enabled
2081 # (unless the Java language itself isn't enabled).
2082 libgcj=
2083 ;;
2084no)
2085 # Make sure we get it printed in the list of not supported target libs.
2086 noconfigdirs="$noconfigdirs ${libgcj}"
2087 ;;
2088esac
ec8d6ddc 2089
6de9cd9a 2090
27079765
AH
2091# Disable libmudflap on some systems.
2092if test x$enable_libmudflap = x ; then
dfcada9a 2093 case "${target}" in
1c00b503 2094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
98a5bb3b 2095 # Enable libmudflap by default in GNU and friends.
dfcada9a 2096 ;;
a3e8d8b4
LR
2097 *-*-freebsd*)
2098 # Enable libmudflap by default in FreeBSD.
2099 ;;
dfcada9a
MM
2100 *)
2101 # Disable it by default everywhere else.
2102 noconfigdirs="$noconfigdirs target-libmudflap"
2103 ;;
2104 esac
27079765 2105fi
6de9cd9a 2106
27079765
AH
2107# Disable libgomp on non POSIX hosted systems.
2108if test x$enable_libgomp = x ; then
953ff289
DN
2109 # Enable libgomp by default on hosted POSIX systems.
2110 case "${target}" in
670cbfcf 2111 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
2112 ;;
2113 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2114 ;;
04879af3 2115 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 2116 ;;
cac90078 2117 *-*-darwin* | *-*-aix*)
953ff289
DN
2118 ;;
2119 *)
2120 noconfigdirs="$noconfigdirs target-libgomp"
2121 ;;
2122 esac
27079765 2123fi
953ff289 2124
c03353e2
RIL
2125# Default libgloss CPU subdirectory.
2126libgloss_dir="$target_cpu"
6de9cd9a 2127
671aa708
NN
2128case "${target}" in
2129 *-*-chorusos)
cb253473 2130 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2131 ;;
42c1cd8a 2132 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 2133 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 2134 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 2135 ;;
42c1cd8a
AT
2136 *-*-darwin*)
2137 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2138 noconfigdirs="$noconfigdirs sim target-rda"
2139 noconfigdirs="$noconfigdirs ${libgcj}"
2140 ;;
671aa708 2141 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 2142 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2143 ;;
c3f84f61 2144 *-*-freebsd*)
6de9cd9a
DN
2145 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2146 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2147 && test -f /usr/local/include/gmp.h; then
2148 with_gmp=/usr/local
2149 fi
2150
2151 # Skip some stuff that's unsupported on some FreeBSD configurations.
2152 case "${target}" in
2153 i*86-*-*) ;;
2154 alpha*-*-*) ;;
2155 *)
cb253473 2156 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
2157 ;;
2158 esac
2159 ;;
ef4e7569
US
2160 *-*-kaos*)
2161 # Remove unsupported stuff on all kaOS configurations.
cb253473 2162 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
2163 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2164 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2165 noconfigdirs="$noconfigdirs target-libgloss"
2166 ;;
671aa708
NN
2167 *-*-netbsd*)
2168 # Skip some stuff on all NetBSD configurations.
2169 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2170
2171 # Skip some stuff that's unsupported on some NetBSD configurations.
2172 case "${target}" in
2173 i*86-*-netbsdelf*) ;;
0590b963 2174 arm*-*-netbsdelf*) ;;
671aa708 2175 *)
cb253473 2176 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2177 ;;
2178 esac
2179 ;;
61fec9ff 2180 *-*-netware*)
cb253473 2181 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
2182 ;;
2183 *-*-rtems*)
cb253473 2184 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2185 ;;
a8ba31f2
EC
2186 # The tpf target doesn't support gdb yet.
2187 *-*-tpf*)
cb253473 2188 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 2189 ;;
5785c0ed 2190 *-*-uclinux*)
cb253473 2191 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 2192 ;;
671aa708 2193 *-*-vxworks*)
cb253473 2194 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2195 ;;
2196 alpha*-dec-osf*)
2197 # ld works, but does not support shared libraries.
2198 # newlib is not 64 bit ready. I'm not sure about fileutils.
2199 # gas doesn't generate exception information.
2200 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2201 ;;
2202 alpha*-*-*vms*)
cb253473 2203 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
2204 ;;
2205 alpha*-*-linux*)
2206 # newlib is not 64 bit ready
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2208 ;;
671aa708
NN
2209 alpha*-*-*)
2210 # newlib is not 64 bit ready
cb253473 2211 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2212 ;;
33952f6f 2213 am33_2.0-*-linux*)
cb253473 2214 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2215 ;;
671aa708 2216 sh-*-linux*)
cb253473 2217 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 2218 ;;
671aa708 2219 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2220 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2221 noconfigdirs="$noconfigdirs target-examples"
2222 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2223 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2224 noconfigdirs="$noconfigdirs expect dejagnu"
2225 # the C++ libraries don't build on top of CE's C libraries
cb543528 2226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2227 noconfigdirs="$noconfigdirs target-newlib"
2228 case "${host}" in
2229 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2230 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2231 ;;
2232 esac
c03353e2 2233 libgloss_dir=wince
671aa708
NN
2234 ;;
2235 arc-*-*)
cb253473 2236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2237 ;;
ee6a22df 2238 arm-semi-aof )
ee6a22df 2239 ;;
671aa708 2240 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2241 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2242 libgloss_dir=arm
671aa708 2243 ;;
b3f8d95d 2244 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 2245 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 2246 libgloss_dir=arm
671aa708 2247 ;;
077fc835 2248 arm*-*-linux-gnueabi)
c4e9bf2b
AH
2249 noconfigdirs="$noconfigdirs target-qthreads"
2250 noconfigdirs="$noconfigdirs target-libobjc"
1c00b503
PB
2251 case ${with_newlib} in
2252 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2253 esac
c03353e2 2254 libgloss_dir=arm
077fc835 2255 ;;
972974fc 2256 arm*-*-symbianelf*)
cb253473 2257 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 2258 libgloss_dir=arm
972974fc 2259 ;;
671aa708 2260 arm-*-pe*)
cb253473 2261 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2262 ;;
671aa708 2263 thumb-*-coff)
cb253473 2264 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2265 ;;
2266 thumb-*-elf)
cb253473 2267 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2268 ;;
671aa708 2269 thumb-*-pe)
cb253473 2270 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2271 ;;
2272 arm-*-riscix*)
cb253473 2273 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2274 ;;
2275 avr-*-*)
cb253473 2276 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2277 ;;
6b65a26d 2278 bfin-*-*)
8b3c6c5a 2279 noconfigdirs="$noconfigdirs gdb"
61efc800 2280 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2281 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2282 fi
2283 ;;
671aa708 2284 c4x-*-* | tic4x-*-*)
cb253473 2285 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2286 ;;
2287 c54x*-*-* | tic54x-*-*)
cb253473 2288 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2289 ;;
40d64b5a 2290 cris-*-* | crisv32-*-*)
4fab7234 2291 unsupported_languages="$unsupported_languages java"
40d64b5a 2292 case "${target}" in
c2e0d3a9 2293 *-*-aout)
7f26dfa3 2294 unsupported_languages="$unsupported_languages fortran"
4fab7234 2295 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2296 *-*-elf)
7f26dfa3 2297 unsupported_languages="$unsupported_languages fortran"
789ec619 2298 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2299 *-*-linux*)
789ec619 2300 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2301 *)
7f26dfa3 2302 unsupported_languages="$unsupported_languages fortran"
cb253473 2303 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2304 esac
c03353e2 2305 libgloss_dir=cris
671aa708 2306 ;;
25b656e7 2307 crx-*-*)
cb253473 2308 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2309 ;;
671aa708 2310 d10v-*-*)
cb253473 2311 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2312 ;;
2313 d30v-*-*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 2315 ;;
c03353e2
RIL
2316 ep9312-*-elf | ep9312-*-coff)
2317 libgloss_dir=arm
2318 ;;
671aa708 2319 fr30-*-elf*)
cb253473 2320 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2321 ;;
2322 frv-*-*)
cb253473 2323 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2324 ;;
2325 h8300*-*-*)
cb253473 2326 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2327 ;;
2328 h8500-*-*)
cb253473 2329 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2330 ;;
ee6a22df 2331 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2332 ;;
671aa708
NN
2333 hppa*64*-*-linux* | parisc*64*-*-linux*)
2334 # In this case, it's because the hppa64-linux target is for
2335 # the kernel only at this point and has no libc, and thus no
2336 # headers, crt*.o, etc., all of which are needed by these.
2337 noconfigdirs="$noconfigdirs target-zlib"
2338 ;;
3e732ba0
JDA
2339 parisc*-*-linux* | hppa*-*-linux*)
2340 ;;
671aa708 2341 hppa*-*-*elf* | \
671aa708
NN
2342 hppa*-*-lites* | \
2343 hppa*-*-openbsd* | \
2344 hppa*64*-*-*)
cb253473 2345 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2346 ;;
2a332582
JDA
2347 hppa*-hp-hpux11*)
2348 noconfigdirs="$noconfigdirs ld shellutils"
2349 ;;
c03353e2
RIL
2350 hppa*-*-pro*)
2351 libgloss_dir=pa
2352 ;;
671aa708
NN
2353 hppa*-*-*)
2354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2355 # build on HP-UX 10.20.
cb253473 2356 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2357 ;;
fb87ad5d 2358 i960-*-*)
cb253473 2359 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2360 ;;
671aa708
NN
2361 ia64*-*-elf*)
2362 # No gdb support yet.
b4f96efe 2363 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2364 ;;
2365 ia64*-**-hpux*)
2366 # No gdb or ld support yet.
cb253473 2367 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2368 ;;
ee6a22df 2369 i370-*-opened*)
ee6a22df 2370 ;;
f2a0e225 2371 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2372 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2373 libgloss_dir=i386
671aa708 2374 ;;
f2a0e225 2375 i[3456789]86-*-linux*)
671aa708
NN
2376 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2377 # not build java stuff by default.
2378 case "${target}" in
2379 *-*-*libc1*)
cb253473 2380 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2381 esac
2382
2383 # This section makes it possible to build newlib natively on linux.
2384 # If we are using a cross compiler then don't configure newlib.
2385 if test x${is_cross_compiler} != xno ; then
3aa83176 2386 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2387 fi
2388 noconfigdirs="$noconfigdirs target-libgloss"
2389 # If we are not using a cross compiler, do configure newlib.
2390 # Note however, that newlib will only be configured in this situation
2391 # if the --with-newlib option has been given, because otherwise
2392 # 'target-newlib' will appear in skipdirs.
2393 ;;
f2a0e225 2394 i[3456789]86-*-mingw32*)
b91f0a41
CV
2395 target_configdirs="$target_configdirs target-winsup"
2396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2397 ;;
95af8923
KT
2398 x86_64-*-mingw*)
2399 target_configdirs="$target_configdirs target-winsup"
2400 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 2401 ;;
671aa708
NN
2402 *-*-cygwin*)
2403 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2404 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2405 # always build newlib if winsup directory is present.
b91f0a41 2406 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2407 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2408 elif test -d "$srcdir/newlib"; then
b91f0a41 2409 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2410 fi
1c710c3c 2411 ;;
ee6a22df
L
2412 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2413 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2414 ;;
f2a0e225 2415 i[3456789]86-*-pe)
cb253473 2416 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2417 ;;
f2a0e225 2418 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2419 # The linker does not yet know about weak symbols in COFF,
2420 # and is not configured to handle mixed ELF and COFF.
cb253473 2421 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2422 ;;
f2a0e225 2423 i[3456789]86-*-sco*)
cb253473 2424 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2425 ;;
f2a0e225 2426 i[3456789]86-*-solaris2*)
671aa708
NN
2427 noconfigdirs="$noconfigdirs target-libgloss"
2428 ;;
f2a0e225 2429 i[3456789]86-*-sysv4*)
cb253473 2430 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2431 ;;
f2a0e225 2432 i[3456789]86-*-beos*)
cb253473 2433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2434 ;;
d1f8db0c
PB
2435 i[3456789]86-*-rdos*)
2436 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2437 ;;
fb87ad5d 2438 m32r-*-*)
cb253473 2439 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2440 ;;
671aa708 2441 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2442 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 2443 libgloss_dir=m68hc11
671aa708
NN
2444 ;;
2445 m68k-*-elf*)
cb253473 2446 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2447 ;;
2448 m68k-*-coff*)
cb253473 2449 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2450 ;;
c03353e2
RIL
2451 m68*-*-* | fido-*-*)
2452 libgloss_dir=m68k
2453 ;;
671aa708
NN
2454 mcore-*-pe*)
2455 # The EPOC C++ environment does not support exceptions or rtti,
2456 # and so building libstdc++-v3 tends not to always work.
2457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2458 ;;
2459 mmix-*-*)
4fab7234 2460 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2461 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2462 ;;
2463 mn10200-*-*)
cb253473 2464 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2465 ;;
2466 mn10300-*-*)
cb253473 2467 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2468 ;;
ab34901f 2469 mt-*-*)
79dd769c
AH
2470 noconfigdirs="$noconfigdirs sim"
2471 ;;
671aa708
NN
2472 powerpc-*-aix*)
2473 # copied from rs6000-*-* entry
cb253473 2474 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2475 ;;
2476 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2477 target_configdirs="$target_configdirs target-winsup"
cb253473 2478 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2479 # always build newlib.
2480 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2481 ;;
2482 # This is temporary until we can link against shared libraries
2483 powerpcle-*-solaris*)
cb253473 2484 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 2485 libgloss_dir=rs6000
671aa708
NN
2486 ;;
2487 powerpc-*-beos*)
cb253473 2488 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2489 ;;
671aa708 2490 powerpc-*-eabi)
cb253473 2491 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2492 libgloss_dir=rs6000
ee6a22df
L
2493 ;;
2494 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 2495 libgloss_dir=rs6000
671aa708 2496 ;;
671aa708 2497 rs6000-*-lynxos*)
cb253473 2498 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2499 ;;
2500 rs6000-*-aix*)
cb253473 2501 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2502 ;;
2503 rs6000-*-*)
cb253473 2504 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2505 ;;
2506 m68k-apollo-*)
cb253473 2507 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 2508 ;;
d9dced13
RS
2509 mips*-sde-elf*)
2510 skipdirs="$skipdirs target-libiberty"
2511 noconfigdirs="$noconfigdirs ${libgcj}"
2512 if test x$with_newlib = xyes; then
2513 noconfigdirs="$noconfigdirs gprof"
2514 fi
2515 libgloss_dir=mips
2516 ;;
671aa708 2517 mips*-*-irix5*)
cb253473 2518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2519 ;;
2520 mips*-*-irix6*)
671aa708
NN
2521 # Linking libjava exceeds command-line length limits on at least
2522 # IRIX 6.2, but not on IRIX 6.5.
2523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2524 # <oldham@codesourcery.com>
cb253473 2525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2526 ;;
671aa708 2527 mips*-*-bsd*)
cb253473 2528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2529 ;;
671aa708
NN
2530 mips*-*-linux*)
2531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2532 ;;
2533 mips*-*-*)
cb253473 2534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 2535 libgloss_dir=mips
671aa708
NN
2536 ;;
2537 romp-*-*)
cb253473 2538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2539 ;;
669f01d8 2540 sh-*-* | sh64-*-*)
671aa708 2541 case "${host}" in
f2a0e225
KC
2542 i[3456789]86-*-vsta) ;; # don't add gprof back in
2543 i[3456789]86-*-go32*) ;; # don't add gprof back in
2544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2546 esac
cb253473 2547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2548 ;;
c03353e2
RIL
2549 sparclet-*-aout* | sparc86x-*-*)
2550 libgloss_dir=sparc
2551 ;;
671aa708 2552 sparc-*-elf*)
cb253473 2553 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2554 ;;
2555 sparc64-*-elf*)
cb253473 2556 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2557 libgloss_dir=sparc
671aa708
NN
2558 ;;
2559 sparclite-*-*)
cb253473 2560 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 2561 libgloss_dir=sparc
671aa708
NN
2562 ;;
2563 sparc-*-sunos4*)
cb253473 2564 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2565 if test x${is_cross_compiler} != xno ; then
2566 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2567 else
2568 use_gnu_ld=no
2569 fi
2570 ;;
bba5e0ca 2571 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2572 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2573 ;;
671aa708
NN
2574 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2575 ;;
85d9c13c 2576 spu-*-*)
ea6f5c57 2577 skipdirs="target-libssp"
85d9c13c 2578 ;;
671aa708 2579 v810-*-*)
cb253473 2580 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2581 ;;
2582 v850-*-*)
cb253473 2583 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2584 ;;
2585 v850e-*-*)
cb253473 2586 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2587 ;;
2588 v850ea-*-*)
cb253473 2589 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2590 ;;
2591 vax-*-vms)
cb253473 2592 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2593 ;;
2594 vax-*-*)
cb253473 2595 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2596 ;;
0d4f1b4e 2597 xtensa-*-*)
cb253473 2598 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2599 ;;
671aa708 2600 ip2k-*-*)
cb253473 2601 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2602 ;;
c3f84f61 2603 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2605 ;;
2606 *-*-lynxos*)
cb253473 2607 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 2608 ;;
671aa708 2609 *-*-*)
cb253473 2610 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2611 ;;
2612esac
79c06341 2613
671aa708
NN
2614# If we aren't building newlib, then don't build libgloss, since libgloss
2615# depends upon some newlib header files.
2616case "${noconfigdirs}" in
2617 *target-libgloss*) ;;
2618 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2619esac
2620
671aa708
NN
2621# Work in distributions that contain no compiler tools, like Autoconf.
2622tentative_cc=""
2623host_makefile_frag=/dev/null
2624if test -d ${srcdir}/config ; then
2625case "${host}" in
2626 m68k-hp-hpux*)
2627 # Avoid "too much defining" errors from HPUX compiler.
2628 tentative_cc="cc -Wp,-H256000"
2629 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2630 # If it's HP/UX ar, this should be harmless.
2631 RANLIB="ar ts"
2632 ;;
2633 m68k-apollo-sysv*)
2634 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2635 ;;
2636 m68k-apollo-bsd*)
2637 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2638 # chokes on bfd, the compiler won't let you assign integers to enums, and
2639 # other problems. Defining CC to gcc is a questionable way to say "don't use
2640 # the apollo compiler" (the preferred version of GCC could be called cc,
2641 # or whatever), but I'm not sure leaving CC as cc is any better...
2642 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2643 # Used to have BISON=yacc.
2644 tentative_cc=gcc
2645 ;;
2646 m88k-dg-dgux*)
2647 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2648 ;;
2649 m88k-harris-cxux*)
2650 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2651 tentative_cc="cc -Xa"
2652 host_makefile_frag="config/mh-cxux"
2653 ;;
2654 m88k-motorola-sysv*)
2655 ;;
2656 mips*-dec-ultrix*)
2657 tentative_cc="cc -Wf,-XNg1000"
2658 host_makefile_frag="config/mh-decstation"
2659 ;;
2660 mips*-nec-sysv4*)
2661 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2662 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2663 host_makefile_frag="config/mh-necv4"
2664 ;;
2665 mips*-sgi-irix4*)
2666 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2667 # environment. Also bump switch table size so that cp-parse will
2668 # compile. Bump string length limit so linker builds.
2669 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2670 ;;
2671 mips*-*-sysv4*)
2672 host_makefile_frag="config/mh-sysv4"
2673 ;;
2674 mips*-*-sysv*)
2675 # This is for a MIPS running RISC/os 4.52C.
2676
2677 # This is needed for GDB, but needs to be in the top-level make because
2678 # if a library is compiled with the bsd headers and gets linked with the
2679 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2680 # a different size).
2681 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2682 # known except to select the sysv environment. Could we use /proc instead?
2683 # These "sysv environments" and "bsd environments" often end up being a pain.
2684 #
2685 # This is not part of CFLAGS because perhaps not all C compilers have this
2686 # option.
2687 tentative_cc="cc -systype sysv"
2688 ;;
2689 i370-ibm-opened*)
2690 tentative_cc="c89"
2691 ;;
f2a0e225 2692 i[3456789]86-*-sysv5*)
671aa708
NN
2693 host_makefile_frag="config/mh-sysv5"
2694 ;;
f2a0e225 2695 i[3456789]86-*-dgux*)
671aa708
NN
2696 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2697 host_makefile_frag="config/mh-dgux386"
2698 ;;
f2a0e225 2699 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2700 # The MetaWare compiler will generate a copyright message unless you
2701 # turn it off by adding the -Hnocopyr flag.
2702 tentative_cc="cc -Hnocopyr"
2703 ;;
f2a0e225 2704 i[3456789]86-ncr-sysv4*)
671aa708
NN
2705 # for an NCR 3000 (i486/SVR4) system.
2706 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2707 # This compiler not only emits obnoxious copyright messages every time
2708 # you run it, but it chokes and dies on a whole bunch of GNU source
2709 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2710 tentative_cc="/usr/ccs/ATT/cc"
2711 host_makefile_frag="config/mh-ncr3000"
2712 ;;
f2a0e225 2713 i[3456789]86-*-sco3.2v5*)
671aa708 2714 ;;
f2a0e225 2715 i[3456789]86-*-sco*)
671aa708
NN
2716 # The native C compiler botches some simple uses of const. Unfortunately,
2717 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2718 tentative_cc="cc -Dconst="
2719 host_makefile_frag="config/mh-sco"
2720 ;;
f2a0e225 2721 i[3456789]86-*-udk*)
671aa708
NN
2722 host_makefile_frag="config/mh-sysv5"
2723 ;;
f2a0e225 2724 i[3456789]86-*-solaris2*)
671aa708
NN
2725 host_makefile_frag="config/mh-sysv4"
2726 ;;
f2a0e225 2727 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2728 host_makefile_frag="config/mh-djgpp"
2729 ;;
2730 *-cygwin*)
2731 host_makefile_frag="config/mh-cygwin"
2732 ;;
2733 *-mingw32*)
1f5a6b84 2734 host_makefile_frag="config/mh-mingw"
671aa708 2735 ;;
95af8923 2736 *-mingw64*)
1f5a6b84 2737 host_makefile_frag="config/mh-mingw"
95af8923 2738 ;;
671aa708
NN
2739 *-interix*)
2740 host_makefile_frag="config/mh-interix"
2741 ;;
2742 vax-*-ultrix2*)
2743 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2744 tentative_cc=gcc
2745 ;;
2746 *-*-solaris2*)
2747 host_makefile_frag="config/mh-solaris"
2748 ;;
2749 m68k-sun-sunos*)
2750 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2751 # without overflowing the jump tables (-J says to use a 32 bit table)
2752 tentative_cc="cc -J"
2753 ;;
2754 *-hp-hpux*)
2755 tentative_cc="cc -Wp,-H256000"
2756 ;;
2757 *-*-hiux*)
2758 tentative_cc="cc -Wp,-H256000"
2759 ;;
2760 rs6000-*-lynxos*)
2761 # /bin/cc is less than useful for our purposes. Always use GCC
2762 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2763 host_makefile_frag="config/mh-lynxrs6k"
2764 ;;
45f366ab 2765 powerpc-*-darwin*)
be8fff81
RB
2766 host_makefile_frag="config/mh-ppc-darwin"
2767 ;;
d19bca38
PB
2768 powerpc-*-aix*)
2769 host_makefile_frag="config/mh-ppc-aix"
2770 ;;
2771 rs6000-*-aix*)
2772 host_makefile_frag="config/mh-ppc-aix"
2773 ;;
671aa708
NN
2774 *-*-lynxos*)
2775 # /bin/cc is less than useful for our purposes. Always use GCC
2776 tentative_cc="/bin/gcc"
2777 ;;
2778 *-*-sysv4*)
2779 host_makefile_frag="config/mh-sysv4"
2780 ;;
95c53c62
RS
2781 # This is placed last to prevent interfering with the cases above.
2782 i[3456789]86-*-*)
2783 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2784 host_makefile_frag="config/mh-x86omitfp"
2785 ;;
671aa708
NN
2786esac
2787fi
2788
55ffb5ed
NN
2789# If we aren't going to be using gcc, see if we can extract a definition
2790# of CC from the fragment.
2791# Actually, use the 'pre-extracted' version above.
2792if test -z "${CC}" && test "${build}" = "${host}" ; then
2793 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2794 found=
2795 for dir in $PATH; do
2796 test -z "$dir" && dir=.
2797 if test -f $dir/gcc; then
2798 found=yes
2799 break
2800 fi
2801 done
2802 IFS="$save_ifs"
2803 if test -z "${found}" && test -n "${tentative_cc}" ; then
2804 CC=$tentative_cc
2805 fi
2806fi
2807
2808if test "${build}" != "${host}" ; then
0999159b
PB
2809 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2810 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 2811 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
2812 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2813 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2814 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2815 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2816 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2817 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2818 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2819 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2820 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2821else
2822 AR_FOR_BUILD="\$(AR)"
2823 AS_FOR_BUILD="\$(AS)"
fb0103e5 2824 CC_FOR_BUILD="\$(CC)"
0999159b
PB
2825 CXX_FOR_BUILD="\$(CXX)"
2826 GCJ_FOR_BUILD="\$(GCJ)"
2827 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2828 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2829 LD_FOR_BUILD="\$(LD)"
2830 NM_FOR_BUILD="\$(NM)"
2831 RANLIB_FOR_BUILD="\$(RANLIB)"
2832 WINDRES_FOR_BUILD="\$(WINDRES)"
2833 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
2834fi
2835
2836ac_ext=c
1c710c3c
DJ
2837ac_cpp='$CPP $CPPFLAGS'
2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}gcc; ac_word=$2
2aeb72e9
DD
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2846if test "${ac_cv_prog_CC+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
2aeb72e9
DD
2870 echo "$as_me:$LINENO: result: $CC" >&5
2871echo "${ECHO_T}$CC" >&6
1c710c3c 2872else
2aeb72e9
DD
2873 echo "$as_me:$LINENO: result: no" >&5
2874echo "${ECHO_T}no" >&6
1c710c3c
DJ
2875fi
2876
2877fi
2878if test -z "$ac_cv_prog_CC"; then
2879 ac_ct_CC=$CC
fb0103e5
RG
2880 # Extract the first word of "gcc", so it can be a program name with args.
2881set dummy gcc; ac_word=$2
2aeb72e9
DD
2882echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2897 ac_cv_prog_ac_ct_CC="gcc"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901done
2902done
2903
2904fi
2905fi
2906ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907if test -n "$ac_ct_CC"; then
2aeb72e9
DD
2908 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2909echo "${ECHO_T}$ac_ct_CC" >&6
1c710c3c 2910else
2aeb72e9
DD
2911 echo "$as_me:$LINENO: result: no" >&5
2912echo "${ECHO_T}no" >&6
1c710c3c
DJ
2913fi
2914
2aeb72e9 2915 CC=$ac_ct_CC
1c710c3c
DJ
2916else
2917 CC="$ac_cv_prog_CC"
2918fi
2919
2920if test -z "$CC"; then
2aeb72e9
DD
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 2923set dummy ${ac_tool_prefix}cc; ac_word=$2
2aeb72e9
DD
2924echo "$as_me:$LINENO: checking for $ac_word" >&5
2925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
2926if test "${ac_cv_prog_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2928else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
1c710c3c
DJ
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
2939 ac_cv_prog_CC="${ac_tool_prefix}cc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945
0b0dc272 2946fi
0b0dc272 2947fi
1c710c3c 2948CC=$ac_cv_prog_CC
af71363e 2949if test -n "$CC"; then
2aeb72e9
DD
2950 echo "$as_me:$LINENO: result: $CC" >&5
2951echo "${ECHO_T}$CC" >&6
0b0dc272 2952else
2aeb72e9
DD
2953 echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
0b0dc272
AM
2955fi
2956
2aeb72e9
DD
2957fi
2958if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "cc", so it can be a program name with args.
2961set dummy cc; ac_word=$2
2962echo "$as_me:$LINENO: checking for $ac_word" >&5
2963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_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
2976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_CC="cc"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
11a67599 2980 fi
2aeb72e9
DD
2981done
2982done
2983
2984fi
2985fi
2986ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987if test -n "$ac_ct_CC"; then
2988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989echo "${ECHO_T}$ac_ct_CC" >&6
2990else
2991 echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
2993fi
2994
2995 CC=$ac_ct_CC
2996else
2997 CC="$ac_cv_prog_CC"
2998fi
2999
1c710c3c 3000fi
55ffb5ed
NN
3001if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
2aeb72e9
DD
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3006if test "${ac_cv_prog_CC+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3008else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
0b0dc272 3012 ac_prog_rejected=no
1c710c3c
DJ
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028done
3029done
3030
55ffb5ed
NN
3031if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
1c710c3c 3035 if test $# != 0; then
55ffb5ed
NN
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
1c710c3c 3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3041 fi
3042fi
3043fi
3044fi
1c710c3c 3045CC=$ac_cv_prog_CC
55ffb5ed 3046if test -n "$CC"; then
2aeb72e9
DD
3047 echo "$as_me:$LINENO: result: $CC" >&5
3048echo "${ECHO_T}$CC" >&6
55ffb5ed 3049else
2aeb72e9
DD
3050 echo "$as_me:$LINENO: result: no" >&5
3051echo "${ECHO_T}no" >&6
55ffb5ed
NN
3052fi
3053
1c710c3c
DJ
3054fi
3055if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
2aeb72e9 3057 for ac_prog in cl
1c710c3c
DJ
3058 do
3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2aeb72e9
DD
3061echo "$as_me:$LINENO: checking for $ac_word" >&5
3062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3063if test "${ac_cv_prog_CC+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3065else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068else
1c710c3c
DJ
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080done
3081done
3082
55ffb5ed
NN
3083fi
3084fi
1c710c3c 3085CC=$ac_cv_prog_CC
55ffb5ed 3086if test -n "$CC"; then
2aeb72e9
DD
3087 echo "$as_me:$LINENO: result: $CC" >&5
3088echo "${ECHO_T}$CC" >&6
a4b9e93e 3089else
2aeb72e9
DD
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
fb0103e5 3092fi
af71363e 3093
1c710c3c
DJ
3094 test -n "$CC" && break
3095 done
af71363e 3096fi
1c710c3c
DJ
3097if test -z "$CC"; then
3098 ac_ct_CC=$CC
2aeb72e9 3099 for ac_prog in cl
1c710c3c
DJ
3100do
3101 # Extract the first word of "$ac_prog", so it can be a program name with args.
3102set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
3105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
0b0dc272 3107else
1c710c3c
DJ
3108 if test -n "$ac_ct_CC"; then
3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3110else
1c710c3c
DJ
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
3118 ac_cv_prog_ac_ct_CC="$ac_prog"
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123done
3124
af71363e
AS
3125fi
3126fi
1c710c3c
DJ
3127ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128if test -n "$ac_ct_CC"; then
2aeb72e9
DD
3129 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3130echo "${ECHO_T}$ac_ct_CC" >&6
fb0103e5 3131else
2aeb72e9
DD
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
af71363e 3134fi
0b0dc272 3135
1c710c3c
DJ
3136 test -n "$ac_ct_CC" && break
3137done
3138
2aeb72e9 3139 CC=$ac_ct_CC
1c710c3c
DJ
3140fi
3141
3142fi
3143
3144
3145test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3146See \`config.log' for more details." >&5
3147echo "$as_me: error: no acceptable C compiler found in \$PATH
3148See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3150
3151# Provide some information about the compiler.
2aeb72e9
DD
3152echo "$as_me:$LINENO:" \
3153 "checking for C compiler version" >&5
1c710c3c 3154ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3155{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3156 (eval $ac_compiler --version </dev/null >&5) 2>&5
1c710c3c
DJ
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
2aeb72e9
DD
3160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3161 (eval $ac_compiler -v </dev/null >&5) 2>&5
1c710c3c
DJ
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
2aeb72e9
DD
3165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3166 (eval $ac_compiler -V </dev/null >&5) 2>&5
1c710c3c
DJ
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3170
3171cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186ac_clean_files_save=$ac_clean_files
3187ac_clean_files="$ac_clean_files a.out a.exe b.out"
3188# Try to create an executable without -o first, disregard a.out.
3189# It will help us diagnose broken compilers, and finding out an intuition
3190# of exeext.
2aeb72e9
DD
3191echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3192echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1c710c3c 3193ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2aeb72e9
DD
3194if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3195 (eval $ac_link_default) 2>&5
1c710c3c
DJ
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; then
2aeb72e9
DD
3199 # Find the output, starting from the most likely. This scheme is
3200# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3201# resort.
3202
3203# Be careful to initialize this variable, since it used to be cached.
3204# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3205ac_cv_exeext=
3206# b.out is created by i960 compilers.
3207for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1c710c3c
DJ
3208do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
2aeb72e9
DD
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3212 ;;
3213 conftest.$ac_ext )
3214 # This is the source file.
1c710c3c
DJ
3215 ;;
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
2aeb72e9
DD
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 # FIXME: I believe we export ac_cv_exeext for Libtool,
3223 # but it would be cool to find out if it's true. Does anybody
3224 # maintain Libtool? --akim.
3225 export ac_cv_exeext
1c710c3c
DJ
3226 break;;
3227 * )
3228 break;;
3229 esac
3230done
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3236See \`config.log' for more details." >&5
3237echo "$as_me: error: C compiler cannot create executables
3238See \`config.log' for more details." >&2;}
3239 { (exit 77); exit 77; }; }
3240fi
3241
3242ac_exeext=$ac_cv_exeext
2aeb72e9
DD
3243echo "$as_me:$LINENO: result: $ac_file" >&5
3244echo "${ECHO_T}$ac_file" >&6
1c710c3c 3245
2aeb72e9 3246# Check the compiler produces executables we can run. If not, either
1c710c3c 3247# the compiler is broken, or we cross compile.
2aeb72e9
DD
3248echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3249echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1c710c3c
DJ
3250# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3251# If not cross compiling, check that we can run a simple program.
3252if test "$cross_compiling" != yes; then
3253 if { ac_try='./$ac_file'
2aeb72e9
DD
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
1c710c3c
DJ
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cross_compiling=no
3260 else
3261 if test "$cross_compiling" = maybe; then
3262 cross_compiling=yes
3263 else
3264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3265If you meant to cross compile, use \`--host'.
3266See \`config.log' for more details." >&5
3267echo "$as_me: error: cannot run C compiled programs.
3268If you meant to cross compile, use \`--host'.
3269See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3271 fi
3272 fi
3273fi
2aeb72e9
DD
3274echo "$as_me:$LINENO: result: yes" >&5
3275echo "${ECHO_T}yes" >&6
1c710c3c
DJ
3276
3277rm -f a.out a.exe conftest$ac_cv_exeext b.out
3278ac_clean_files=$ac_clean_files_save
2aeb72e9 3279# Check the compiler produces executables we can run. If not, either
1c710c3c 3280# the compiler is broken, or we cross compile.
2aeb72e9
DD
3281echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3283echo "$as_me:$LINENO: result: $cross_compiling" >&5
3284echo "${ECHO_T}$cross_compiling" >&6
3285
3286echo "$as_me:$LINENO: checking for suffix of executables" >&5
3287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3289 (eval $ac_link) 2>&5
1c710c3c
DJ
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; then
3293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3295# work properly (i.e., refer to `conftest.exe'), while it won't with
3296# `rm'.
3297for ac_file in conftest.exe conftest conftest.*; do
3298 test -f "$ac_file" || continue
3299 case $ac_file in
2aeb72e9 3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1c710c3c 3301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2aeb72e9 3302 export ac_cv_exeext
1c710c3c
DJ
3303 break;;
3304 * ) break;;
3305 esac
3306done
af71363e 3307else
1c710c3c
DJ
3308 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3309See \`config.log' for more details." >&5
3310echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3311See \`config.log' for more details." >&2;}
3312 { (exit 1); exit 1; }; }
3313fi
3314
3315rm -f conftest$ac_cv_exeext
2aeb72e9
DD
3316echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3317echo "${ECHO_T}$ac_cv_exeext" >&6
1c710c3c
DJ
3318
3319rm -f conftest.$ac_ext
3320EXEEXT=$ac_cv_exeext
3321ac_exeext=$EXEEXT
2aeb72e9
DD
3322echo "$as_me:$LINENO: checking for suffix of object files" >&5
3323echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1c710c3c
DJ
3324if test "${ac_cv_objext+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 cat >conftest.$ac_ext <<_ACEOF
3328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
3333
3334int
3335main ()
3336{
3337
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342rm -f conftest.o conftest.obj
2aeb72e9
DD
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
1c710c3c
DJ
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; then
2aeb72e9 3348 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1c710c3c 3349 case $ac_file in
2aeb72e9 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1c710c3c
DJ
3351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3352 break;;
3353 esac
3354done
3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360See \`config.log' for more details." >&5
3361echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }
3364fi
3365
3366rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367fi
2aeb72e9
DD
3368echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369echo "${ECHO_T}$ac_cv_objext" >&6
1c710c3c
DJ
3370OBJEXT=$ac_cv_objext
3371ac_objext=$OBJEXT
2aeb72e9
DD
3372echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1c710c3c
DJ
3374if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
3383
3384int
3385main ()
3386{
3387#ifndef __GNUC__
3388 choke me
3389#endif
3390
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
2aeb72e9
DD
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
1c710c3c
DJ
3417 ac_compiler_gnu=yes
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
2aeb72e9 3422ac_compiler_gnu=no
1c710c3c 3423fi
2aeb72e9 3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
3425ac_cv_c_compiler_gnu=$ac_compiler_gnu
3426
3427fi
2aeb72e9
DD
3428echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1c710c3c
DJ
3430GCC=`test $ac_compiler_gnu = yes && echo yes`
3431ac_test_CFLAGS=${CFLAGS+set}
3432ac_save_CFLAGS=$CFLAGS
2aeb72e9
DD
3433CFLAGS="-g"
3434echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1c710c3c
DJ
3436if test "${ac_cv_prog_cc_g+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
2aeb72e9 3439 cat >conftest.$ac_ext <<_ACEOF
1c710c3c
DJ
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445
3446int
3447main ()
3448{
3449
3450 ;
3451 return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
2aeb72e9
DD
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3462 (exit $ac_status); } &&
3463 { ac_try='test -z "$ac_c_werror_flag"
3464 || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
1c710c3c
DJ
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3469 (exit $ac_status); }; } &&
3470 { ac_try='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
1c710c3c
DJ
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9 3475 (exit $ac_status); }; }; then
55ffb5ed
NN
3476 ac_cv_prog_cc_g=yes
3477else
1c710c3c
DJ
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
af71363e 3480
2aeb72e9 3481ac_cv_prog_cc_g=no
0b0dc272 3482fi
2aeb72e9 3483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 3484fi
2aeb72e9
DD
3485echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3487if test "$ac_test_CFLAGS" = set; then
1c710c3c 3488 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3489elif test $ac_cv_prog_cc_g = yes; then
3490 if test "$GCC" = yes; then
3491 CFLAGS="-g -O2"
3492 else
3493 CFLAGS="-g"
3494 fi
3495else
3496 if test "$GCC" = yes; then
3497 CFLAGS="-O2"
3498 else
3499 CFLAGS=
3500 fi
3501fi
2aeb72e9
DD
3502echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3503echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3504if test "${ac_cv_prog_cc_stdc+set}" = set; then
1c710c3c
DJ
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
2aeb72e9 3507 ac_cv_prog_cc_stdc=no
1c710c3c
DJ
3508ac_save_CC=$CC
3509cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
3515#include <stdarg.h>
3516#include <stdio.h>
3517#include <sys/types.h>
3518#include <sys/stat.h>
3519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3520struct buf { int x; };
3521FILE * (*rcsopen) (struct buf *, struct stat *, int);
3522static char *e (p, i)
3523 char **p;
3524 int i;
3525{
3526 return p[i];
3527}
3528static char *f (char * (*g) (char **, int), char **p, ...)
3529{
3530 char *s;
3531 va_list v;
3532 va_start (v,p);
3533 s = g (p, va_arg (v,int));
3534 va_end (v);
3535 return s;
3536}
3537
3538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3539 function prototypes and stuff, but not '\xHH' hex character constants.
3540 These don't provoke an error unfortunately, instead are silently treated
2aeb72e9 3541 as 'x'. The following induces an error, until -std1 is added to get
1c710c3c
DJ
3542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3543 array size at least. It's necessary to write '\x00'==0 to get something
2aeb72e9 3544 that's true only with -std1. */
1c710c3c
DJ
3545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546
3547int test (int i, double x);
3548struct s1 {int (*f) (int a);};
3549struct s2 {int (*f) (double a);};
3550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551int argc;
3552char **argv;
3553int
3554main ()
3555{
3556return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3557 ;
3558 return 0;
3559}
3560_ACEOF
2aeb72e9
DD
3561# Don't try gcc -ansi; that turns off useful extensions and
3562# breaks some systems' header files.
3563# AIX -qlanglvl=ansi
3564# Ultrix and OSF/1 -std1
3565# HP-UX 10.20 and later -Ae
3566# HP-UX older versions -Aa -D_HPUX_SOURCE
3567# SVR4 -Xc -D__EXTENSIONS__
3568for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
3569do
3570 CC="$ac_save_CC $ac_arg"
3571 rm -f conftest.$ac_objext
2aeb72e9
DD
3572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_cv_prog_cc_stdc=$ac_arg
3594break
1c710c3c
DJ
3595else
3596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599fi
2aeb72e9 3600rm -f conftest.err conftest.$ac_objext
1c710c3c 3601done
2aeb72e9 3602rm -f conftest.$ac_ext conftest.$ac_objext
1c710c3c
DJ
3603CC=$ac_save_CC
3604
3605fi
2aeb72e9
DD
3606
3607case "x$ac_cv_prog_cc_stdc" in
3608 x|xno)
3609 echo "$as_me:$LINENO: result: none needed" >&5
3610echo "${ECHO_T}none needed" >&6 ;;
1c710c3c 3611 *)
2aeb72e9
DD
3612 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3613echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3614 CC="$CC $ac_cv_prog_cc_stdc" ;;
1c710c3c
DJ
3615esac
3616
2aeb72e9
DD
3617# Some people use a C++ compiler to compile C. Since we use `exit',
3618# in C++ we need to declare it. In case someone uses the same compiler
3619# for both compiling C and C++ we need to have the C++ compiler decide
3620# the declaration of exit, since it's the most demanding environment.
3621cat >conftest.$ac_ext <<_ACEOF
3622#ifndef __cplusplus
3623 choke me
3624#endif
3625_ACEOF
3626rm -f conftest.$ac_objext
3627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 for ac_declaration in \
3649 '' \
3650 'extern "C" void std::exit (int) throw (); using std::exit;' \
3651 'extern "C" void std::exit (int); using std::exit;' \
3652 'extern "C" void exit (int) throw ();' \
3653 'extern "C" void exit (int);' \
3654 'void exit (int);'
3655do
3656 cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
3662$ac_declaration
3663#include <stdlib.h>
3664int
3665main ()
3666{
3667exit (42);
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672rm -f conftest.$ac_objext
3673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674 (eval $ac_compile) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_c_werror_flag"
3682 || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 :
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699continue
3700fi
3701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708$ac_declaration
3709int
3710main ()
3711{
3712exit (42);
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext
3718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3720 ac_status=$?
3721 grep -v '^ *+' conftest.er1 >conftest.err
3722 rm -f conftest.er1
3723 cat conftest.err >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try='test -z "$ac_c_werror_flag"
3727 || test ! -s conftest.err'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 (eval $ac_try) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 break
3740else
3741 echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744fi
3745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746done
3747rm -f conftest*
3748if test -n "$ac_declaration"; then
3749 echo '#ifdef __cplusplus' >>confdefs.h
3750 echo $ac_declaration >>confdefs.h
3751 echo '#endif' >>confdefs.h
3752fi
3753
3754else
3755 echo "$as_me: failed program was:" >&5
3756sed 's/^/| /' conftest.$ac_ext >&5
3757
3758fi
3759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760ac_ext=c
3761ac_cpp='$CPP $CPPFLAGS'
3762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766ac_ext=cc
3767ac_cpp='$CXXCPP $CPPFLAGS'
3768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3771if test -n "$ac_tool_prefix"; then
3772 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3773 do
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776echo "$as_me:$LINENO: checking for $ac_word" >&5
3777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778if test "${ac_cv_prog_CXX+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 if test -n "$CXX"; then
3782 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3783else
3784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795done
3796done
55ffb5ed 3797
c3a86da9
DJ
3798fi
3799fi
3800CXX=$ac_cv_prog_CXX
3801if test -n "$CXX"; then
2aeb72e9
DD
3802 echo "$as_me:$LINENO: result: $CXX" >&5
3803echo "${ECHO_T}$CXX" >&6
c3a86da9 3804else
2aeb72e9
DD
3805 echo "$as_me:$LINENO: result: no" >&5
3806echo "${ECHO_T}no" >&6
c3a86da9
DJ
3807fi
3808
3809 test -n "$CXX" && break
3810 done
3811fi
3812if test -z "$CXX"; then
3813 ac_ct_CXX=$CXX
2aeb72e9 3814 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
c3a86da9
DJ
3815do
3816 # Extract the first word of "$ac_prog", so it can be a program name with args.
3817set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
3818echo "$as_me:$LINENO: checking for $ac_word" >&5
3819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c3a86da9
DJ
3820if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 if test -n "$ac_ct_CXX"; then
3824 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9
DJ
3833 ac_cv_prog_ac_ct_CXX="$ac_prog"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3836 fi
3837done
3838done
3839
3840fi
3841fi
3842ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3843if test -n "$ac_ct_CXX"; then
2aeb72e9
DD
3844 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3845echo "${ECHO_T}$ac_ct_CXX" >&6
c3a86da9 3846else
2aeb72e9
DD
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
c3a86da9
DJ
3849fi
3850
3851 test -n "$ac_ct_CXX" && break
3852done
2aeb72e9 3853test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
c3a86da9 3854
2aeb72e9 3855 CXX=$ac_ct_CXX
c3a86da9
DJ
3856fi
3857
2aeb72e9 3858
c3a86da9 3859# Provide some information about the compiler.
2aeb72e9
DD
3860echo "$as_me:$LINENO:" \
3861 "checking for C++ compiler version" >&5
c3a86da9 3862ac_compiler=`set X $ac_compile; echo $2`
2aeb72e9
DD
3863{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3864 (eval $ac_compiler --version </dev/null >&5) 2>&5
c3a86da9
DJ
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }
2aeb72e9
DD
3868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3869 (eval $ac_compiler -v </dev/null >&5) 2>&5
c3a86da9
DJ
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }
2aeb72e9
DD
3873{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3874 (eval $ac_compiler -V </dev/null >&5) 2>&5
c3a86da9
DJ
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }
3878
2aeb72e9
DD
3879echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3880echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
c3a86da9
DJ
3881if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894#ifndef __GNUC__
3895 choke me
3896#endif
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext
2aeb72e9
DD
3903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3904 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3910 (exit $ac_status); } &&
3911 { ac_try='test -z "$ac_cxx_werror_flag"
3912 || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
c3a86da9
DJ
3924 ac_compiler_gnu=yes
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
2aeb72e9 3929ac_compiler_gnu=no
c3a86da9 3930fi
2aeb72e9 3931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
3932ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3933
3934fi
2aeb72e9
DD
3935echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3936echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
c3a86da9
DJ
3937GXX=`test $ac_compiler_gnu = yes && echo yes`
3938ac_test_CXXFLAGS=${CXXFLAGS+set}
3939ac_save_CXXFLAGS=$CXXFLAGS
2aeb72e9
DD
3940CXXFLAGS="-g"
3941echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3942echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
c3a86da9
DJ
3943if test "${ac_cv_prog_cxx_g+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
2aeb72e9 3946 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
3947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
3952
3953int
3954main ()
3955{
3956
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961rm -f conftest.$ac_objext
2aeb72e9
DD
3962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3963 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
3969 (exit $ac_status); } &&
3970 { ac_try='test -z "$ac_cxx_werror_flag"
3971 || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest.$ac_objext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
c3a86da9
DJ
3983 ac_cv_prog_cxx_g=yes
3984else
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
2aeb72e9
DD
3988ac_cv_prog_cxx_g=no
3989fi
3990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991fi
3992echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3993echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3994if test "$ac_test_CXXFLAGS" = set; then
3995 CXXFLAGS=$ac_save_CXXFLAGS
3996elif test $ac_cv_prog_cxx_g = yes; then
3997 if test "$GXX" = yes; then
3998 CXXFLAGS="-g -O2"
3999 else
4000 CXXFLAGS="-g"
4001 fi
4002else
4003 if test "$GXX" = yes; then
4004 CXXFLAGS="-O2"
4005 else
4006 CXXFLAGS=
4007 fi
4008fi
4009for ac_declaration in \
4010 '' \
4011 'extern "C" void std::exit (int) throw (); using std::exit;' \
4012 'extern "C" void std::exit (int); using std::exit;' \
4013 'extern "C" void exit (int) throw ();' \
4014 'extern "C" void exit (int);' \
4015 'void exit (int);'
4016do
4017 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
2aeb72e9
DD
4023$ac_declaration
4024#include <stdlib.h>
c3a86da9
DJ
4025int
4026main ()
4027{
2aeb72e9 4028exit (42);
c3a86da9
DJ
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033rm -f conftest.$ac_objext
2aeb72e9
DD
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_cxx_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
c3a86da9
DJ
4055 :
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
23f6b2f9 4059
2aeb72e9
DD
4060continue
4061fi
4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 cat >conftest.$ac_ext <<_ACEOF
c3a86da9
DJ
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
2aeb72e9 4069$ac_declaration
c3a86da9
DJ
4070int
4071main ()
4072{
2aeb72e9 4073exit (42);
c3a86da9
DJ
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.$ac_objext
2aeb72e9
DD
4079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
c3a86da9
DJ
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_cxx_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 break
c3a86da9
DJ
4101else
4102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
11a67599 4105fi
2aeb72e9
DD
4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107done
4108rm -f conftest*
4109if test -n "$ac_declaration"; then
4110 echo '#ifdef __cplusplus' >>confdefs.h
4111 echo $ac_declaration >>confdefs.h
4112 echo '#endif' >>confdefs.h
c3a86da9
DJ
4113fi
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122# We must set the default linker to the linker used by gcc for the correct
4123# operation of libtool. If LD is not defined and we are using gcc, try to
4124# set the LD default to the ld used by gcc.
4125if test -z "$LD"; then
4126 if test "$GCC" = yes; then
4127 case $build in
4128 *-*-mingw*)
4129 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4130 *)
4131 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4132 esac
4133 case $gcc_prog_ld in
4134 # Accept absolute paths.
4135 [\\/]* | [A-Za-z]:[\\/]*)
4136 LD="$gcc_prog_ld" ;;
4137 esac
4138 fi
23f6b2f9
PB
4139fi
4140
23f6b2f9
PB
4141
4142
55ffb5ed 4143
1c710c3c
DJ
4144if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4146set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
2aeb72e9
DD
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4149if test "${ac_cv_prog_GNATBIND+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4151else
4152 if test -n "$GNATBIND"; then
4153 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4154else
1c710c3c
DJ
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4162 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
55ffb5ed
NN
4169fi
4170fi
1c710c3c 4171GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4172if test -n "$GNATBIND"; then
2aeb72e9
DD
4173 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4174echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 4175else
2aeb72e9
DD
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
55ffb5ed
NN
4178fi
4179
1c710c3c 4180fi
55ffb5ed 4181if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4182 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4183 # Extract the first word of "gnatbind", so it can be a program name with args.
4184set dummy gnatbind; ac_word=$2
2aeb72e9
DD
4185echo "$as_me:$LINENO: checking for $ac_word" >&5
4186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4187if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 4189else
1c710c3c
DJ
4190 if test -n "$ac_ct_GNATBIND"; then
4191 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4192else
1c710c3c
DJ
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4200 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204done
4205done
4206
2aeb72e9 4207 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
4208fi
4209fi
1c710c3c
DJ
4210ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4211if test -n "$ac_ct_GNATBIND"; then
2aeb72e9
DD
4212 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4213echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 4214else
2aeb72e9
DD
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
55ffb5ed
NN
4217fi
4218
2aeb72e9 4219 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 4220else
1c710c3c 4221 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4222fi
4223
1c710c3c
DJ
4224if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4226set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
2aeb72e9
DD
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4229if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e
RG
4231else
4232 if test -n "$GNATMAKE"; then
4233 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4234else
1c710c3c
DJ
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4242 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247done
4248
5305be7e
RG
4249fi
4250fi
1c710c3c 4251GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4252if test -n "$GNATMAKE"; then
2aeb72e9
DD
4253 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4254echo "${ECHO_T}$GNATMAKE" >&6
5305be7e 4255else
2aeb72e9
DD
4256 echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
5305be7e
RG
4258fi
4259
1c710c3c 4260fi
5305be7e 4261if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4262 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4263 # Extract the first word of "gnatmake", so it can be a program name with args.
4264set dummy gnatmake; ac_word=$2
2aeb72e9
DD
4265echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
4267if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
5305be7e 4269else
1c710c3c
DJ
4270 if test -n "$ac_ct_GNATMAKE"; then
4271 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4272else
1c710c3c
DJ
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4280 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285done
4286
2aeb72e9 4287 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
5305be7e
RG
4288fi
4289fi
1c710c3c
DJ
4290ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4291if test -n "$ac_ct_GNATMAKE"; then
2aeb72e9
DD
4292 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4293echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
5305be7e 4294else
2aeb72e9
DD
4295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
5305be7e
RG
4297fi
4298
2aeb72e9 4299 GNATMAKE=$ac_ct_GNATMAKE
5305be7e 4300else
1c710c3c 4301 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4302fi
4303
2aeb72e9
DD
4304echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4305echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
1c710c3c
DJ
4306if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
4308else
4309 cat >conftest.adb <<EOF
4310procedure conftest is begin null; end conftest;
4311EOF
4312acx_cv_cc_gcc_supports_ada=no
4313# There is a bug in old released versions of GCC which causes the
4314# driver to exit successfully when the appropriate language module
4315# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4316# Therefore we must check for the error message as well as an
4317# unsuccessful exit.
1db673ca
RO
4318# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4319# given a .adb file, but produce no object file. So we must check
4320# if an object file was really produced to guard against this.
55ffb5ed 4321errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4322if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4323 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4324fi
4325rm -f conftest.*
4326fi
2aeb72e9
DD
4327echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4328echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 4329
5305be7e 4330if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4331 have_gnat=yes
4332else
4333 have_gnat=no
4334fi
4335
2aeb72e9
DD
4336echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4337echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
1c710c3c
DJ
4338if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
4340else
4341 echo abfoo >t1
4342 echo cdfoo >t2
4343 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4344 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4345 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4346 :
4347 else
4348 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4349 fi
4350 fi
a76494aa
PB
4351 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4352 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4353 :
a76494aa
PB
4354 else
4355 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4356 fi
4357 fi
4358 rm t1 t2
4359
4360fi
2aeb72e9
DD
4361echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4362echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
4363do_compare="$gcc_cv_prog_cmp_skip"
4364
4365
55ffb5ed 4366
bebf829d 4367# Check for GMP and MPFR
e69bf64b 4368gmplibs="-lmpfr -lgmp"
6de9cd9a 4369gmpinc=
e69bf64b
PB
4370have_gmp=no
4371
bebf829d
PB
4372# Specify a location for mpfr
4373# check for this first so it ends up on the link line before gmp.
1c710c3c 4374
2aeb72e9 4375# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
bebf829d 4376if test "${with_mpfr_dir+set}" = set; then
2aeb72e9
DD
4377 withval="$with_mpfr_dir"
4378 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
1c710c3c
DJ
4379Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4380echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4381Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4382 { (exit 1); exit 1; }; }
2aeb72e9 4383fi;
bebf829d
PB
4384
4385
2aeb72e9 4386# Check whether --with-mpfr or --without-mpfr was given.
bebf829d 4387if test "${with_mpfr+set}" = set; then
2aeb72e9 4388 withval="$with_mpfr"
1c710c3c 4389
2aeb72e9 4390fi;
bebf829d 4391
2aeb72e9 4392# Check whether --with-mpfr_include or --without-mpfr_include was given.
8a877c9c 4393if test "${with_mpfr_include+set}" = set; then
2aeb72e9 4394 withval="$with_mpfr_include"
1c710c3c 4395
2aeb72e9 4396fi;
8a877c9c 4397
2aeb72e9 4398# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
8a877c9c 4399if test "${with_mpfr_lib+set}" = set; then
2aeb72e9 4400 withval="$with_mpfr_lib"
8a877c9c 4401
2aeb72e9 4402fi;
bebf829d
PB
4403
4404if test "x$with_mpfr" != x; then
4405 gmplibs="-L$with_mpfr/lib $gmplibs"
4406 gmpinc="-I$with_mpfr/include"
4407fi
8a877c9c
KG
4408if test "x$with_mpfr_include" != x; then
4409 gmpinc="-I$with_mpfr_include"
4410fi
4411if test "x$with_mpfr_lib" != x; then
4412 gmplibs="-L$with_mpfr_lib $gmplibs"
4413fi
e69bf64b
PB
4414if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4415 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4416 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4417 # Do not test the mpfr version. Assume that it is sufficient, since
4418 # it is in the source tree, and the library has not been built yet
4419 # but it would be included on the link line in the version check below
4420 # hence making the test fail.
4421 have_gmp=yes
4422fi
bebf829d 4423
6de9cd9a 4424# Specify a location for gmp
1c710c3c 4425
2aeb72e9 4426# Check whether --with-gmp-dir or --without-gmp-dir was given.
6de9cd9a 4427if test "${with_gmp_dir+set}" = set; then
2aeb72e9
DD
4428 withval="$with_gmp_dir"
4429 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
1c710c3c
DJ
4430Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4431echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4432Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4433 { (exit 1); exit 1; }; }
2aeb72e9 4434fi;
6de9cd9a 4435
6de9cd9a 4436
2aeb72e9 4437# Check whether --with-gmp or --without-gmp was given.
6de9cd9a 4438if test "${with_gmp+set}" = set; then
2aeb72e9 4439 withval="$with_gmp"
1c710c3c 4440
2aeb72e9 4441fi;
6de9cd9a 4442
2aeb72e9 4443# Check whether --with-gmp_include or --without-gmp_include was given.
8a877c9c 4444if test "${with_gmp_include+set}" = set; then
2aeb72e9 4445 withval="$with_gmp_include"
1c710c3c 4446
2aeb72e9 4447fi;
8a877c9c 4448
2aeb72e9 4449# Check whether --with-gmp_lib or --without-gmp_lib was given.
8a877c9c 4450if test "${with_gmp_lib+set}" = set; then
2aeb72e9 4451 withval="$with_gmp_lib"
8a877c9c 4452
2aeb72e9 4453fi;
8a877c9c 4454
6de9cd9a 4455
bebf829d
PB
4456if test "x$with_gmp" != x; then
4457 gmplibs="-L$with_gmp/lib $gmplibs"
4458 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 4459fi
8a877c9c
KG
4460if test "x$with_gmp_include" != x; then
4461 gmpinc="-I$with_gmp_include $gmpinc"
4462fi
4463if test "x$with_gmp_lib" != x; then
4464 gmplibs="-L$with_gmp_lib $gmplibs"
4465fi
e69bf64b
PB
4466if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4467 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4468 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4469 # Do not test the gmp version. Assume that it is sufficient, since
4470 # it is in the source tree, and the library has not been built yet
4471 # but it would be included on the link line in the version check below
4472 # hence making the test fail.
4473 have_gmp=yes
4474fi
6de9cd9a 4475
d943d7c4 4476if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
4477 have_gmp=yes
4478 saved_CFLAGS="$CFLAGS"
4479 CFLAGS="$CFLAGS $gmpinc"
4480 # Check GMP actually works
2aeb72e9
DD
4481 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4482echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
1c710c3c
DJ
4483
4484cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
6de9cd9a 4490#include "gmp.h"
1c710c3c
DJ
4491int
4492main ()
4493{
6de9cd9a 4494
e69bf64b
PB
4495 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4496 choke me
4497 #endif
1c710c3c
DJ
4498
4499 ;
4500 return 0;
4501}
4502_ACEOF
4503rm -f conftest.$ac_objext
2aeb72e9
DD
4504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4527else
4528 echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
2aeb72e9
DD
4531echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4533fi
2aeb72e9 4534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 4535
e69bf64b
PB
4536 if test x"$have_gmp" = xyes; then
4537 saved_LIBS="$LIBS"
4538 LIBS="$LIBS $gmplibs"
2aeb72e9
DD
4539 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4540echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
1c710c3c
DJ
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
70ec446f 4547#include <gmp.h>
e69bf64b 4548 #include <mpfr.h>
1c710c3c
DJ
4549int
4550main ()
4551{
e48d66a9 4552
e69bf64b
PB
4553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4554 choke me
4555 #endif
54e433bc
MK
4556 mpfr_t n;
4557 mpfr_t x;
e69bf64b 4558 int t;
54e433bc
MK
4559 mpfr_init (n);
4560 mpfr_init (x);
e69bf64b
PB
4561 mpfr_atan2 (n, n, x, GMP_RNDN);
4562 mpfr_erfc (n, x, GMP_RNDN);
4563 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
4564
4565 ;
4566 return 0;
4567}
4568_ACEOF
4569rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag"
4579 || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest$ac_exeext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
1c710c3c
DJ
4591 cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
a3993f33 4597#include <gmp.h>
e69bf64b 4598 #include <mpfr.h>
1c710c3c
DJ
4599int
4600main ()
4601{
a3993f33 4602
e69bf64b
PB
4603 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4604 choke me
4605 #endif
4606 mpfr_t n; mpfr_init(n);
1c710c3c
DJ
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
2aeb72e9
DD
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614 (eval $ac_link) 2>conftest.er1
1c710c3c
DJ
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag"
4622 || test ! -s conftest.err'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; } &&
4628 { ac_try='test -s conftest$ac_exeext'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 (eval $ac_try) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4634 echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
1c710c3c
DJ
4636else
4637 echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
2aeb72e9
DD
4640echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4641echo "${ECHO_T}buggy but acceptable" >&6
1c710c3c 4642fi
2aeb72e9 4643rm -f conftest.err conftest.$ac_objext \
1c710c3c
DJ
4644 conftest$ac_exeext conftest.$ac_ext
4645else
4646 echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
2aeb72e9
DD
4649echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6; have_gmp=no
1c710c3c 4651fi
2aeb72e9 4652rm -f conftest.err conftest.$ac_objext \
1c710c3c 4653 conftest$ac_exeext conftest.$ac_ext
e69bf64b
PB
4654 LIBS="$saved_LIBS"
4655 fi
4656 CFLAGS="$saved_CFLAGS"
6de9cd9a 4657
e69bf64b 4658 if test x$have_gmp != xyes; then
1c710c3c
DJ
4659 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4660Try the --with-gmp and/or --with-mpfr options to specify their locations.
4661Copies of these libraries' source code can be found at their respective
4662hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4663See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4664If you obtained GMP and/or MPFR from a vendor distribution package, make
4665sure that you have installed both the libraries and the header files.
4666They may be located in separate packages." >&5
4667echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
4668Try the --with-gmp and/or --with-mpfr options to specify their locations.
4669Copies of these libraries' source code can be found at their respective
4670hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
4671See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4672If you obtained GMP and/or MPFR from a vendor distribution package, make
4673sure that you have installed both the libraries and the header files.
1c710c3c
DJ
4674They may be located in separate packages." >&2;}
4675 { (exit 1); exit 1; }; }
e69bf64b 4676 fi
70ec446f
KG
4677fi
4678
bebf829d 4679# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
4680
4681
4682
1e0f07d3 4683# By default, C is the only stage 1 language.
e1888513 4684stage1_languages=,c,
2805b53a 4685
55ffb5ed
NN
4686# Figure out what language subdirectories are present.
4687# Look if the user specified --enable-languages="..."; if not, use
4688# the environment variable $LANGUAGES if defined. $LANGUAGES might
4689# go away some day.
4690# NB: embedded tabs in this IF block -- do not untabify
4691if test -d ${srcdir}/gcc; then
4692 if test x"${enable_languages+set}" != xset; then
4693 if test x"${LANGUAGES+set}" = xset; then
4694 enable_languages="${LANGUAGES}"
4695 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4696 else
4697 enable_languages=all
4698 fi
4699 else
4700 if test x"${enable_languages}" = x ||
4701 test x"${enable_languages}" = xyes;
4702 then
4703 echo configure.in: --enable-languages needs at least one language argument 1>&2
4704 exit 1
4705 fi
4706 fi
4707 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4708
7f26dfa3
FXC
4709 # 'f95' is the old name for the 'fortran' language. We issue a warning
4710 # and make the substitution.
4711 case ,${enable_languages}, in
4712 *,f95,*)
4713 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4714 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4715 ;;
4716 esac
4717
55ffb5ed
NN
4718 # First scan to see if an enabled language requires some other language.
4719 # We assume that a given config-lang.in will list all the language
4720 # front ends it requires, even if some are required indirectly.
4721 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4722 case ${lang_frag} in
4723 ..) ;;
4724 # The odd quoting in the next line works around
4725 # an apparent bug in bash 1.12 on linux.
4726 ${srcdir}/gcc/[*]/config-lang.in) ;;
4727 *)
4728 # From the config-lang.in, get $language, $lang_requires
4729 language=
4730 lang_requires=
4731 . ${lang_frag}
4732 for other in ${lang_requires} ; do
4733 case ,${enable_languages}, in
4734 *,$other,*) ;;
4735 *,all,*) ;;
4736 *,$language,*)
4737 echo " \`$other' language required by \`$language'; enabling" 1>&2
4738 enable_languages="${enable_languages},${other}"
4739 ;;
4740 esac
4741 done
4742 ;;
4743 esac
4744 done
4745
e1888513 4746 new_enable_languages=,c,
55ffb5ed 4747 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 4748 potential_languages=,c,
55ffb5ed
NN
4749
4750 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4751 case ${lang_frag} in
4752 ..) ;;
4753 # The odd quoting in the next line works around
4754 # an apparent bug in bash 1.12 on linux.
4755 ${srcdir}/gcc/[*]/config-lang.in) ;;
4756 *)
1c710c3c 4757 # From the config-lang.in, get $language, $target_libs,
2805b53a 4758 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
4759 language=
4760 target_libs=
4761 lang_dirs=
1546bb64 4762 subdir_requires=
e1888513
PB
4763 boot_language=no
4764 build_by_default=yes
55ffb5ed 4765 . ${lang_frag}
e1888513
PB
4766 if test x${language} = x; then
4767 echo "${lang_frag} doesn't set \$language." 1>&2
4768 exit 1
4769 fi
4770
4771 case ,${enable_languages}, in
4772 *,${language},*)
55ffb5ed
NN
4773 # Language was explicitly selected; include it.
4774 add_this_lang=yes
4775 ;;
e1888513
PB
4776 *,all,*)
4777 # 'all' was selected, select it if it is a default language
4778 add_this_lang=${build_by_default}
55ffb5ed
NN
4779 ;;
4780 *)
4781 add_this_lang=no
4782 ;;
4783 esac
6de9cd9a 4784
1546bb64 4785 # Disable languages that need other directories if these aren't available.
95695ad3 4786 for i in $subdir_requires; do
b6348cb3 4787 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4788 case ,${enable_languages}, in
4789 *,${language},*)
4790 # Specifically requested language; tell them.
1c710c3c
DJ
4791 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4792echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4793 { (exit 1); exit 1; }; }
1546bb64
PB
4794 ;;
4795 *)
4796 # Silently disable.
e1888513 4797 add_this_lang=unsupported
1546bb64
PB
4798 ;;
4799 esac
4800 done
4801
e1888513
PB
4802 # Disable Ada if no preexisting GNAT is available.
4803 case ,${enable_languages},:${language}:${have_gnat} in
4804 *,${language},*:ada:no)
4805 # Specifically requested language; tell them.
1c710c3c
DJ
4806 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4807echo "$as_me: error: GNAT is required to build $language" >&2;}
4808 { (exit 1); exit 1; }; }
e1888513
PB
4809 ;;
4810 *:ada:no)
4811 # Silently disable.
4812 add_this_lang=unsupported
4813 ;;
4814 esac
4815
4fab7234
HPN
4816 # Disable a language that is unsupported by the target.
4817 case " $unsupported_languages " in
4818 *" $language "*)
e1888513 4819 add_this_lang=unsupported
4fab7234
HPN
4820 ;;
4821 esac
4822
6de9cd9a 4823 case $add_this_lang in
e1888513 4824 unsupported)
55ffb5ed 4825 # Remove language-dependent dirs.
2805b53a
NN
4826 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4827 ;;
e1888513
PB
4828 no)
4829 # Remove language-dependent dirs; still show language as supported.
4830 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4831 potential_languages="${potential_languages}${language},"
4832 ;;
4833 yes)
4834 new_enable_languages="${new_enable_languages}${language},"
4835 potential_languages="${potential_languages}${language},"
2805b53a
NN
4836 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4837 case ${boot_language} in
4838 yes)
340de83f 4839 # Add to (comma-separated) list of stage 1 languages.
e1888513 4840 stage1_languages="${stage1_languages}${language},"
2805b53a
NN
4841 ;;
4842 esac
4843 ;;
55ffb5ed
NN
4844 esac
4845 ;;
4846 esac
4847 done
4848
2aeb72e9 4849 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
e1888513 4850if test "${enable_stage1_languages+set}" = set; then
2aeb72e9
DD
4851 enableval="$enable_stage1_languages"
4852 case ,${enable_stage1_languages}, in
e1888513
PB
4853 ,no,|,,)
4854 # Set it to something that will have no effect in the loop below
4855 enable_stage1_languages=c ;;
4856 ,yes,)
4857 enable_stage1_languages=`echo $new_enable_languages | \
4858 sed -e "s/^,//" -e "s/,$//" ` ;;
4859 *,all,*)
4860 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4861 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4862 esac
4863
4864 # Add "good" languages from enable_stage1_languages to stage1_languages,
4865 # while "bad" languages go in missing_languages. Leave no duplicates.
4866 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4867 case $potential_languages in
4868 *,$i,*)
4869 case $stage1_languages in
4870 *,$i,*) ;;
4871 *) stage1_languages="$stage1_languages$i," ;;
4872 esac ;;
4873 *)
4874 case $missing_languages in
4875 *,$i,*) ;;
4876 *) missing_languages="$missing_languages$i," ;;
4877 esac ;;
4878 esac
4879 done
2aeb72e9 4880fi;
e1888513
PB
4881
4882 # Remove leading/trailing commas that were added for simplicity
4883 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 4884 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
4885 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4886 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4887
55ffb5ed 4888 if test "x$missing_languages" != x; then
1c710c3c 4889 { { echo "$as_me:$LINENO: error:
0cf085e4 4890The following requested languages could not be built: ${missing_languages}
1c710c3c
DJ
4891Supported languages are: ${potential_languages}" >&5
4892echo "$as_me: error:
4893The following requested languages could not be built: ${missing_languages}
4894Supported languages are: ${potential_languages}" >&2;}
4895 { (exit 1); exit 1; }; }
55ffb5ed 4896 fi
55ffb5ed
NN
4897 if test "x$new_enable_languages" != "x$enable_languages"; then
4898 echo The following languages will be built: ${new_enable_languages}
e1888513 4899 enable_languages="$new_enable_languages"
55ffb5ed 4900 fi
e1888513 4901
1c710c3c 4902
b2eaac4a 4903 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
4904fi
4905
27079765
AH
4906# Handle --disable-<component> generically.
4907for dir in $configdirs $build_configdirs $target_configdirs ; do
4908 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4909 if eval test x\${enable_${dirname}} "=" xno ; then
4910 noconfigdirs="$noconfigdirs $dir"
4911 fi
4912done
4913
7cd0cf9c 4914# Check for Boehm's garbage collector
2aeb72e9 4915# Check whether --enable-objc-gc or --disable-objc-gc was given.
7cd0cf9c 4916if test "${enable_objc_gc+set}" = set; then
2aeb72e9
DD
4917 enableval="$enable_objc_gc"
4918 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 4919 *,objc,*:*:yes:*target-boehm-gc*)
1c710c3c
DJ
4920 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4921echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4922 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4923 ;;
4924esac
2aeb72e9 4925fi;
7cd0cf9c
DA
4926
4927# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4928case ,${enable_languages},:${enable_objc_gc} in
4929 *,objc,*:yes)
7cd0cf9c
DA
4930 # Keep target-boehm-gc if requested for Objective-C.
4931 ;;
7cd0cf9c 4932 *)
2a79fd67
DA
4933 # Otherwise remove target-boehm-gc depending on target-libjava.
4934 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4935 noconfigdirs="$noconfigdirs target-boehm-gc"
4936 fi
7cd0cf9c
DA
4937 ;;
4938esac
4939
ee6a22df
L
4940# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4941# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4942# If we have the source for $noconfigdirs entries, add them to $notsupp.
4943
4944notsupp=""
4945for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4946 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4947 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4948 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4949 if test -r $srcdir/$dirname/configure ; then
4950 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4951 true
4952 else
4953 notsupp="$notsupp $dir"
4954 fi
4955 fi
4956 fi
ee6a22df
L
4957 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4958 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4959 if test -r $srcdir/$dirname/configure ; then
4960 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4961 true
4962 else
4963 notsupp="$notsupp $dir"
4964 fi
4965 fi
4966 fi
55ffb5ed
NN
4967 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4968 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4969 if test -r $srcdir/$dirname/configure ; then
4970 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4971 true
4972 else
4973 notsupp="$notsupp $dir"
4974 fi
4975 fi
4976 fi
4977done
4978
4979# Sometimes the tools are distributed with libiberty but with no other
4980# libraries. In that case, we don't want to build target-libiberty.
54fdc474 4981# Don't let libgcc imply libiberty either.
55ffb5ed 4982if test -n "${target_configdirs}" ; then
54fdc474 4983 libgcc=
55ffb5ed
NN
4984 others=
4985 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
4986 if test "$i" = "libgcc"; then
4987 libgcc=target-libgcc
4988 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
4989 if test -r $srcdir/$i/configure ; then
4990 others=yes;
4991 break;
4992 fi
4993 fi
4994 done
4995 if test -z "${others}" ; then
54fdc474 4996 target_configdirs=$libgcc
55ffb5ed
NN
4997 fi
4998fi
4999
5000# Quietly strip out all directories which aren't configurable in this tree.
5001# This relies on all configurable subdirectories being autoconfiscated, which
5002# is now the case.
23f6b2f9
PB
5003build_configdirs_all="$build_configdirs"
5004build_configdirs=
5005for i in ${build_configdirs_all} ; do
1c710c3c 5006 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
5007 if test -f ${srcdir}/$j/configure ; then
5008 build_configdirs="${build_configdirs} $i"
5009 fi
5010done
5011
55ffb5ed
NN
5012configdirs_all="$configdirs"
5013configdirs=
5014for i in ${configdirs_all} ; do
5015 if test -f ${srcdir}/$i/configure ; then
5016 configdirs="${configdirs} $i"
5017 fi
5018done
23f6b2f9 5019
55ffb5ed
NN
5020target_configdirs_all="$target_configdirs"
5021target_configdirs=
5022for i in ${target_configdirs_all} ; do
1c710c3c 5023 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
5024 if test -f ${srcdir}/$j/configure ; then
5025 target_configdirs="${target_configdirs} $i"
5026 fi
5027done
5028
5029# Produce a warning message for the subdirs we can't configure.
5030# This isn't especially interesting in the Cygnus tree, but in the individual
5031# FSF releases, it's important to let people know when their machine isn't
5032# supported by the one or two programs in a package.
5033
5034if test -n "${notsupp}" && test -z "${norecursion}" ; then
5035 # If $appdirs is non-empty, at least one of those directories must still
5036 # be configured, or we error out. (E.g., if the gas release supports a
5037 # specified target in some subdirs but not the gas subdir, we shouldn't
5038 # pretend that all is well.)
5039 if test -n "$appdirs" ; then
5040 for dir in $appdirs ; do
5041 if test -r $dir/Makefile.in ; then
5042 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5043 appdirs=""
5044 break
5045 fi
23f6b2f9 5046 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
5047 appdirs=""
5048 break
5049 fi
5050 fi
5051 done
5052 if test -n "$appdirs" ; then
5053 echo "*** This configuration is not supported by this package." 1>&2
5054 exit 1
5055 fi
5056 fi
5057 # Okay, some application will build, or we don't care to check. Still
5058 # notify of subdirs not getting built.
5059 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5060 echo " ${notsupp}" 1>&2
5061 echo " (Any other directories should still work fine.)" 1>&2
5062fi
5063
5064case "$host" in
5065 *msdosdjgpp*)
5066 enable_gdbtk=no ;;
5067esac
5068
c3a86da9
DJ
5069# To find our prefix, in gcc_cv_tool_prefix.
5070
5071# The user is always right.
5072if test "${PATH_SEPARATOR+set}" != set; then
5073 echo "#! /bin/sh" >conf$$.sh
5074 echo "exit 0" >>conf$$.sh
5075 chmod +x conf$$.sh
5076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5077 PATH_SEPARATOR=';'
5078 else
5079 PATH_SEPARATOR=:
5080 fi
5081 rm -f conf$$.sh
5082fi
5083
5084
5085
5086if test "x$exec_prefix" = xNONE; then
5087 if test "x$prefix" = xNONE; then
5088 gcc_cv_tool_prefix=$ac_default_prefix
5089 else
5090 gcc_cv_tool_prefix=$prefix
5091 fi
5092else
5093 gcc_cv_tool_prefix=$exec_prefix
5094fi
5095
5096# If there is no compiler in the tree, use the PATH only. In any
5097# case, if there is no compiler in the tree nobody should use
5098# AS_FOR_TARGET and LD_FOR_TARGET.
5099if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5100 gcc_version=`cat $srcdir/gcc/BASE-VER`
5101 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5102 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5103 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5104 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5107else
5108 gcc_cv_tool_dirs=
5109fi
5110
5111if test x$build = x$target && test -n "$md_exec_prefix"; then
5112 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5113fi
5114
5115
5116
55ffb5ed
NN
5117copy_dirs=
5118
1c710c3c 5119
2aeb72e9 5120# Check whether --with-build-sysroot or --without-build-sysroot was given.
526635cb 5121if test "${with_build_sysroot+set}" = set; then
2aeb72e9
DD
5122 withval="$with_build_sysroot"
5123 if test x"$withval" != x ; then
526635cb
MM
5124 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5125 fi
5126else
5127 SYSROOT_CFLAGS_FOR_TARGET=
2aeb72e9 5128fi;
526635cb
MM
5129
5130
c8aea42c
PB
5131
5132# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5133if test "${with_debug_prefix_map+set}" = set; then
5134 withval="$with_debug_prefix_map"
5135 if test x"$withval" != x; then
5136 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5137 for debug_map in $withval; do
5138 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5139 done
5140 fi
5141else
5142 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5143fi;
5144
5145
55ffb5ed
NN
5146# Handle --with-headers=XXX. If the value is not "yes", the contents of
5147# the named directory are copied to $(tooldir)/sys-include.
5148if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5149 if test x${is_cross_compiler} = xno ; then
5150 echo 1>&2 '***' --with-headers is only supported when cross compiling
5151 exit 1
5152 fi
5153 if test x"${with_headers}" != xyes ; then
c3a86da9 5154 x=${gcc_cv_tool_prefix}
1c710c3c 5155 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
5156 fi
5157fi
5158
5159# Handle --with-libs=XXX. If the value is not "yes", the contents of
5160# the name directories are copied to $(tooldir)/lib. Multiple directories
5161# are permitted.
5162if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5163 if test x${is_cross_compiler} = xno ; then
5164 echo 1>&2 '***' --with-libs is only supported when cross compiling
5165 exit 1
5166 fi
5167 if test x"${with_libs}" != xyes ; then
5168 # Copy the libraries in reverse order, so that files in the first named
5169 # library override files in subsequent libraries.
c3a86da9 5170 x=${gcc_cv_tool_prefix}
55ffb5ed 5171 for l in ${with_libs}; do
1c710c3c 5172 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
5173 done
5174 fi
5175fi
5176
e8b05380
PB
5177# Set with_gnu_as and with_gnu_ld as appropriate.
5178#
5179# This is done by determining whether or not the appropriate directory
5180# is available, and by checking whether or not specific configurations
5181# have requested that this magic not happen.
1c710c3c
DJ
5182#
5183# The command line options always override the explicit settings in
e8b05380
PB
5184# configure.in, and the settings in configure.in override this magic.
5185#
1c710c3c 5186# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
5187# want to do that, then you should use the --without-gnu-as and
5188# --without-gnu-ld options for the configure script.
5189
5190if test x${use_gnu_as} = x &&
5191 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5192 with_gnu_as=yes
5193 extra_host_args="$extra_host_args --with-gnu-as"
5194fi
5195
5196if test x${use_gnu_ld} = x &&
5197 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5198 with_gnu_ld=yes
5199 extra_host_args="$extra_host_args --with-gnu-ld"
5200fi
5201
5202# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5203# can detect this case.
5204
5205if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5206 with_newlib=yes
5207 extra_host_args="$extra_host_args --with-newlib"
5208fi
5209
55ffb5ed
NN
5210# Handle ${copy_dirs}
5211set fnord ${copy_dirs}
5212shift
5213while test $# != 0 ; do
5214 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5215 :
5216 else
5217 echo Copying $1 to $2
5218
5219 # Use the install script to create the directory and all required
5220 # parent directories.
5221 if test -d $2 ; then
5222 :
5223 else
5224 echo >config.temp
5225 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5226 fi
5227
5228 # Copy the directory, assuming we have tar.
5229 # FIXME: Should we use B in the second tar? Not all systems support it.
5230 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5231
5232 # It is the responsibility of the user to correctly adjust all
5233 # symlinks. If somebody can figure out how to handle them correctly
5234 # here, feel free to add the code.
5235
5236 echo $1 > $2/COPIED
5237 fi
5238 shift; shift
5239done
5240
e8b05380
PB
5241# Determine a target-dependent exec_prefix that the installed
5242# gcc will search in. Keep this list sorted by triplet, with
5243# the *-*-osname triplets last.
5244md_exec_prefix=
5245case "${target}" in
5246 alpha*-*-*vms*)
5247 md_exec_prefix=/gnu/lib/gcc-lib
5248 ;;
30b74385 5249 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
5250 md_exec_prefix=/dev/env/DJDIR/bin
5251 ;;
30b74385 5252 i[34567]86-*-sco3.2v5*)
e8b05380
PB
5253 if test $with_gnu_as = yes; then
5254 md_exec_prefix=/usr/gnu/bin
5255 else
5256 md_exec_prefix=/usr/ccs/bin/elf
5257 fi
5258 ;;
5259
5260 mn10300-*-* | \
5261 powerpc-*-chorusos* | \
5262 powerpc*-*-eabi* | \
5263 powerpc*-*-sysv* | \
5264 powerpc*-*-kaos* | \
5265 s390x-ibm-tpf*)
5266 md_exec_prefix=/usr/ccs/bin
5267 ;;
5268 sparc64-*-elf*)
5269 ;;
5270 v850*-*-*)
5271 md_exec_prefix=/usr/ccs/bin
5272 ;;
5273 xtensa-*-elf*)
5274 ;;
5275
5276 *-*-beos* | \
5277 *-*-elf* | \
5278 *-*-hpux* | \
5279 *-*-netware* | \
5280 *-*-nto-qnx* | \
5281 *-*-rtems* | \
5282 *-*-solaris2* | \
30b74385 5283 *-*-sysv[45]* | \
e8b05380
PB
5284 *-*-vxworks* | \
5285 *-wrs-windiss)
5286 md_exec_prefix=/usr/ccs/bin
5287 ;;
5288esac
5289
671aa708
NN
5290extra_arflags_for_target=
5291extra_nmflags_for_target=
5292extra_ranlibflags_for_target=
5293target_makefile_frag=/dev/null
5294case "${target}" in
3e19841a
PB
5295 mep*-*-*)
5296 target_makefile_frag="config/mt-mep"
5297 ;;
58e24147
AM
5298 spu-*-*)
5299 target_makefile_frag="config/mt-spu"
5300 ;;
4bf6c438
RS
5301 mips*-sde-elf*)
5302 target_makefile_frag="config/mt-sde"
5303 ;;
1ec3b87b
RS
5304 mipsisa*-*-elfoabi*)
5305 target_makefile_frag="config/mt-mips-elfoabi"
5306 ;;
61fec9ff 5307 *-*-netware*)
671aa708
NN
5308 target_makefile_frag="config/mt-netware"
5309 ;;
98a5bb3b
RM
5310 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5311 target_makefile_frag="config/mt-gnu"
671aa708
NN
5312 ;;
5313 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 5314 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
5315 # commands to handle both 32-bit and 64-bit objects. These flags are
5316 # harmless if we're using GNU nm or ar.
5317 extra_arflags_for_target=" -X32_64"
5318 extra_nmflags_for_target=" -B -X32_64"
5319 ;;
5320 *-*-darwin*)
5321 # ranlib from Darwin requires the -c flag to look at common symbols.
5322 extra_ranlibflags_for_target=" -c"
5323 ;;
5324 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5325 target_makefile_frag="config/mt-wince"
5326 ;;
5327esac
5328
5329alphaieee_frag=/dev/null
5330case $target in
5331 alpha*-*-*)
5332 # This just makes sure to use the -mieee option to build target libs.
5333 # This should probably be set individually by each library.
5334 alphaieee_frag="config/mt-alphaieee"
5335 ;;
5336esac
5337
5338# If --enable-target-optspace always use -Os instead of -O2 to build
5339# the target libraries, similarly if it is not specified, use -Os
5340# on selected platforms.
5341ospace_frag=/dev/null
5342case "${enable_target_optspace}:${target}" in
5343 yes:*)
5344 ospace_frag="config/mt-ospace"
5345 ;;
5346 :d30v-*)
5347 ospace_frag="config/mt-d30v"
5348 ;;
5349 :m32r-* | :d10v-* | :fr30-*)
5350 ospace_frag="config/mt-ospace"
5351 ;;
5352 no:* | :*)
5353 ;;
5354 *)
5355 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5356 ;;
5357esac
5358
671aa708
NN
5359# Default to using --with-stabs for certain targets.
5360if test x${with_stabs} = x ; then
5361 case "${target}" in
89a95129 5362 mips*-*-irix[56]*)
671aa708
NN
5363 ;;
5364 mips*-*-* | alpha*-*-osf*)
5365 with_stabs=yes;
5366 extra_host_args="${extra_host_args} --with-stabs"
5367 ;;
5368 esac
5369fi
5370
5371# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5372# them automatically.
5373case "${host}" in
1c710c3c 5374 hppa*64*-*-hpux11*)
671aa708
NN
5375 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5376 ;;
5377esac
5378
671aa708
NN
5379# Some systems (e.g., one of the i386-aix systems the gas testers are
5380# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 5381tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
5382build_tooldir=${tooldir}
5383
671aa708
NN
5384# Create a .gdbinit file which runs the one in srcdir
5385# and tells GDB to look there for source files.
5386
5387if test -r ${srcdir}/.gdbinit ; then
5388 case ${srcdir} in
5389 .) ;;
5390 *) cat > ./.gdbinit <<EOF
5391# ${NO_EDIT}
5392dir ${srcdir}
5393dir .
5394source ${srcdir}/.gdbinit
5395EOF
5396 ;;
5397 esac
5398fi
5399
671aa708
NN
5400# Make sure that the compiler is able to generate an executable. If it
5401# can't, we are probably in trouble. We don't care whether we can run the
5402# executable--we might be using a cross compiler--we only care whether it
5403# can be created. At this point the main configure script has set CC.
5404we_are_ok=no
5405echo "int main () { return 0; }" > conftest.c
5406${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5407if test $? = 0 ; then
5408 if test -s conftest || test -s conftest.exe ; then
5409 we_are_ok=yes
5410 fi
1c710c3c 5411fi
671aa708
NN
5412case $we_are_ok in
5413 no)
5414 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5415 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5416 rm -f conftest*
5417 exit 1
5418 ;;
5419esac
5420rm -f conftest*
5421
5422# The Solaris /usr/ucb/cc compiler does not appear to work.
5423case "${host}" in
5424 sparc-sun-solaris2*)
5425 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5426 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5427 could_use=
5428 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5429 if test -d /opt/cygnus/bin ; then
5430 if test "$could_use" = "" ; then
5431 could_use="/opt/cygnus/bin"
5432 else
5433 could_use="$could_use or /opt/cygnus/bin"
5434 fi
5435 fi
5436 if test "$could_use" = "" ; then
5437 echo "Warning: compilation may fail because you're using"
5438 echo "/usr/ucb/cc. You should change your PATH or CC "
5439 echo "variable and rerun configure."
5440 else
5441 echo "Warning: compilation may fail because you're using"
5442 echo "/usr/ucb/cc, when you should use the C compiler from"
5443 echo "$could_use. You should change your"
5444 echo "PATH or CC variable and rerun configure."
5445 fi
5446 fi
5447 ;;
5448esac
5449
671aa708
NN
5450case "${host}" in
5451 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 5452 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
5453 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5454esac
5455
5456# Record target_configdirs and the configure arguments for target and
5457# build configuration in Makefile.
5458target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 5459build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 5460
671aa708
NN
5461# Determine whether gdb needs tk/tcl or not.
5462# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5463# and in that case we want gdb to be built without tk. Ugh!
5464# In fact I believe gdb is the *only* package directly dependent on tk,
5465# so we should be able to put the 'maybe's in unconditionally and
5466# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5467# 100% sure that that's safe though.
e914a571 5468
b4f96efe 5469gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
5470case "$enable_gdbtk" in
5471 no)
5472 GDB_TK="" ;;
e914a571
AC
5473 yes)
5474 GDB_TK="${gdb_tk}" ;;
671aa708 5475 *)
e914a571
AC
5476 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5477 # distro. Eventually someone will fix this and move Insight, nee
5478 # gdbtk to a separate directory.
5479 if test -d ${srcdir}/gdb/gdbtk ; then
5480 GDB_TK="${gdb_tk}"
5481 else
5482 GDB_TK=""
5483 fi
5484 ;;
671aa708 5485esac
ef9db8d5
DJ
5486CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5487INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 5488
60975492 5489# Strip out unwanted targets.
8b87bb96
NN
5490
5491# While at that, we remove Makefiles if we were started for recursive
5492# configuration, so that the top-level Makefile reconfigures them,
5493# like we used to do when configure itself was recursive.
8b87bb96 5494
60975492
PB
5495# Loop over modules. $extrasub must be used with care, limiting as
5496# much as possible the usage of range addresses. That's because autoconf
5497# splits the sed script to overcome limits in the number of commands,
5498# and relying on carefully-timed sed passes may turn out to be very hard
5499# to maintain later. In this particular case, you just have to be careful
5500# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 5501
2aeb72e9 5502# Check whether --enable-bootstrap or --disable-bootstrap was given.
f516a7da 5503if test "${enable_bootstrap+set}" = set; then
2aeb72e9
DD
5504 enableval="$enable_bootstrap"
5505
f516a7da 5506else
ce521a9c 5507 enable_bootstrap=default
2aeb72e9 5508fi;
f516a7da 5509
ce521a9c
PB
5510# Issue errors and warnings for invalid/strange bootstrap combinations.
5511case "$configdirs" in
5512 *gcc*) have_compiler=yes ;;
5513 *) have_compiler=no ;;
5514esac
5515
5516case "$have_compiler:$host:$target:$enable_bootstrap" in
5517 *:*:*:no) ;;
5518
1ca26cd2 5519 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
5520 # and we are in a native configuration.
5521 yes:$build:$build:default)
1ca26cd2 5522 enable_bootstrap=yes ;;
ce521a9c
PB
5523
5524 *:*:*:default)
5525 enable_bootstrap=no ;;
5526
5527 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 5528 yes:$build:$build:yes)
ce521a9c
PB
5529 ;;
5530
5531 # Other configurations, but we have a compiler. Assume the user knows
5532 # what he's doing.
2d309510 5533 yes:*:*:yes)
1c710c3c
DJ
5534 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5535echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
5536 ;;
5537
5538 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 5539 no:*:*:yes)
1c710c3c
DJ
5540 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5541echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5542 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
5543
5544 # Fail if wrong command line
5545 *)
1c710c3c
DJ
5546 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5547echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5548 { (exit 1); exit 1; }; }
ce521a9c
PB
5549 ;;
5550esac
5551
5552# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
5553case "$enable_bootstrap" in
5554 yes)
5607edfd 5555 bootstrap_suffix=bootstrap ;;
f516a7da 5556 no)
5607edfd 5557 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
5558esac
5559
23f6b2f9 5560for module in ${build_configdirs} ; do
5607edfd
PB
5561 if test -z "${no_recursion}" \
5562 && test -f ${build_subdir}/${module}/Makefile; then
5563 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5564 rm -f ${build_subdir}/${module}/Makefile
5565 fi
5566 extrasub="$extrasub
5567/^@if build-$module\$/d
5568/^@endif build-$module\$/d
5569/^@if build-$module-$bootstrap_suffix\$/d
5570/^@endif build-$module-$bootstrap_suffix\$/d"
5571done
5572for module in ${configdirs} ; do
a6fbc1e2 5573 if test -z "${no_recursion}"; then
f063a9ed 5574 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
5575 if test -f ${file}; then
5576 echo 1>&2 "*** removing ${file} to force reconfigure"
5577 rm -f ${file}
5578 fi
5579 done
5607edfd
PB
5580 fi
5581 extrasub="$extrasub
5582/^@if $module\$/d
5583/^@endif $module\$/d
5584/^@if $module-$bootstrap_suffix\$/d
5585/^@endif $module-$bootstrap_suffix\$/d"
5586done
5587for module in ${target_configdirs} ; do
5588 if test -z "${no_recursion}" \
5589 && test -f ${target_subdir}/${module}/Makefile; then
5590 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5591 rm -f ${target_subdir}/${module}/Makefile
5592 fi
5593 extrasub="$extrasub
5594/^@if target-$module\$/d
5595/^@endif target-$module\$/d
5596/^@if target-$module-$bootstrap_suffix\$/d
5597/^@endif target-$module-$bootstrap_suffix\$/d"
5598done
5599
60975492
PB
5600extrasub="$extrasub
5601/^@if /,/^@endif /d"
671aa708
NN
5602
5603# Create the serialization dependencies. This uses a temporary file.
5604
2aeb72e9 5605# Check whether --enable-serial-configure or --disable-serial-configure was given.
ade82b16 5606if test "${enable_serial_configure+set}" = set; then
2aeb72e9 5607 enableval="$enable_serial_configure"
ade82b16 5608
2aeb72e9 5609fi;
ade82b16 5610
bf1d3e81
NN
5611case ${enable_serial_configure} in
5612 yes)
5613 enable_serial_build_configure=yes
5614 enable_serial_host_configure=yes
5615 enable_serial_target_configure=yes
5616 ;;
5617esac
5618
671aa708
NN
5619# These force 'configure's to be done one at a time, to avoid problems
5620# with contention over a shared config.cache.
5621rm -f serdep.tmp
ade82b16 5622echo '# serdep.tmp' > serdep.tmp
671aa708 5623olditem=
bf1d3e81 5624test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
5625for item in ${build_configdirs} ; do
5626 case ${olditem} in
5627 "") ;;
ade82b16 5628 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
5629 esac
5630 olditem=${item}
5631done
5632olditem=
bf1d3e81 5633test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
5634for item in ${configdirs} ; do
5635 case ${olditem} in
5636 "") ;;
ade82b16 5637 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
5638 esac
5639 olditem=${item}
5640done
5641olditem=
bf1d3e81 5642test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
5643for item in ${target_configdirs} ; do
5644 case ${olditem} in
5645 "") ;;
ade82b16 5646 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
5647 esac
5648 olditem=${item}
5649done
5650serialization_dependencies=serdep.tmp
5651
5652
ade82b16 5653# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c
DJ
5654# target, nonopt, and variable assignments. These are the ones we
5655# might not want to pass down to subconfigures. Also strip
5656# program-prefix, program-suffix, and program-transform-name, so that
5657# we can pass down a consistent program-transform-name.
5658baseargs=
5659keep_next=no
5660skip_next=no
5661eval "set -- $ac_configure_args"
44bfc3ac
DJ
5662for ac_arg
5663do
1c710c3c
DJ
5664 if test X"$skip_next" = X"yes"; then
5665 skip_next=no
5666 continue
5667 fi
5668 if test X"$keep_next" = X"yes"; then
5669 case $ac_arg in
5670 *\'*)
5671 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5672 esac
5673 baseargs="$baseargs '$ac_arg'"
5674 keep_next=no
5675 continue
5676 fi
5677
5678 # Handle separated arguments. Based on the logic generated by
5679 # autoconf 2.59.
5680 case $ac_arg in
5681 *=* | --config-cache | -C | -disable-* | --disable-* \
5682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5684 | -with-* | --with-* | -without-* | --without-* | --x)
5685 separate_arg=no
5686 ;;
5687 -*)
5688 separate_arg=yes
5689 ;;
5690 *)
5691 separate_arg=no
5692 ;;
5693 esac
5694
5695 case "$ac_arg" in
5696 --no*)
5697 continue
5698 ;;
5699 --c* | \
5700 --sr* | \
5701 --ho* | \
5702 --bu* | \
5703 --t* | \
5704 --program-* | \
5705 -cache_file* | \
5706 -srcdir* | \
5707 -host* | \
5708 -build* | \
5709 -target* | \
5710 -program-prefix* | \
5711 -program-suffix* | \
5712 -program-transform-name* )
5713 skip_next=$separate_arg
5714 continue
5715 ;;
5716 -*)
5717 # An option. Add it.
5718 case $ac_arg in
5719 *\'*)
5720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5721 esac
5722 baseargs="$baseargs '$ac_arg'"
5723 keep_next=$separate_arg
5724 ;;
5725 *)
5726 # Either a variable assignment, or a nonopt (triplet). Don't
5727 # pass it down; let the Makefile handle this.
5728 continue
5729 ;;
5730 esac
5731done
5732# Remove the initial space we just introduced and, as these will be
5733# expanded by make, quote '$'.
5734baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 5735
43bb47c2
DJ
5736# Add in --program-transform-name, after --program-prefix and
5737# --program-suffix have been applied to it. Autoconf has already
5738# doubled dollar signs and backslashes in program_transform_name; we want
5739# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 5740# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
5741# Also, because we want to override the logic in subdir configure scripts to
5742# choose program_transform_name, replace any s,x,x, with s,y,y,.
5743sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5744${program_transform_name}
5745EOF_SED
5746gcc_transform_name=`cat conftestsed.out`
5747rm -f conftestsed.out
5748baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
5749if test "$silent" = yes; then
5750 baseargs="$baseargs --silent"
5751fi
43bb47c2 5752
671aa708
NN
5753# For the build-side libraries, we just need to pretend we're native,
5754# and not use the same cache file. Multilibs are neither needed nor
5755# desired.
e69bf64b 5756build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
5757
5758# For host modules, accept cache file option, or specification as blank.
5759case "${cache_file}" in
5760"") # empty
5761 cache_file_option="" ;;
5762/* | [A-Za-z]:[\\/]* ) # absolute path
5763 cache_file_option="--cache-file=${cache_file}" ;;
5764*) # relative path
5765 cache_file_option="--cache-file=../${cache_file}" ;;
5766esac
5767
09438bde
NN
5768# Host dirs don't like to share a cache file either, horribly enough.
5769# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 5770host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
5771
5772target_configargs=${baseargs}
5773
5774# Passing a --with-cross-host argument lets the target libraries know
5775# whether they are being built with a cross-compiler or being built
5776# native. However, it would be better to use other mechanisms to make the
5777# sorts of decisions they want to make on this basis. Please consider
5778# this option to be deprecated. FIXME.
5779if test x${is_cross_compiler} = xyes ; then
1c710c3c 5780 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
5781fi
5782
5783# Default to --enable-multilib.
5784if test x${enable_multilib} = x ; then
5785 target_configargs="--enable-multilib ${target_configargs}"
5786fi
5787
5788# Pass --with-newlib if appropriate. Note that target_configdirs has
5789# changed from the earlier setting of with_newlib.
5790if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5791 target_configargs="--with-newlib ${target_configargs}"
5792fi
5793
6b9eb62c
NN
5794# Different target subdirs use different values of certain variables
5795# (notably CXX). Worse, multilibs use *lots* of different values.
5796# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5797# it doesn't automatically accept command-line overrides of them.
5798# This means it's not safe for target subdirs to share a cache file,
5799# which is disgusting, but there you have it. Hopefully this can be
5800# fixed in future. It's still worthwhile to use a cache file for each
5801# directory. I think.
5802
bebcd931
MS
5803# Pass the appropriate --build, --host, --target and --cache-file arguments.
5804# We need to pass --target, as newer autoconf's requires consistency
5805# for target_alias and gcc doesn't manage it consistently.
e69bf64b 5806target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 5807
671aa708
NN
5808FLAGS_FOR_TARGET=
5809case " $target_configdirs " in
5810 *" newlib "*)
5811 case " $target_configargs " in
5812 *" --with-newlib "*)
5813 case "$target" in
5814 *-cygwin*)
aa8f1f57 5815 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
5816 esac
5817
5818 # If we're not building GCC, don't discard standard headers.
5819 if test -d ${srcdir}/gcc; then
5820 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5821
5822 if test "${build}" != "${host}"; then
5823 # On Canadian crosses, CC_FOR_TARGET will have already been set
5824 # by `configure', so we won't have an opportunity to add -Bgcc/
5825 # to it. This is right: we don't want to search that directory
5826 # for binaries, but we want the header files in there, so add
5827 # them explicitly.
215c351a 5828 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
5829
5830 # Someone might think of using the pre-installed headers on
5831 # Canadian crosses, in case the installed compiler is not fully
5832 # compatible with the compiler being built. In this case, it
5833 # would be better to flag an error than risking having
5834 # incompatible object files being constructed. We can't
5835 # guarantee that an error will be flagged, but let's hope the
5836 # compiler will do it, when presented with incompatible header
5837 # files.
5838 fi
5839 fi
5840
5841 case "${target}-${is_cross_compiler}" in
f2a0e225 5842 i[3456789]86-*-linux*-no)
671aa708
NN
5843 # Here host == target, so we don't need to build gcc,
5844 # so we don't want to discard standard headers.
5845 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5846 ;;
5847 *)
5848 # If we're building newlib, use its generic headers last, but search
5849 # for any libc-related directories first (so make it the last -B
5850 # switch).
5851 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
5852
5853 # If we're building libgloss, find the startup file, simulator library
5854 # and linker script.
5855 case " $target_configdirs " in
5856 *" libgloss "*)
5857 # Look for startup file, simulator library and maybe linker script.
5858 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5859 # Look for libnosys.a in case the target needs it.
5860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5861 # Most targets have the linker script in the source directory.
5862 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5863 ;;
5864 esac
671aa708
NN
5865 ;;
5866 esac
5867 ;;
5868 esac
5869 ;;
5870esac
b91f0a41
CV
5871case "$target" in
5872*-mingw*)
5873 # Can't be handled as Cygwin above since Mingw does not use newlib.
5874 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' ;;
5875esac
671aa708 5876
6691a79e
ME
5877# Allow the user to override the flags for
5878# our build compiler if desired.
5879CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
0999159b
PB
5880CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CFLAGS}}
5881LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${CFLAGS}}
6691a79e 5882
671aa708
NN
5883# On Canadian crosses, we'll be searching the right directories for
5884# the previously-installed cross compiler, so don't bother to add
5885# flags for directories within the install tree of the compiler
5886# being built; programs in there won't even run.
5887if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5888 # Search for pre-installed headers if nothing else fits.
9124bc53 5889 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
5890fi
5891
5892if test "x${use_gnu_ld}" = x &&
5893 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5894 # Arrange for us to find uninstalled linker scripts.
215c351a 5895 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
5896fi
5897
e88a2c09
DD
5898# Search for other target-specific linker scripts and such.
5899case "${target}" in
3e19841a
PB
5900 mep*)
5901 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5902 ;;
e88a2c09
DD
5903esac
5904
671aa708 5905# Makefile fragments.
7b61653a
PE
5906for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5907do
5908 eval fragval=\$$frag
5909 if test $fragval != /dev/null; then
5910 eval $frag=${srcdir}/$fragval
5911 fi
5912done
671aa708
NN
5913
5914
5915
5916
5917
5918# Miscellanea: directories, flags, etc.
5919
5920
5921
5922
5923
5924
5925
23f6b2f9 5926# Build module lists & subconfigure args.
671aa708
NN
5927
5928
5929
2abefe3d
PB
5930# Host module lists & subconfigure args.
5931
5932
5933
5934# Target module lists & subconfigure args.
5935
5936
5937
5938# Build tools.
5939
5940
5941
0999159b
PB
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
2abefe3d
PB
5956# Generate default definitions for YACC, M4, LEX and other programs that run
5957# on the build machine. These are used if the Makefile can't locate these
5958# programs in objdir.
5959MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5960
5961for ac_prog in 'bison -y' byacc yacc
5962do
1c710c3c 5963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5964set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
5965echo "$as_me:$LINENO: checking for $ac_word" >&5
5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
5967if test "${ac_cv_prog_YACC+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5969else
5970 if test -n "$YACC"; then
5971 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5972else
1c710c3c
DJ
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 5979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
5980 ac_cv_prog_YACC="$ac_prog"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984done
5985done
5986
2abefe3d
PB
5987fi
5988fi
1c710c3c 5989YACC=$ac_cv_prog_YACC
2abefe3d 5990if test -n "$YACC"; then
2aeb72e9
DD
5991 echo "$as_me:$LINENO: result: $YACC" >&5
5992echo "${ECHO_T}$YACC" >&6
2abefe3d 5993else
2aeb72e9
DD
5994 echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
2abefe3d
PB
5996fi
5997
1c710c3c 5998 test -n "$YACC" && break
2abefe3d
PB
5999done
6000test -n "$YACC" || YACC="$MISSING bison -y"
6001
6002case " $build_configdirs " in
6003 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6004 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6005esac
6006
6007for ac_prog in bison
6008do
1c710c3c 6009 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6010set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6011echo "$as_me:$LINENO: checking for $ac_word" >&5
6012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6013if test "${ac_cv_prog_BISON+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6015else
6016 if test -n "$BISON"; then
6017 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6018else
1c710c3c
DJ
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6026 ac_cv_prog_BISON="$ac_prog"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6029 fi
6030done
6031done
6032
2abefe3d
PB
6033fi
6034fi
1c710c3c 6035BISON=$ac_cv_prog_BISON
2abefe3d 6036if test -n "$BISON"; then
2aeb72e9
DD
6037 echo "$as_me:$LINENO: result: $BISON" >&5
6038echo "${ECHO_T}$BISON" >&6
2abefe3d 6039else
2aeb72e9
DD
6040 echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6
2abefe3d
PB
6042fi
6043
1c710c3c 6044 test -n "$BISON" && break
2abefe3d
PB
6045done
6046test -n "$BISON" || BISON="$MISSING bison"
6047
6048case " $build_configdirs " in
6049 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6050esac
6051
6052for ac_prog in gm4 gnum4 m4
6053do
1c710c3c 6054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6055set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6056echo "$as_me:$LINENO: checking for $ac_word" >&5
6057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6058if test "${ac_cv_prog_M4+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6060else
6061 if test -n "$M4"; then
6062 ac_cv_prog_M4="$M4" # Let the user override the test.
6063else
1c710c3c
DJ
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6071 ac_cv_prog_M4="$ac_prog"
6072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075done
6076done
6077
2abefe3d
PB
6078fi
6079fi
1c710c3c 6080M4=$ac_cv_prog_M4
2abefe3d 6081if test -n "$M4"; then
2aeb72e9
DD
6082 echo "$as_me:$LINENO: result: $M4" >&5
6083echo "${ECHO_T}$M4" >&6
2abefe3d 6084else
2aeb72e9
DD
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
2abefe3d
PB
6087fi
6088
1c710c3c 6089 test -n "$M4" && break
2abefe3d
PB
6090done
6091test -n "$M4" || M4="$MISSING m4"
6092
6093case " $build_configdirs " in
6094 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6095esac
6096
6097for ac_prog in flex lex
6098do
1c710c3c 6099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6100set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6101echo "$as_me:$LINENO: checking for $ac_word" >&5
6102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6103if test "${ac_cv_prog_LEX+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6105else
6106 if test -n "$LEX"; then
6107 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6108else
1c710c3c
DJ
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6116 ac_cv_prog_LEX="$ac_prog"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121done
6122
2abefe3d
PB
6123fi
6124fi
1c710c3c 6125LEX=$ac_cv_prog_LEX
2abefe3d 6126if test -n "$LEX"; then
2aeb72e9
DD
6127 echo "$as_me:$LINENO: result: $LEX" >&5
6128echo "${ECHO_T}$LEX" >&6
2abefe3d 6129else
2aeb72e9
DD
6130 echo "$as_me:$LINENO: result: no" >&5
6131echo "${ECHO_T}no" >&6
2abefe3d
PB
6132fi
6133
1c710c3c 6134 test -n "$LEX" && break
2abefe3d
PB
6135done
6136test -n "$LEX" || LEX="$MISSING flex"
6137
6138case " $build_configdirs " in
6139 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6140 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6141esac
6142
6143for ac_prog in flex
6144do
1c710c3c 6145 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6146set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6147echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6149if test "${ac_cv_prog_FLEX+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6151else
6152 if test -n "$FLEX"; then
6153 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6154else
1c710c3c
DJ
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6162 ac_cv_prog_FLEX="$ac_prog"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167done
6168
2abefe3d
PB
6169fi
6170fi
1c710c3c 6171FLEX=$ac_cv_prog_FLEX
2abefe3d 6172if test -n "$FLEX"; then
2aeb72e9
DD
6173 echo "$as_me:$LINENO: result: $FLEX" >&5
6174echo "${ECHO_T}$FLEX" >&6
2abefe3d 6175else
2aeb72e9
DD
6176 echo "$as_me:$LINENO: result: no" >&5
6177echo "${ECHO_T}no" >&6
2abefe3d
PB
6178fi
6179
1c710c3c 6180 test -n "$FLEX" && break
2abefe3d
PB
6181done
6182test -n "$FLEX" || FLEX="$MISSING flex"
6183
6184case " $build_configdirs " in
6185 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6186esac
6187
6188for ac_prog in makeinfo
6189do
1c710c3c 6190 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6191set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6192echo "$as_me:$LINENO: checking for $ac_word" >&5
6193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6194if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6196else
6197 if test -n "$MAKEINFO"; then
6198 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6199else
1c710c3c
DJ
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6207 ac_cv_prog_MAKEINFO="$ac_prog"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211done
6212done
6213
2abefe3d
PB
6214fi
6215fi
1c710c3c 6216MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 6217if test -n "$MAKEINFO"; then
2aeb72e9
DD
6218 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6219echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 6220else
2aeb72e9
DD
6221 echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6
2abefe3d
PB
6223fi
6224
1c710c3c 6225 test -n "$MAKEINFO" && break
2abefe3d
PB
6226done
6227test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6228
6229case " $build_configdirs " in
6230 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6231 *)
6232
4fe7e755 6233 # For an installed makeinfo, we require it to be from texinfo 4.6 or
2abefe3d
PB
6234 # higher, else we use the "missing" dummy.
6235 if ${MAKEINFO} --version \
4fe7e755 6236 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
6237 :
6238 else
6239 MAKEINFO="$MISSING makeinfo"
6240 fi
6241 ;;
6242
6243esac
671aa708 6244
2abefe3d 6245# FIXME: expect and dejagnu may become build tools?
671aa708 6246
2abefe3d
PB
6247for ac_prog in expect
6248do
1c710c3c 6249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6250set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6251echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6253if test "${ac_cv_prog_EXPECT+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6255else
6256 if test -n "$EXPECT"; then
6257 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6258else
1c710c3c
DJ
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6266 ac_cv_prog_EXPECT="$ac_prog"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270done
6271done
6272
2abefe3d
PB
6273fi
6274fi
1c710c3c 6275EXPECT=$ac_cv_prog_EXPECT
2abefe3d 6276if test -n "$EXPECT"; then
2aeb72e9
DD
6277 echo "$as_me:$LINENO: result: $EXPECT" >&5
6278echo "${ECHO_T}$EXPECT" >&6
2abefe3d 6279else
2aeb72e9
DD
6280 echo "$as_me:$LINENO: result: no" >&5
6281echo "${ECHO_T}no" >&6
2abefe3d 6282fi
671aa708 6283
1c710c3c 6284 test -n "$EXPECT" && break
2abefe3d
PB
6285done
6286test -n "$EXPECT" || EXPECT="expect"
671aa708 6287
2abefe3d
PB
6288case " $configdirs " in
6289 *" expect "*)
6290 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6291 ;;
6292esac
671aa708 6293
2abefe3d
PB
6294for ac_prog in runtest
6295do
1c710c3c 6296 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 6297set dummy $ac_prog; ac_word=$2
2aeb72e9
DD
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6300if test "${ac_cv_prog_RUNTEST+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6302else
6303 if test -n "$RUNTEST"; then
6304 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 6305else
1c710c3c
DJ
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6313 ac_cv_prog_RUNTEST="$ac_prog"
6314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317done
6318done
6319
2abefe3d
PB
6320fi
6321fi
1c710c3c 6322RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 6323if test -n "$RUNTEST"; then
2aeb72e9
DD
6324 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6325echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 6326else
2aeb72e9
DD
6327 echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
2abefe3d 6329fi
671aa708 6330
1c710c3c 6331 test -n "$RUNTEST" && break
2abefe3d
PB
6332done
6333test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 6334
2abefe3d
PB
6335case " $configdirs " in
6336 *" dejagnu "*)
c394e891 6337 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
6338 ;;
6339esac
671aa708
NN
6340
6341
671aa708 6342# Host tools.
ca9f4b81
AO
6343ncn_tool_prefix=
6344test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6345ncn_target_tool_prefix=
6346test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6347
278a7a38
AO
6348
6349
6350if test -n "$AR"; then
6351 ac_cv_prog_AR=$AR
6352elif test -n "$ac_cv_prog_AR"; then
6353 AR=$ac_cv_prog_AR
6354fi
6355
6356if test -n "$ac_cv_prog_AR"; then
6357 for ncn_progname in ar; do
6358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6359set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6360echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6362if test "${ac_cv_prog_AR+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365 if test -n "$AR"; then
6366 ac_cv_prog_AR="$AR" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6375 ac_cv_prog_AR="${ncn_progname}"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380done
6381
6382fi
6383fi
6384AR=$ac_cv_prog_AR
6385if test -n "$AR"; then
2aeb72e9
DD
6386 echo "$as_me:$LINENO: result: $AR" >&5
6387echo "${ECHO_T}$AR" >&6
278a7a38 6388else
2aeb72e9
DD
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
278a7a38
AO
6391fi
6392
6393 done
6394fi
6395
6396for ncn_progname in ar; do
2693c0b0
PB
6397 if test -n "$ncn_tool_prefix"; then
6398 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6399set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6400echo "$as_me:$LINENO: checking for $ac_word" >&5
6401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6402if test "${ac_cv_prog_AR+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6404else
6405 if test -n "$AR"; then
6406 ac_cv_prog_AR="$AR" # Let the user override the test.
6407else
1c710c3c
DJ
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6415 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419done
6420done
6421
ca9f4b81
AO
6422fi
6423fi
1c710c3c 6424AR=$ac_cv_prog_AR
ca9f4b81 6425if test -n "$AR"; then
2aeb72e9
DD
6426 echo "$as_me:$LINENO: result: $AR" >&5
6427echo "${ECHO_T}$AR" >&6
ca9f4b81 6428else
2aeb72e9
DD
6429 echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6
ca9f4b81
AO
6431fi
6432
2693c0b0
PB
6433 fi
6434 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6436set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6437echo "$as_me:$LINENO: checking for $ac_word" >&5
6438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6439if test "${ac_cv_prog_AR+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6441else
2693c0b0 6442 if test -n "$AR"; then
af71363e
AS
6443 ac_cv_prog_AR="$AR" # Let the user override the test.
6444else
1c710c3c
DJ
6445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6452 ac_cv_prog_AR="${ncn_progname}"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456done
6457done
6458
ca9f4b81
AO
6459fi
6460fi
1c710c3c 6461AR=$ac_cv_prog_AR
2693c0b0 6462if test -n "$AR"; then
2aeb72e9
DD
6463 echo "$as_me:$LINENO: result: $AR" >&5
6464echo "${ECHO_T}$AR" >&6
ca9f4b81 6465else
2aeb72e9
DD
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
ca9f4b81 6468fi
1c710c3c 6469
2693c0b0
PB
6470 fi
6471 test -n "$ac_cv_prog_AR" && break
6472done
6473
6474if test -z "$ac_cv_prog_AR" ; then
6475 set dummy ar
6476 if test $build = $host ; then
6477 AR="$2"
ca9f4b81 6478 else
2693c0b0 6479 AR="${ncn_tool_prefix}$2"
ca9f4b81 6480 fi
ca9f4b81
AO
6481fi
6482
278a7a38
AO
6483
6484
6485if test -n "$AS"; then
6486 ac_cv_prog_AS=$AS
6487elif test -n "$ac_cv_prog_AS"; then
6488 AS=$ac_cv_prog_AS
6489fi
6490
6491if test -n "$ac_cv_prog_AS"; then
6492 for ncn_progname in as; do
6493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6494set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6495echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6497if test "${ac_cv_prog_AS+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 if test -n "$AS"; then
6501 ac_cv_prog_AS="$AS" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6510 ac_cv_prog_AS="${ncn_progname}"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515done
6516
6517fi
6518fi
6519AS=$ac_cv_prog_AS
6520if test -n "$AS"; then
2aeb72e9
DD
6521 echo "$as_me:$LINENO: result: $AS" >&5
6522echo "${ECHO_T}$AS" >&6
278a7a38 6523else
2aeb72e9
DD
6524 echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
278a7a38
AO
6526fi
6527
6528 done
6529fi
6530
6531for ncn_progname in as; do
2693c0b0
PB
6532 if test -n "$ncn_tool_prefix"; then
6533 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6534set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6535echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6537if test "${ac_cv_prog_AS+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6539else
6540 if test -n "$AS"; then
6541 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 6542else
1c710c3c
DJ
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6550 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554done
6555done
6556
ca9f4b81
AO
6557fi
6558fi
1c710c3c 6559AS=$ac_cv_prog_AS
ca9f4b81 6560if test -n "$AS"; then
2aeb72e9
DD
6561 echo "$as_me:$LINENO: result: $AS" >&5
6562echo "${ECHO_T}$AS" >&6
ca9f4b81 6563else
2aeb72e9
DD
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
ca9f4b81
AO
6566fi
6567
2693c0b0
PB
6568 fi
6569 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6571set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6572echo "$as_me:$LINENO: checking for $ac_word" >&5
6573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6574if test "${ac_cv_prog_AS+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6576else
2693c0b0
PB
6577 if test -n "$AS"; then
6578 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 6579else
1c710c3c
DJ
6580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6587 ac_cv_prog_AS="${ncn_progname}"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591done
6592done
6593
ca9f4b81
AO
6594fi
6595fi
1c710c3c 6596AS=$ac_cv_prog_AS
2693c0b0 6597if test -n "$AS"; then
2aeb72e9
DD
6598 echo "$as_me:$LINENO: result: $AS" >&5
6599echo "${ECHO_T}$AS" >&6
ca9f4b81 6600else
2aeb72e9
DD
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
ca9f4b81 6603fi
1c710c3c 6604
2693c0b0
PB
6605 fi
6606 test -n "$ac_cv_prog_AS" && break
6607done
6608
6609if test -z "$ac_cv_prog_AS" ; then
6610 set dummy as
6611 if test $build = $host ; then
6612 AS="$2"
ca9f4b81 6613 else
2693c0b0 6614 AS="${ncn_tool_prefix}$2"
ca9f4b81 6615 fi
ca9f4b81
AO
6616fi
6617
278a7a38
AO
6618
6619
6620if test -n "$DLLTOOL"; then
6621 ac_cv_prog_DLLTOOL=$DLLTOOL
6622elif test -n "$ac_cv_prog_DLLTOOL"; then
6623 DLLTOOL=$ac_cv_prog_DLLTOOL
6624fi
6625
6626if test -n "$ac_cv_prog_DLLTOOL"; then
6627 for ncn_progname in dlltool; do
6628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6629set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6630echo "$as_me:$LINENO: checking for $ac_word" >&5
6631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6632if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635 if test -n "$DLLTOOL"; then
6636 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6637else
6638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639for as_dir in $PATH
6640do
6641 IFS=$as_save_IFS
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6645 ac_cv_prog_DLLTOOL="${ncn_progname}"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649done
6650done
6651
6652fi
6653fi
6654DLLTOOL=$ac_cv_prog_DLLTOOL
6655if test -n "$DLLTOOL"; then
2aeb72e9
DD
6656 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6657echo "${ECHO_T}$DLLTOOL" >&6
278a7a38 6658else
2aeb72e9
DD
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
278a7a38
AO
6661fi
6662
6663 done
6664fi
6665
6666for ncn_progname in dlltool; do
2693c0b0
PB
6667 if test -n "$ncn_tool_prefix"; then
6668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6670echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6672if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6674else
6675 if test -n "$DLLTOOL"; then
6676 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6677else
1c710c3c
DJ
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6685 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689done
6690done
6691
ca9f4b81
AO
6692fi
6693fi
1c710c3c 6694DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 6695if test -n "$DLLTOOL"; then
2aeb72e9
DD
6696 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6697echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6698else
2aeb72e9
DD
6699 echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
ca9f4b81
AO
6701fi
6702
2693c0b0
PB
6703 fi
6704 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6706set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6707echo "$as_me:$LINENO: checking for $ac_word" >&5
6708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6709if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6711else
2693c0b0
PB
6712 if test -n "$DLLTOOL"; then
6713 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 6714else
1c710c3c
DJ
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6722 ac_cv_prog_DLLTOOL="${ncn_progname}"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726done
6727done
6728
ca9f4b81
AO
6729fi
6730fi
1c710c3c 6731DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 6732if test -n "$DLLTOOL"; then
2aeb72e9
DD
6733 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6734echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 6735else
2aeb72e9
DD
6736 echo "$as_me:$LINENO: result: no" >&5
6737echo "${ECHO_T}no" >&6
ca9f4b81 6738fi
1c710c3c 6739
2693c0b0
PB
6740 fi
6741 test -n "$ac_cv_prog_DLLTOOL" && break
6742done
6743
6744if test -z "$ac_cv_prog_DLLTOOL" ; then
6745 set dummy dlltool
6746 if test $build = $host ; then
6747 DLLTOOL="$2"
ca9f4b81 6748 else
2693c0b0 6749 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 6750 fi
ca9f4b81
AO
6751fi
6752
278a7a38
AO
6753
6754
6755if test -n "$LD"; then
6756 ac_cv_prog_LD=$LD
6757elif test -n "$ac_cv_prog_LD"; then
6758 LD=$ac_cv_prog_LD
6759fi
6760
6761if test -n "$ac_cv_prog_LD"; then
6762 for ncn_progname in ld; do
6763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6764set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6765echo "$as_me:$LINENO: checking for $ac_word" >&5
6766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6767if test "${ac_cv_prog_LD+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770 if test -n "$LD"; then
6771 ac_cv_prog_LD="$LD" # Let the user override the test.
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6780 ac_cv_prog_LD="${ncn_progname}"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784done
6785done
6786
6787fi
6788fi
6789LD=$ac_cv_prog_LD
6790if test -n "$LD"; then
2aeb72e9
DD
6791 echo "$as_me:$LINENO: result: $LD" >&5
6792echo "${ECHO_T}$LD" >&6
278a7a38 6793else
2aeb72e9
DD
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
278a7a38
AO
6796fi
6797
6798 done
6799fi
6800
6801for ncn_progname in ld; do
2693c0b0
PB
6802 if test -n "$ncn_tool_prefix"; then
6803 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6804set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6805echo "$as_me:$LINENO: checking for $ac_word" >&5
6806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6807if test "${ac_cv_prog_LD+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6809else
6810 if test -n "$LD"; then
6811 ac_cv_prog_LD="$LD" # Let the user override the test.
6812else
1c710c3c
DJ
6813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814for as_dir in $PATH
6815do
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6820 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6823 fi
6824done
6825done
6826
ca9f4b81
AO
6827fi
6828fi
1c710c3c 6829LD=$ac_cv_prog_LD
ca9f4b81 6830if test -n "$LD"; then
2aeb72e9
DD
6831 echo "$as_me:$LINENO: result: $LD" >&5
6832echo "${ECHO_T}$LD" >&6
ca9f4b81 6833else
2aeb72e9
DD
6834 echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6
ca9f4b81
AO
6836fi
6837
2693c0b0
PB
6838 fi
6839 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6841set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6842echo "$as_me:$LINENO: checking for $ac_word" >&5
6843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6844if test "${ac_cv_prog_LD+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6846else
2693c0b0
PB
6847 if test -n "$LD"; then
6848 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 6849else
1c710c3c
DJ
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6857 ac_cv_prog_LD="${ncn_progname}"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862done
6863
ca9f4b81
AO
6864fi
6865fi
1c710c3c 6866LD=$ac_cv_prog_LD
2693c0b0 6867if test -n "$LD"; then
2aeb72e9
DD
6868 echo "$as_me:$LINENO: result: $LD" >&5
6869echo "${ECHO_T}$LD" >&6
ca9f4b81 6870else
2aeb72e9
DD
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
ca9f4b81 6873fi
1c710c3c 6874
2693c0b0
PB
6875 fi
6876 test -n "$ac_cv_prog_LD" && break
6877done
6878
6879if test -z "$ac_cv_prog_LD" ; then
6880 set dummy ld
6881 if test $build = $host ; then
6882 LD="$2"
ca9f4b81 6883 else
2693c0b0 6884 LD="${ncn_tool_prefix}$2"
ca9f4b81 6885 fi
ca9f4b81
AO
6886fi
6887
278a7a38
AO
6888
6889
6890if test -n "$LIPO"; then
6891 ac_cv_prog_LIPO=$LIPO
6892elif test -n "$ac_cv_prog_LIPO"; then
6893 LIPO=$ac_cv_prog_LIPO
6894fi
6895
6896if test -n "$ac_cv_prog_LIPO"; then
6897 for ncn_progname in lipo; do
6898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6899set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6900echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
6902if test "${ac_cv_prog_LIPO+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904else
6905 if test -n "$LIPO"; then
6906 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
6915 ac_cv_prog_LIPO="${ncn_progname}"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920done
6921
6922fi
6923fi
6924LIPO=$ac_cv_prog_LIPO
6925if test -n "$LIPO"; then
2aeb72e9
DD
6926 echo "$as_me:$LINENO: result: $LIPO" >&5
6927echo "${ECHO_T}$LIPO" >&6
278a7a38 6928else
2aeb72e9
DD
6929 echo "$as_me:$LINENO: result: no" >&5
6930echo "${ECHO_T}no" >&6
278a7a38
AO
6931fi
6932
6933 done
6934fi
6935
6936for ncn_progname in lipo; do
2abefe3d
PB
6937 if test -n "$ncn_tool_prefix"; then
6938 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6939set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
6940echo "$as_me:$LINENO: checking for $ac_word" >&5
6941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6942if test "${ac_cv_prog_LIPO+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6944else
6945 if test -n "$LIPO"; then
6946 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6947else
1c710c3c
DJ
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6955 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960done
6961
2abefe3d
PB
6962fi
6963fi
1c710c3c 6964LIPO=$ac_cv_prog_LIPO
2abefe3d 6965if test -n "$LIPO"; then
2aeb72e9
DD
6966 echo "$as_me:$LINENO: result: $LIPO" >&5
6967echo "${ECHO_T}$LIPO" >&6
2abefe3d 6968else
2aeb72e9
DD
6969 echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6
2abefe3d
PB
6971fi
6972
6973 fi
6974 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6976set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
6979if test "${ac_cv_prog_LIPO+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6981else
6982 if test -n "$LIPO"; then
6983 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6984else
1c710c3c
DJ
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 6991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
6992 ac_cv_prog_LIPO="${ncn_progname}"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997done
6998
2abefe3d
PB
6999fi
7000fi
1c710c3c 7001LIPO=$ac_cv_prog_LIPO
2abefe3d 7002if test -n "$LIPO"; then
2aeb72e9
DD
7003 echo "$as_me:$LINENO: result: $LIPO" >&5
7004echo "${ECHO_T}$LIPO" >&6
2abefe3d 7005else
2aeb72e9
DD
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
2abefe3d 7008fi
1c710c3c 7009
2abefe3d
PB
7010 fi
7011 test -n "$ac_cv_prog_LIPO" && break
7012done
7013
7014if test -z "$ac_cv_prog_LIPO" ; then
7015 set dummy lipo
7016 if test $build = $host ; then
7017 LIPO="$2"
7018 else
7019 LIPO="${ncn_tool_prefix}$2"
7020 fi
7021fi
7022
278a7a38
AO
7023
7024
7025if test -n "$NM"; then
7026 ac_cv_prog_NM=$NM
7027elif test -n "$ac_cv_prog_NM"; then
7028 NM=$ac_cv_prog_NM
7029fi
7030
7031if test -n "$ac_cv_prog_NM"; then
7032 for ncn_progname in nm; do
7033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7034set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7035echo "$as_me:$LINENO: checking for $ac_word" >&5
7036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7037if test "${ac_cv_prog_NM+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7039else
7040 if test -n "$NM"; then
7041 ac_cv_prog_NM="$NM" # Let the user override the test.
7042else
1c710c3c
DJ
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7050 ac_cv_prog_NM="${ncn_progname}"
1c710c3c
DJ
7051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055done
7056
ca9f4b81
AO
7057fi
7058fi
1c710c3c 7059NM=$ac_cv_prog_NM
ca9f4b81 7060if test -n "$NM"; then
2aeb72e9
DD
7061 echo "$as_me:$LINENO: result: $NM" >&5
7062echo "${ECHO_T}$NM" >&6
ca9f4b81 7063else
2aeb72e9
DD
7064 echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6
ca9f4b81
AO
7066fi
7067
278a7a38
AO
7068 done
7069fi
7070
7071for ncn_progname in nm; do
7072 if test -n "$ncn_tool_prefix"; then
7073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7074set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7075echo "$as_me:$LINENO: checking for $ac_word" >&5
7076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7077if test "${ac_cv_prog_NM+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7079else
2693c0b0
PB
7080 if test -n "$NM"; then
7081 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 7082else
1c710c3c
DJ
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 7090 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
1c710c3c
DJ
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094done
7095done
7096
ca9f4b81
AO
7097fi
7098fi
1c710c3c 7099NM=$ac_cv_prog_NM
2693c0b0 7100if test -n "$NM"; then
2aeb72e9
DD
7101 echo "$as_me:$LINENO: result: $NM" >&5
7102echo "${ECHO_T}$NM" >&6
ca9f4b81 7103else
2aeb72e9
DD
7104 echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6
ca9f4b81 7106fi
1c710c3c 7107
2693c0b0 7108 fi
278a7a38
AO
7109 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7111set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7112echo "$as_me:$LINENO: checking for $ac_word" >&5
7113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7114if test "${ac_cv_prog_NM+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117 if test -n "$NM"; then
7118 ac_cv_prog_NM="$NM" # Let the user override the test.
7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121for as_dir in $PATH
7122do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7127 ac_cv_prog_NM="${ncn_progname}"
7128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131done
7132done
7133
7134fi
7135fi
7136NM=$ac_cv_prog_NM
7137if test -n "$NM"; then
2aeb72e9
DD
7138 echo "$as_me:$LINENO: result: $NM" >&5
7139echo "${ECHO_T}$NM" >&6
278a7a38 7140else
2aeb72e9
DD
7141 echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6
278a7a38
AO
7143fi
7144
7145 fi
7146 test -n "$ac_cv_prog_NM" && break
7147done
7148
7149if test -z "$ac_cv_prog_NM" ; then
7150 set dummy nm
7151 if test $build = $host ; then
7152 NM="$2"
7153 else
7154 NM="${ncn_tool_prefix}$2"
7155 fi
7156fi
7157
7158
7159
7160if test -n "$RANLIB"; then
7161 ac_cv_prog_RANLIB=$RANLIB
7162elif test -n "$ac_cv_prog_RANLIB"; then
7163 RANLIB=$ac_cv_prog_RANLIB
7164fi
7165
7166if test -n "$ac_cv_prog_RANLIB"; then
7167 for ncn_progname in ranlib; do
7168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7169set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7170echo "$as_me:$LINENO: checking for $ac_word" >&5
7171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7172if test "${ac_cv_prog_RANLIB+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7177else
7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7185 ac_cv_prog_RANLIB="${ncn_progname}"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190done
7191
7192fi
7193fi
7194RANLIB=$ac_cv_prog_RANLIB
7195if test -n "$RANLIB"; then
2aeb72e9
DD
7196 echo "$as_me:$LINENO: result: $RANLIB" >&5
7197echo "${ECHO_T}$RANLIB" >&6
278a7a38 7198else
2aeb72e9
DD
7199 echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6
278a7a38
AO
7201fi
7202
7203 done
7204fi
ca9f4b81 7205
278a7a38 7206for ncn_progname in ranlib; do
2693c0b0
PB
7207 if test -n "$ncn_tool_prefix"; then
7208 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7209set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7210echo "$as_me:$LINENO: checking for $ac_word" >&5
7211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7212if test "${ac_cv_prog_RANLIB+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7214else
7215 if test -n "$RANLIB"; then
7216 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7217else
1c710c3c
DJ
7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7225 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231
ca9f4b81
AO
7232fi
7233fi
1c710c3c 7234RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 7235if test -n "$RANLIB"; then
2aeb72e9
DD
7236 echo "$as_me:$LINENO: result: $RANLIB" >&5
7237echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7238else
2aeb72e9
DD
7239 echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6
ca9f4b81
AO
7241fi
7242
2693c0b0
PB
7243 fi
7244 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7246set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7247echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7249if test "${ac_cv_prog_RANLIB+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7251else
2693c0b0
PB
7252 if test -n "$RANLIB"; then
7253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 7254else
1c710c3c
DJ
7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256for as_dir in $PATH
7257do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7262 ac_cv_prog_RANLIB="${ncn_progname}"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266done
7267done
7268
ca9f4b81
AO
7269fi
7270fi
1c710c3c 7271RANLIB=$ac_cv_prog_RANLIB
2693c0b0 7272if test -n "$RANLIB"; then
2aeb72e9
DD
7273 echo "$as_me:$LINENO: result: $RANLIB" >&5
7274echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 7275else
2aeb72e9
DD
7276 echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6
ca9f4b81 7278fi
1c710c3c 7279
ca9f4b81 7280 fi
2693c0b0
PB
7281 test -n "$ac_cv_prog_RANLIB" && break
7282done
7283
7284if test -z "$ac_cv_prog_RANLIB" ; then
7285 RANLIB=":"
ca9f4b81
AO
7286fi
7287
278a7a38
AO
7288
7289
7290if test -n "$STRIP"; then
7291 ac_cv_prog_STRIP=$STRIP
7292elif test -n "$ac_cv_prog_STRIP"; then
7293 STRIP=$ac_cv_prog_STRIP
7294fi
7295
7296if test -n "$ac_cv_prog_STRIP"; then
7297 for ncn_progname in strip; do
7298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7299set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7300echo "$as_me:$LINENO: checking for $ac_word" >&5
7301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7302if test "${ac_cv_prog_STRIP+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 if test -n "$STRIP"; then
7306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7315 ac_cv_prog_STRIP="${ncn_progname}"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320done
7321
7322fi
7323fi
7324STRIP=$ac_cv_prog_STRIP
7325if test -n "$STRIP"; then
2aeb72e9
DD
7326 echo "$as_me:$LINENO: result: $STRIP" >&5
7327echo "${ECHO_T}$STRIP" >&6
278a7a38 7328else
2aeb72e9
DD
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
278a7a38
AO
7331fi
7332
7333 done
7334fi
7335
7336for ncn_progname in strip; do
2abefe3d
PB
7337 if test -n "$ncn_tool_prefix"; then
7338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7339set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7340echo "$as_me:$LINENO: checking for $ac_word" >&5
7341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7342if test "${ac_cv_prog_STRIP+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7344else
7345 if test -n "$STRIP"; then
7346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7347else
1c710c3c
DJ
7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7355 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359done
7360done
7361
2abefe3d
PB
7362fi
7363fi
1c710c3c 7364STRIP=$ac_cv_prog_STRIP
2abefe3d 7365if test -n "$STRIP"; then
2aeb72e9
DD
7366 echo "$as_me:$LINENO: result: $STRIP" >&5
7367echo "${ECHO_T}$STRIP" >&6
2abefe3d 7368else
2aeb72e9
DD
7369 echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6
2abefe3d
PB
7371fi
7372
7373 fi
7374 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7376set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7377echo "$as_me:$LINENO: checking for $ac_word" >&5
7378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7379if test "${ac_cv_prog_STRIP+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
7381else
7382 if test -n "$STRIP"; then
7383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7384else
1c710c3c
DJ
7385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7392 ac_cv_prog_STRIP="${ncn_progname}"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396done
7397done
7398
2abefe3d
PB
7399fi
7400fi
1c710c3c 7401STRIP=$ac_cv_prog_STRIP
2abefe3d 7402if test -n "$STRIP"; then
2aeb72e9
DD
7403 echo "$as_me:$LINENO: result: $STRIP" >&5
7404echo "${ECHO_T}$STRIP" >&6
2abefe3d 7405else
2aeb72e9
DD
7406 echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6
2abefe3d 7408fi
1c710c3c 7409
2abefe3d
PB
7410 fi
7411 test -n "$ac_cv_prog_STRIP" && break
7412done
7413
7414if test -z "$ac_cv_prog_STRIP" ; then
7415 STRIP=":"
7416fi
7417
278a7a38
AO
7418
7419
7420if test -n "$WINDRES"; then
7421 ac_cv_prog_WINDRES=$WINDRES
7422elif test -n "$ac_cv_prog_WINDRES"; then
7423 WINDRES=$ac_cv_prog_WINDRES
7424fi
7425
7426if test -n "$ac_cv_prog_WINDRES"; then
7427 for ncn_progname in windres; do
7428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7429set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7430echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7432if test "${ac_cv_prog_WINDRES+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 if test -n "$WINDRES"; then
7436 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7445 ac_cv_prog_WINDRES="${ncn_progname}"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449done
7450done
7451
7452fi
7453fi
7454WINDRES=$ac_cv_prog_WINDRES
7455if test -n "$WINDRES"; then
2aeb72e9
DD
7456 echo "$as_me:$LINENO: result: $WINDRES" >&5
7457echo "${ECHO_T}$WINDRES" >&6
278a7a38 7458else
2aeb72e9
DD
7459 echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6
278a7a38
AO
7461fi
7462
7463 done
7464fi
7465
7466for ncn_progname in windres; do
2693c0b0
PB
7467 if test -n "$ncn_tool_prefix"; then
7468 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7469set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7470echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7472if test "${ac_cv_prog_WINDRES+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7474else
7475 if test -n "$WINDRES"; then
7476 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7477else
1c710c3c
DJ
7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7485 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
7491
ca9f4b81
AO
7492fi
7493fi
1c710c3c 7494WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 7495if test -n "$WINDRES"; then
2aeb72e9
DD
7496 echo "$as_me:$LINENO: result: $WINDRES" >&5
7497echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7498else
2aeb72e9
DD
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
ca9f4b81
AO
7501fi
7502
2693c0b0
PB
7503 fi
7504 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7506set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7507echo "$as_me:$LINENO: checking for $ac_word" >&5
7508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7509if test "${ac_cv_prog_WINDRES+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7511else
2693c0b0
PB
7512 if test -n "$WINDRES"; then
7513 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 7514else
1c710c3c
DJ
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7522 ac_cv_prog_WINDRES="${ncn_progname}"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528
ca9f4b81
AO
7529fi
7530fi
1c710c3c 7531WINDRES=$ac_cv_prog_WINDRES
2693c0b0 7532if test -n "$WINDRES"; then
2aeb72e9
DD
7533 echo "$as_me:$LINENO: result: $WINDRES" >&5
7534echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 7535else
2aeb72e9
DD
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
ca9f4b81 7538fi
1c710c3c 7539
2693c0b0
PB
7540 fi
7541 test -n "$ac_cv_prog_WINDRES" && break
7542done
7543
7544if test -z "$ac_cv_prog_WINDRES" ; then
7545 set dummy windres
7546 if test $build = $host ; then
7547 WINDRES="$2"
ca9f4b81 7548 else
2693c0b0 7549 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 7550 fi
ca9f4b81
AO
7551fi
7552
278a7a38
AO
7553
7554
901119ae
KT
7555if test -n "$WINDMC"; then
7556 ac_cv_prog_WINDMC=$WINDMC
7557elif test -n "$ac_cv_prog_WINDMC"; then
7558 WINDMC=$ac_cv_prog_WINDMC
7559fi
7560
7561if test -n "$ac_cv_prog_WINDMC"; then
7562 for ncn_progname in windmc; do
7563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7564set dummy ${ncn_progname}; ac_word=$2
7565echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7567if test "${ac_cv_prog_WINDMC+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 if test -n "$WINDMC"; then
7571 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_WINDMC="${ncn_progname}"
7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584done
7585done
7586
7587fi
7588fi
7589WINDMC=$ac_cv_prog_WINDMC
7590if test -n "$WINDMC"; then
7591 echo "$as_me:$LINENO: result: $WINDMC" >&5
7592echo "${ECHO_T}$WINDMC" >&6
7593else
7594 echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6
7596fi
7597
7598 done
7599fi
7600
7601for ncn_progname in windmc; do
7602 if test -n "$ncn_tool_prefix"; then
7603 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7604set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7605echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7607if test "${ac_cv_prog_WINDMC+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 if test -n "$WINDMC"; then
7611 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624done
7625done
7626
7627fi
7628fi
7629WINDMC=$ac_cv_prog_WINDMC
7630if test -n "$WINDMC"; then
7631 echo "$as_me:$LINENO: result: $WINDMC" >&5
7632echo "${ECHO_T}$WINDMC" >&6
7633else
7634 echo "$as_me:$LINENO: result: no" >&5
7635echo "${ECHO_T}no" >&6
7636fi
7637
7638 fi
7639 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7641set dummy ${ncn_progname}; ac_word=$2
7642echo "$as_me:$LINENO: checking for $ac_word" >&5
7643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644if test "${ac_cv_prog_WINDMC+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647 if test -n "$WINDMC"; then
7648 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_WINDMC="${ncn_progname}"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662done
7663
7664fi
7665fi
7666WINDMC=$ac_cv_prog_WINDMC
7667if test -n "$WINDMC"; then
7668 echo "$as_me:$LINENO: result: $WINDMC" >&5
7669echo "${ECHO_T}$WINDMC" >&6
7670else
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
7673fi
7674
7675 fi
7676 test -n "$ac_cv_prog_WINDMC" && break
7677done
7678
7679if test -z "$ac_cv_prog_WINDMC" ; then
7680 set dummy windmc
7681 if test $build = $host ; then
7682 WINDMC="$2"
7683 else
7684 WINDMC="${ncn_tool_prefix}$2"
7685 fi
7686fi
7687
7688
7689
278a7a38
AO
7690if test -n "$OBJCOPY"; then
7691 ac_cv_prog_OBJCOPY=$OBJCOPY
7692elif test -n "$ac_cv_prog_OBJCOPY"; then
7693 OBJCOPY=$ac_cv_prog_OBJCOPY
7694fi
7695
7696if test -n "$ac_cv_prog_OBJCOPY"; then
7697 for ncn_progname in objcopy; do
7698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7699set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7700echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7702if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 if test -n "$OBJCOPY"; then
7706 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7715 ac_cv_prog_OBJCOPY="${ncn_progname}"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720done
7721
7722fi
7723fi
7724OBJCOPY=$ac_cv_prog_OBJCOPY
7725if test -n "$OBJCOPY"; then
2aeb72e9
DD
7726 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7727echo "${ECHO_T}$OBJCOPY" >&6
278a7a38 7728else
2aeb72e9
DD
7729 echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6
278a7a38
AO
7731fi
7732
7733 done
7734fi
7735
7736for ncn_progname in objcopy; do
2693c0b0
PB
7737 if test -n "$ncn_tool_prefix"; then
7738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7739set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7740echo "$as_me:$LINENO: checking for $ac_word" >&5
7741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7742if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7744else
7745 if test -n "$OBJCOPY"; then
7746 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7747else
1c710c3c
DJ
7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7755 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759done
7760done
7761
ca9f4b81
AO
7762fi
7763fi
1c710c3c 7764OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 7765if test -n "$OBJCOPY"; then
2aeb72e9
DD
7766 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7767echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7768else
2aeb72e9
DD
7769 echo "$as_me:$LINENO: result: no" >&5
7770echo "${ECHO_T}no" >&6
ca9f4b81
AO
7771fi
7772
2693c0b0
PB
7773 fi
7774 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7776set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7777echo "$as_me:$LINENO: checking for $ac_word" >&5
7778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7779if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7781else
2693c0b0
PB
7782 if test -n "$OBJCOPY"; then
7783 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 7784else
1c710c3c
DJ
7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7792 ac_cv_prog_OBJCOPY="${ncn_progname}"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7795 fi
7796done
7797done
7798
ca9f4b81
AO
7799fi
7800fi
1c710c3c 7801OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 7802if test -n "$OBJCOPY"; then
2aeb72e9
DD
7803 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7804echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 7805else
2aeb72e9
DD
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
ca9f4b81 7808fi
1c710c3c 7809
2693c0b0
PB
7810 fi
7811 test -n "$ac_cv_prog_OBJCOPY" && break
7812done
7813
7814if test -z "$ac_cv_prog_OBJCOPY" ; then
7815 set dummy objcopy
7816 if test $build = $host ; then
7817 OBJCOPY="$2"
ca9f4b81 7818 else
2693c0b0 7819 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 7820 fi
ca9f4b81
AO
7821fi
7822
278a7a38
AO
7823
7824
7825if test -n "$OBJDUMP"; then
7826 ac_cv_prog_OBJDUMP=$OBJDUMP
7827elif test -n "$ac_cv_prog_OBJDUMP"; then
7828 OBJDUMP=$ac_cv_prog_OBJDUMP
7829fi
7830
7831if test -n "$ac_cv_prog_OBJDUMP"; then
7832 for ncn_progname in objdump; do
7833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7834set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7835echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7837if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840 if test -n "$OBJDUMP"; then
7841 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
7850 ac_cv_prog_OBJDUMP="${ncn_progname}"
7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854done
7855done
7856
7857fi
7858fi
7859OBJDUMP=$ac_cv_prog_OBJDUMP
7860if test -n "$OBJDUMP"; then
2aeb72e9
DD
7861 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7862echo "${ECHO_T}$OBJDUMP" >&6
278a7a38 7863else
2aeb72e9
DD
7864 echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
278a7a38
AO
7866fi
7867
7868 done
7869fi
7870
7871for ncn_progname in objdump; do
2693c0b0
PB
7872 if test -n "$ncn_tool_prefix"; then
7873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7874set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
7875echo "$as_me:$LINENO: checking for $ac_word" >&5
7876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7877if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
7879else
7880 if test -n "$OBJDUMP"; then
7881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7882else
1c710c3c
DJ
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7890 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894done
7895done
7896
ca9f4b81
AO
7897fi
7898fi
1c710c3c 7899OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 7900if test -n "$OBJDUMP"; then
2aeb72e9
DD
7901 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7902echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7903else
2aeb72e9
DD
7904 echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
ca9f4b81
AO
7906fi
7907
2693c0b0
PB
7908 fi
7909 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7911set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7912echo "$as_me:$LINENO: checking for $ac_word" >&5
7913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
7914if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7916else
2693c0b0
PB
7917 if test -n "$OBJDUMP"; then
7918 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 7919else
1c710c3c
DJ
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 7926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
7927 ac_cv_prog_OBJDUMP="${ncn_progname}"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931done
7932done
7933
ca9f4b81
AO
7934fi
7935fi
1c710c3c 7936OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 7937if test -n "$OBJDUMP"; then
2aeb72e9
DD
7938 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7939echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 7940else
2aeb72e9
DD
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
ca9f4b81 7943fi
1c710c3c 7944
2693c0b0
PB
7945 fi
7946 test -n "$ac_cv_prog_OBJDUMP" && break
7947done
7948
7949if test -z "$ac_cv_prog_OBJDUMP" ; then
7950 set dummy objdump
7951 if test $build = $host ; then
7952 OBJDUMP="$2"
ca9f4b81 7953 else
2693c0b0 7954 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 7955 fi
ca9f4b81
AO
7956fi
7957
671aa708
NN
7958
7959
7960
7961
7962
2abefe3d 7963# Target tools.
1c710c3c 7964
2aeb72e9 7965# Check whether --with-build-time-tools or --without-build-time-tools was given.
e8b05380 7966if test "${with_build_time_tools+set}" = set; then
2aeb72e9
DD
7967 withval="$with_build_time_tools"
7968 case x"$withval" in
e8b05380
PB
7969 x/*) ;;
7970 *)
7971 with_build_time_tools=
1c710c3c
DJ
7972 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7973echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
7974 ;;
7975 esac
ca9f4b81 7976else
e8b05380 7977 with_build_time_tools=
2aeb72e9 7978fi;
ca9f4b81 7979
278a7a38
AO
7980
7981
7982if test -n "$CC_FOR_TARGET"; then
7983 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
7984elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7985 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7986fi
7987
7988if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
7989 for ncn_progname in cc gcc; do
7990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7991set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
7992echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
7994if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 if test -n "$CC_FOR_TARGET"; then
7998 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8007 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011done
8012done
8013
8014fi
8015fi
8016CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8017if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8018 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8019echo "${ECHO_T}$CC_FOR_TARGET" >&6
278a7a38 8020else
2aeb72e9
DD
8021 echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6
278a7a38
AO
8023fi
8024
8025 done
8026fi
8027
8028if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8029 for ncn_progname in cc gcc; do
2aeb72e9
DD
8030 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8031echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8032 if test -x $with_build_time_tools/${ncn_progname}; then
8033 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8034 echo "$as_me:$LINENO: result: yes" >&5
8035echo "${ECHO_T}yes" >&6
72a7ab82 8036 break
e8b05380 8037 else
2aeb72e9
DD
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
72a7ab82
AP
8040 fi
8041 done
4de997d1
PB
8042fi
8043
e8b05380
PB
8044if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8045 for ncn_progname in cc gcc; do
8046 if test -n "$ncn_target_tool_prefix"; then
8047 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8048set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8049echo "$as_me:$LINENO: checking for $ac_word" >&5
8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8051if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8053else
8054 if test -n "$CC_FOR_TARGET"; then
8055 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8056else
1c710c3c
DJ
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8064 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068done
8069done
8070
4de997d1
PB
8071fi
8072fi
1c710c3c 8073CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 8074if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8075 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8076echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8077else
2aeb72e9
DD
8078 echo "$as_me:$LINENO: result: no" >&5
8079echo "${ECHO_T}no" >&6
4de997d1
PB
8080fi
8081
e8b05380
PB
8082 fi
8083 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8085set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8086echo "$as_me:$LINENO: checking for $ac_word" >&5
8087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8088if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8090else
2693c0b0
PB
8091 if test -n "$CC_FOR_TARGET"; then
8092 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 8093else
1c710c3c
DJ
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8101 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105done
8106done
8107
4de997d1
PB
8108fi
8109fi
1c710c3c 8110CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 8111if test -n "$CC_FOR_TARGET"; then
2aeb72e9
DD
8112 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8113echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 8114else
2aeb72e9
DD
8115 echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6
4de997d1 8117fi
1c710c3c 8118
e8b05380
PB
8119 fi
8120 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8121 done
8122fi
1c710c3c 8123
2693c0b0
PB
8124if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8125 set dummy cc gcc
8126 if test $build = $target ; then
8127 CC_FOR_TARGET="$2"
4de997d1 8128 else
2693c0b0 8129 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8130 fi
1c00b503
PB
8131else
8132 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
8133fi
8134
278a7a38
AO
8135
8136
8137if test -n "$CXX_FOR_TARGET"; then
8138 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8139elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8140 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8141fi
8142
8143if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8144 for ncn_progname in c++ g++ cxx gxx; do
8145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8147echo "$as_me:$LINENO: checking for $ac_word" >&5
8148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8149if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 if test -n "$CXX_FOR_TARGET"; then
8153 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8154else
8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156for as_dir in $PATH
8157do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8162 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166done
8167done
8168
8169fi
8170fi
8171CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8172if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8173 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8174echo "${ECHO_T}$CXX_FOR_TARGET" >&6
278a7a38 8175else
2aeb72e9
DD
8176 echo "$as_me:$LINENO: result: no" >&5
8177echo "${ECHO_T}no" >&6
278a7a38
AO
8178fi
8179
8180 done
8181fi
8182
8183if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8184 for ncn_progname in c++ g++ cxx gxx; do
2aeb72e9
DD
8185 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8186echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8187 if test -x $with_build_time_tools/${ncn_progname}; then
8188 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8189 echo "$as_me:$LINENO: result: yes" >&5
8190echo "${ECHO_T}yes" >&6
e8b05380
PB
8191 break
8192 else
2aeb72e9
DD
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
e8b05380
PB
8195 fi
8196 done
8197fi
8198
8199if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8200 for ncn_progname in c++ g++ cxx gxx; do
8201 if test -n "$ncn_target_tool_prefix"; then
8202 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8203set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8204echo "$as_me:$LINENO: checking for $ac_word" >&5
8205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8206if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
8208else
8209 if test -n "$CXX_FOR_TARGET"; then
8210 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8211else
1c710c3c
DJ
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8219 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224done
8225
4de997d1
PB
8226fi
8227fi
1c710c3c 8228CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 8229if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8230 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8231echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8232else
2aeb72e9
DD
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
4de997d1
PB
8235fi
8236
e8b05380
PB
8237 fi
8238 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8240set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8241echo "$as_me:$LINENO: checking for $ac_word" >&5
8242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8243if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8245else
2693c0b0
PB
8246 if test -n "$CXX_FOR_TARGET"; then
8247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 8248else
1c710c3c
DJ
8249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250for as_dir in $PATH
8251do
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8256 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8259 fi
8260done
8261done
8262
4de997d1
PB
8263fi
8264fi
1c710c3c 8265CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 8266if test -n "$CXX_FOR_TARGET"; then
2aeb72e9
DD
8267 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8268echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 8269else
2aeb72e9
DD
8270 echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6
4de997d1 8272fi
1c710c3c 8273
e8b05380
PB
8274 fi
8275 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8276 done
8277fi
1c710c3c 8278
2693c0b0
PB
8279if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8280 set dummy c++ g++ cxx gxx
8281 if test $build = $target ; then
8282 CXX_FOR_TARGET="$2"
4de997d1 8283 else
2693c0b0 8284 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 8285 fi
1c00b503
PB
8286else
8287 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
8288fi
8289
278a7a38
AO
8290
8291
8292if test -n "$GCC_FOR_TARGET"; then
8293 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8294elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8296fi
8297
8298if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8299 for ncn_progname in gcc; do
8300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8301set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8302echo "$as_me:$LINENO: checking for $ac_word" >&5
8303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8304if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306else
8307 if test -n "$GCC_FOR_TARGET"; then
8308 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8309else
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8317 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8320 fi
8321done
8322done
8323
8324fi
8325fi
8326GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8327if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8328 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8329echo "${ECHO_T}$GCC_FOR_TARGET" >&6
278a7a38 8330else
2aeb72e9
DD
8331 echo "$as_me:$LINENO: result: no" >&5
8332echo "${ECHO_T}no" >&6
278a7a38
AO
8333fi
8334
8335 done
8336fi
8337
8338if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8339 for ncn_progname in gcc; do
2aeb72e9
DD
8340 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8341echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8342 if test -x $with_build_time_tools/${ncn_progname}; then
8343 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8344 echo "$as_me:$LINENO: result: yes" >&5
8345echo "${ECHO_T}yes" >&6
e8b05380
PB
8346 break
8347 else
2aeb72e9
DD
8348 echo "$as_me:$LINENO: result: no" >&5
8349echo "${ECHO_T}no" >&6
e8b05380
PB
8350 fi
8351 done
8352fi
8353
8354if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8355 for ncn_progname in gcc; do
8356 if test -n "$ncn_target_tool_prefix"; then
8357 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8358set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8359echo "$as_me:$LINENO: checking for $ac_word" >&5
8360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8361if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8363else
e8b05380
PB
8364 if test -n "$GCC_FOR_TARGET"; then
8365 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8366else
1c710c3c
DJ
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8374 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378done
8379done
8380
ca9f4b81
AO
8381fi
8382fi
1c710c3c 8383GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8384if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8385 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8386echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8387else
2aeb72e9
DD
8388 echo "$as_me:$LINENO: result: no" >&5
8389echo "${ECHO_T}no" >&6
ca9f4b81
AO
8390fi
8391
e8b05380
PB
8392 fi
8393 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8395set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8396echo "$as_me:$LINENO: checking for $ac_word" >&5
8397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8398if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8400else
e8b05380
PB
8401 if test -n "$GCC_FOR_TARGET"; then
8402 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 8403else
1c710c3c
DJ
8404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405for as_dir in $PATH
8406do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8411 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415done
8416done
8417
ca9f4b81
AO
8418fi
8419fi
1c710c3c 8420GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 8421if test -n "$GCC_FOR_TARGET"; then
2aeb72e9
DD
8422 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8423echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 8424else
2aeb72e9
DD
8425 echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6
ca9f4b81 8427fi
1c710c3c 8428
e8b05380
PB
8429 fi
8430 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8431 done
8432fi
1c710c3c 8433
e8b05380
PB
8434if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8435 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
8436else
8437 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
8438fi
8439
278a7a38
AO
8440
8441
8442if test -n "$GCJ_FOR_TARGET"; then
8443 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8444elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8445 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8446fi
8447
8448if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8449 for ncn_progname in gcj; do
8450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8452echo "$as_me:$LINENO: checking for $ac_word" >&5
8453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8454if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457 if test -n "$GCJ_FOR_TARGET"; then
8458 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8459else
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8467 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 break 2
8470 fi
8471done
8472done
8473
8474fi
8475fi
8476GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8477if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8478 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8479echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8480else
2aeb72e9
DD
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
278a7a38
AO
8483fi
8484
8485 done
8486fi
8487
8488if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8489 for ncn_progname in gcj; do
2aeb72e9
DD
8490 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8491echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8492 if test -x $with_build_time_tools/${ncn_progname}; then
8493 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
e8b05380
PB
8496 break
8497 else
2aeb72e9
DD
8498 echo "$as_me:$LINENO: result: no" >&5
8499echo "${ECHO_T}no" >&6
e8b05380
PB
8500 fi
8501 done
8502fi
8503
8504if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8505 for ncn_progname in gcj; do
8506 if test -n "$ncn_target_tool_prefix"; then
8507 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8509echo "$as_me:$LINENO: checking for $ac_word" >&5
8510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8511if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8513else
fb0103e5
RG
8514 if test -n "$GCJ_FOR_TARGET"; then
8515 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8516else
1c710c3c
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8524 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528done
8529done
8530
e8b05380
PB
8531fi
8532fi
278a7a38
AO
8533GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8534if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8535 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8536echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8537else
2aeb72e9
DD
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
278a7a38
AO
8540fi
8541
8542 fi
8543 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8545set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8546echo "$as_me:$LINENO: checking for $ac_word" >&5
8547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8548if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550else
8551 if test -n "$GCJ_FOR_TARGET"; then
8552 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8553else
8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8561 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8564 fi
8565done
8566done
8567
8568fi
8569fi
8570GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8571if test -n "$GCJ_FOR_TARGET"; then
2aeb72e9
DD
8572 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8573echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
278a7a38 8574else
2aeb72e9
DD
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
278a7a38
AO
8577fi
8578
8579 fi
8580 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8581 done
8582fi
8583
8584if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8585 set dummy gcj
8586 if test $build = $target ; then
8587 GCJ_FOR_TARGET="$2"
8588 else
8589 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8590 fi
1c00b503
PB
8591else
8592 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
8593fi
8594
8595
8596
8597if test -n "$GFORTRAN_FOR_TARGET"; then
8598 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8599elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8600 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
8601fi
8602
278a7a38
AO
8603if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8604 for ncn_progname in gfortran; do
8605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 8606set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8607echo "$as_me:$LINENO: checking for $ac_word" >&5
8608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 8609if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
1c710c3c 8610 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8611else
278a7a38
AO
8612 if test -n "$GFORTRAN_FOR_TARGET"; then
8613 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 8614else
1c710c3c
DJ
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 8622 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
8623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626done
8627done
8628
e8b05380
PB
8629fi
8630fi
278a7a38
AO
8631GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8632if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8633 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8634echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8635else
2aeb72e9
DD
8636 echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6
e8b05380 8638fi
1c710c3c 8639
e8b05380
PB
8640 done
8641fi
1c710c3c 8642
278a7a38 8643if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8644 for ncn_progname in gfortran; do
2aeb72e9
DD
8645 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8646echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8647 if test -x $with_build_time_tools/${ncn_progname}; then
8648 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8649 echo "$as_me:$LINENO: result: yes" >&5
8650echo "${ECHO_T}yes" >&6
e8b05380
PB
8651 break
8652 else
2aeb72e9
DD
8653 echo "$as_me:$LINENO: result: no" >&5
8654echo "${ECHO_T}no" >&6
e8b05380
PB
8655 fi
8656 done
8657fi
8658
8659if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8660 for ncn_progname in gfortran; do
8661 if test -n "$ncn_target_tool_prefix"; then
8662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8663set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8664echo "$as_me:$LINENO: checking for $ac_word" >&5
8665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8666if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8668else
8669 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
8670 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8671else
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675 IFS=$as_save_IFS
8676 test -z "$as_dir" && as_dir=.
8677 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8679 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681 break 2
8682 fi
8683done
8684done
8685
e8b05380
PB
8686fi
8687fi
1c710c3c 8688GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8689if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8690 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8691echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8692else
2aeb72e9
DD
8693 echo "$as_me:$LINENO: result: no" >&5
8694echo "${ECHO_T}no" >&6
e8b05380
PB
8695fi
8696
8697 fi
8698 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8700set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8701echo "$as_me:$LINENO: checking for $ac_word" >&5
8702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8703if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8705else
8706 if test -n "$GFORTRAN_FOR_TARGET"; then
8707 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8708else
1c710c3c
DJ
8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8716 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8719 fi
8720done
8721done
8722
e8b05380
PB
8723fi
8724fi
1c710c3c 8725GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 8726if test -n "$GFORTRAN_FOR_TARGET"; then
2aeb72e9
DD
8727 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8728echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 8729else
2aeb72e9
DD
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
e8b05380 8732fi
1c710c3c 8733
e8b05380
PB
8734 fi
8735 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8736 done
8737fi
1c710c3c 8738
e8b05380
PB
8739if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8740 set dummy gfortran
2693c0b0 8741 if test $build = $target ; then
e8b05380 8742 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 8743 else
e8b05380
PB
8744 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8745 fi
1c00b503
PB
8746else
8747 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
8748fi
8749
8750
8751
e8b05380
PB
8752cat > conftest.c << \EOF
8753#ifdef __GNUC__
8754 gcc_yay;
8755#endif
8756EOF
8757if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8758 have_gcc_for_target=yes
8759else
8760 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8761 have_gcc_for_target=no
8762fi
8763rm conftest.c
8764
8765
8766
8767
8768if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8769 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8770 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8771echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8772 if test -x $with_build_time_tools/ar; then
8773 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8774 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
2aeb72e9
DD
8775 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8776echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 8777 else
2aeb72e9
DD
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
d1f8db0c 8780 fi
e8b05380
PB
8781 elif test $build != $host && test $have_gcc_for_target = yes; then
8782 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
8783 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8784 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
8785 fi
8786fi
3e19841a 8787if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
8788 # Extract the first word of "ar", so it can be a program name with args.
8789set dummy ar; ac_word=$2
2aeb72e9
DD
8790echo "$as_me:$LINENO: checking for $ac_word" >&5
8791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8792if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8794else
1c710c3c
DJ
8795 case $AR_FOR_TARGET in
8796 [\\/]* | ?:[\\/]*)
e8b05380
PB
8797 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8798 ;;
e8b05380 8799 *)
1c710c3c
DJ
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $gcc_cv_tool_dirs
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8807 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811done
8812done
8813
e8b05380
PB
8814 ;;
8815esac
8816fi
1c710c3c 8817AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2aeb72e9 8818
e8b05380 8819if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8820 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8821echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8822else
2aeb72e9
DD
8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
4de997d1
PB
8825fi
8826
e8b05380
PB
8827fi
8828if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
8829
8830
8831if test -n "$AR_FOR_TARGET"; then
8832 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8833elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8834 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8835fi
8836
8837if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8838 for ncn_progname in ar; do
8839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8840set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8841echo "$as_me:$LINENO: checking for $ac_word" >&5
8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
8843if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845else
8846 if test -n "$AR_FOR_TARGET"; then
8847 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
8856 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860done
8861done
8862
8863fi
8864fi
8865AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8866if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8867 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8868echo "${ECHO_T}$AR_FOR_TARGET" >&6
278a7a38 8869else
2aeb72e9
DD
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
278a7a38
AO
8872fi
8873
8874 done
8875fi
8876
8877if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 8878 for ncn_progname in ar; do
2aeb72e9
DD
8879 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8880echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8881 if test -x $with_build_time_tools/${ncn_progname}; then
8882 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
8883 echo "$as_me:$LINENO: result: yes" >&5
8884echo "${ECHO_T}yes" >&6
e8b05380
PB
8885 break
8886 else
2aeb72e9
DD
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
e8b05380
PB
8889 fi
8890 done
8891fi
8892
8893if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8894 for ncn_progname in ar; do
8895 if test -n "$ncn_target_tool_prefix"; then
8896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8897set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
8898echo "$as_me:$LINENO: checking for $ac_word" >&5
8899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8900if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 8902else
e8b05380
PB
8903 if test -n "$AR_FOR_TARGET"; then
8904 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 8905else
1c710c3c
DJ
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8913 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917done
8918done
8919
4de997d1
PB
8920fi
8921fi
1c710c3c 8922AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8923if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8924 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8925echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 8926else
2aeb72e9
DD
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
4de997d1
PB
8929fi
8930
e8b05380
PB
8931 fi
8932 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8934set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
8935echo "$as_me:$LINENO: checking for $ac_word" >&5
8936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
8937if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
8939else
8940 if test -n "$AR_FOR_TARGET"; then
8941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8942else
1c710c3c
DJ
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 8949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
8950 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8953 fi
8954done
8955done
8956
e8b05380
PB
8957fi
8958fi
1c710c3c 8959AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 8960if test -n "$AR_FOR_TARGET"; then
2aeb72e9
DD
8961 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8962echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 8963else
2aeb72e9
DD
8964 echo "$as_me:$LINENO: result: no" >&5
8965echo "${ECHO_T}no" >&6
e8b05380 8966fi
1c710c3c 8967
e8b05380
PB
8968 fi
8969 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
8970 done
8971fi
1c710c3c 8972
e8b05380
PB
8973if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
8974 set dummy ar
8975 if test $build = $target ; then
8976 AR_FOR_TARGET="$2"
8977 else
8978 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 8979 fi
1c00b503
PB
8980else
8981 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
8982fi
8983
d1f8db0c
PB
8984else
8985 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
8986fi
8987
8988
8989
8990
8991if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
8992 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
8993 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
8994echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8995 if test -x $with_build_time_tools/as; then
8996 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
8997 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2aeb72e9
DD
8998 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
8999echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 9000 else
2aeb72e9
DD
9001 echo "$as_me:$LINENO: result: no" >&5
9002echo "${ECHO_T}no" >&6
d1f8db0c 9003 fi
e8b05380
PB
9004 elif test $build != $host && test $have_gcc_for_target = yes; then
9005 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
9006 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9007 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
9008 fi
9009fi
3e19841a 9010if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9011 # Extract the first word of "as", so it can be a program name with args.
9012set dummy as; ac_word=$2
2aeb72e9
DD
9013echo "$as_me:$LINENO: checking for $ac_word" >&5
9014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9015if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9017else
1c710c3c
DJ
9018 case $AS_FOR_TARGET in
9019 [\\/]* | ?:[\\/]*)
e8b05380
PB
9020 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9021 ;;
e8b05380 9022 *)
1c710c3c
DJ
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $gcc_cv_tool_dirs
9025do
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9030 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9033 fi
9034done
9035done
9036
e8b05380
PB
9037 ;;
9038esac
9039fi
1c710c3c 9040AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2aeb72e9 9041
e8b05380 9042if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9043 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9044echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9045else
2aeb72e9
DD
9046 echo "$as_me:$LINENO: result: no" >&5
9047echo "${ECHO_T}no" >&6
e8b05380
PB
9048fi
9049
9050fi
9051if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
9052
9053
9054if test -n "$AS_FOR_TARGET"; then
9055 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9056elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9057 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9058fi
9059
9060if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9061 for ncn_progname in as; do
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9064echo "$as_me:$LINENO: checking for $ac_word" >&5
9065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9066if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068else
9069 if test -n "$AS_FOR_TARGET"; then
9070 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9071else
9072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073for as_dir in $PATH
9074do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9079 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083done
9084done
9085
9086fi
9087fi
9088AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9089if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9090 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9091echo "${ECHO_T}$AS_FOR_TARGET" >&6
278a7a38 9092else
2aeb72e9
DD
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
278a7a38
AO
9095fi
9096
9097 done
9098fi
9099
9100if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9101 for ncn_progname in as; do
2aeb72e9
DD
9102 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9103echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9104 if test -x $with_build_time_tools/${ncn_progname}; then
9105 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9106 echo "$as_me:$LINENO: result: yes" >&5
9107echo "${ECHO_T}yes" >&6
e8b05380
PB
9108 break
9109 else
2aeb72e9
DD
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
e8b05380
PB
9112 fi
9113 done
9114fi
9115
9116if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9117 for ncn_progname in as; do
9118 if test -n "$ncn_target_tool_prefix"; then
9119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9121echo "$as_me:$LINENO: checking for $ac_word" >&5
9122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9123if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
9125else
9126 if test -n "$AS_FOR_TARGET"; then
9127 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9128else
1c710c3c
DJ
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9136 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141done
9142
e8b05380
PB
9143fi
9144fi
1c710c3c 9145AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9146if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9147 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9148echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 9149else
2aeb72e9
DD
9150 echo "$as_me:$LINENO: result: no" >&5
9151echo "${ECHO_T}no" >&6
e8b05380
PB
9152fi
9153
9154 fi
9155 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9157set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9158echo "$as_me:$LINENO: checking for $ac_word" >&5
9159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9160if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9162else
e8b05380
PB
9163 if test -n "$AS_FOR_TARGET"; then
9164 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 9165else
1c710c3c
DJ
9166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167for as_dir in $PATH
9168do
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9173 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9176 fi
9177done
9178done
9179
4de997d1
PB
9180fi
9181fi
1c710c3c 9182AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 9183if test -n "$AS_FOR_TARGET"; then
2aeb72e9
DD
9184 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9185echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 9186else
2aeb72e9
DD
9187 echo "$as_me:$LINENO: result: no" >&5
9188echo "${ECHO_T}no" >&6
4de997d1 9189fi
1c710c3c 9190
e8b05380
PB
9191 fi
9192 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9193 done
9194fi
1c710c3c 9195
e8b05380
PB
9196if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9197 set dummy as
9198 if test $build = $target ; then
9199 AS_FOR_TARGET="$2"
9200 else
9201 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9202 fi
1c00b503
PB
9203else
9204 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 9205fi
2693c0b0 9206
d1f8db0c
PB
9207else
9208 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
9209fi
9210
e8b05380
PB
9211
9212
9213
9214if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9215 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9216 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9217echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9218 if test -x $with_build_time_tools/dlltool; then
9219 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9220 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2aeb72e9
DD
9221 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9222echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 9223 else
2aeb72e9
DD
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
d1f8db0c 9226 fi
e8b05380
PB
9227 elif test $build != $host && test $have_gcc_for_target = yes; then
9228 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
9229 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9230 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
9231 fi
9232fi
3e19841a 9233if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9234 # Extract the first word of "dlltool", so it can be a program name with args.
9235set dummy dlltool; ac_word=$2
2aeb72e9
DD
9236echo "$as_me:$LINENO: checking for $ac_word" >&5
9237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9238if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9240else
1c710c3c
DJ
9241 case $DLLTOOL_FOR_TARGET in
9242 [\\/]* | ?:[\\/]*)
e8b05380
PB
9243 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9244 ;;
e8b05380 9245 *)
1c710c3c
DJ
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $gcc_cv_tool_dirs
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9253 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257done
9258done
9259
e8b05380
PB
9260 ;;
9261esac
4de997d1 9262fi
1c710c3c 9263DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2aeb72e9 9264
e8b05380 9265if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9266 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9267echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9268else
2aeb72e9
DD
9269 echo "$as_me:$LINENO: result: no" >&5
9270echo "${ECHO_T}no" >&6
4de997d1
PB
9271fi
9272
e8b05380
PB
9273fi
9274if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
9275
9276
9277if test -n "$DLLTOOL_FOR_TARGET"; then
9278 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9279elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9280 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9281fi
9282
9283if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9284 for ncn_progname in dlltool; do
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9287echo "$as_me:$LINENO: checking for $ac_word" >&5
9288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9289if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292 if test -n "$DLLTOOL_FOR_TARGET"; then
9293 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9294else
9295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296for as_dir in $PATH
9297do
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9302 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306done
9307done
9308
9309fi
9310fi
9311DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9312if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9313 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9314echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
278a7a38 9315else
2aeb72e9
DD
9316 echo "$as_me:$LINENO: result: no" >&5
9317echo "${ECHO_T}no" >&6
278a7a38
AO
9318fi
9319
9320 done
9321fi
9322
9323if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9324 for ncn_progname in dlltool; do
2aeb72e9
DD
9325 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9326echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9327 if test -x $with_build_time_tools/${ncn_progname}; then
9328 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9329 echo "$as_me:$LINENO: result: yes" >&5
9330echo "${ECHO_T}yes" >&6
e8b05380
PB
9331 break
9332 else
2aeb72e9
DD
9333 echo "$as_me:$LINENO: result: no" >&5
9334echo "${ECHO_T}no" >&6
e8b05380
PB
9335 fi
9336 done
9337fi
9338
9339if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9340 for ncn_progname in dlltool; do
9341 if test -n "$ncn_target_tool_prefix"; then
9342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9343set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9344echo "$as_me:$LINENO: checking for $ac_word" >&5
9345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9348else
e8b05380
PB
9349 if test -n "$DLLTOOL_FOR_TARGET"; then
9350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9351else
1c710c3c
DJ
9352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353for as_dir in $PATH
9354do
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9362 fi
9363done
9364done
9365
4de997d1
PB
9366fi
9367fi
1c710c3c 9368DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9369if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9370 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9371echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9372else
2aeb72e9
DD
9373 echo "$as_me:$LINENO: result: no" >&5
9374echo "${ECHO_T}no" >&6
4de997d1 9375fi
4de997d1 9376
e8b05380
PB
9377 fi
9378 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9381echo "$as_me:$LINENO: checking for $ac_word" >&5
9382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9383if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9385else
e8b05380
PB
9386 if test -n "$DLLTOOL_FOR_TARGET"; then
9387 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 9388else
1c710c3c
DJ
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9396 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400done
9401done
9402
4de997d1
PB
9403fi
9404fi
1c710c3c 9405DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 9406if test -n "$DLLTOOL_FOR_TARGET"; then
2aeb72e9
DD
9407 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9408echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 9409else
2aeb72e9
DD
9410 echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
4de997d1 9412fi
1c710c3c 9413
e8b05380
PB
9414 fi
9415 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9416 done
9417fi
1c710c3c 9418
e8b05380
PB
9419if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9420 set dummy dlltool
9421 if test $build = $target ; then
9422 DLLTOOL_FOR_TARGET="$2"
9423 else
9424 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9425 fi
1c00b503
PB
9426else
9427 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
9428fi
9429
d1f8db0c
PB
9430else
9431 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
9432fi
9433
4de997d1 9434
e8b05380
PB
9435
9436
9437if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9438 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9439 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9440echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9441 if test -x $with_build_time_tools/ld; then
9442 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9443 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2aeb72e9
DD
9444 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9445echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 9446 else
2aeb72e9
DD
9447 echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
d1f8db0c 9449 fi
e8b05380
PB
9450 elif test $build != $host && test $have_gcc_for_target = yes; then
9451 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
9452 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9453 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 9454 fi
e8b05380 9455fi
3e19841a 9456if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9457 # Extract the first word of "ld", so it can be a program name with args.
9458set dummy ld; ac_word=$2
2aeb72e9
DD
9459echo "$as_me:$LINENO: checking for $ac_word" >&5
9460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9461if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 9463else
1c710c3c
DJ
9464 case $LD_FOR_TARGET in
9465 [\\/]* | ?:[\\/]*)
e8b05380
PB
9466 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9467 ;;
e8b05380 9468 *)
1c710c3c
DJ
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $gcc_cv_tool_dirs
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9476 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9479 fi
9480done
9481done
9482
e8b05380
PB
9483 ;;
9484esac
4de997d1 9485fi
1c710c3c 9486LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2aeb72e9 9487
e8b05380 9488if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9489 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9490echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 9491else
2aeb72e9
DD
9492 echo "$as_me:$LINENO: result: no" >&5
9493echo "${ECHO_T}no" >&6
4de997d1 9494fi
2693c0b0 9495
e8b05380
PB
9496fi
9497if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
9498
9499
9500if test -n "$LD_FOR_TARGET"; then
9501 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9502elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9503 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9504fi
9505
9506if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9507 for ncn_progname in ld; do
9508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9509set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9510echo "$as_me:$LINENO: checking for $ac_word" >&5
9511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9512if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 if test -n "$LD_FOR_TARGET"; then
9516 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9517else
9518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519for as_dir in $PATH
9520do
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9525 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9528 fi
9529done
9530done
9531
9532fi
9533fi
9534LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9535if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9536 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9537echo "${ECHO_T}$LD_FOR_TARGET" >&6
278a7a38 9538else
2aeb72e9
DD
9539 echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
278a7a38
AO
9541fi
9542
9543 done
9544fi
9545
9546if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9547 for ncn_progname in ld; do
2aeb72e9
DD
9548 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9549echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9550 if test -x $with_build_time_tools/${ncn_progname}; then
9551 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9552 echo "$as_me:$LINENO: result: yes" >&5
9553echo "${ECHO_T}yes" >&6
e8b05380
PB
9554 break
9555 else
2aeb72e9
DD
9556 echo "$as_me:$LINENO: result: no" >&5
9557echo "${ECHO_T}no" >&6
e8b05380
PB
9558 fi
9559 done
ca9f4b81
AO
9560fi
9561
e8b05380
PB
9562if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9563 for ncn_progname in ld; do
9564 if test -n "$ncn_target_tool_prefix"; then
9565 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9566set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9567echo "$as_me:$LINENO: checking for $ac_word" >&5
9568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9569if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9571else
4de997d1
PB
9572 if test -n "$LD_FOR_TARGET"; then
9573 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9574else
1c710c3c
DJ
9575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576for as_dir in $PATH
9577do
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9582 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9585 fi
9586done
9587done
9588
ca9f4b81
AO
9589fi
9590fi
1c710c3c 9591LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 9592if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9593 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9594echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9595else
2aeb72e9
DD
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
ca9f4b81
AO
9598fi
9599
e8b05380
PB
9600 fi
9601 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9603set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9604echo "$as_me:$LINENO: checking for $ac_word" >&5
9605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9606if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 9608else
2693c0b0
PB
9609 if test -n "$LD_FOR_TARGET"; then
9610 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 9611else
1c710c3c
DJ
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9619 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9622 fi
9623done
9624done
9625
ca9f4b81
AO
9626fi
9627fi
1c710c3c 9628LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 9629if test -n "$LD_FOR_TARGET"; then
2aeb72e9
DD
9630 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9631echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 9632else
2aeb72e9
DD
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
ca9f4b81 9635fi
1c710c3c 9636
e8b05380
PB
9637 fi
9638 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9639 done
9640fi
1c710c3c 9641
2693c0b0
PB
9642if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9643 set dummy ld
9644 if test $build = $target ; then
9645 LD_FOR_TARGET="$2"
ca9f4b81 9646 else
2693c0b0 9647 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 9648 fi
1c00b503
PB
9649else
9650 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
9651fi
9652
d1f8db0c
PB
9653else
9654 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
9655fi
9656
9657
9658
9659
9660if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9661 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9662 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9663echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9664 if test -x $with_build_time_tools/lipo; then
9665 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9666 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2aeb72e9
DD
9667 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9668echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 9669 else
2aeb72e9
DD
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
d1f8db0c 9672 fi
e8b05380
PB
9673 elif test $build != $host && test $have_gcc_for_target = yes; then
9674 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
9675 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9676 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
9677 fi
9678fi
278a7a38
AO
9679if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9680 # Extract the first word of "lipo", so it can be a program name with args.
9681set dummy lipo; ac_word=$2
2aeb72e9
DD
9682echo "$as_me:$LINENO: checking for $ac_word" >&5
9683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9684if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686else
9687 case $LIPO_FOR_TARGET in
9688 [\\/]* | ?:[\\/]*)
9689 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9690 ;;
9691 *)
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693for as_dir in $gcc_cv_tool_dirs
9694do
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9699 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9702 fi
9703done
9704done
9705
9706 ;;
9707esac
9708fi
9709LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2aeb72e9 9710
278a7a38 9711if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9712 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9713echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
278a7a38 9714else
2aeb72e9
DD
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
278a7a38
AO
9717fi
9718
9719fi
9720if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9721
9722
9723if test -n "$LIPO_FOR_TARGET"; then
9724 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9725elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9726 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9727fi
9728
9729if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9730 for ncn_progname in lipo; do
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9732set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9733echo "$as_me:$LINENO: checking for $ac_word" >&5
9734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38 9735if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
1c710c3c 9736 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9737else
278a7a38
AO
9738 if test -n "$LIPO_FOR_TARGET"; then
9739 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
1c710c3c
DJ
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9748 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
1c710c3c
DJ
9749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9750 break 2
9751 fi
9752done
9753done
9754
e8b05380 9755fi
278a7a38
AO
9756fi
9757LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 9758if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9759 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9760echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 9761else
2aeb72e9
DD
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
e8b05380
PB
9764fi
9765
278a7a38 9766 done
e8b05380 9767fi
278a7a38
AO
9768
9769if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9770 for ncn_progname in lipo; do
2aeb72e9
DD
9771 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9772echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9773 if test -x $with_build_time_tools/${ncn_progname}; then
9774 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
e8b05380
PB
9777 break
9778 else
2aeb72e9
DD
9779 echo "$as_me:$LINENO: result: no" >&5
9780echo "${ECHO_T}no" >&6
e8b05380
PB
9781 fi
9782 done
9783fi
9784
9785if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9786 for ncn_progname in lipo; do
9787 if test -n "$ncn_target_tool_prefix"; then
9788 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9789set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
9790echo "$as_me:$LINENO: checking for $ac_word" >&5
9791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9792if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9794else
9795 if test -n "$LIPO_FOR_TARGET"; then
9796 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9797else
1c710c3c
DJ
9798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799for as_dir in $PATH
9800do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9805 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809done
9810done
9811
040b1c5a
GK
9812fi
9813fi
1c710c3c 9814LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9815if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9816 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9817echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9818else
2aeb72e9
DD
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
040b1c5a
GK
9821fi
9822
e8b05380
PB
9823 fi
9824 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 9826set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9827echo "$as_me:$LINENO: checking for $ac_word" >&5
9828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9829if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
9831else
9832 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
9833 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9834else
1c710c3c
DJ
9835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836for as_dir in $PATH
9837do
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9842 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9845 fi
9846done
9847done
9848
040b1c5a
GK
9849fi
9850fi
1c710c3c 9851LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 9852if test -n "$LIPO_FOR_TARGET"; then
2aeb72e9
DD
9853 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9854echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 9855else
2aeb72e9
DD
9856 echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6
040b1c5a 9858fi
1c710c3c 9859
e8b05380
PB
9860 fi
9861 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9862 done
9863fi
1c710c3c 9864
040b1c5a
GK
9865if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9866 set dummy lipo
9867 if test $build = $target ; then
9868 LIPO_FOR_TARGET="$2"
9869 else
9870 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9871 fi
1c00b503
PB
9872else
9873 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
9874fi
9875
d1f8db0c
PB
9876else
9877 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
9878fi
9879
9880
9881
9882
9883if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9884 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
9885 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9886echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9887 if test -x $with_build_time_tools/nm; then
9888 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9889 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2aeb72e9
DD
9890 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9891echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 9892 else
2aeb72e9
DD
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
d1f8db0c 9895 fi
e8b05380
PB
9896 elif test $build != $host && test $have_gcc_for_target = yes; then
9897 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
9898 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9899 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
9900 fi
9901fi
3e19841a 9902if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
9903 # Extract the first word of "nm", so it can be a program name with args.
9904set dummy nm; ac_word=$2
2aeb72e9
DD
9905echo "$as_me:$LINENO: checking for $ac_word" >&5
9906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
9907if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 9909else
1c710c3c
DJ
9910 case $NM_FOR_TARGET in
9911 [\\/]* | ?:[\\/]*)
e8b05380
PB
9912 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9913 ;;
e8b05380 9914 *)
1c710c3c
DJ
9915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $gcc_cv_tool_dirs
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
9922 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927done
9928
e8b05380
PB
9929 ;;
9930esac
9931fi
1c710c3c 9932NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2aeb72e9 9933
e8b05380 9934if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9935 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9936echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 9937else
2aeb72e9
DD
9938 echo "$as_me:$LINENO: result: no" >&5
9939echo "${ECHO_T}no" >&6
e8b05380
PB
9940fi
9941
9942fi
9943if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
9944
9945
9946if test -n "$NM_FOR_TARGET"; then
9947 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9948elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9949 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9950fi
9951
9952if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9953 for ncn_progname in nm; do
9954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9955set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
9956echo "$as_me:$LINENO: checking for $ac_word" >&5
9957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
9958if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960else
9961 if test -n "$NM_FOR_TARGET"; then
9962 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 9970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
9971 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
9972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9973 break 2
9974 fi
9975done
9976done
9977
9978fi
9979fi
9980NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9981if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
9982 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9983echo "${ECHO_T}$NM_FOR_TARGET" >&6
278a7a38 9984else
2aeb72e9
DD
9985 echo "$as_me:$LINENO: result: no" >&5
9986echo "${ECHO_T}no" >&6
278a7a38
AO
9987fi
9988
9989 done
9990fi
9991
9992if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9993 for ncn_progname in nm; do
2aeb72e9
DD
9994 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9995echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
9996 if test -x $with_build_time_tools/${ncn_progname}; then
9997 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
e8b05380
PB
10000 break
10001 else
2aeb72e9
DD
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
e8b05380
PB
10004 fi
10005 done
10006fi
10007
10008if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10009 for ncn_progname in nm; do
10010 if test -n "$ncn_target_tool_prefix"; then
10011 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10012set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10013echo "$as_me:$LINENO: checking for $ac_word" >&5
10014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10015if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10017else
4de997d1
PB
10018 if test -n "$NM_FOR_TARGET"; then
10019 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10020else
1c710c3c
DJ
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10028 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034
ca9f4b81
AO
10035fi
10036fi
1c710c3c 10037NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 10038if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10039 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10040echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10041else
2aeb72e9
DD
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
ca9f4b81
AO
10044fi
10045
e8b05380
PB
10046 fi
10047 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10049set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10050echo "$as_me:$LINENO: checking for $ac_word" >&5
10051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10052if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10054else
2693c0b0
PB
10055 if test -n "$NM_FOR_TARGET"; then
10056 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 10057else
1c710c3c
DJ
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10065 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070done
10071
ca9f4b81
AO
10072fi
10073fi
1c710c3c 10074NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 10075if test -n "$NM_FOR_TARGET"; then
2aeb72e9
DD
10076 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10077echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 10078else
2aeb72e9
DD
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
ca9f4b81 10081fi
1c710c3c 10082
e8b05380
PB
10083 fi
10084 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10085 done
10086fi
1c710c3c 10087
2693c0b0
PB
10088if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10089 set dummy nm
10090 if test $build = $target ; then
10091 NM_FOR_TARGET="$2"
ca9f4b81 10092 else
2693c0b0 10093 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10094 fi
1c00b503
PB
10095else
10096 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
10097fi
10098
d1f8db0c
PB
10099else
10100 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
10101fi
10102
10103
10104
10105
10106if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10107 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10108 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10109echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10110 if test -x $with_build_time_tools/objdump; then
10111 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10112 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2aeb72e9
DD
10113 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10114echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 10115 else
2aeb72e9
DD
10116 echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
d1f8db0c 10118 fi
e8b05380
PB
10119 elif test $build != $host && test $have_gcc_for_target = yes; then
10120 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
10121 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10122 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
10123 fi
10124fi
3e19841a 10125if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10126 # Extract the first word of "objdump", so it can be a program name with args.
10127set dummy objdump; ac_word=$2
2aeb72e9
DD
10128echo "$as_me:$LINENO: checking for $ac_word" >&5
10129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10130if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10132else
1c710c3c
DJ
10133 case $OBJDUMP_FOR_TARGET in
10134 [\\/]* | ?:[\\/]*)
e8b05380
PB
10135 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10136 ;;
e8b05380 10137 *)
1c710c3c
DJ
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $gcc_cv_tool_dirs
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10145 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149done
10150done
10151
e8b05380
PB
10152 ;;
10153esac
10154fi
1c710c3c 10155OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2aeb72e9 10156
e8b05380 10157if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10158 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10159echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 10160else
2aeb72e9
DD
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
e8b05380
PB
10163fi
10164
10165fi
10166if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
10167
10168
10169if test -n "$OBJDUMP_FOR_TARGET"; then
10170 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10171elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10172 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10173fi
10174
10175if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10176 for ncn_progname in objdump; do
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10178set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10181if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 if test -n "$OBJDUMP_FOR_TARGET"; then
10185 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10194 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
10201fi
10202fi
10203OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10204if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10205 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10206echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
278a7a38 10207else
2aeb72e9
DD
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
278a7a38
AO
10210fi
10211
10212 done
10213fi
10214
10215if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10216 for ncn_progname in objdump; do
2aeb72e9
DD
10217 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10218echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10219 if test -x $with_build_time_tools/${ncn_progname}; then
10220 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10221 echo "$as_me:$LINENO: result: yes" >&5
10222echo "${ECHO_T}yes" >&6
e8b05380
PB
10223 break
10224 else
2aeb72e9
DD
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
e8b05380
PB
10227 fi
10228 done
10229fi
10230
10231if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10232 for ncn_progname in objdump; do
10233 if test -n "$ncn_target_tool_prefix"; then
10234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10235set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10236echo "$as_me:$LINENO: checking for $ac_word" >&5
10237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10238if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10240else
10241 if test -n "$OBJDUMP_FOR_TARGET"; then
10242 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10243else
1c710c3c
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10251 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256done
10257
d739199a
DJ
10258fi
10259fi
1c710c3c 10260OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10261if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10262 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10263echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10264else
2aeb72e9
DD
10265 echo "$as_me:$LINENO: result: no" >&5
10266echo "${ECHO_T}no" >&6
d739199a
DJ
10267fi
10268
e8b05380
PB
10269 fi
10270 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 10272set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10273echo "$as_me:$LINENO: checking for $ac_word" >&5
10274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10275if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
10277else
10278 if test -n "$OBJDUMP_FOR_TARGET"; then
10279 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10280else
1c710c3c
DJ
10281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282for as_dir in $PATH
10283do
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10288 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10291 fi
10292done
10293done
10294
d739199a
DJ
10295fi
10296fi
1c710c3c 10297OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 10298if test -n "$OBJDUMP_FOR_TARGET"; then
2aeb72e9
DD
10299 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10300echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 10301else
2aeb72e9
DD
10302 echo "$as_me:$LINENO: result: no" >&5
10303echo "${ECHO_T}no" >&6
d739199a 10304fi
1c710c3c 10305
e8b05380
PB
10306 fi
10307 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10308 done
10309fi
1c710c3c 10310
d739199a
DJ
10311if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10312 set dummy objdump
10313 if test $build = $target ; then
10314 OBJDUMP_FOR_TARGET="$2"
10315 else
10316 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10317 fi
1c00b503
PB
10318else
10319 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
10320fi
10321
d1f8db0c
PB
10322else
10323 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
10324fi
10325
10326
10327
10328
10329if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10330 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10331 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10332echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10333 if test -x $with_build_time_tools/ranlib; then
10334 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10335 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2aeb72e9
DD
10336 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10337echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 10338 else
2aeb72e9
DD
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
d1f8db0c 10341 fi
e8b05380
PB
10342 elif test $build != $host && test $have_gcc_for_target = yes; then
10343 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
10344 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10345 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
10346 fi
10347fi
3e19841a 10348if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10349 # Extract the first word of "ranlib", so it can be a program name with args.
10350set dummy ranlib; ac_word=$2
2aeb72e9
DD
10351echo "$as_me:$LINENO: checking for $ac_word" >&5
10352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10353if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10355else
1c710c3c
DJ
10356 case $RANLIB_FOR_TARGET in
10357 [\\/]* | ?:[\\/]*)
e8b05380
PB
10358 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10359 ;;
e8b05380 10360 *)
1c710c3c
DJ
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $gcc_cv_tool_dirs
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10368 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10371 fi
10372done
10373done
10374
e8b05380
PB
10375 ;;
10376esac
10377fi
1c710c3c 10378RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2aeb72e9 10379
e8b05380 10380if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10381 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10382echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 10383else
2aeb72e9
DD
10384 echo "$as_me:$LINENO: result: no" >&5
10385echo "${ECHO_T}no" >&6
e8b05380
PB
10386fi
10387
10388fi
10389if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
10390
10391
10392if test -n "$RANLIB_FOR_TARGET"; then
10393 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10394elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10395 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10396fi
10397
10398if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10399 for ncn_progname in ranlib; do
10400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10401set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10402echo "$as_me:$LINENO: checking for $ac_word" >&5
10403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10404if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406else
10407 if test -n "$RANLIB_FOR_TARGET"; then
10408 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10409else
10410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411for as_dir in $PATH
10412do
10413 IFS=$as_save_IFS
10414 test -z "$as_dir" && as_dir=.
10415 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10417 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 break 2
10420 fi
10421done
10422done
10423
10424fi
10425fi
10426RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10427if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10428 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10429echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
278a7a38 10430else
2aeb72e9
DD
10431 echo "$as_me:$LINENO: result: no" >&5
10432echo "${ECHO_T}no" >&6
278a7a38
AO
10433fi
10434
10435 done
10436fi
10437
10438if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10439 for ncn_progname in ranlib; do
2aeb72e9
DD
10440 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10441echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10442 if test -x $with_build_time_tools/${ncn_progname}; then
10443 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10444 echo "$as_me:$LINENO: result: yes" >&5
10445echo "${ECHO_T}yes" >&6
e8b05380
PB
10446 break
10447 else
2aeb72e9
DD
10448 echo "$as_me:$LINENO: result: no" >&5
10449echo "${ECHO_T}no" >&6
e8b05380
PB
10450 fi
10451 done
10452fi
10453
10454if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10455 for ncn_progname in ranlib; do
10456 if test -n "$ncn_target_tool_prefix"; then
10457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 10458set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10459echo "$as_me:$LINENO: checking for $ac_word" >&5
10460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10461if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10463else
4de997d1
PB
10464 if test -n "$RANLIB_FOR_TARGET"; then
10465 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10466else
1c710c3c
DJ
10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468for as_dir in $PATH
10469do
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10474 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10477 fi
10478done
10479done
10480
ca9f4b81
AO
10481fi
10482fi
1c710c3c 10483RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 10484if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10485 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10486echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10487else
2aeb72e9
DD
10488 echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6
ca9f4b81
AO
10490fi
10491
e8b05380
PB
10492 fi
10493 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10495set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10496echo "$as_me:$LINENO: checking for $ac_word" >&5
10497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10498if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10500else
2693c0b0
PB
10501 if test -n "$RANLIB_FOR_TARGET"; then
10502 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 10503else
1c710c3c
DJ
10504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10511 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515done
10516done
10517
ca9f4b81
AO
10518fi
10519fi
1c710c3c 10520RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 10521if test -n "$RANLIB_FOR_TARGET"; then
2aeb72e9
DD
10522 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10523echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 10524else
2aeb72e9
DD
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
ca9f4b81 10527fi
1c710c3c 10528
e8b05380
PB
10529 fi
10530 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10531 done
10532fi
1c710c3c 10533
e8b05380
PB
10534if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10535 set dummy ranlib
10536 if test $build = $target ; then
10537 RANLIB_FOR_TARGET="$2"
10538 else
10539 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10540 fi
1c00b503
PB
10541else
10542 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 10543fi
2693c0b0 10544
d1f8db0c
PB
10545else
10546 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
10547fi
10548
e8b05380
PB
10549
10550
10551
10552if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10553 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10554 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10555echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10556 if test -x $with_build_time_tools/strip; then
10557 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10558 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2aeb72e9
DD
10559 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10560echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 10561 else
2aeb72e9
DD
10562 echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6
d1f8db0c 10564 fi
e8b05380
PB
10565 elif test $build != $host && test $have_gcc_for_target = yes; then
10566 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
10567 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10568 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
10569 fi
10570fi
3e19841a 10571if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10572 # Extract the first word of "strip", so it can be a program name with args.
10573set dummy strip; ac_word=$2
2aeb72e9
DD
10574echo "$as_me:$LINENO: checking for $ac_word" >&5
10575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10576if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10578else
1c710c3c
DJ
10579 case $STRIP_FOR_TARGET in
10580 [\\/]* | ?:[\\/]*)
e8b05380
PB
10581 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10582 ;;
e8b05380 10583 *)
1c710c3c
DJ
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585for as_dir in $gcc_cv_tool_dirs
10586do
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10591 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10594 fi
10595done
10596done
10597
e8b05380
PB
10598 ;;
10599esac
10600fi
1c710c3c 10601STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2aeb72e9 10602
e8b05380 10603if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10604 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10605echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 10606else
2aeb72e9
DD
10607 echo "$as_me:$LINENO: result: no" >&5
10608echo "${ECHO_T}no" >&6
e8b05380
PB
10609fi
10610
10611fi
10612if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
10613
10614
10615if test -n "$STRIP_FOR_TARGET"; then
10616 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10617elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10618 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10619fi
10620
10621if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10622 for ncn_progname in strip; do
10623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10624set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10625echo "$as_me:$LINENO: checking for $ac_word" >&5
10626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10627if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630 if test -n "$STRIP_FOR_TARGET"; then
10631 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10632else
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10640 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644done
10645done
10646
10647fi
10648fi
10649STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10650if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10651 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10652echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
278a7a38 10653else
2aeb72e9
DD
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
278a7a38
AO
10656fi
10657
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10662 for ncn_progname in strip; do
2aeb72e9
DD
10663 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10664echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10665 if test -x $with_build_time_tools/${ncn_progname}; then
10666 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10667 echo "$as_me:$LINENO: result: yes" >&5
10668echo "${ECHO_T}yes" >&6
e8b05380
PB
10669 break
10670 else
2aeb72e9
DD
10671 echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6
e8b05380
PB
10673 fi
10674 done
10675fi
10676
10677if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10678 for ncn_progname in strip; do
10679 if test -n "$ncn_target_tool_prefix"; then
10680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 10681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10682echo "$as_me:$LINENO: checking for $ac_word" >&5
10683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10684if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
af71363e
AS
10686else
10687 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
10688 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10689else
10690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693 IFS=$as_save_IFS
10694 test -z "$as_dir" && as_dir=.
10695 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10697 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 break 2
10700 fi
10701done
10702done
10703
040b1c5a
GK
10704fi
10705fi
1c710c3c 10706STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10707if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10708 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10709echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10710else
2aeb72e9
DD
10711 echo "$as_me:$LINENO: result: no" >&5
10712echo "${ECHO_T}no" >&6
040b1c5a
GK
10713fi
10714
e8b05380
PB
10715 fi
10716 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 10718set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10719echo "$as_me:$LINENO: checking for $ac_word" >&5
10720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10721if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
10723else
10724 if test -n "$STRIP_FOR_TARGET"; then
10725 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10726else
1c710c3c
DJ
10727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10734 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10737 fi
10738done
10739done
10740
040b1c5a
GK
10741fi
10742fi
1c710c3c 10743STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 10744if test -n "$STRIP_FOR_TARGET"; then
2aeb72e9
DD
10745 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10746echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 10747else
2aeb72e9
DD
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
040b1c5a 10750fi
1c710c3c 10751
e8b05380
PB
10752 fi
10753 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10754 done
10755fi
1c710c3c 10756
040b1c5a
GK
10757if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10758 set dummy strip
10759 if test $build = $target ; then
10760 STRIP_FOR_TARGET="$2"
10761 else
10762 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10763 fi
1c00b503
PB
10764else
10765 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
10766fi
10767
d1f8db0c
PB
10768else
10769 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
10770fi
10771
10772
10773
10774
10775if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10776 if test -n "$with_build_time_tools"; then
2aeb72e9
DD
10777 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10778echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10779 if test -x $with_build_time_tools/windres; then
10780 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10781 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2aeb72e9
DD
10782 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10783echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 10784 else
2aeb72e9
DD
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
d1f8db0c 10787 fi
e8b05380
PB
10788 elif test $build != $host && test $have_gcc_for_target = yes; then
10789 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
10790 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10791 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
10792 fi
10793fi
3e19841a 10794if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10795 # Extract the first word of "windres", so it can be a program name with args.
10796set dummy windres; ac_word=$2
2aeb72e9
DD
10797echo "$as_me:$LINENO: checking for $ac_word" >&5
10798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10799if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 10801else
1c710c3c
DJ
10802 case $WINDRES_FOR_TARGET in
10803 [\\/]* | ?:[\\/]*)
e8b05380
PB
10804 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10805 ;;
e8b05380 10806 *)
1c710c3c
DJ
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $gcc_cv_tool_dirs
10809do
10810 IFS=$as_save_IFS
10811 test -z "$as_dir" && as_dir=.
10812 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10814 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 break 2
10817 fi
10818done
10819done
10820
e8b05380
PB
10821 ;;
10822esac
10823fi
1c710c3c 10824WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2aeb72e9 10825
e8b05380 10826if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10827 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10828echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 10829else
2aeb72e9
DD
10830 echo "$as_me:$LINENO: result: no" >&5
10831echo "${ECHO_T}no" >&6
e8b05380
PB
10832fi
10833
10834fi
10835if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
10836
10837
10838if test -n "$WINDRES_FOR_TARGET"; then
10839 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10840elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10841 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10842fi
10843
10844if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10845 for ncn_progname in windres; do
10846 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10847set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10848echo "$as_me:$LINENO: checking for $ac_word" >&5
10849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
278a7a38
AO
10850if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 if test -n "$WINDRES_FOR_TARGET"; then
10854 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10855else
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
10861 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38
AO
10863 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867done
10868done
10869
10870fi
10871fi
10872WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10873if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10874 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10875echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
278a7a38 10876else
2aeb72e9
DD
10877 echo "$as_me:$LINENO: result: no" >&5
10878echo "${ECHO_T}no" >&6
278a7a38
AO
10879fi
10880
10881 done
10882fi
10883
10884if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10885 for ncn_progname in windres; do
2aeb72e9
DD
10886 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10887echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
10888 if test -x $with_build_time_tools/${ncn_progname}; then
10889 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
2aeb72e9
DD
10890 echo "$as_me:$LINENO: result: yes" >&5
10891echo "${ECHO_T}yes" >&6
e8b05380
PB
10892 break
10893 else
2aeb72e9
DD
10894 echo "$as_me:$LINENO: result: no" >&5
10895echo "${ECHO_T}no" >&6
e8b05380
PB
10896 fi
10897 done
10898fi
10899
10900if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10901 for ncn_progname in windres; do
10902 if test -n "$ncn_target_tool_prefix"; then
10903 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10904set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
2aeb72e9
DD
10905echo "$as_me:$LINENO: checking for $ac_word" >&5
10906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10907if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10909else
4de997d1
PB
10910 if test -n "$WINDRES_FOR_TARGET"; then
10911 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10912else
1c710c3c
DJ
10913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10920 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 break 2
10923 fi
10924done
10925done
10926
ca9f4b81
AO
10927fi
10928fi
1c710c3c 10929WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 10930if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10931 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10932echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10933else
2aeb72e9
DD
10934 echo "$as_me:$LINENO: result: no" >&5
10935echo "${ECHO_T}no" >&6
ca9f4b81
AO
10936fi
10937
e8b05380
PB
10938 fi
10939 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10941set dummy ${ncn_progname}; ac_word=$2
2aeb72e9
DD
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1c710c3c
DJ
10944if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 10946else
2693c0b0
PB
10947 if test -n "$WINDRES_FOR_TARGET"; then
10948 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 10949else
1c710c3c
DJ
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
2aeb72e9 10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
10957 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10962done
10963
ca9f4b81
AO
10964fi
10965fi
1c710c3c 10966WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 10967if test -n "$WINDRES_FOR_TARGET"; then
2aeb72e9
DD
10968 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10969echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 10970else
2aeb72e9
DD
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
ca9f4b81 10973fi
1c710c3c 10974
e8b05380
PB
10975 fi
10976 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
10977 done
10978fi
1c710c3c 10979
2693c0b0
PB
10980if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
10981 set dummy windres
10982 if test $build = $target ; then
10983 WINDRES_FOR_TARGET="$2"
ca9f4b81 10984 else
2693c0b0 10985 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 10986 fi
1c00b503
PB
10987else
10988 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
10989fi
10990
d1f8db0c
PB
10991else
10992 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
10993fi
10994
4977bab6 10995
901119ae
KT
10996
10997
10998if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
10999 if test -n "$with_build_time_tools"; then
11000 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11001echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11002 if test -x $with_build_time_tools/windmc; then
11003 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11004 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11005 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11006echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11007 else
11008 echo "$as_me:$LINENO: result: no" >&5
11009echo "${ECHO_T}no" >&6
11010 fi
11011 elif test $build != $host && test $have_gcc_for_target = yes; then
11012 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
11013 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11014 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
11015 fi
11016fi
11017if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11018 # Extract the first word of "windmc", so it can be a program name with args.
11019set dummy windmc; ac_word=$2
11020echo "$as_me:$LINENO: checking for $ac_word" >&5
11021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11022if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11024else
11025 case $WINDMC_FOR_TARGET in
11026 [\\/]* | ?:[\\/]*)
11027 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11028 ;;
11029 *)
11030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $gcc_cv_tool_dirs
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11037 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11039 break 2
11040 fi
11041done
11042done
11043
11044 ;;
11045esac
11046fi
11047WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11048
11049if test -n "$WINDMC_FOR_TARGET"; then
11050 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11051echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11052else
11053 echo "$as_me:$LINENO: result: no" >&5
11054echo "${ECHO_T}no" >&6
11055fi
11056
11057fi
11058if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11059
11060
11061if test -n "$WINDMC_FOR_TARGET"; then
11062 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11063elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11064 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11065fi
11066
11067if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11068 for ncn_progname in windmc; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_progname}; ac_word=$2
11071echo "$as_me:$LINENO: checking for $ac_word" >&5
11072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11073if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075else
11076 if test -n "$WINDMC_FOR_TARGET"; then
11077 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091done
11092
11093fi
11094fi
11095WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11096if test -n "$WINDMC_FOR_TARGET"; then
11097 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11098echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11099else
11100 echo "$as_me:$LINENO: result: no" >&5
11101echo "${ECHO_T}no" >&6
11102fi
11103
11104 done
11105fi
11106
11107if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11108 for ncn_progname in windmc; do
11109 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11110echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11111 if test -x $with_build_time_tools/${ncn_progname}; then
11112 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
11115 break
11116 else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119 fi
11120 done
11121fi
11122
11123if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11124 for ncn_progname in windmc; do
11125 if test -n "$ncn_target_tool_prefix"; then
11126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11127set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11128echo "$as_me:$LINENO: checking for $ac_word" >&5
11129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11130if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 if test -n "$WINDMC_FOR_TARGET"; then
11134 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11135else
11136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11146 fi
11147done
11148done
11149
11150fi
11151fi
11152WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11153if test -n "$WINDMC_FOR_TARGET"; then
11154 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11155echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11156else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
11160
11161 fi
11162 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11164set dummy ${ncn_progname}; ac_word=$2
11165echo "$as_me:$LINENO: checking for $ac_word" >&5
11166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169else
11170 if test -n "$WINDMC_FOR_TARGET"; then
11171 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11172else
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184done
11185done
11186
11187fi
11188fi
11189WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11190if test -n "$WINDMC_FOR_TARGET"; then
11191 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11192echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11193else
11194 echo "$as_me:$LINENO: result: no" >&5
11195echo "${ECHO_T}no" >&6
11196fi
11197
11198 fi
11199 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11200 done
11201fi
11202
11203if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11204 set dummy windmc
11205 if test $build = $target ; then
11206 WINDMC_FOR_TARGET="$2"
11207 else
11208 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11209 fi
1c00b503
PB
11210else
11211 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
11212fi
11213
11214else
11215 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11216fi
11217
11218
2abefe3d
PB
11219RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11220
2aeb72e9
DD
11221echo "$as_me:$LINENO: checking where to find the target ar" >&5
11222echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 11223if test "x${build}" != "x${host}" ; then
e8b05380
PB
11224 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11225 # We already found the complete path
172e41aa 11226 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11227 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11228echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11229 else
11230 # Canadian cross, just use what we found
2aeb72e9
DD
11231 echo "$as_me:$LINENO: result: pre-installed" >&5
11232echo "${ECHO_T}pre-installed" >&6
e8b05380 11233 fi
2abefe3d
PB
11234else
11235 ok=yes
11236 case " ${configdirs} " in
11237 *" binutils "*) ;;
11238 *) ok=no ;;
11239 esac
1c710c3c 11240
2abefe3d
PB
11241 if test $ok = yes; then
11242 # An in-tree tool is available and we can use it
11243 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
2aeb72e9
DD
11244 echo "$as_me:$LINENO: result: just compiled" >&5
11245echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11246 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11247 # We already found the complete path
172e41aa 11248 ac_dir=`dirname $AR_FOR_TARGET`
2aeb72e9
DD
11249 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11250echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11251 elif test "x$target" = "x$host"; then
11252 # We can use an host tool
11253 AR_FOR_TARGET='$(AR)'
2aeb72e9
DD
11254 echo "$as_me:$LINENO: result: host tool" >&5
11255echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11256 else
11257 # We need a cross tool
2aeb72e9
DD
11258 echo "$as_me:$LINENO: result: pre-installed" >&5
11259echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11260 fi
11261fi
0b0dc272 11262
2aeb72e9
DD
11263echo "$as_me:$LINENO: checking where to find the target as" >&5
11264echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 11265if test "x${build}" != "x${host}" ; then
e8b05380
PB
11266 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11267 # We already found the complete path
172e41aa 11268 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11269 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11270echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11271 else
11272 # Canadian cross, just use what we found
2aeb72e9
DD
11273 echo "$as_me:$LINENO: result: pre-installed" >&5
11274echo "${ECHO_T}pre-installed" >&6
e8b05380 11275 fi
2abefe3d
PB
11276else
11277 ok=yes
11278 case " ${configdirs} " in
11279 *" gas "*) ;;
11280 *) ok=no ;;
11281 esac
1c710c3c 11282
2abefe3d
PB
11283 if test $ok = yes; then
11284 # An in-tree tool is available and we can use it
11285 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
2aeb72e9
DD
11286 echo "$as_me:$LINENO: result: just compiled" >&5
11287echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11288 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11289 # We already found the complete path
172e41aa 11290 ac_dir=`dirname $AS_FOR_TARGET`
2aeb72e9
DD
11291 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11292echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11293 elif test "x$target" = "x$host"; then
11294 # We can use an host tool
11295 AS_FOR_TARGET='$(AS)'
2aeb72e9
DD
11296 echo "$as_me:$LINENO: result: host tool" >&5
11297echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11298 else
11299 # We need a cross tool
2aeb72e9
DD
11300 echo "$as_me:$LINENO: result: pre-installed" >&5
11301echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11302 fi
11303fi
0b0dc272 11304
2aeb72e9
DD
11305echo "$as_me:$LINENO: checking where to find the target cc" >&5
11306echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 11307if test "x${build}" != "x${host}" ; then
e8b05380
PB
11308 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11309 # We already found the complete path
172e41aa 11310 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11311 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11312echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11313 else
11314 # Canadian cross, just use what we found
2aeb72e9
DD
11315 echo "$as_me:$LINENO: result: pre-installed" >&5
11316echo "${ECHO_T}pre-installed" >&6
e8b05380 11317 fi
2abefe3d
PB
11318else
11319 ok=yes
11320 case " ${configdirs} " in
11321 *" gcc "*) ;;
11322 *) ok=no ;;
11323 esac
1c710c3c 11324
2abefe3d
PB
11325 if test $ok = yes; then
11326 # An in-tree tool is available and we can use it
11327 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11328 echo "$as_me:$LINENO: result: just compiled" >&5
11329echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11330 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11331 # We already found the complete path
172e41aa 11332 ac_dir=`dirname $CC_FOR_TARGET`
2aeb72e9
DD
11333 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11334echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11335 elif test "x$target" = "x$host"; then
11336 # We can use an host tool
11337 CC_FOR_TARGET='$(CC)'
2aeb72e9
DD
11338 echo "$as_me:$LINENO: result: host tool" >&5
11339echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11340 else
11341 # We need a cross tool
2aeb72e9
DD
11342 echo "$as_me:$LINENO: result: pre-installed" >&5
11343echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11344 fi
11345fi
0b0dc272 11346
2aeb72e9
DD
11347echo "$as_me:$LINENO: checking where to find the target c++" >&5
11348echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 11349if test "x${build}" != "x${host}" ; then
e8b05380
PB
11350 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11351 # We already found the complete path
172e41aa 11352 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11353 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11354echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11355 else
11356 # Canadian cross, just use what we found
2aeb72e9
DD
11357 echo "$as_me:$LINENO: result: pre-installed" >&5
11358echo "${ECHO_T}pre-installed" >&6
e8b05380 11359 fi
2abefe3d
PB
11360else
11361 ok=yes
11362 case " ${configdirs} " in
11363 *" gcc "*) ;;
11364 *) ok=no ;;
11365 esac
11366 case ,${enable_languages}, in
11367 *,c++,*) ;;
11368 *) ok=no ;;
11369 esac
11370 if test $ok = yes; then
11371 # An in-tree tool is available and we can use it
11372 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
11373 echo "$as_me:$LINENO: result: just compiled" >&5
11374echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11375 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11376 # We already found the complete path
172e41aa 11377 ac_dir=`dirname $CXX_FOR_TARGET`
2aeb72e9
DD
11378 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11379echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11380 elif test "x$target" = "x$host"; then
11381 # We can use an host tool
11382 CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11383 echo "$as_me:$LINENO: result: host tool" >&5
11384echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11385 else
11386 # We need a cross tool
2aeb72e9
DD
11387 echo "$as_me:$LINENO: result: pre-installed" >&5
11388echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11389 fi
11390fi
0b0dc272 11391
2aeb72e9
DD
11392echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11393echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 11394if test "x${build}" != "x${host}" ; then
e8b05380
PB
11395 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11396 # We already found the complete path
172e41aa 11397 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11398 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11399echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11400 else
11401 # Canadian cross, just use what we found
2aeb72e9
DD
11402 echo "$as_me:$LINENO: result: pre-installed" >&5
11403echo "${ECHO_T}pre-installed" >&6
e8b05380 11404 fi
2abefe3d
PB
11405else
11406 ok=yes
11407 case " ${configdirs} " in
11408 *" gcc "*) ;;
11409 *) ok=no ;;
11410 esac
11411 case ,${enable_languages}, in
11412 *,c++,*) ;;
11413 *) ok=no ;;
11414 esac
11415 if test $ok = yes; then
11416 # An in-tree tool is available and we can use it
11417 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
11418 echo "$as_me:$LINENO: result: just compiled" >&5
11419echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11420 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11421 # We already found the complete path
172e41aa 11422 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
2aeb72e9
DD
11423 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11424echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11425 elif test "x$target" = "x$host"; then
11426 # We can use an host tool
11427 RAW_CXX_FOR_TARGET='$(CXX)'
2aeb72e9
DD
11428 echo "$as_me:$LINENO: result: host tool" >&5
11429echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11430 else
11431 # We need a cross tool
2aeb72e9
DD
11432 echo "$as_me:$LINENO: result: pre-installed" >&5
11433echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11434 fi
11435fi
0b0dc272 11436
2aeb72e9
DD
11437echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11438echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 11439if test "x${build}" != "x${host}" ; then
e8b05380
PB
11440 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11441 # We already found the complete path
172e41aa 11442 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11443 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11444echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11445 else
11446 # Canadian cross, just use what we found
2aeb72e9
DD
11447 echo "$as_me:$LINENO: result: pre-installed" >&5
11448echo "${ECHO_T}pre-installed" >&6
e8b05380 11449 fi
2abefe3d
PB
11450else
11451 ok=yes
11452 case " ${configdirs} " in
11453 *" binutils "*) ;;
11454 *) ok=no ;;
11455 esac
1c710c3c 11456
2abefe3d
PB
11457 if test $ok = yes; then
11458 # An in-tree tool is available and we can use it
11459 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
2aeb72e9
DD
11460 echo "$as_me:$LINENO: result: just compiled" >&5
11461echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11462 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11463 # We already found the complete path
172e41aa 11464 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
2aeb72e9
DD
11465 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11466echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11467 elif test "x$target" = "x$host"; then
11468 # We can use an host tool
11469 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
2aeb72e9
DD
11470 echo "$as_me:$LINENO: result: host tool" >&5
11471echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11472 else
11473 # We need a cross tool
2aeb72e9
DD
11474 echo "$as_me:$LINENO: result: pre-installed" >&5
11475echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11476 fi
11477fi
0b0dc272 11478
2aeb72e9
DD
11479echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11480echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 11481if test "x${build}" != "x${host}" ; then
e8b05380
PB
11482 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11483 # We already found the complete path
172e41aa 11484 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11485 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11486echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11487 else
11488 # Canadian cross, just use what we found
2aeb72e9
DD
11489 echo "$as_me:$LINENO: result: pre-installed" >&5
11490echo "${ECHO_T}pre-installed" >&6
e8b05380 11491 fi
2abefe3d
PB
11492else
11493 ok=yes
11494 case " ${configdirs} " in
11495 *" gcc "*) ;;
11496 *) ok=no ;;
11497 esac
1c710c3c 11498
2abefe3d
PB
11499 if test $ok = yes; then
11500 # An in-tree tool is available and we can use it
11501 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11502 echo "$as_me:$LINENO: result: just compiled" >&5
11503echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11504 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11505 # We already found the complete path
172e41aa 11506 ac_dir=`dirname $GCC_FOR_TARGET`
2aeb72e9
DD
11507 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11508echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11509 elif test "x$target" = "x$host"; then
11510 # We can use an host tool
11511 GCC_FOR_TARGET='$()'
2aeb72e9
DD
11512 echo "$as_me:$LINENO: result: host tool" >&5
11513echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11514 else
11515 # We need a cross tool
2aeb72e9
DD
11516 echo "$as_me:$LINENO: result: pre-installed" >&5
11517echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11518 fi
11519fi
0b0dc272 11520
2aeb72e9
DD
11521echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11522echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 11523if test "x${build}" != "x${host}" ; then
e8b05380
PB
11524 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11525 # We already found the complete path
172e41aa 11526 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11527 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11528echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11529 else
11530 # Canadian cross, just use what we found
2aeb72e9
DD
11531 echo "$as_me:$LINENO: result: pre-installed" >&5
11532echo "${ECHO_T}pre-installed" >&6
e8b05380 11533 fi
2abefe3d
PB
11534else
11535 ok=yes
11536 case " ${configdirs} " in
11537 *" gcc "*) ;;
11538 *) ok=no ;;
11539 esac
11540 case ,${enable_languages}, in
11541 *,java,*) ;;
11542 *) ok=no ;;
11543 esac
11544 if test $ok = yes; then
11545 # An in-tree tool is available and we can use it
11546 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11547 echo "$as_me:$LINENO: result: just compiled" >&5
11548echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11549 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11550 # We already found the complete path
172e41aa 11551 ac_dir=`dirname $GCJ_FOR_TARGET`
2aeb72e9
DD
11552 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11553echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11554 elif test "x$target" = "x$host"; then
11555 # We can use an host tool
11556 GCJ_FOR_TARGET='$(GCJ)'
2aeb72e9
DD
11557 echo "$as_me:$LINENO: result: host tool" >&5
11558echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11559 else
11560 # We need a cross tool
2aeb72e9
DD
11561 echo "$as_me:$LINENO: result: pre-installed" >&5
11562echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11563 fi
11564fi
0b0dc272 11565
2aeb72e9
DD
11566echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11567echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 11568if test "x${build}" != "x${host}" ; then
e8b05380
PB
11569 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11570 # We already found the complete path
172e41aa 11571 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11572 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11573echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11574 else
11575 # Canadian cross, just use what we found
2aeb72e9
DD
11576 echo "$as_me:$LINENO: result: pre-installed" >&5
11577echo "${ECHO_T}pre-installed" >&6
e8b05380 11578 fi
2abefe3d
PB
11579else
11580 ok=yes
11581 case " ${configdirs} " in
11582 *" gcc "*) ;;
11583 *) ok=no ;;
11584 esac
11585 case ,${enable_languages}, in
11586 *,fortran,*) ;;
11587 *) ok=no ;;
11588 esac
11589 if test $ok = yes; then
11590 # An in-tree tool is available and we can use it
11591 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
2aeb72e9
DD
11592 echo "$as_me:$LINENO: result: just compiled" >&5
11593echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11594 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11595 # We already found the complete path
172e41aa 11596 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
2aeb72e9
DD
11597 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11598echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11599 elif test "x$target" = "x$host"; then
11600 # We can use an host tool
11601 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
2aeb72e9
DD
11602 echo "$as_me:$LINENO: result: host tool" >&5
11603echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11604 else
11605 # We need a cross tool
2aeb72e9
DD
11606 echo "$as_me:$LINENO: result: pre-installed" >&5
11607echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11608 fi
11609fi
0b0dc272 11610
2aeb72e9
DD
11611echo "$as_me:$LINENO: checking where to find the target ld" >&5
11612echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 11613if test "x${build}" != "x${host}" ; then
e8b05380
PB
11614 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11615 # We already found the complete path
172e41aa 11616 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11617 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11618echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11619 else
11620 # Canadian cross, just use what we found
2aeb72e9
DD
11621 echo "$as_me:$LINENO: result: pre-installed" >&5
11622echo "${ECHO_T}pre-installed" >&6
e8b05380 11623 fi
2abefe3d
PB
11624else
11625 ok=yes
11626 case " ${configdirs} " in
11627 *" ld "*) ;;
11628 *) ok=no ;;
11629 esac
1c710c3c 11630
2abefe3d
PB
11631 if test $ok = yes; then
11632 # An in-tree tool is available and we can use it
11633 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
2aeb72e9
DD
11634 echo "$as_me:$LINENO: result: just compiled" >&5
11635echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11636 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11637 # We already found the complete path
172e41aa 11638 ac_dir=`dirname $LD_FOR_TARGET`
2aeb72e9
DD
11639 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11640echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11641 elif test "x$target" = "x$host"; then
11642 # We can use an host tool
11643 LD_FOR_TARGET='$(LD)'
2aeb72e9
DD
11644 echo "$as_me:$LINENO: result: host tool" >&5
11645echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11646 else
11647 # We need a cross tool
2aeb72e9
DD
11648 echo "$as_me:$LINENO: result: pre-installed" >&5
11649echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11650 fi
11651fi
0b0dc272 11652
2aeb72e9
DD
11653echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11654echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 11655if test "x${build}" != "x${host}" ; then
e8b05380
PB
11656 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11657 # We already found the complete path
172e41aa 11658 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11659 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11660echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11661 else
11662 # Canadian cross, just use what we found
2aeb72e9
DD
11663 echo "$as_me:$LINENO: result: pre-installed" >&5
11664echo "${ECHO_T}pre-installed" >&6
e8b05380 11665 fi
2abefe3d 11666else
e8b05380
PB
11667 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11668 # We already found the complete path
172e41aa 11669 ac_dir=`dirname $LIPO_FOR_TARGET`
2aeb72e9
DD
11670 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11671echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380 11672 elif test "x$target" = "x$host"; then
2abefe3d
PB
11673 # We can use an host tool
11674 LIPO_FOR_TARGET='$(LIPO)'
2aeb72e9
DD
11675 echo "$as_me:$LINENO: result: host tool" >&5
11676echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11677 else
11678 # We need a cross tool
2aeb72e9
DD
11679 echo "$as_me:$LINENO: result: pre-installed" >&5
11680echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11681 fi
11682fi
0b0dc272 11683
2aeb72e9
DD
11684echo "$as_me:$LINENO: checking where to find the target nm" >&5
11685echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 11686if test "x${build}" != "x${host}" ; then
e8b05380
PB
11687 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11688 # We already found the complete path
172e41aa 11689 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11690 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11691echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11692 else
11693 # Canadian cross, just use what we found
2aeb72e9
DD
11694 echo "$as_me:$LINENO: result: pre-installed" >&5
11695echo "${ECHO_T}pre-installed" >&6
e8b05380 11696 fi
2abefe3d
PB
11697else
11698 ok=yes
11699 case " ${configdirs} " in
11700 *" binutils "*) ;;
11701 *) ok=no ;;
11702 esac
1c710c3c 11703
2abefe3d
PB
11704 if test $ok = yes; then
11705 # An in-tree tool is available and we can use it
11706 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
2aeb72e9
DD
11707 echo "$as_me:$LINENO: result: just compiled" >&5
11708echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11709 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11710 # We already found the complete path
172e41aa 11711 ac_dir=`dirname $NM_FOR_TARGET`
2aeb72e9
DD
11712 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11713echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11714 elif test "x$target" = "x$host"; then
11715 # We can use an host tool
11716 NM_FOR_TARGET='$(NM)'
2aeb72e9
DD
11717 echo "$as_me:$LINENO: result: host tool" >&5
11718echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11719 else
11720 # We need a cross tool
2aeb72e9
DD
11721 echo "$as_me:$LINENO: result: pre-installed" >&5
11722echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11723 fi
11724fi
0b0dc272 11725
2aeb72e9
DD
11726echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11727echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 11728if test "x${build}" != "x${host}" ; then
e8b05380
PB
11729 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11730 # We already found the complete path
172e41aa 11731 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11732 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11733echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11734 else
11735 # Canadian cross, just use what we found
2aeb72e9
DD
11736 echo "$as_me:$LINENO: result: pre-installed" >&5
11737echo "${ECHO_T}pre-installed" >&6
e8b05380 11738 fi
2abefe3d
PB
11739else
11740 ok=yes
11741 case " ${configdirs} " in
11742 *" binutils "*) ;;
11743 *) ok=no ;;
11744 esac
1c710c3c 11745
2abefe3d
PB
11746 if test $ok = yes; then
11747 # An in-tree tool is available and we can use it
11748 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
2aeb72e9
DD
11749 echo "$as_me:$LINENO: result: just compiled" >&5
11750echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11751 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11752 # We already found the complete path
172e41aa 11753 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
2aeb72e9
DD
11754 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11755echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11756 elif test "x$target" = "x$host"; then
11757 # We can use an host tool
11758 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
2aeb72e9
DD
11759 echo "$as_me:$LINENO: result: host tool" >&5
11760echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11761 else
11762 # We need a cross tool
2aeb72e9
DD
11763 echo "$as_me:$LINENO: result: pre-installed" >&5
11764echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11765 fi
11766fi
0b0dc272 11767
2aeb72e9
DD
11768echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11769echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 11770if test "x${build}" != "x${host}" ; then
e8b05380
PB
11771 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11772 # We already found the complete path
172e41aa 11773 ac_dir=`dirname $RANLIB_FOR_TARGET`
2aeb72e9
DD
11774 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11775echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11776 else
11777 # Canadian cross, just use what we found
2aeb72e9
DD
11778 echo "$as_me:$LINENO: result: pre-installed" >&5
11779echo "${ECHO_T}pre-installed" >&6
e8b05380 11780 fi
2abefe3d
PB
11781else
11782 ok=yes
11783 case " ${configdirs} " in
11784 *" binutils "*) ;;
11785 *) ok=no ;;
11786 esac
1c710c3c 11787
2abefe3d
PB
11788 if test $ok = yes; then
11789 # An in-tree tool is available and we can use it
11790 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
2aeb72e9
DD
11791 echo "$as_me:$LINENO: result: just compiled" >&5
11792echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11793 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11794 # We already found the complete path
172e41aa 11795 ac_dir=`dirname $RANLIB_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 RANLIB_FOR_TARGET='$(RANLIB)'
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 strip" >&5
11811echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 11812if test "x${build}" != "x${host}" ; then
e8b05380
PB
11813 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11814 # We already found the complete path
172e41aa 11815 ac_dir=`dirname $STRIP_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 *" binutils "*) ;;
11827 *) ok=no ;;
11828 esac
1c710c3c 11829
2abefe3d
PB
11830 if test $ok = yes; then
11831 # An in-tree tool is available and we can use it
11832 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
2aeb72e9
DD
11833 echo "$as_me:$LINENO: result: just compiled" >&5
11834echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11835 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11836 # We already found the complete path
172e41aa 11837 ac_dir=`dirname $STRIP_FOR_TARGET`
2aeb72e9
DD
11838 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11839echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11840 elif test "x$target" = "x$host"; then
11841 # We can use an host tool
11842 STRIP_FOR_TARGET='$(STRIP)'
2aeb72e9
DD
11843 echo "$as_me:$LINENO: result: host tool" >&5
11844echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11845 else
11846 # We need a cross tool
2aeb72e9
DD
11847 echo "$as_me:$LINENO: result: pre-installed" >&5
11848echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
11849 fi
11850fi
0b0dc272 11851
2aeb72e9
DD
11852echo "$as_me:$LINENO: checking where to find the target windres" >&5
11853echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 11854if test "x${build}" != "x${host}" ; then
e8b05380
PB
11855 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11856 # We already found the complete path
172e41aa 11857 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11858 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11859echo "${ECHO_T}pre-installed in $ac_dir" >&6
e8b05380
PB
11860 else
11861 # Canadian cross, just use what we found
2aeb72e9
DD
11862 echo "$as_me:$LINENO: result: pre-installed" >&5
11863echo "${ECHO_T}pre-installed" >&6
e8b05380 11864 fi
2abefe3d
PB
11865else
11866 ok=yes
11867 case " ${configdirs} " in
11868 *" binutils "*) ;;
11869 *) ok=no ;;
11870 esac
1c710c3c 11871
2abefe3d
PB
11872 if test $ok = yes; then
11873 # An in-tree tool is available and we can use it
11874 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
2aeb72e9
DD
11875 echo "$as_me:$LINENO: result: just compiled" >&5
11876echo "${ECHO_T}just compiled" >&6
e8b05380
PB
11877 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11878 # We already found the complete path
172e41aa 11879 ac_dir=`dirname $WINDRES_FOR_TARGET`
2aeb72e9
DD
11880 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11881echo "${ECHO_T}pre-installed in $ac_dir" >&6
2abefe3d
PB
11882 elif test "x$target" = "x$host"; then
11883 # We can use an host tool
11884 WINDRES_FOR_TARGET='$(WINDRES)'
2aeb72e9
DD
11885 echo "$as_me:$LINENO: result: host tool" >&5
11886echo "${ECHO_T}host tool" >&6
2abefe3d
PB
11887 else
11888 # We need a cross tool
2aeb72e9
DD
11889 echo "$as_me:$LINENO: result: pre-installed" >&5
11890echo "${ECHO_T}pre-installed" >&6
2abefe3d 11891 fi
671aa708 11892fi
be912515 11893
901119ae
KT
11894echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11895echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11896if test "x${build}" != "x${host}" ; then
11897 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11898 # We already found the complete path
11899 ac_dir=`dirname $WINDMC_FOR_TARGET`
11900 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11901echo "${ECHO_T}pre-installed in $ac_dir" >&6
11902 else
11903 # Canadian cross, just use what we found
11904 echo "$as_me:$LINENO: result: pre-installed" >&5
11905echo "${ECHO_T}pre-installed" >&6
11906 fi
11907else
11908 ok=yes
11909 case " ${configdirs} " in
11910 *" binutils "*) ;;
11911 *) ok=no ;;
11912 esac
11913
11914 if test $ok = yes; then
11915 # An in-tree tool is available and we can use it
11916 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11917 echo "$as_me:$LINENO: result: just compiled" >&5
11918echo "${ECHO_T}just compiled" >&6
11919 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11920 # We already found the complete path
11921 ac_dir=`dirname $WINDMC_FOR_TARGET`
11922 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11923echo "${ECHO_T}pre-installed in $ac_dir" >&6
11924 elif test "x$target" = "x$host"; then
11925 # We can use an host tool
11926 WINDMC_FOR_TARGET='$(WINDMC)'
11927 echo "$as_me:$LINENO: result: host tool" >&5
11928echo "${ECHO_T}host tool" >&6
11929 else
11930 # We need a cross tool
11931 echo "$as_me:$LINENO: result: pre-installed" >&5
11932echo "${ECHO_T}pre-installed" >&6
11933 fi
11934fi
11935
be912515
NN
11936
11937
2abefe3d 11938
0b0dc272 11939
671aa708
NN
11940# Certain tools may need extra flags.
11941AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11942RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11943NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11944
2abefe3d
PB
11945# When building target libraries, except in a Canadian cross, we use
11946# the same toolchain as the compiler we just built.
11947COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11948COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11949COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11950if test $host = $build; then
11951 case " $configdirs " in
11952 *" gcc "*)
11953 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11954 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11955 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11956 ;;
11957 esac
11958fi
11959
11960
11961
11962
11963
2aeb72e9
DD
11964echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11965echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11966# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee03dc5e 11967if test "${enable_maintainer_mode+set}" = set; then
2aeb72e9
DD
11968 enableval="$enable_maintainer_mode"
11969 USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
11970else
11971 USE_MAINTAINER_MODE=no
2aeb72e9
DD
11972fi;
11973echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11974echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
11975
11976
11977if test "$USE_MAINTAINER_MODE" = yes; then
11978 MAINTAINER_MODE_TRUE=
11979 MAINTAINER_MODE_FALSE='#'
11980else
11981 MAINTAINER_MODE_TRUE='#'
11982 MAINTAINER_MODE_FALSE=
1c710c3c 11983fi
ee03dc5e
AO
11984MAINT=$MAINTAINER_MODE_TRUE
11985
2805b53a
NN
11986# ---------------------
11987# GCC bootstrap support
11988# ---------------------
11989
11990# Stage specific cflags for build.
11991stage1_cflags="-g"
11992case $build in
11993 vax-*-*)
11994 case ${GCC} in
11995 yes) stage1_cflags="-g -Wa,-J" ;;
11996 *) stage1_cflags="-g -J" ;;
11997 esac ;;
2805b53a
NN
11998esac
11999
0b50988a
EB
12000# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12001if test "$GCC" = yes; then
12002 saved_CFLAGS="$CFLAGS"
12003
12004 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12005 CFLAGS="$CFLAGS -fkeep-inline-functions"
2aeb72e9
DD
12006 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12007echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
1c710c3c
DJ
12008 cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014
9cc1244e
JJ
12015#if (__GNUC__ < 3) \
12016 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12017 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12018#error http://gcc.gnu.org/PR29382
12019#endif
12020
1c710c3c
DJ
12021int
12022main ()
12023{
12024
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029rm -f conftest.$ac_objext
2aeb72e9
DD
12030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
1c710c3c
DJ
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2aeb72e9
DD
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest.$ac_objext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 echo "$as_me:$LINENO: result: yes" >&5
12052echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c
DJ
12053else
12054 echo "$as_me: failed program was:" >&5
12055sed 's/^/| /' conftest.$ac_ext >&5
12056
2aeb72e9
DD
12057echo "$as_me:$LINENO: result: no" >&5
12058echo "${ECHO_T}no" >&6
1c710c3c 12059fi
2aeb72e9 12060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
12061
12062 CFLAGS="$saved_CFLAGS"
12063fi
12064
12065
2805b53a 12066
8efea775 12067# Enable --enable-checking in stage1 of the compiler.
2aeb72e9 12068# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
8efea775 12069if test "${enable_stage1_checking+set}" = set; then
2aeb72e9
DD
12070 enableval="$enable_stage1_checking"
12071 stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 12072else
e643dc23 12073 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 12074 stage1_checking=--enable-checking=yes,types
8efea775 12075else
e643dc23 12076 stage1_checking=--enable-checking=$enable_checking,types
8efea775 12077fi
2aeb72e9 12078fi;
8efea775
PB
12079
12080
2805b53a 12081# Enable -Werror in bootstrap stage2 and later.
2aeb72e9 12082# Check whether --enable-werror or --disable-werror was given.
2805b53a 12083if test "${enable_werror+set}" = set; then
2aeb72e9
DD
12084 enableval="$enable_werror"
12085
2805b53a 12086else
416cfb5e 12087 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 12088 enable_werror=yes
88fceb68
PB
12089else
12090 enable_werror=no
12091fi
2aeb72e9 12092fi;
09a9c095
NN
12093case ${enable_werror} in
12094 yes) stage2_werror_flag="--enable-werror-always" ;;
12095 *) stage2_werror_flag="" ;;
2805b53a
NN
12096esac
12097
12098
32845532 12099# Flags needed to enable html installing and building
1c710c3c 12100
2aeb72e9 12101# Check whether --with-datarootdir or --without-datarootdir was given.
32845532 12102if test "${with_datarootdir+set}" = set; then
2aeb72e9
DD
12103 withval="$with_datarootdir"
12104 datarootdir="\${prefix}/${withval}"
32845532
CD
12105else
12106 datarootdir="\${prefix}/share"
2aeb72e9 12107fi;
32845532
CD
12108
12109
2aeb72e9 12110# Check whether --with-docdir or --without-docdir was given.
32845532 12111if test "${with_docdir+set}" = set; then
2aeb72e9
DD
12112 withval="$with_docdir"
12113 docdir="\${prefix}/${withval}"
32845532
CD
12114else
12115 docdir="\${datarootdir}/doc"
2aeb72e9 12116fi;
32845532
CD
12117
12118
2aeb72e9 12119# Check whether --with-pdfdir or --without-pdfdir was given.
9c4d2493 12120if test "${with_pdfdir+set}" = set; then
2aeb72e9
DD
12121 withval="$with_pdfdir"
12122 pdfdir="\${prefix}/${withval}"
9c4d2493
BM
12123else
12124 pdfdir="\${docdir}"
2aeb72e9 12125fi;
9c4d2493
BM
12126
12127
2aeb72e9 12128# Check whether --with-htmldir or --without-htmldir was given.
32845532 12129if test "${with_htmldir+set}" = set; then
2aeb72e9
DD
12130 withval="$with_htmldir"
12131 htmldir="\${prefix}/${withval}"
32845532
CD
12132else
12133 htmldir="\${docdir}"
2aeb72e9 12134fi;
32845532
CD
12135
12136
12137
12138
172e41aa 12139
11a67599 12140
2aeb72e9 12141 ac_config_files="$ac_config_files Makefile"
1c710c3c 12142cat >confcache <<\_ACEOF
671aa708
NN
12143# This file is a shell script that caches the results of configure
12144# tests run on this system so they can be shared between configure
1c710c3c
DJ
12145# scripts and configure runs, see configure's option --config-cache.
12146# It is not useful on other systems. If it contains results you don't
12147# want to keep, you may remove or edit it.
671aa708 12148#
1c710c3c
DJ
12149# config.status only pays attention to the cache file if you give it
12150# the --recheck option to rerun configure.
671aa708 12151#
1c710c3c
DJ
12152# `ac_cv_env_foo' variables (set or unset) will be overridden when
12153# loading this file, other *unset* `ac_cv_foo' will be assigned the
12154# following values.
12155
12156_ACEOF
12157
671aa708
NN
12158# The following way of writing the cache mishandles newlines in values,
12159# but we know of no workaround that is simple, portable, and efficient.
2aeb72e9 12160# So, don't put newlines in cache variables' values.
671aa708
NN
12161# Ultrix sh set writes to stderr and can't be redirected directly,
12162# and sets the high bit in the cache file unless we assign to the vars.
2aeb72e9 12163{
1c710c3c 12164 (set) 2>&1 |
2aeb72e9
DD
12165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12166 *ac_space=\ *)
1c710c3c
DJ
12167 # `set' does not quote correctly, so add quotes (double-quote
12168 # substitution turns \\\\ into \\, and sed turns \\ into \).
12169 sed -n \
12170 "s/'/'\\\\''/g;
12171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2aeb72e9 12172 ;;
1c710c3c
DJ
12173 *)
12174 # `set' quotes correctly as required by POSIX, so do not add quotes.
2aeb72e9
DD
12175 sed -n \
12176 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1c710c3c 12177 ;;
2aeb72e9
DD
12178 esac;
12179} |
1c710c3c
DJ
12180 sed '
12181 t clear
2aeb72e9 12182 : clear
1c710c3c
DJ
12183 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12184 t end
2aeb72e9
DD
12185 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12186 : end' >>confcache
12187if diff $cache_file confcache >/dev/null 2>&1; then :; else
12188 if test -w $cache_file; then
12189 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1c710c3c 12190 cat confcache >$cache_file
671aa708 12191 else
2aeb72e9 12192 echo "not updating unwritable cache $cache_file"
671aa708 12193 fi
4977bab6 12194fi
671aa708 12195rm -f confcache
79c06341 12196
671aa708
NN
12197test "x$prefix" = xNONE && prefix=$ac_default_prefix
12198# Let make expand exec_prefix.
12199test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 12200
2aeb72e9
DD
12201# VPATH may cause trouble with some makes, so we remove $(srcdir),
12202# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12203# trailing colons and then remove the whole line if VPATH becomes empty
12204# (actually we leave an empty line to preserve line numbers).
12205if test "x$srcdir" = x.; then
12206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12207s/:*\$(srcdir):*/:/;
12208s/:*\${srcdir}:*/:/;
12209s/:*@srcdir@:*/:/;
12210s/^\([^=]*=[ ]*\):*/\1/;
12211s/:*$//;
12212s/^[^=]*=[ ]*$//;
12213}'
12214fi
12215
671aa708
NN
12216# Transform confdefs.h into DEFS.
12217# Protect against shell expansion while executing Makefile rules.
12218# Protect against Makefile macro expansion.
1c710c3c
DJ
12219#
12220# If the first sed substitution is executed (which looks for macros that
2aeb72e9 12221# take arguments), then we branch to the quote section. Otherwise,
1c710c3c 12222# look for a macro that doesn't take arguments.
2aeb72e9 12223cat >confdef2opt.sed <<\_ACEOF
1c710c3c 12224t clear
2aeb72e9
DD
12225: clear
12226s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12227t quote
2aeb72e9 12228s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1c710c3c 12229t quote
2aeb72e9
DD
12230d
12231: quote
12232s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12233s,\[,\\&,g
12234s,\],\\&,g
12235s,\$,$$,g
12236p
12237_ACEOF
12238# We use echo to avoid assuming a particular line-breaking character.
12239# The extra dot is to prevent the shell from consuming trailing
12240# line-breaks from the sub-command output. A line-break within
12241# single-quotes doesn't work because, if this script is created in a
12242# platform that uses two characters for line-breaks (e.g., DOS), tr
12243# would break.
12244ac_LF_and_DOT=`echo; echo .`
12245DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12246rm -f confdef2opt.sed
1c710c3c
DJ
12247
12248
12249ac_libobjs=
12250ac_ltlibobjs=
12251for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12252 # 1. Remove the extension, and $U if already installed.
2aeb72e9
DD
12253 ac_i=`echo "$ac_i" |
12254 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12255 # 2. Add them.
12256 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12257 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1c710c3c
DJ
12258done
12259LIBOBJS=$ac_libobjs
fb0103e5 12260
1c710c3c 12261LTLIBOBJS=$ac_ltlibobjs
0b0dc272 12262
af71363e 12263
1c710c3c
DJ
12264
12265: ${CONFIG_STATUS=./config.status}
12266ac_clean_files_save=$ac_clean_files
12267ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12268{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12269echo "$as_me: creating $CONFIG_STATUS" >&6;}
12270cat >$CONFIG_STATUS <<_ACEOF
12271#! $SHELL
12272# Generated by $as_me.
671aa708 12273# Run this file to recreate the current configuration.
671aa708 12274# Compiler output produced by configure, useful for debugging
1c710c3c 12275# configure, is in config.log if it exists.
0b0dc272 12276
1c710c3c
DJ
12277debug=false
12278ac_cs_recheck=false
12279ac_cs_silent=false
12280SHELL=\${CONFIG_SHELL-$SHELL}
12281_ACEOF
12282
12283cat >>$CONFIG_STATUS <<\_ACEOF
12284## --------------------- ##
12285## M4sh Initialization. ##
12286## --------------------- ##
12287
2aeb72e9 12288# Be Bourne compatible
1c710c3c
DJ
12289if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12290 emulate sh
12291 NULLCMD=:
12292 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12293 # is contrary to our usage. Disable this feature.
12294 alias -g '${1+"$@"}'='"$@"'
2aeb72e9
DD
12295elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12296 set -o posix
1c710c3c 12297fi
2aeb72e9 12298DUALCASE=1; export DUALCASE # for MKS sh
1c710c3c
DJ
12299
12300# Support unset when possible.
12301if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12302 as_unset=unset
12303else
12304 as_unset=false
12305fi
12306
12307
12308# Work around bugs in pre-3.0 UWIN ksh.
2aeb72e9 12309$as_unset ENV MAIL MAILPATH
1c710c3c
DJ
12310PS1='$ '
12311PS2='> '
12312PS4='+ '
12313
12314# NLS nuisances.
12315for as_var in \
12316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12318 LC_TELEPHONE LC_TIME
12319do
12320 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12321 eval $as_var=C; export $as_var
12322 else
2aeb72e9 12323 $as_unset $as_var
1c710c3c
DJ
12324 fi
12325done
12326
12327# Required to use basename.
2aeb72e9 12328if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12329 as_expr=expr
12330else
12331 as_expr=false
12332fi
12333
2aeb72e9 12334if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1c710c3c
DJ
12335 as_basename=basename
12336else
12337 as_basename=false
12338fi
12339
12340
12341# Name of the executable.
2aeb72e9 12342as_me=`$as_basename "$0" ||
1c710c3c
DJ
12343$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12344 X"$0" : 'X\(//\)$' \| \
2aeb72e9
DD
12345 X"$0" : 'X\(/\)$' \| \
12346 . : '\(.\)' 2>/dev/null ||
1c710c3c 12347echo X/"$0" |
2aeb72e9
DD
12348 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12349 /^X\/\(\/\/\)$/{ s//\1/; q; }
12350 /^X\/\(\/\).*/{ s//\1/; q; }
12351 s/.*/./; q'`
1c710c3c 12352
2aeb72e9
DD
12353
12354# PATH needs CR, and LINENO needs CR and PATH.
12355# Avoid depending upon Character Ranges.
12356as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12357as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12358as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12359as_cr_digits='0123456789'
12360as_cr_alnum=$as_cr_Letters$as_cr_digits
12361
12362# The user is always right.
12363if test "${PATH_SEPARATOR+set}" != set; then
12364 echo "#! /bin/sh" >conf$$.sh
12365 echo "exit 0" >>conf$$.sh
12366 chmod +x conf$$.sh
12367 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12368 PATH_SEPARATOR=';'
12369 else
12370 PATH_SEPARATOR=:
12371 fi
12372 rm -f conf$$.sh
12373fi
1c710c3c
DJ
12374
12375
2aeb72e9
DD
12376 as_lineno_1=$LINENO
12377 as_lineno_2=$LINENO
12378 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12379 test "x$as_lineno_1" != "x$as_lineno_2" &&
12380 test "x$as_lineno_3" = "x$as_lineno_2" || {
12381 # Find who we are. Look in the path if we contain no path at all
12382 # relative or not.
12383 case $0 in
12384 *[\\/]* ) as_myself=$0 ;;
12385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12391done
1c710c3c 12392
2aeb72e9
DD
12393 ;;
12394 esac
12395 # We did not find ourselves, most probably we were run as `sh COMMAND'
12396 # in which case we are not to be found in the path.
12397 if test "x$as_myself" = x; then
12398 as_myself=$0
12399 fi
12400 if test ! -f "$as_myself"; then
12401 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12402echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12403 { (exit 1); exit 1; }; }
12404 fi
12405 case $CONFIG_SHELL in
12406 '')
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12409do
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
12412 for as_base in sh bash ksh sh5; do
12413 case $as_dir in
12414 /*)
12415 if ("$as_dir/$as_base" -c '
1c710c3c
DJ
12416 as_lineno_1=$LINENO
12417 as_lineno_2=$LINENO
2aeb72e9 12418 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1c710c3c 12419 test "x$as_lineno_1" != "x$as_lineno_2" &&
2aeb72e9
DD
12420 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12421 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12422 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12423 CONFIG_SHELL=$as_dir/$as_base
12424 export CONFIG_SHELL
12425 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12426 fi;;
12427 esac
12428 done
12429done
12430;;
12431 esac
1c710c3c
DJ
12432
12433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12434 # uniformly replaced by the line number. The first 'sed' inserts a
2aeb72e9
DD
12435 # line-number line before each line; the second 'sed' does the real
12436 # work. The second script uses 'N' to pair each line-number line
12437 # with the numbered line, and appends trailing '-' during
12438 # substitution so that $LINENO is not a special case at line end.
1c710c3c 12439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2aeb72e9
DD
12440 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12441 sed '=' <$as_myself |
1c710c3c
DJ
12442 sed '
12443 N
2aeb72e9
DD
12444 s,$,-,
12445 : loop
12446 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1c710c3c 12447 t loop
2aeb72e9
DD
12448 s,-$,,
12449 s,^['$as_cr_digits']*\n,,
1c710c3c 12450 ' >$as_me.lineno &&
2aeb72e9
DD
12451 chmod +x $as_me.lineno ||
12452 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12453echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1c710c3c
DJ
12454 { (exit 1); exit 1; }; }
12455
12456 # Don't try to exec as it changes $[0], causing all sort of problems
12457 # (the dirname of $[0] is not the place where we might find the
2aeb72e9
DD
12458 # original and so on. Autoconf is especially sensible to this).
12459 . ./$as_me.lineno
1c710c3c
DJ
12460 # Exit status is that of the last command.
12461 exit
12462}
12463
12464
2aeb72e9
DD
12465case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12466 *c*,-n*) ECHO_N= ECHO_C='
12467' ECHO_T=' ' ;;
12468 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12469 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1c710c3c
DJ
12470esac
12471
2aeb72e9 12472if expr a : '\(a\)' >/dev/null 2>&1; then
1c710c3c
DJ
12473 as_expr=expr
12474else
12475 as_expr=false
12476fi
12477
12478rm -f conf$$ conf$$.exe conf$$.file
12479echo >conf$$.file
12480if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9
DD
12481 # We could just check for DJGPP; but this test a) works b) is more generic
12482 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12483 if test -f conf$$.exe; then
12484 # Don't use ln at all; we don't have any links
1c710c3c 12485 as_ln_s='cp -p'
2aeb72e9
DD
12486 else
12487 as_ln_s='ln -s'
12488 fi
1c710c3c
DJ
12489elif ln conf$$.file conf$$ 2>/dev/null; then
12490 as_ln_s=ln
12491else
12492 as_ln_s='cp -p'
12493fi
2aeb72e9 12494rm -f conf$$ conf$$.exe conf$$.file
1c710c3c
DJ
12495
12496if mkdir -p . 2>/dev/null; then
12497 as_mkdir_p=:
12498else
12499 test -d ./-p && rmdir ./-p
12500 as_mkdir_p=false
12501fi
12502
2aeb72e9 12503as_executable_p="test -f"
1c710c3c
DJ
12504
12505# Sed expression to map a string onto a valid CPP name.
12506as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12507
12508# Sed expression to map a string onto a valid variable name.
12509as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12510
12511
2aeb72e9
DD
12512# IFS
12513# We need space, tab and new line, in precisely that order.
12514as_nl='
12515'
12516IFS=" $as_nl"
12517
12518# CDPATH.
12519$as_unset CDPATH
12520
1c710c3c
DJ
12521exec 6>&1
12522
2aeb72e9 12523# Open the log real soon, to keep \$[0] and so on meaningful, and to
1c710c3c 12524# report actual input values of CONFIG_FILES etc. instead of their
2aeb72e9
DD
12525# values after options handling. Logging --version etc. is OK.
12526exec 5>>config.log
12527{
12528 echo
12529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12530## Running $as_me. ##
12531_ASBOX
12532} >&5
12533cat >&5 <<_CSEOF
12534
1c710c3c 12535This file was extended by $as_me, which was
2aeb72e9 12536generated by GNU Autoconf 2.59. Invocation command line was
1c710c3c
DJ
12537
12538 CONFIG_FILES = $CONFIG_FILES
12539 CONFIG_HEADERS = $CONFIG_HEADERS
12540 CONFIG_LINKS = $CONFIG_LINKS
12541 CONFIG_COMMANDS = $CONFIG_COMMANDS
12542 $ $0 $@
12543
2aeb72e9
DD
12544_CSEOF
12545echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12546echo >&5
1c710c3c
DJ
12547_ACEOF
12548
12549# Files that config.status was made for.
2aeb72e9
DD
12550if test -n "$ac_config_files"; then
12551 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12552fi
1c710c3c 12553
2aeb72e9
DD
12554if test -n "$ac_config_headers"; then
12555 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12556fi
12557
12558if test -n "$ac_config_links"; then
12559 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12560fi
12561
12562if test -n "$ac_config_commands"; then
12563 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12564fi
1c710c3c
DJ
12565
12566cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9 12567
1c710c3c
DJ
12568ac_cs_usage="\
12569\`$as_me' instantiates files from templates according to the
12570current configuration.
12571
12572Usage: $0 [OPTIONS] [FILE]...
12573
12574 -h, --help print this help, then exit
2aeb72e9 12575 -V, --version print version number, then exit
1c710c3c
DJ
12576 -q, --quiet do not print progress messages
12577 -d, --debug don't remove temporary files
12578 --recheck update $as_me by reconfiguring in the same conditions
12579 --file=FILE[:TEMPLATE]
12580 instantiate the configuration file FILE
12581
12582Configuration files:
12583$config_files
12584
12585Report bugs to <bug-autoconf@gnu.org>."
11a67599 12586_ACEOF
2aeb72e9 12587
1c710c3c
DJ
12588cat >>$CONFIG_STATUS <<_ACEOF
12589ac_cs_version="\\
12590config.status
2aeb72e9
DD
12591configured by $0, generated by GNU Autoconf 2.59,
12592 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 12593
2aeb72e9 12594Copyright (C) 2003 Free Software Foundation, Inc.
1c710c3c
DJ
12595This config.status script is free software; the Free Software Foundation
12596gives unlimited permission to copy, distribute and modify it."
2aeb72e9
DD
12597srcdir=$srcdir
12598INSTALL="$INSTALL"
1c710c3c
DJ
12599_ACEOF
12600
12601cat >>$CONFIG_STATUS <<\_ACEOF
12602# If no file are specified by the user, then we need to provide default
12603# value. By we need to know if files were specified by the user.
12604ac_need_defaults=:
12605while test $# != 0
a4b9e93e 12606do
1c710c3c
DJ
12607 case $1 in
12608 --*=*)
2aeb72e9
DD
12609 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12610 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1c710c3c
DJ
12611 ac_shift=:
12612 ;;
2aeb72e9 12613 -*)
1c710c3c
DJ
12614 ac_option=$1
12615 ac_optarg=$2
12616 ac_shift=shift
12617 ;;
2aeb72e9
DD
12618 *) # This is not an option, so the user has probably given explicit
12619 # arguments.
12620 ac_option=$1
12621 ac_need_defaults=false;;
1c710c3c
DJ
12622 esac
12623
12624 case $ac_option in
12625 # Handling of the options.
2aeb72e9
DD
12626_ACEOF
12627cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 12628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 12629 ac_cs_recheck=: ;;
2aeb72e9
DD
12630 --version | --vers* | -V )
12631 echo "$ac_cs_version"; exit 0 ;;
12632 --he | --h)
12633 # Conflict between --help and --header
12634 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12635Try \`$0 --help' for more information." >&5
12636echo "$as_me: error: ambiguous option: $1
12637Try \`$0 --help' for more information." >&2;}
12638 { (exit 1); exit 1; }; };;
12639 --help | --hel | -h )
12640 echo "$ac_cs_usage"; exit 0 ;;
12641 --debug | --d* | -d )
1c710c3c
DJ
12642 debug=: ;;
12643 --file | --fil | --fi | --f )
12644 $ac_shift
12645 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12646 ac_need_defaults=false;;
2aeb72e9
DD
12647 --header | --heade | --head | --hea )
12648 $ac_shift
12649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12650 ac_need_defaults=false;;
1c710c3c
DJ
12651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12652 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12653 ac_cs_silent=: ;;
12654
12655 # This is an error.
2aeb72e9
DD
12656 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12657Try \`$0 --help' for more information." >&5
12658echo "$as_me: error: unrecognized option: $1
12659Try \`$0 --help' for more information." >&2;}
1c710c3c
DJ
12660 { (exit 1); exit 1; }; } ;;
12661
2aeb72e9 12662 *) ac_config_targets="$ac_config_targets $1" ;;
1c710c3c 12663
0b0dc272 12664 esac
1c710c3c 12665 shift
0b0dc272
AM
12666done
12667
1c710c3c 12668ac_configure_extra_args=
0b0dc272 12669
1c710c3c
DJ
12670if $ac_cs_silent; then
12671 exec 6>/dev/null
12672 ac_configure_extra_args="$ac_configure_extra_args --silent"
12673fi
0b0dc272 12674
1c710c3c
DJ
12675_ACEOF
12676cat >>$CONFIG_STATUS <<_ACEOF
12677if \$ac_cs_recheck; then
2aeb72e9
DD
12678 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12679 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1c710c3c
DJ
12680fi
12681
12682_ACEOF
12683
1c710c3c 12684
11a67599 12685
2aeb72e9
DD
12686
12687
12688cat >>$CONFIG_STATUS <<\_ACEOF
1c710c3c
DJ
12689for ac_config_target in $ac_config_targets
12690do
2aeb72e9
DD
12691 case "$ac_config_target" in
12692 # Handling of arguments.
12693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1c710c3c
DJ
12694 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12695echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12696 { (exit 1); exit 1; }; };;
12697 esac
12698done
12699
12700# If the user did not use the arguments to specify the items to instantiate,
12701# then the envvar interface is used. Set only those that are not.
12702# We use the long form for the default assignment because of an extremely
12703# bizarre bug on SunOS 4.1.3.
12704if $ac_need_defaults; then
12705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12706fi
12707
12708# Have a temporary directory for convenience. Make it in the build tree
2aeb72e9 12709# simply because there is no reason to put it here, and in addition,
1c710c3c 12710# creating and moving files from /tmp can sometimes cause problems.
2aeb72e9 12711# Create a temporary directory, and hook for its removal unless debugging.
1c710c3c
DJ
12712$debug ||
12713{
2aeb72e9 12714 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1c710c3c
DJ
12715 trap '{ (exit 1); exit 1; }' 1 2 13 15
12716}
2aeb72e9 12717
1c710c3c
DJ
12718# Create a (secure) tmp directory for tmp files.
12719
12720{
2aeb72e9 12721 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
12722 test -n "$tmp" && test -d "$tmp"
12723} ||
12724{
2aeb72e9
DD
12725 tmp=./confstat$$-$RANDOM
12726 (umask 077 && mkdir $tmp)
1c710c3c
DJ
12727} ||
12728{
12729 echo "$me: cannot create a temporary directory in ." >&2
12730 { (exit 1); exit 1; }
12731}
12732
2aeb72e9
DD
12733_ACEOF
12734
12735cat >>$CONFIG_STATUS <<_ACEOF
12736
1c710c3c 12737#
2aeb72e9 12738# CONFIG_FILES section.
1c710c3c
DJ
12739#
12740
12741# No need to generate the scripts if there are no CONFIG_FILES.
12742# This happens for instance when ./config.status config.h
2aeb72e9
DD
12743if test -n "\$CONFIG_FILES"; then
12744 # Protect against being on the right side of a sed subst in config.status.
12745 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12746 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12747s,@SHELL@,$SHELL,;t t
12748s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12749s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12750s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12751s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12752s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12753s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12754s,@exec_prefix@,$exec_prefix,;t t
12755s,@prefix@,$prefix,;t t
12756s,@program_transform_name@,$program_transform_name,;t t
12757s,@bindir@,$bindir,;t t
12758s,@sbindir@,$sbindir,;t t
12759s,@libexecdir@,$libexecdir,;t t
12760s,@datadir@,$datadir,;t t
12761s,@sysconfdir@,$sysconfdir,;t t
12762s,@sharedstatedir@,$sharedstatedir,;t t
12763s,@localstatedir@,$localstatedir,;t t
12764s,@libdir@,$libdir,;t t
12765s,@includedir@,$includedir,;t t
12766s,@oldincludedir@,$oldincludedir,;t t
12767s,@infodir@,$infodir,;t t
12768s,@mandir@,$mandir,;t t
12769s,@build_alias@,$build_alias,;t t
12770s,@host_alias@,$host_alias,;t t
12771s,@target_alias@,$target_alias,;t t
12772s,@DEFS@,$DEFS,;t t
12773s,@ECHO_C@,$ECHO_C,;t t
12774s,@ECHO_N@,$ECHO_N,;t t
12775s,@ECHO_T@,$ECHO_T,;t t
12776s,@LIBS@,$LIBS,;t t
12777s,@build@,$build,;t t
12778s,@build_cpu@,$build_cpu,;t t
12779s,@build_vendor@,$build_vendor,;t t
12780s,@build_os@,$build_os,;t t
12781s,@build_noncanonical@,$build_noncanonical,;t t
12782s,@host_noncanonical@,$host_noncanonical,;t t
12783s,@target_noncanonical@,$target_noncanonical,;t t
12784s,@host@,$host,;t t
12785s,@host_cpu@,$host_cpu,;t t
12786s,@host_vendor@,$host_vendor,;t t
12787s,@host_os@,$host_os,;t t
12788s,@target@,$target,;t t
12789s,@target_cpu@,$target_cpu,;t t
12790s,@target_vendor@,$target_vendor,;t t
12791s,@target_os@,$target_os,;t t
12792s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12793s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12794s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12795s,@LN@,$LN,;t t
12796s,@LN_S@,$LN_S,;t t
12797s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12798s,@build_libsubdir@,$build_libsubdir,;t t
12799s,@build_subdir@,$build_subdir,;t t
12800s,@host_subdir@,$host_subdir,;t t
12801s,@target_subdir@,$target_subdir,;t t
12802s,@CC@,$CC,;t t
12803s,@CFLAGS@,$CFLAGS,;t t
12804s,@LDFLAGS@,$LDFLAGS,;t t
12805s,@CPPFLAGS@,$CPPFLAGS,;t t
12806s,@ac_ct_CC@,$ac_ct_CC,;t t
12807s,@EXEEXT@,$EXEEXT,;t t
12808s,@OBJEXT@,$OBJEXT,;t t
12809s,@CXX@,$CXX,;t t
12810s,@CXXFLAGS@,$CXXFLAGS,;t t
12811s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12812s,@GNATBIND@,$GNATBIND,;t t
12813s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12814s,@GNATMAKE@,$GNATMAKE,;t t
12815s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12816s,@do_compare@,$do_compare,;t t
12817s,@gmplibs@,$gmplibs,;t t
12818s,@gmpinc@,$gmpinc,;t t
12819s,@stage1_languages@,$stage1_languages,;t t
12820s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
c8aea42c 12821s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
2aeb72e9
DD
12822s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12823s,@tooldir@,$tooldir,;t t
12824s,@build_tooldir@,$build_tooldir,;t t
12825s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12826s,@GDB_TK@,$GDB_TK,;t t
12827s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12828s,@build_configargs@,$build_configargs,;t t
12829s,@build_configdirs@,$build_configdirs,;t t
12830s,@host_configargs@,$host_configargs,;t t
12831s,@configdirs@,$configdirs,;t t
12832s,@target_configargs@,$target_configargs,;t t
0999159b
PB
12833s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12834s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
2aeb72e9 12835s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
0999159b
PB
12836s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12837s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12838s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12839s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12840s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12841s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12842s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12843s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12844s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12845s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12846s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12847s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
2aeb72e9
DD
12848s,@config_shell@,$config_shell,;t t
12849s,@YACC@,$YACC,;t t
12850s,@BISON@,$BISON,;t t
12851s,@M4@,$M4,;t t
12852s,@LEX@,$LEX,;t t
12853s,@FLEX@,$FLEX,;t t
12854s,@MAKEINFO@,$MAKEINFO,;t t
12855s,@EXPECT@,$EXPECT,;t t
12856s,@RUNTEST@,$RUNTEST,;t t
12857s,@AR@,$AR,;t t
12858s,@AS@,$AS,;t t
12859s,@DLLTOOL@,$DLLTOOL,;t t
12860s,@LD@,$LD,;t t
12861s,@LIPO@,$LIPO,;t t
12862s,@NM@,$NM,;t t
12863s,@RANLIB@,$RANLIB,;t t
12864s,@STRIP@,$STRIP,;t t
12865s,@WINDRES@,$WINDRES,;t t
901119ae 12866s,@WINDMC@,$WINDMC,;t t
2aeb72e9
DD
12867s,@OBJCOPY@,$OBJCOPY,;t t
12868s,@OBJDUMP@,$OBJDUMP,;t t
2aeb72e9
DD
12869s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12870s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12871s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12872s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12873s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12874s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12875s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12876s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12877s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12878s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12879s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12880s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12881s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12882s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12883s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
901119ae 12884s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
2aeb72e9
DD
12885s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12886s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12887s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12888s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12889s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12890s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12891s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12892s,@MAINT@,$MAINT,;t t
12893s,@stage1_cflags@,$stage1_cflags,;t t
12894s,@stage1_checking@,$stage1_checking,;t t
12895s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12896s,@datarootdir@,$datarootdir,;t t
12897s,@docdir@,$docdir,;t t
12898s,@pdfdir@,$pdfdir,;t t
12899s,@htmldir@,$htmldir,;t t
12900s,@LIBOBJS@,$LIBOBJS,;t t
12901s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12902/@serialization_dependencies@/r $serialization_dependencies
12903s,@serialization_dependencies@,,;t t
12904/@host_makefile_frag@/r $host_makefile_frag
12905s,@host_makefile_frag@,,;t t
12906/@target_makefile_frag@/r $target_makefile_frag
12907s,@target_makefile_frag@,,;t t
12908/@alphaieee_frag@/r $alphaieee_frag
12909s,@alphaieee_frag@,,;t t
12910/@ospace_frag@/r $ospace_frag
12911s,@ospace_frag@,,;t t
12912CEOF
79c06341 12913
1c710c3c
DJ
12914_ACEOF
12915
2aeb72e9
DD
12916 cat >>$CONFIG_STATUS <<\_ACEOF
12917 # Split the substitutions into bite-sized pieces for seds with
12918 # small command number limits, like on Digital OSF/1 and HP-UX.
12919 ac_max_sed_lines=48
12920 ac_sed_frag=1 # Number of current file.
12921 ac_beg=1 # First line for current file.
12922 ac_end=$ac_max_sed_lines # Line after last line for current file.
12923 ac_more_lines=:
12924 ac_sed_cmds=
12925 while $ac_more_lines; do
12926 if test $ac_beg -gt 1; then
12927 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12928 else
12929 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12930 fi
12931 if test ! -s $tmp/subs.frag; then
12932 ac_more_lines=false
12933 else
12934 # The purpose of the label and of the branching condition is to
12935 # speed up the sed processing (if there are no `@' at all, there
12936 # is no need to browse any of the substitutions).
12937 # These are the two extra sed commands mentioned above.
12938 (echo ':t
12939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12940 if test -z "$ac_sed_cmds"; then
12941 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12942 else
12943 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12944 fi
12945 ac_sed_frag=`expr $ac_sed_frag + 1`
12946 ac_beg=$ac_end
12947 ac_end=`expr $ac_end + $ac_max_sed_lines`
12948 fi
12949 done
12950 if test -z "$ac_sed_cmds"; then
12951 ac_sed_cmds=cat
11a67599 12952 fi
2aeb72e9 12953fi # test -n "$CONFIG_FILES"
11a67599 12954
11a67599 12955_ACEOF
1c710c3c 12956cat >>$CONFIG_STATUS <<\_ACEOF
2aeb72e9
DD
12957for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12959 case $ac_file in
12960 - | *:- | *:-:* ) # input from stdin
12961 cat >$tmp/stdin
12962 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12964 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12965 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12966 * ) ac_file_in=$ac_file.in ;;
11a67599
ZW
12967 esac
12968
2aeb72e9
DD
12969 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12970 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1c710c3c
DJ
12971$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12972 X"$ac_file" : 'X\(//\)[^/]' \| \
12973 X"$ac_file" : 'X\(//\)$' \| \
2aeb72e9
DD
12974 X"$ac_file" : 'X\(/\)' \| \
12975 . : '\(.\)' 2>/dev/null ||
1c710c3c 12976echo X"$ac_file" |
2aeb72e9
DD
12977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12979 /^X\(\/\/\)$/{ s//\1/; q; }
12980 /^X\(\/\).*/{ s//\1/; q; }
12981 s/.*/./; q'`
12982 { if $as_mkdir_p; then
12983 mkdir -p "$ac_dir"
12984 else
12985 as_dir="$ac_dir"
1c710c3c 12986 as_dirs=
2aeb72e9
DD
12987 while test ! -d "$as_dir"; do
12988 as_dirs="$as_dir $as_dirs"
12989 as_dir=`(dirname "$as_dir") 2>/dev/null ||
1c710c3c
DJ
12990$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12991 X"$as_dir" : 'X\(//\)[^/]' \| \
12992 X"$as_dir" : 'X\(//\)$' \| \
2aeb72e9
DD
12993 X"$as_dir" : 'X\(/\)' \| \
12994 . : '\(.\)' 2>/dev/null ||
1c710c3c 12995echo X"$as_dir" |
2aeb72e9
DD
12996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12998 /^X\(\/\/\)$/{ s//\1/; q; }
12999 /^X\(\/\).*/{ s//\1/; q; }
13000 s/.*/./; q'`
1c710c3c 13001 done
2aeb72e9
DD
13002 test ! -n "$as_dirs" || mkdir $as_dirs
13003 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13004echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1c710c3c 13005 { (exit 1); exit 1; }; }; }
2aeb72e9 13006
1c710c3c 13007 ac_builddir=.
0b0dc272 13008
2aeb72e9 13009if test "$ac_dir" != .; then
1c710c3c 13010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2aeb72e9
DD
13011 # A "../" for each directory in $ac_dir_suffix.
13012 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13013else
13014 ac_dir_suffix= ac_top_builddir=
13015fi
1c710c3c
DJ
13016
13017case $srcdir in
2aeb72e9 13018 .) # No --srcdir option. We are building in place.
1c710c3c 13019 ac_srcdir=.
2aeb72e9
DD
13020 if test -z "$ac_top_builddir"; then
13021 ac_top_srcdir=.
13022 else
13023 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13024 fi ;;
13025 [\\/]* | ?:[\\/]* ) # Absolute path.
1c710c3c 13026 ac_srcdir=$srcdir$ac_dir_suffix;
2aeb72e9
DD
13027 ac_top_srcdir=$srcdir ;;
13028 *) # Relative path.
13029 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13030 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1c710c3c 13031esac
a4b9e93e 13032
2aeb72e9
DD
13033# Do not use `cd foo && pwd` to compute absolute paths, because
13034# the directories may not exist.
13035case `pwd` in
13036.) ac_abs_builddir="$ac_dir";;
13037*)
13038 case "$ac_dir" in
13039 .) ac_abs_builddir=`pwd`;;
13040 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13041 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13042 esac;;
13043esac
13044case $ac_abs_builddir in
13045.) ac_abs_top_builddir=${ac_top_builddir}.;;
13046*)
13047 case ${ac_top_builddir}. in
13048 .) ac_abs_top_builddir=$ac_abs_builddir;;
13049 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13050 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13051 esac;;
13052esac
13053case $ac_abs_builddir in
13054.) ac_abs_srcdir=$ac_srcdir;;
13055*)
13056 case $ac_srcdir in
13057 .) ac_abs_srcdir=$ac_abs_builddir;;
13058 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13059 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13060 esac;;
13061esac
13062case $ac_abs_builddir in
13063.) ac_abs_top_srcdir=$ac_top_srcdir;;
13064*)
13065 case $ac_top_srcdir in
13066 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13067 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13068 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13069 esac;;
13070esac
0b0dc272 13071
1c710c3c
DJ
13072
13073 case $INSTALL in
13074 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2aeb72e9 13075 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 13076 esac
11a67599 13077
2aeb72e9
DD
13078 if test x"$ac_file" != x-; then
13079 { echo "$as_me:$LINENO: creating $ac_file" >&5
13080echo "$as_me: creating $ac_file" >&6;}
13081 rm -f "$ac_file"
13082 fi
13083 # Let's still pretend it is `configure' which instantiates (i.e., don't
13084 # use $as_me), people would be surprised to read:
13085 # /* config.h. Generated by config.status. */
13086 if test x"$ac_file" = x-; then
13087 configure_input=
13088 else
13089 configure_input="$ac_file. "
13090 fi
13091 configure_input=$configure_input"Generated from `echo $ac_file_in |
13092 sed 's,.*/,,'` by configure."
13093
13094 # First look for the input files in the build tree, otherwise in the
13095 # src tree.
13096 ac_file_inputs=`IFS=:
13097 for f in $ac_file_in; do
13098 case $f in
13099 -) echo $tmp/stdin ;;
13100 [\\/$]*)
13101 # Absolute (can't be DOS-style, as IFS=:)
13102 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13103echo "$as_me: error: cannot find input file: $f" >&2;}
13104 { (exit 1); exit 1; }; }
13105 echo "$f";;
13106 *) # Relative
13107 if test -f "$f"; then
13108 # Build tree
13109 echo "$f"
13110 elif test -f "$srcdir/$f"; then
13111 # Source tree
13112 echo "$srcdir/$f"
13113 else
13114 # /dev/null tree
13115 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13116echo "$as_me: error: cannot find input file: $f" >&2;}
13117 { (exit 1); exit 1; }; }
13118 fi;;
13119 esac
13120 done` || { (exit 1); exit 1; }
11a67599 13121_ACEOF
1c710c3c
DJ
13122cat >>$CONFIG_STATUS <<_ACEOF
13123 sed "$ac_vpsub
13124$extrasub
13125_ACEOF
13126cat >>$CONFIG_STATUS <<\_ACEOF
13127:t
13128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2aeb72e9
DD
13129s,@configure_input@,$configure_input,;t t
13130s,@srcdir@,$ac_srcdir,;t t
13131s,@abs_srcdir@,$ac_abs_srcdir,;t t
13132s,@top_srcdir@,$ac_top_srcdir,;t t
13133s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13134s,@builddir@,$ac_builddir,;t t
13135s,@abs_builddir@,$ac_abs_builddir,;t t
13136s,@top_builddir@,$ac_top_builddir,;t t
13137s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13138s,@INSTALL@,$ac_INSTALL,;t t
13139" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13140 rm -f $tmp/stdin
13141 if test x"$ac_file" != x-; then
13142 mv $tmp/out $ac_file
13143 else
13144 cat $tmp/out
13145 rm -f $tmp/out
13146 fi
11a67599 13147
2aeb72e9
DD
13148done
13149_ACEOF
11a67599 13150
2aeb72e9 13151cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 13152
1c710c3c
DJ
13153{ (exit 0); exit 0; }
13154_ACEOF
671aa708 13155chmod +x $CONFIG_STATUS
1c710c3c
DJ
13156ac_clean_files=$ac_clean_files_save
13157
13158
13159# configure is writing to config.log, and then calls config.status.
13160# config.status does its own redirection, appending to config.log.
13161# Unfortunately, on DOS this fails, as config.log is still kept open
13162# by configure, so config.status won't be able to write to it; its
13163# output is simply discarded. So we exec the FD to /dev/null,
13164# effectively closing config.log, so it can be properly (re)opened and
13165# appended to by config.status. When coming back to configure, we
13166# need to make the FD available again.
13167if test "$no_create" != yes; then
13168 ac_cs_success=:
13169 ac_config_status_args=
13170 test "$silent" = yes &&
13171 ac_config_status_args="$ac_config_status_args --quiet"
13172 exec 5>/dev/null
13173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13174 exec 5>>config.log
13175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13176 # would make configure fail if this is the last instruction.
13177 $ac_cs_success || { (exit 1); exit 1; }
13178fi
79c06341 13179