2007-02-13 Paolo Bonzini <bonzini@gnu.org>
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
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.
33$as_unset ENV MAIL MAILPATH
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
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
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
85
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
97fi
98
99
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
116
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 '')
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=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
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
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
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.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
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
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
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
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
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
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
225as_executable_p="test -f"
226
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
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
242
a0da8069 243
c6b750e1
DJ
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
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
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
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
24ff9987 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 do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET 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 htmldir LIBOBJS LTLIBOBJS'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
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.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
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=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
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 ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
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 \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
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=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
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=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
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; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
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}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
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; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
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
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
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; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
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
376a0e54 650
c6b750e1
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
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
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
702 { (exit 1); exit 1; }; }
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
24ff9987
DJ
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
c6b750e1
DJ
740
741#
742# Report the --help message.
743#
744if test "$ac_init_help" = "long"; then
745 # Omit some internal or obsolete options to make the list less imposing.
746 # This message is too long to be a string in the A/UX 3.1 sh.
747 cat <<_ACEOF
748\`configure' configures this package to adapt to many kinds of systems.
749
750Usage: $0 [OPTION]... [VAR=VALUE]...
751
752To assign environment variables (e.g., CC, CFLAGS...), specify them as
753VAR=VALUE. See below for descriptions of some of the useful variables.
754
755Defaults for the options are specified in brackets.
756
757Configuration:
758 -h, --help display this help and exit
759 --help=short display options specific to this package
760 --help=recursive display the short help of all the included packages
761 -V, --version display version information and exit
762 -q, --quiet, --silent do not print \`checking...' messages
763 --cache-file=FILE cache test results in FILE [disabled]
764 -C, --config-cache alias for \`--cache-file=config.cache'
765 -n, --no-create do not create output files
766 --srcdir=DIR find the sources in DIR [configure dir or \`..']
767
768_ACEOF
769
770 cat <<_ACEOF
771Installation directories:
772 --prefix=PREFIX install architecture-independent files in PREFIX
773 [$ac_default_prefix]
774 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
775 [PREFIX]
776
777By default, \`make install' will install all the files in
778\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
779an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780for instance \`--prefix=\$HOME'.
781
782For better control, use the options below.
783
784Fine tuning of the installation directories:
785 --bindir=DIR user executables [EPREFIX/bin]
786 --sbindir=DIR system admin executables [EPREFIX/sbin]
787 --libexecdir=DIR program executables [EPREFIX/libexec]
788 --datadir=DIR read-only architecture-independent data [PREFIX/share]
789 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
790 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
791 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
792 --libdir=DIR object code libraries [EPREFIX/lib]
793 --includedir=DIR C header files [PREFIX/include]
794 --oldincludedir=DIR C header files for non-gcc [/usr/include]
795 --infodir=DIR info documentation [PREFIX/info]
796 --mandir=DIR man documentation [PREFIX/man]
797_ACEOF
798
799 cat <<\_ACEOF
800
801Program names:
802 --program-prefix=PREFIX prepend PREFIX to installed program names
803 --program-suffix=SUFFIX append SUFFIX to installed program names
804 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
805
806System types:
807 --build=BUILD configure for building on BUILD [guessed]
808 --host=HOST cross-compile to build programs to run on HOST [BUILD]
809 --target=TARGET configure for building compilers for TARGET [HOST]
810_ACEOF
a0da8069 811fi
a0da8069 812
c6b750e1
DJ
813if test -n "$ac_init_help"; then
814
815 cat <<\_ACEOF
816
817Optional Features:
818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
820 --enable-libada Builds libada directory
821 --enable-libssp Builds libssp directory
822 --enable-stage1-languages=all choose additional languages to build during
823 stage1. Mostly useful for compiler development.
824 --enable-objc-gc enable the use of Boehm's garbage collector with
825 the GNU Objective-C runtime.
826 --enable-bootstrap Enable bootstrapping yes if native build
827 --enable-serial-{host,target,build}-configure
828 Force sequential configuration of
829 sub-packages for the host, target or build
830 machine, or all sub-packages
831 --enable-maintainer-mode enable make rules and dependencies not useful
832 (and sometimes confusing) to the casual installer
833 --enable-stage1-checking=all choose additional checking for stage1
834 of the compiler.
835 --enable-werror enable -Werror in bootstrap stage2 and later
836
837Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-build-libsubdir=DIR Directory where to find libraries for build system
841 --with-mpfr-dir=PATH This option has been REMOVED
842 --with-mpfr=PATH Specify prefix directory for installed MPFR package
843 Equivalent to --with-mpfr-include=PATH/include
844 plus --with-mpfr-lib=PATH/lib
845 --with-mpfr-include=PATH
846 Specify directory for installed MPFR include files
847 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
848 --with-gmp-dir=PATH This option has been REMOVED
849 --with-gmp=PATH Specify prefix directory for the installed GMP package
850 Equivalent to --with-gmp-include=PATH/include
851 plus --with-gmp-lib=PATH/lib
852 --with-gmp-include=PATH Specify directory for installed GMP include files
853 --with-gmp-lib=PATH Specify the directory for the installed GMP library
854 --with-build-sysroot=sysroot
855 use sysroot as the system root during the build
856 --with-build-time-tools=path
857 use given path to find target tools during the build
858 --with-datarootdir Use datarootdir as the data root directory.
859 --with-docdir Install documentation in this directory.
860 --with-htmldir Install html in this directory.
861
862Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
24ff9987
DJ
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
c6b750e1
DJ
871
872Use these variables to override the choices made by `configure' or to help
873it to find libraries and programs with nonstandard names/locations.
874
875_ACEOF
876fi
877
878if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889else
890 ac_dir_suffix= ac_top_builddir=
891fi
892
893case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907esac
908
909# Do not use `cd foo && pwd` to compute absolute paths, because
910# the directories may not exist.
911case `pwd` in
912.) ac_abs_builddir="$ac_dir";;
913*)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_top_builddir=${ac_top_builddir}.;;
922*)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_srcdir=$ac_srcdir;;
931*)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_srcdir=$ac_top_srcdir;;
940*)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd $ac_popdir
964 done
965fi
966
967test -n "$ac_init_help" && exit 0
968if $ac_init_version; then
969 cat <<\_ACEOF
970
971Copyright (C) 2003 Free Software Foundation, Inc.
972This configure script is free software; the Free Software Foundation
973gives unlimited permission to copy, distribute and modify it.
974_ACEOF
975 exit 0
976fi
977exec 5>config.log
978cat >&5 <<_ACEOF
979This file contains any messages produced by compilers while
980running configure, to aid debugging if configure makes a mistake.
981
982It was created by $as_me, which was
983generated by GNU Autoconf 2.59. Invocation command line was
984
985 $ $0 $@
986
987_ACEOF
988{
989cat <<_ASUNAME
990## --------- ##
991## Platform. ##
992## --------- ##
993
994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995uname -m = `(uname -m) 2>/dev/null || echo unknown`
996uname -r = `(uname -r) 2>/dev/null || echo unknown`
997uname -s = `(uname -s) 2>/dev/null || echo unknown`
998uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002
1003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010
1011_ASUNAME
1012
1013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014for as_dir in $PATH
1015do
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019done
1020
1021} >&5
1022
1023cat >&5 <<_ACEOF
1024
1025
1026## ----------- ##
1027## Core tests. ##
1028## ----------- ##
1029
1030_ACEOF
1031
1032
1033# Keep a trace of the command line.
1034# Strip out --no-create and --no-recursion so they do not pile up.
1035# Strip out --silent because we don't want to record it for future runs.
1036# Also quote any args containing shell meta-characters.
1037# Make two passes to allow for proper duplicate-argument suppression.
1038ac_configure_args=
1039ac_configure_args0=
1040ac_configure_args1=
1041ac_sep=
1042ac_must_keep_next=false
1043for ac_pass in 1 2
1044do
1045 for ac_arg
1046 do
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 2)
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1070 ;;
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1073 fi
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1077 ;;
1078 esac
1079 done
1080done
1081$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084# When interrupted or exit'd, cleanup temporary files, and complete
1085# config.log. We remove comments because anyway the quotes in there
1086# would cause problems or look ugly.
1087# WARNING: Be sure not to use single quotes in there, as some shells,
1088# such as our DU 5.0 friend, will then `close' the trap.
1089trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1091 {
1092 echo
1093
1094 cat <<\_ASBOX
1095## ---------------- ##
1096## Cache variables. ##
1097## ---------------- ##
1098_ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1101{
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 ;;
1109 *)
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ;;
1113 esac;
1114}
1115 echo
1116
1117 cat <<\_ASBOX
1118## ----------------- ##
1119## Output variables. ##
1120## ----------------- ##
1121_ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132## ------------- ##
1133## Output files. ##
1134## ------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143 fi
1144
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147## ----------- ##
1148## confdefs.h. ##
1149## ----------- ##
1150_ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1154 fi
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1162 ' 0
1163for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165done
1166ac_signal=0
1167
1168# confdefs.h avoids OS command line length limits that DEFS can exceed.
1169rm -rf conftest* confdefs.h
1170# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171echo >confdefs.h
1172
1173# Predefined preprocessor variables.
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_NAME "$PACKAGE_NAME"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_VERSION "$PACKAGE_VERSION"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_STRING "$PACKAGE_STRING"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197_ACEOF
1198
1199
1200# Let the site file select an alternate cache file if it wants to.
a0da8069 1201# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1202if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1207 fi
1208fi
1209for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
c6b750e1
DJ
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1214 . "$ac_site_file"
1215 fi
1216done
1217
1218if test -r "$cache_file"; then
c6b750e1
DJ
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1228 fi
a0da8069 1229else
c6b750e1
DJ
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1233fi
1234
1235# Check that the precious variables saved in the cache have kept the same
1236# value.
1237ac_cache_corrupted=false
1238for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1254 *)
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1276 fi
1277done
1278if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
a0da8069
NN
1284fi
1285
1286ac_ext=c
a0da8069 1287ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
a0da8069
NN
1304
1305
75778ec4 1306
c6b750e1
DJ
1307
1308
1309
1310
1311
1312# Find the build, host, and target systems.
a0da8069 1313ac_aux_dir=
315b3b02 1314for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1315 if test -f $ac_dir/install-sh; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/install-sh -c"
1318 break
1319 elif test -f $ac_dir/install.sh; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/install.sh -c"
1322 break
c6b750e1
DJ
1323 elif test -f $ac_dir/shtool; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/shtool install -c"
1326 break
a0da8069
NN
1327 fi
1328done
1329if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332 { (exit 1); exit 1; }; }
a0da8069 1333fi
c6b750e1
DJ
1334ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1335ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1337
c6b750e1
DJ
1338# Make sure we can run config.sub.
1339$ac_config_sub sun4 >/dev/null 2>&1 ||
1340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1341echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342 { (exit 1); exit 1; }; }
1343
1344echo "$as_me:$LINENO: checking build system type" >&5
1345echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346if test "${ac_cv_build+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348else
1349 ac_cv_build_alias=$build_alias
1350test -z "$ac_cv_build_alias" &&
1351 ac_cv_build_alias=`$ac_config_guess`
1352test -z "$ac_cv_build_alias" &&
1353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1354echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355 { (exit 1); exit 1; }; }
1356ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1358echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1359 { (exit 1); exit 1; }; }
1360
1361fi
1362echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1363echo "${ECHO_T}$ac_cv_build" >&6
1364build=$ac_cv_build
1365build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1368
a0da8069 1369
c6b750e1
DJ
1370 case ${build_alias} in
1371 "") build_noncanonical=${build} ;;
1372 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1373esac
1374
1375
cac3d6c4 1376
c6b750e1
DJ
1377 case ${host_alias} in
1378 "") host_noncanonical=${build_noncanonical} ;;
1379 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1380esac
1381
cac3d6c4 1382
c6b750e1
DJ
1383
1384 case ${target_alias} in
1385 "") target_noncanonical=${host_noncanonical} ;;
1386 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1387esac
1388
cac3d6c4 1389
c6b750e1
DJ
1390
1391
1392test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
c6b750e1 1395 program_transform_name=s,y,y,
cac3d6c4 1396
c6b750e1
DJ
1397echo "$as_me:$LINENO: checking host system type" >&5
1398echo $ECHO_N "checking host system type... $ECHO_C" >&6
1399if test "${ac_cv_host+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1401else
c6b750e1
DJ
1402 ac_cv_host_alias=$host_alias
1403test -z "$ac_cv_host_alias" &&
1404 ac_cv_host_alias=$ac_cv_build_alias
1405ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1407echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1409
1410fi
1411echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1412echo "${ECHO_T}$ac_cv_host" >&6
1413host=$ac_cv_host
1414host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1417
1418
1419echo "$as_me:$LINENO: checking target system type" >&5
1420echo $ECHO_N "checking target system type... $ECHO_C" >&6
1421if test "${ac_cv_target+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423else
1424 ac_cv_target_alias=$target_alias
1425test "x$ac_cv_target_alias" = "x" &&
1426 ac_cv_target_alias=$ac_cv_host_alias
1427ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1429echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1431
cac3d6c4 1432fi
c6b750e1
DJ
1433echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1434echo "${ECHO_T}$ac_cv_target" >&6
1435target=$ac_cv_target
1436target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439
1440
1441# The aliases save the names the user supplied, while $host etc.
1442# will get canonicalized.
1443test -n "$target_alias" &&
1444 test "$program_prefix$program_suffix$program_transform_name" = \
1445 NONENONEs,x,x, &&
1446 program_prefix=${target_alias}-
a0da8069 1447test "$program_prefix" != NONE &&
c6b750e1 1448 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1449# Use a double $ so make ignores it.
1450test "$program_suffix" != NONE &&
c6b750e1
DJ
1451 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1452# Double any \ or $. echo might interpret backslashes.
1453# By default was `s,x,x', remove it if useless.
1454cat <<\_ACEOF >conftest.sed
1455s/[\\$]/&&/g;s/;s,x,x,$//
1456_ACEOF
1457program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1458rm conftest.sed
cac3d6c4 1459
a0da8069
NN
1460
1461
e5c3f801
NN
1462# Get 'install' or 'install-sh' and its variants.
1463# Find a good install program. We prefer a C program (faster),
1464# so one script is as good as another. But avoid the broken or
1465# incompatible versions:
1466# SysV /etc/install, /usr/sbin/install
1467# SunOS /usr/etc/install
1468# IRIX /sbin/install
1469# AIX /bin/install
c6b750e1 1470# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1474# OS/2's system install, which has a completely different semantic
e5c3f801 1475# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1476echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1478if test -z "$INSTALL"; then
c6b750e1
DJ
1479if test "${ac_cv_path_install+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 # Account for people who put trailing slashes in PATH elements.
1488case $as_dir/ in
1489 ./ | .// | /cC/* | \
1490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492 /usr/ucb/* ) ;;
1493 *)
1494 # OSF1 and SCO ODT 3.0 have their own names for install.
1495 # Don't use installbsd from OSF since it installs stuff as root
1496 # by default.
1497 for ac_prog in ginstall scoinst install; do
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1500 if test $ac_prog = install &&
c6b750e1 1501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1502 # AIX install. It has an incompatible calling convention.
1503 :
c6b750e1
DJ
1504 elif test $ac_prog = install &&
1505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1506 # program-specific install script used by HP pwplus--don't use.
1507 :
e5c3f801 1508 else
c6b750e1
DJ
1509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1510 break 3
e5c3f801
NN
1511 fi
1512 fi
1513 done
c6b750e1
DJ
1514 done
1515 ;;
1516esac
1517done
1518
e5c3f801
NN
1519
1520fi
1521 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1522 INSTALL=$ac_cv_path_install
e5c3f801
NN
1523 else
1524 # As a last resort, use the slow shell script. We don't cache a
1525 # path for INSTALL within a source directory, because that will
1526 # break other packages using the cache if that directory is
1527 # removed, or if the path is relative.
c6b750e1 1528 INSTALL=$ac_install_sh
e5c3f801
NN
1529 fi
1530fi
c6b750e1
DJ
1531echo "$as_me:$LINENO: result: $INSTALL" >&5
1532echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1533
1534# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535# It thinks the first close brace ends the variable substitution.
1536test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1537
c6b750e1 1538test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1539
1540test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1541
c6b750e1
DJ
1542echo "$as_me:$LINENO: checking whether ln works" >&5
1543echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1544if test "${acx_cv_prog_LN+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1546else
1547 rm -f conftestdata_t
1548echo >conftestdata_f
1549if ln conftestdata_f conftestdata_t 2>/dev/null
1550then
1551 acx_cv_prog_LN=ln
1552else
1553 acx_cv_prog_LN=no
1554fi
1555rm -f conftestdata_f conftestdata_t
1556
1557fi
1558if test $acx_cv_prog_LN = no; then
1559 LN="cp"
c6b750e1
DJ
1560 echo "$as_me:$LINENO: result: no, using $LN" >&5
1561echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1562else
1563 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1564 echo "$as_me:$LINENO: result: yes" >&5
1565echo "${ECHO_T}yes" >&6
656fdd47
PB
1566fi
1567
c6b750e1
DJ
1568echo "$as_me:$LINENO: checking whether ln -s works" >&5
1569echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1570LN_S=$as_ln_s
1571if test "$LN_S" = "ln -s"; then
1572 echo "$as_me:$LINENO: result: yes" >&5
1573echo "${ECHO_T}yes" >&6
cac3d6c4 1574else
c6b750e1
DJ
1575 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1576echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1577fi
1578
e5c3f801 1579
252b5132 1580### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1581### If we are on Windows, search for the shell. This will permit people
1582### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1583### without also having to set CONFIG_SHELL. This code will work when
1584### using bash, which sets OSTYPE.
1585case "${OSTYPE}" in
1586*win32*)
a0da8069
NN
1587 if test x${CONFIG_SHELL} = x ; then
1588 if test ! -f /bin/sh ; then
1589 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1590 CONFIG_SHELL=${SHELL}
1591 export CONFIG_SHELL
1592 else
1593 for prog in sh sh.exe bash bash.exe; do
1594 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1595 for dir in $PATH; do
1596 test -z "$dir" && dir=.
1597 if test -f $dir/$prog; then
1598 CONFIG_SHELL=$dir/$prog
1599 export CONFIG_SHELL
1600 break
1601 fi
1602 done
1603 IFS="$save_ifs"
1604 test -n "${CONFIG_SHELL}" && break
1605 done
1606 fi
1607 fi
1608 fi
1609 ;;
1610esac
1611
1612config_shell=${CONFIG_SHELL-/bin/sh}
1613
252b5132
RH
1614progname=$0
1615# if PWD already has a value, it is probably wrong.
a0da8069 1616if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1617
d2cc0e0d 1618# Export original configure arguments for use by sub-configures. These
8ff944f6
DJ
1619# will be expanded by make, so quote '$'.
1620tmp="$progname $@"
1621sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1622$tmp
d2cc0e0d 1623EOF_SED
8ff944f6
DJ
1624TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1625rm -f conftestsed.out
586c0873 1626
75205f78 1627
a0da8069 1628moveifchange=${srcdir}/move-if-change
252b5132 1629
0fdbe983
DJ
1630srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1631
1632# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1633# a relative path.
1634if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1635 INSTALL="${srcpwd}/install-sh -c"
1636fi
1637
a0da8069
NN
1638# Set srcdir to "." if that's what it is.
1639# This is important for multilib support.
1640pwd=`${PWDCMD-pwd}`
a0da8069
NN
1641if test "${pwd}" = "${srcpwd}" ; then
1642 srcdir=.
252b5132
RH
1643fi
1644
a0da8069 1645topsrcdir=$srcpwd
252b5132 1646
a0da8069 1647extra_host_args=
afefada0 1648
a0da8069
NN
1649### To add a new directory to the tree, first choose whether it is a target
1650### or a host dependent tool. Then put it into the appropriate list
1651### (library or tools, host or target), doing a dependency sort.
252b5132 1652
c6b750e1 1653# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1654# configdirs, or target_configdirs; see the serialization section below.
252b5132 1655
c6b750e1
DJ
1656# Dependency sorting is only needed when *configuration* must be done in
1657# a particular order. In all cases a dependency should be specified in
a0da8069 1658# the Makefile, whether or not it's implicitly specified here.
252b5132 1659
a0da8069
NN
1660# Double entries in build_configdirs, configdirs, or target_configdirs may
1661# cause circular dependencies and break everything horribly.
252b5132 1662
6a9cf61e
PB
1663# these library is used by various programs built for the build
1664# environment
1665#
1666build_libs="build-libiberty"
1667
1668# these tools are built for the build environment
ee025550 1669build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1670
a0da8069
NN
1671# these libraries are used by various programs built for the host environment
1672#
4b900473 1673host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1674
a0da8069
NN
1675# these tools are built for the host environment
1676# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1677# know that we are building the simulator.
1678# binutils, gas and ld appear in that order because it makes sense to run
1679# "make check" in that particular order.
b00612cc 1680host_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"
a0da8069
NN
1681
1682# libgcj represents the runtime libraries only used by gcj.
1683libgcj="target-libffi \
a0da8069
NN
1684 target-zlib \
1685 target-qthreads \
1686 target-libjava"
1687
1688# these libraries are built for the target environment, and are built after
1689# the host libraries and the host tools (which may be a cross compiler)
1690#
9c14acb8 1691target_libraries="target-libiberty \
6aa8ef82 1692 target-libgcc \
a0da8069
NN
1693 target-libgloss \
1694 target-newlib \
b9459e83 1695 target-libstdc++-v3 \
4b1cb4fe 1696 target-libmudflap \
bb780410 1697 target-libssp \
4b1cb4fe 1698 target-libgfortran \
4f0ef2d8 1699 target-boehm-gc \
83326456 1700 ${libgcj} \
a2592b1b 1701 target-libobjc \
b3ded179
PB
1702 target-libada \
1703 target-libgomp"
a0da8069 1704
9c14acb8
NN
1705# these tools are built using the target libraries, and are intended to
1706# run only in the target environment
a0da8069 1707#
9c14acb8 1708# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1709# list belongs in this list. those programs are also very likely
1710# candidates for the "native_only" list which follows
1711#
a3dd767d 1712target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1713
a0da8069 1714################################################################################
252b5132 1715
a0da8069
NN
1716## All tools belong in one of the four categories, and are assigned above
1717## We assign ${configdirs} this way to remove all embedded newlines. This
1718## is important because configure will choke if they ever get through.
1719## ${configdirs} is directories we build using the host tools.
1720## ${target_configdirs} is directories we build using the target tools.
a0da8069 1721configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1722target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1723build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1724
a0da8069 1725################################################################################
252b5132 1726
a0da8069 1727srcname="gnu development package"
252b5132 1728
a0da8069
NN
1729# This gets set non-empty for some net releases of packages.
1730appdirs=""
252b5132 1731
a0da8069
NN
1732# Define is_cross_compiler to save on calls to 'test'.
1733is_cross_compiler=
1734if test x"${host}" = x"${target}" ; then
1735 is_cross_compiler=no
252b5132 1736else
a0da8069 1737 is_cross_compiler=yes
c6b750e1 1738fi
252b5132 1739
9175bfc0 1740# Find the build and target subdir names.
dd12c3a8 1741
66a79c16
DJ
1742# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1743# have matching libraries, they should use host libraries: Makefile.tpl
1744# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1745# However, they still use the build modules, because the corresponding
1746# host modules (e.g. bison) are only built for the host when bootstrap
1747# finishes. So:
1748# - build_subdir is where we find build modules, and never changes.
1749# - build_libsubdir is where we find build libraries, and can be overridden.
1750
1751# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1752build_subdir="build-${build_noncanonical}"
c6b750e1 1753
66a79c16
DJ
1754# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1755if test "${with_build_libsubdir+set}" = set; then
1756 withval="$with_build_libsubdir"
1757 build_libsubdir="$withval"
1758else
1759 build_libsubdir="$build_subdir"
c6b750e1 1760fi;
b00612cc
PB
1761# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1762if ( test $srcdir = . && test -d gcc ) \
1763 || test -d $srcdir/../host-${host_noncanonical}; then
1764 host_subdir="host-${host_noncanonical}"
1765else
1766 host_subdir=.
1767fi
dd12c3a8
NN
1768# No prefix.
1769target_subdir=${target_noncanonical}
c6b750e1 1770
252b5132 1771
a0da8069
NN
1772# Skipdirs are removed silently.
1773skipdirs=
1774# Noconfigdirs are removed loudly.
1775noconfigdirs=""
252b5132 1776
a0da8069
NN
1777use_gnu_ld=
1778# Make sure we don't let GNU ld be added if we didn't want it.
1779if test x$with_gnu_ld = xno ; then
1780 use_gnu_ld=no
1781 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1782fi
1783
a0da8069
NN
1784use_gnu_as=
1785# Make sure we don't let GNU as be added if we didn't want it.
1786if test x$with_gnu_as = xno ; then
1787 use_gnu_as=no
1788 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1789fi
1790
c6b750e1 1791# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1792# it's not even worth trying to configure, much less build, that tool.
252b5132 1793
a0da8069
NN
1794case ${with_x} in
1795 yes | "") ;; # the default value for this tree is that X11 is available
1796 no)
675c6968 1797 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1798 # We won't be able to build gdbtk without X.
c6b750e1 1799 enable_gdbtk=no
a0da8069
NN
1800 ;;
1801 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1802esac
252b5132 1803
a0da8069 1804# Some tools are only suitable for building in a "native" situation.
c6b750e1 1805# Remove these if host!=target.
701628f5 1806native_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"
252b5132 1807
a0da8069
NN
1808# Similarly, some are only suitable for cross toolchains.
1809# Remove these if host=target.
1810cross_only="target-libgloss target-newlib target-opcodes"
1811
1812case $is_cross_compiler in
1813 no) skipdirs="${skipdirs} ${cross_only}" ;;
1814 yes) skipdirs="${skipdirs} ${native_only}" ;;
1815esac
252b5132 1816
a0da8069
NN
1817# If both --with-headers and --with-libs are specified, default to
1818# --without-newlib.
32be62b5
RS
1819if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1820 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1821 if test x"${with_newlib}" = x ; then
1822 with_newlib=no
1823 fi
252b5132
RH
1824fi
1825
a0da8069
NN
1826# Recognize --with-newlib/--without-newlib.
1827case ${with_newlib} in
1828 no) skipdirs="${skipdirs} target-newlib" ;;
1829 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1830esac
252b5132 1831
a0da8069 1832# Configure extra directories which are host specific
252b5132 1833
a0da8069
NN
1834case "${host}" in
1835 *-cygwin*)
1836 configdirs="$configdirs libtermcap" ;;
1837esac
252b5132 1838
59f7ec45
HPN
1839# A target can indicate whether a language isn't supported for some reason.
1840# Only spaces may be used in this macro; not newlines or tabs.
1841unsupported_languages=
1842
c6b750e1 1843# Remove more programs from consideration, based on the host or
a0da8069
NN
1844# target this usually means that a port of the program doesn't
1845# exist yet.
252b5132 1846
a0da8069
NN
1847case "${host}" in
1848 hppa*64*-*-*)
1849 noconfigdirs="$noconfigdirs byacc"
1850 ;;
ec11bdc6 1851 i[3456789]86-*-vsta)
675c6968 1852 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 1853 ;;
ec11bdc6 1854 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 1855 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 1856 ;;
2d1e8239
NC
1857 x86_64-*-mingw*)
1858 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1859 ;;
ec11bdc6 1860 i[3456789]86-*-mingw32*)
675c6968 1861 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 1862 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 1863 ;;
ec11bdc6 1864 i[3456789]86-*-beos*)
675c6968 1865 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 1866 ;;
a0da8069 1867 *-*-cygwin*)
a92834c8 1868 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
1869 ;;
1870 *-*-netbsd*)
a92834c8 1871 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
1872 ;;
1873 ppc*-*-pe)
675c6968 1874 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
1875 ;;
1876 powerpc-*-beos*)
675c6968 1877 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 1878 ;;
a0da8069 1879esac
252b5132 1880
4b1cb4fe 1881
a2592b1b
DD
1882# Check whether --enable-libada or --disable-libada was given.
1883if test "${enable_libada+set}" = set; then
1884 enableval="$enable_libada"
1885 ENABLE_LIBADA=$enableval
1886else
1887 ENABLE_LIBADA=yes
c6b750e1 1888fi;
a2592b1b 1889if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 1890 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
1891fi
1892
5f128533
KH
1893# Check whether --enable-libssp or --disable-libssp was given.
1894if test "${enable_libssp+set}" = set; then
1895 enableval="$enable_libssp"
1896 ENABLE_LIBSSP=$enableval
1897else
1898 ENABLE_LIBSSP=yes
c6b750e1 1899fi;
5f128533 1900
a0da8069
NN
1901# Save it here so that, even in case of --enable-libgcj, if the Java
1902# front-end isn't enabled, we still get libgcj disabled.
1903libgcj_saved=$libgcj
1904case $enable_libgcj in
1905yes)
1906 # If we reset it here, it won't get added to noconfigdirs in the
1907 # target-specific build rules, so it will be forcibly enabled
1908 # (unless the Java language itself isn't enabled).
1909 libgcj=
1910 ;;
1911no)
1912 # Make sure we get it printed in the list of not supported target libs.
1913 noconfigdirs="$noconfigdirs ${libgcj}"
1914 ;;
1915esac
252b5132 1916
4b1cb4fe 1917
a6df5a19
PB
1918# Disable libmudflap on some systems.
1919if test x$enable_libmudflap = x ; then
3e707e94 1920 case "${target}" in
b3ded179 1921 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3d6dfe0f 1922 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
1923 ;;
1924 *-*-freebsd*)
1925 # Enable libmudflap by default in FreeBSD.
1926 ;;
1927 *)
1928 # Disable it by default everywhere else.
1929 noconfigdirs="$noconfigdirs target-libmudflap"
1930 ;;
1931 esac
a6df5a19 1932fi
4b1cb4fe 1933
a6df5a19
PB
1934# Disable libgomp on non POSIX hosted systems.
1935if test x$enable_libgomp = x ; then
b3ded179
PB
1936 # Enable libgomp by default on hosted POSIX systems.
1937 case "${target}" in
1938 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1939 ;;
1940 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1941 ;;
64ce424c 1942 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
1943 ;;
1944 *-*-darwin* | *-*-aix*)
1945 ;;
1946 *)
1947 noconfigdirs="$noconfigdirs target-libgomp"
1948 ;;
1949 esac
a6df5a19 1950fi
b3ded179 1951
4b1cb4fe 1952
a0da8069
NN
1953case "${target}" in
1954 *-*-chorusos)
54d1c879 1955 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1956 ;;
790c0838 1957 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 1958 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 1959 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 1960 ;;
04d1ab34 1961 *-*-darwin*)
d320aacb 1962 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 1963 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 1964 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 1965 ;;
a0da8069 1966 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 1967 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1968 ;;
de0b4a87 1969 *-*-freebsd*)
4b1cb4fe
DD
1970 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1971 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1972 && test -f /usr/local/include/gmp.h; then
1973 with_gmp=/usr/local
1974 fi
1975
1976 # Skip some stuff that's unsupported on some FreeBSD configurations.
1977 case "${target}" in
1978 i*86-*-*) ;;
1979 alpha*-*-*) ;;
1980 *)
54d1c879 1981 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
1982 ;;
1983 esac
1984 ;;
f8a495c8
NC
1985 *-*-kaos*)
1986 # Remove unsupported stuff on all kaOS configurations.
54d1c879 1987 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
1988 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1989 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1990 noconfigdirs="$noconfigdirs target-libgloss"
1991 ;;
a0da8069
NN
1992 *-*-netbsd*)
1993 # Skip some stuff on all NetBSD configurations.
1994 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1995
1996 # Skip some stuff that's unsupported on some NetBSD configurations.
1997 case "${target}" in
1998 i*86-*-netbsdelf*) ;;
5b474aa8 1999 arm*-*-netbsdelf*) ;;
a0da8069 2000 *)
54d1c879 2001 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2002 ;;
2003 esac
2004 ;;
2a3124ca 2005 *-*-netware*)
54d1c879 2006 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2007 ;;
2008 *-*-rtems*)
54d1c879 2009 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2010 ;;
1587117a
EC
2011 # The tpf target doesn't support gdb yet.
2012 *-*-tpf*)
54d1c879 2013 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2014 ;;
c1968181 2015 *-*-uclinux*)
54d1c879 2016 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2017 ;;
a0da8069 2018 *-*-vxworks*)
54d1c879 2019 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2020 ;;
2021 alpha*-dec-osf*)
2022 # ld works, but does not support shared libraries.
2023 # newlib is not 64 bit ready. I'm not sure about fileutils.
2024 # gas doesn't generate exception information.
2025 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2026 ;;
2027 alpha*-*-*vms*)
54d1c879 2028 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2029 ;;
2030 alpha*-*-linux*)
2031 # newlib is not 64 bit ready
2032 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2033 ;;
a0da8069
NN
2034 alpha*-*-*)
2035 # newlib is not 64 bit ready
54d1c879 2036 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2037 ;;
4a18bd6b 2038 am33_2.0-*-linux*)
54d1c879 2039 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2040 ;;
a0da8069 2041 sh-*-linux*)
54d1c879 2042 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2043 ;;
a0da8069 2044 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2045 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2046 noconfigdirs="$noconfigdirs target-examples"
2047 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2048 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2049 noconfigdirs="$noconfigdirs expect dejagnu"
2050 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2051 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2052 noconfigdirs="$noconfigdirs target-newlib"
2053 case "${host}" in
2054 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2055 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2056 ;;
2057 esac
2058 ;;
2059 arc-*-*)
54d1c879 2060 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2061 ;;
caeba88f 2062 arm-semi-aof )
caeba88f 2063 ;;
a0da8069 2064 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2065 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2066 ;;
11b04d1f 2067 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2068 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2069 ;;
bd70a46f
KH
2070 arm*-*-linux-gnueabi)
2071 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2072 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2073 ;;
df4a6958 2074 arm*-*-symbianelf*)
54d1c879 2075 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2076 ;;
a0da8069 2077 arm-*-pe*)
54d1c879 2078 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2079 ;;
a0da8069 2080 thumb-*-coff)
54d1c879 2081 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2082 ;;
2083 thumb-*-elf)
54d1c879 2084 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2085 ;;
a0da8069 2086 thumb-*-pe)
54d1c879 2087 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2088 ;;
2089 arm-*-riscix*)
54d1c879 2090 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2091 ;;
2092 avr-*-*)
54d1c879 2093 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2094 ;;
376a0e54 2095 bfin-*-*)
00d89675 2096 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2097 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2098 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2099 fi
2100 ;;
a0da8069 2101 c4x-*-* | tic4x-*-*)
54d1c879 2102 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2103 ;;
2104 c54x*-*-* | tic54x-*-*)
54d1c879 2105 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2106 ;;
c7e66c6d 2107 cris-*-* | crisv32-*-*)
59f7ec45 2108 unsupported_languages="$unsupported_languages java"
c7e66c6d 2109 case "${target}" in
2faa2958 2110 *-*-aout)
096f7d00 2111 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2112 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2113 *-*-elf)
096f7d00 2114 unsupported_languages="$unsupported_languages fortran"
5e818318 2115 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2116 *-*-linux*)
5e818318 2117 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2118 *)
096f7d00 2119 unsupported_languages="$unsupported_languages fortran"
54d1c879 2120 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2121 esac
a0da8069 2122 ;;
3e707e94 2123 crx-*-*)
54d1c879 2124 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2125 ;;
a0da8069 2126 d10v-*-*)
54d1c879 2127 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2128 ;;
2129 d30v-*-*)
54d1c879 2130 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2131 ;;
2132 fr30-*-elf*)
54d1c879 2133 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2134 ;;
2135 frv-*-*)
54d1c879 2136 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2137 ;;
2138 h8300*-*-*)
54d1c879 2139 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2140 ;;
2141 h8500-*-*)
54d1c879 2142 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2143 ;;
caeba88f 2144 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2145 ;;
a0da8069
NN
2146 hppa*64*-*-linux* | parisc*64*-*-linux*)
2147 # In this case, it's because the hppa64-linux target is for
2148 # the kernel only at this point and has no libc, and thus no
2149 # headers, crt*.o, etc., all of which are needed by these.
2150 noconfigdirs="$noconfigdirs target-zlib"
2151 ;;
5dcac624
DA
2152 parisc*-*-linux* | hppa*-*-linux*)
2153 ;;
a0da8069 2154 hppa*-*-*elf* | \
a0da8069
NN
2155 hppa*-*-lites* | \
2156 hppa*-*-openbsd* | \
2157 hppa*64*-*-*)
54d1c879 2158 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2159 ;;
2160 hppa*-hp-hpux11*)
2161 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2162 ;;
2163 hppa*-*-*)
2164 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2165 # build on HP-UX 10.20.
54d1c879 2166 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2167 ;;
b07c2aad 2168 i960-*-*)
54d1c879 2169 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2170 ;;
a0da8069
NN
2171 ia64*-*-elf*)
2172 # No gdb support yet.
675c6968 2173 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2174 ;;
2175 ia64*-**-hpux*)
2176 # No gdb or ld support yet.
54d1c879 2177 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2178 ;;
caeba88f 2179 i370-*-opened*)
caeba88f 2180 ;;
ec11bdc6 2181 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2182 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2183 ;;
ec11bdc6 2184 i[3456789]86-*-linux*)
a0da8069
NN
2185 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2186 # not build java stuff by default.
2187 case "${target}" in
2188 *-*-*libc1*)
54d1c879 2189 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2190 esac
2191
2192 # This section makes it possible to build newlib natively on linux.
2193 # If we are using a cross compiler then don't configure newlib.
2194 if test x${is_cross_compiler} != xno ; then
bba45b8b 2195 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2196 fi
2197 noconfigdirs="$noconfigdirs target-libgloss"
2198 # If we are not using a cross compiler, do configure newlib.
2199 # Note however, that newlib will only be configured in this situation
2200 # if the --with-newlib option has been given, because otherwise
2201 # 'target-newlib' will appear in skipdirs.
2202 ;;
ec11bdc6 2203 i[3456789]86-*-mingw32*)
45055374
CV
2204 target_configdirs="$target_configdirs target-winsup"
2205 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2206 ;;
2d1e8239
NC
2207 x86_64-*-mingw*)
2208 target_configdirs="$target_configdirs target-winsup"
2209 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2210 ;;
a0da8069
NN
2211 *-*-cygwin*)
2212 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2213 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2214 # always build newlib if winsup directory is present.
45055374 2215 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2216 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2217 elif test -d "$srcdir/newlib"; then
45055374 2218 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2219 fi
c6b750e1 2220 ;;
caeba88f
AL
2221 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2222 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2223 ;;
ec11bdc6 2224 i[3456789]86-*-pe)
54d1c879 2225 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2226 ;;
ec11bdc6 2227 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2228 # The linker does not yet know about weak symbols in COFF,
2229 # and is not configured to handle mixed ELF and COFF.
54d1c879 2230 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2231 ;;
ec11bdc6 2232 i[3456789]86-*-sco*)
54d1c879 2233 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2234 ;;
ec11bdc6 2235 i[3456789]86-*-solaris2*)
a0da8069
NN
2236 noconfigdirs="$noconfigdirs target-libgloss"
2237 ;;
ec11bdc6 2238 i[3456789]86-*-sysv4*)
54d1c879 2239 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2240 ;;
ec11bdc6 2241 i[3456789]86-*-beos*)
54d1c879 2242 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2243 ;;
b59bea8a 2244 i[3456789]86-*-rdos*)
2429c060
PB
2245 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2246 ;;
b07c2aad 2247 m32r-*-*)
54d1c879 2248 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2249 ;;
a0da8069 2250 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2251 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2252 ;;
2253 m68k-*-elf*)
54d1c879 2254 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2255 ;;
2256 m68k-*-coff*)
54d1c879 2257 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2258 ;;
2259 mcore-*-pe*)
2260 # The EPOC C++ environment does not support exceptions or rtti,
2261 # and so building libstdc++-v3 tends not to always work.
2262 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2263 ;;
2264 mmix-*-*)
59f7ec45 2265 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2266 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2267 ;;
2268 mn10200-*-*)
54d1c879 2269 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2270 ;;
2271 mn10300-*-*)
54d1c879 2272 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2273 ;;
4970f871 2274 mt-*-*)
cdb9b172
AH
2275 noconfigdirs="$noconfigdirs sim"
2276 ;;
a0da8069
NN
2277 powerpc-*-aix*)
2278 # copied from rs6000-*-* entry
54d1c879 2279 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2280 ;;
2281 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2282 target_configdirs="$target_configdirs target-winsup"
54d1c879 2283 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2284 # always build newlib.
2285 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2286 ;;
2287 # This is temporary until we can link against shared libraries
2288 powerpcle-*-solaris*)
54d1c879 2289 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2290 ;;
2291 powerpc-*-beos*)
54d1c879 2292 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2293 ;;
a0da8069 2294 powerpc-*-eabi)
54d1c879 2295 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2296 ;;
2297 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2298 ;;
a0da8069 2299 rs6000-*-lynxos*)
54d1c879 2300 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2301 ;;
2302 rs6000-*-aix*)
54d1c879 2303 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2304 ;;
2305 rs6000-*-*)
54d1c879 2306 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2307 ;;
2308 m68k-apollo-*)
54d1c879 2309 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2310 ;;
2311 mips*-*-irix5*)
54d1c879 2312 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2313 ;;
2314 mips*-*-irix6*)
a0da8069
NN
2315 # Linking libjava exceeds command-line length limits on at least
2316 # IRIX 6.2, but not on IRIX 6.5.
2317 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2318 # <oldham@codesourcery.com>
54d1c879 2319 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2320 ;;
a0da8069 2321 mips*-*-bsd*)
54d1c879 2322 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2323 ;;
1712ab83 2324 mips64*-*-linux*)
f3529cf1 2325 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2326 ;;
a0da8069
NN
2327 mips*-*-linux*)
2328 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2329 ;;
2330 mips*-*-*)
54d1c879 2331 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2332 ;;
2333 romp-*-*)
54d1c879 2334 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2335 ;;
dbf85af7 2336 sh-*-* | sh64-*-*)
a0da8069 2337 case "${host}" in
ec11bdc6
DD
2338 i[3456789]86-*-vsta) ;; # don't add gprof back in
2339 i[3456789]86-*-go32*) ;; # don't add gprof back in
2340 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2341 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2342 esac
54d1c879 2343 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2344 ;;
a0da8069 2345 sparc-*-elf*)
54d1c879 2346 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2347 ;;
2348 sparc64-*-elf*)
54d1c879 2349 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2350 ;;
2351 sparclite-*-*)
54d1c879 2352 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2353 ;;
2354 sparc-*-sunos4*)
54d1c879 2355 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2356 if test x${is_cross_compiler} != xno ; then
2357 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2358 else
2359 use_gnu_ld=no
2360 fi
2361 ;;
e3c770b1 2362 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2363 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2364 ;;
a0da8069
NN
2365 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2366 ;;
2839fe5d
BE
2367 spu-*-*)
2368 skipdirs="target-libssp"
2369 ;;
a0da8069 2370 v810-*-*)
54d1c879 2371 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2372 ;;
2373 v850-*-*)
54d1c879 2374 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2375 ;;
2376 v850e-*-*)
54d1c879 2377 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2378 ;;
2379 v850ea-*-*)
54d1c879 2380 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2381 ;;
2382 vax-*-vms)
54d1c879 2383 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2384 ;;
2385 vax-*-*)
54d1c879 2386 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2387 ;;
fbd1054d 2388 xtensa-*-*)
54d1c879 2389 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2390 ;;
a0da8069 2391 ip2k-*-*)
54d1c879 2392 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2393 ;;
de0b4a87 2394 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2396 ;;
2397 *-*-lynxos*)
54d1c879 2398 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2399 ;;
a0da8069 2400 *-*-*)
54d1c879 2401 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2402 ;;
2403esac
252b5132 2404
a0da8069
NN
2405# If we aren't building newlib, then don't build libgloss, since libgloss
2406# depends upon some newlib header files.
2407case "${noconfigdirs}" in
2408 *target-libgloss*) ;;
2409 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2410esac
2411
a0da8069
NN
2412# Work in distributions that contain no compiler tools, like Autoconf.
2413tentative_cc=""
2414host_makefile_frag=/dev/null
2415if test -d ${srcdir}/config ; then
2416case "${host}" in
2417 m68k-hp-hpux*)
2418 # Avoid "too much defining" errors from HPUX compiler.
2419 tentative_cc="cc -Wp,-H256000"
2420 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2421 # If it's HP/UX ar, this should be harmless.
2422 RANLIB="ar ts"
2423 ;;
2424 m68k-apollo-sysv*)
2425 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2426 ;;
2427 m68k-apollo-bsd*)
2428 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2429 # chokes on bfd, the compiler won't let you assign integers to enums, and
2430 # other problems. Defining CC to gcc is a questionable way to say "don't use
2431 # the apollo compiler" (the preferred version of GCC could be called cc,
2432 # or whatever), but I'm not sure leaving CC as cc is any better...
2433 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2434 # Used to have BISON=yacc.
2435 tentative_cc=gcc
2436 ;;
2437 m88k-dg-dgux*)
2438 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2439 ;;
2440 m88k-harris-cxux*)
2441 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2442 tentative_cc="cc -Xa"
2443 host_makefile_frag="config/mh-cxux"
2444 ;;
2445 m88k-motorola-sysv*)
2446 ;;
2447 mips*-dec-ultrix*)
2448 tentative_cc="cc -Wf,-XNg1000"
2449 host_makefile_frag="config/mh-decstation"
2450 ;;
2451 mips*-nec-sysv4*)
2452 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2453 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2454 host_makefile_frag="config/mh-necv4"
2455 ;;
2456 mips*-sgi-irix4*)
2457 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2458 # environment. Also bump switch table size so that cp-parse will
2459 # compile. Bump string length limit so linker builds.
2460 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2461 ;;
2462 mips*-*-sysv4*)
2463 host_makefile_frag="config/mh-sysv4"
2464 ;;
2465 mips*-*-sysv*)
2466 # This is for a MIPS running RISC/os 4.52C.
2467
2468 # This is needed for GDB, but needs to be in the top-level make because
2469 # if a library is compiled with the bsd headers and gets linked with the
2470 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2471 # a different size).
2472 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2473 # known except to select the sysv environment. Could we use /proc instead?
2474 # These "sysv environments" and "bsd environments" often end up being a pain.
2475 #
2476 # This is not part of CFLAGS because perhaps not all C compilers have this
2477 # option.
2478 tentative_cc="cc -systype sysv"
2479 ;;
2480 i370-ibm-opened*)
2481 tentative_cc="c89"
2482 ;;
ec11bdc6 2483 i[3456789]86-*-sysv5*)
a0da8069
NN
2484 host_makefile_frag="config/mh-sysv5"
2485 ;;
ec11bdc6 2486 i[3456789]86-*-dgux*)
a0da8069
NN
2487 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2488 host_makefile_frag="config/mh-dgux386"
2489 ;;
ec11bdc6 2490 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2491 # The MetaWare compiler will generate a copyright message unless you
2492 # turn it off by adding the -Hnocopyr flag.
2493 tentative_cc="cc -Hnocopyr"
2494 ;;
ec11bdc6 2495 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2496 # for an NCR 3000 (i486/SVR4) system.
2497 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2498 # This compiler not only emits obnoxious copyright messages every time
2499 # you run it, but it chokes and dies on a whole bunch of GNU source
2500 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2501 tentative_cc="/usr/ccs/ATT/cc"
2502 host_makefile_frag="config/mh-ncr3000"
2503 ;;
ec11bdc6 2504 i[3456789]86-*-sco3.2v5*)
a0da8069 2505 ;;
ec11bdc6 2506 i[3456789]86-*-sco*)
a0da8069
NN
2507 # The native C compiler botches some simple uses of const. Unfortunately,
2508 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2509 tentative_cc="cc -Dconst="
2510 host_makefile_frag="config/mh-sco"
2511 ;;
ec11bdc6 2512 i[3456789]86-*-udk*)
a0da8069
NN
2513 host_makefile_frag="config/mh-sysv5"
2514 ;;
ec11bdc6 2515 i[3456789]86-*-solaris2*)
a0da8069
NN
2516 host_makefile_frag="config/mh-sysv4"
2517 ;;
ec11bdc6 2518 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2519 host_makefile_frag="config/mh-djgpp"
2520 ;;
2521 *-cygwin*)
2522 host_makefile_frag="config/mh-cygwin"
2523 ;;
2524 *-mingw32*)
a0da8069 2525 ;;
2d1e8239
NC
2526 *-mingw64*)
2527 ;;
a0da8069
NN
2528 *-interix*)
2529 host_makefile_frag="config/mh-interix"
2530 ;;
2531 vax-*-ultrix2*)
2532 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2533 tentative_cc=gcc
2534 ;;
2535 *-*-solaris2*)
2536 host_makefile_frag="config/mh-solaris"
2537 ;;
2538 m68k-sun-sunos*)
2539 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2540 # without overflowing the jump tables (-J says to use a 32 bit table)
2541 tentative_cc="cc -J"
2542 ;;
2543 *-hp-hpux*)
2544 tentative_cc="cc -Wp,-H256000"
2545 ;;
2546 *-*-hiux*)
2547 tentative_cc="cc -Wp,-H256000"
2548 ;;
2549 rs6000-*-lynxos*)
2550 # /bin/cc is less than useful for our purposes. Always use GCC
2551 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2552 host_makefile_frag="config/mh-lynxrs6k"
2553 ;;
0df3d27f
PB
2554 powerpc-*-darwin*)
2555 host_makefile_frag="config/mh-ppc-darwin"
2556 ;;
f6d183c0
PB
2557 powerpc-*-aix*)
2558 host_makefile_frag="config/mh-ppc-aix"
2559 ;;
2560 rs6000-*-aix*)
2561 host_makefile_frag="config/mh-ppc-aix"
2562 ;;
a0da8069
NN
2563 *-*-lynxos*)
2564 # /bin/cc is less than useful for our purposes. Always use GCC
2565 tentative_cc="/bin/gcc"
2566 ;;
2567 *-*-sysv4*)
2568 host_makefile_frag="config/mh-sysv4"
2569 ;;
fe69863c
DD
2570 # This is placed last to prevent interfering with the cases above.
2571 i[3456789]86-*-*)
2572 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2573 host_makefile_frag="config/mh-x86omitfp"
2574 ;;
a0da8069
NN
2575esac
2576fi
2577
9e07f89d
NN
2578# If we aren't going to be using gcc, see if we can extract a definition
2579# of CC from the fragment.
2580# Actually, use the 'pre-extracted' version above.
2581if test -z "${CC}" && test "${build}" = "${host}" ; then
2582 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2583 found=
2584 for dir in $PATH; do
2585 test -z "$dir" && dir=.
2586 if test -f $dir/gcc; then
2587 found=yes
2588 break
2589 fi
2590 done
2591 IFS="$save_ifs"
2592 if test -z "${found}" && test -n "${tentative_cc}" ; then
2593 CC=$tentative_cc
2594 fi
2595fi
2596
2597if test "${build}" != "${host}" ; then
9e07f89d 2598 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d 2599else
9e07f89d 2600 CC_FOR_BUILD="\$(CC)"
24ff9987
DJ
2601fi
2602
2603ac_ext=c
c6b750e1
DJ
2604ac_cpp='$CPP $CPPFLAGS'
2605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613if test "${ac_cv_prog_CC+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631done
2632
2633fi
2634fi
2635CC=$ac_cv_prog_CC
2636if test -n "$CC"; then
2637 echo "$as_me:$LINENO: result: $CC" >&5
2638echo "${ECHO_T}$CC" >&6
2639else
2640 echo "$as_me:$LINENO: result: no" >&5
2641echo "${ECHO_T}no" >&6
2642fi
2643
2644fi
2645if test -z "$ac_cv_prog_CC"; then
2646 ac_ct_CC=$CC
6a9cf61e 2647 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2648set dummy gcc; ac_word=$2
c6b750e1
DJ
2649echo "$as_me:$LINENO: checking for $ac_word" >&5
2650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668done
2669done
2670
2671fi
2672fi
2673ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674if test -n "$ac_ct_CC"; then
2675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2676echo "${ECHO_T}$ac_ct_CC" >&6
2677else
2678 echo "$as_me:$LINENO: result: no" >&5
2679echo "${ECHO_T}no" >&6
2680fi
2681
2682 CC=$ac_ct_CC
2683else
2684 CC="$ac_cv_prog_CC"
2685fi
2686
2687if test -z "$CC"; then
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690set dummy ${ac_tool_prefix}cc; ac_word=$2
2691echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693if test "${ac_cv_prog_CC+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
c6b750e1
DJ
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706 ac_cv_prog_CC="${ac_tool_prefix}cc"
2707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2709 fi
2710done
2711done
2712
9e07f89d
NN
2713fi
2714fi
c6b750e1 2715CC=$ac_cv_prog_CC
9e07f89d 2716if test -n "$CC"; then
c6b750e1
DJ
2717 echo "$as_me:$LINENO: result: $CC" >&5
2718echo "${ECHO_T}$CC" >&6
9e07f89d 2719else
c6b750e1
DJ
2720 echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6
9e07f89d
NN
2722fi
2723
c6b750e1
DJ
2724fi
2725if test -z "$ac_cv_prog_CC"; then
2726 ac_ct_CC=$CC
2727 # Extract the first word of "cc", so it can be a program name with args.
2728set dummy cc; ac_word=$2
2729echo "$as_me:$LINENO: checking for $ac_word" >&5
2730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2731if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736else
2737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738for as_dir in $PATH
2739do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_ac_ct_CC="cc"
2745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2747 fi
2748done
2749done
2750
2751fi
2752fi
2753ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754if test -n "$ac_ct_CC"; then
2755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756echo "${ECHO_T}$ac_ct_CC" >&6
2757else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760fi
2761
2762 CC=$ac_ct_CC
2763else
2764 CC="$ac_cv_prog_CC"
2765fi
2766
2767fi
9e07f89d
NN
2768if test -z "$CC"; then
2769 # Extract the first word of "cc", so it can be a program name with args.
2770set dummy cc; ac_word=$2
c6b750e1
DJ
2771echo "$as_me:$LINENO: checking for $ac_word" >&5
2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2773if test "${ac_cv_prog_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2775else
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2778else
9e07f89d 2779 ac_prog_rejected=no
c6b750e1
DJ
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788 ac_prog_rejected=yes
2789 continue
2790 fi
2791 ac_cv_prog_CC="cc"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796done
2797
9e07f89d
NN
2798if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy $ac_cv_prog_CC
2801 shift
c6b750e1 2802 if test $# != 0; then
9e07f89d
NN
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2806 shift
c6b750e1 2807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2808 fi
2809fi
2810fi
2811fi
c6b750e1 2812CC=$ac_cv_prog_CC
9e07f89d 2813if test -n "$CC"; then
c6b750e1
DJ
2814 echo "$as_me:$LINENO: result: $CC" >&5
2815echo "${ECHO_T}$CC" >&6
9e07f89d 2816else
c6b750e1
DJ
2817 echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6
9e07f89d
NN
2819fi
2820
c6b750e1
DJ
2821fi
2822if test -z "$CC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in cl
2825 do
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828echo "$as_me:$LINENO: checking for $ac_word" >&5
2829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2830if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2832else
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2835else
c6b750e1
DJ
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 break 2
376a0e54 2846 fi
c6b750e1
DJ
2847done
2848done
cac3d6c4 2849
c6b750e1
DJ
2850fi
2851fi
2852CC=$ac_cv_prog_CC
2853if test -n "$CC"; then
2854 echo "$as_me:$LINENO: result: $CC" >&5
2855echo "${ECHO_T}$CC" >&6
cac3d6c4 2856else
c6b750e1
DJ
2857 echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6
9e07f89d 2859fi
cac3d6c4 2860
c6b750e1
DJ
2861 test -n "$CC" && break
2862 done
cac3d6c4 2863fi
c6b750e1
DJ
2864if test -z "$CC"; then
2865 ac_ct_CC=$CC
2866 for ac_prog in cl
2867do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869set dummy $ac_prog; ac_word=$2
2870echo "$as_me:$LINENO: checking for $ac_word" >&5
2871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 2874else
c6b750e1
DJ
2875 if test -n "$ac_ct_CC"; then
2876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 2877else
c6b750e1
DJ
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_CC="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890done
2891
cac3d6c4
CM
2892fi
2893fi
c6b750e1
DJ
2894ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895if test -n "$ac_ct_CC"; then
2896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2897echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 2898else
c6b750e1
DJ
2899 echo "$as_me:$LINENO: result: no" >&5
2900echo "${ECHO_T}no" >&6
cac3d6c4 2901fi
376a0e54 2902
c6b750e1
DJ
2903 test -n "$ac_ct_CC" && break
2904done
2905
2906 CC=$ac_ct_CC
2907fi
2908
2909fi
2910
2911
2912test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2913See \`config.log' for more details." >&5
2914echo "$as_me: error: no acceptable C compiler found in \$PATH
2915See \`config.log' for more details." >&2;}
2916 { (exit 1); exit 1; }; }
2917
2918# Provide some information about the compiler.
2919echo "$as_me:$LINENO:" \
2920 "checking for C compiler version" >&5
2921ac_compiler=`set X $ac_compile; echo $2`
2922{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2923 (eval $ac_compiler --version </dev/null >&5) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2928 (eval $ac_compiler -v </dev/null >&5) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2933 (eval $ac_compiler -V </dev/null >&5) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937
2938cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953ac_clean_files_save=$ac_clean_files
2954ac_clean_files="$ac_clean_files a.out a.exe b.out"
2955# Try to create an executable without -o first, disregard a.out.
2956# It will help us diagnose broken compilers, and finding out an intuition
2957# of exeext.
2958echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2959echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2960ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2962 (eval $ac_link_default) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Find the output, starting from the most likely. This scheme is
2967# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2968# resort.
2969
2970# Be careful to initialize this variable, since it used to be cached.
2971# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2972ac_cv_exeext=
2973# b.out is created by i960 compilers.
2974for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2975do
2976 test -f "$ac_file" || continue
2977 case $ac_file in
2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2979 ;;
2980 conftest.$ac_ext )
2981 # This is the source file.
2982 ;;
2983 [ab].out )
2984 # We found the default executable, but exeext='' is most
2985 # certainly right.
2986 break;;
2987 *.* )
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 # FIXME: I believe we export ac_cv_exeext for Libtool,
2990 # but it would be cool to find out if it's true. Does anybody
2991 # maintain Libtool? --akim.
2992 export ac_cv_exeext
2993 break;;
2994 * )
2995 break;;
2996 esac
2997done
2998else
2999 echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3003See \`config.log' for more details." >&5
3004echo "$as_me: error: C compiler cannot create executables
3005See \`config.log' for more details." >&2;}
3006 { (exit 77); exit 77; }; }
3007fi
3008
3009ac_exeext=$ac_cv_exeext
3010echo "$as_me:$LINENO: result: $ac_file" >&5
3011echo "${ECHO_T}$ac_file" >&6
3012
3013# Check the compiler produces executables we can run. If not, either
3014# the compiler is broken, or we cross compile.
3015echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3017# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018# If not cross compiling, check that we can run a simple program.
3019if test "$cross_compiling" != yes; then
3020 if { ac_try='./$ac_file'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; }; then
3026 cross_compiling=no
3027 else
3028 if test "$cross_compiling" = maybe; then
3029 cross_compiling=yes
3030 else
3031 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3032If you meant to cross compile, use \`--host'.
3033See \`config.log' for more details." >&5
3034echo "$as_me: error: cannot run C compiled programs.
3035If you meant to cross compile, use \`--host'.
3036See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3038 fi
3039 fi
3040fi
3041echo "$as_me:$LINENO: result: yes" >&5
3042echo "${ECHO_T}yes" >&6
3043
3044rm -f a.out a.exe conftest$ac_cv_exeext b.out
3045ac_clean_files=$ac_clean_files_save
3046# Check the compiler produces executables we can run. If not, either
3047# the compiler is broken, or we cross compile.
3048echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3049echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3050echo "$as_me:$LINENO: result: $cross_compiling" >&5
3051echo "${ECHO_T}$cross_compiling" >&6
3052
3053echo "$as_me:$LINENO: checking for suffix of executables" >&5
3054echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3062# work properly (i.e., refer to `conftest.exe'), while it won't with
3063# `rm'.
3064for ac_file in conftest.exe conftest conftest.*; do
3065 test -f "$ac_file" || continue
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069 export ac_cv_exeext
3070 break;;
3071 * ) break;;
3072 esac
3073done
3074else
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076See \`config.log' for more details." >&5
3077echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3080fi
3081
3082rm -f conftest$ac_cv_exeext
3083echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084echo "${ECHO_T}$ac_cv_exeext" >&6
3085
3086rm -f conftest.$ac_ext
3087EXEEXT=$ac_cv_exeext
3088ac_exeext=$EXEEXT
3089echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3091if test "${ac_cv_objext+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 cat >conftest.$ac_ext <<_ACEOF
3095/* confdefs.h. */
3096_ACEOF
3097cat confdefs.h >>conftest.$ac_ext
3098cat >>conftest.$ac_ext <<_ACEOF
3099/* end confdefs.h. */
3100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109rm -f conftest.o conftest.obj
3110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111 (eval $ac_compile) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3116 case $ac_file in
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119 break;;
3120 esac
3121done
cac3d6c4 3122else
c6b750e1
DJ
3123 echo "$as_me: failed program was:" >&5
3124sed 's/^/| /' conftest.$ac_ext >&5
3125
3126{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127See \`config.log' for more details." >&5
3128echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }
3131fi
3132
3133rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134fi
3135echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136echo "${ECHO_T}$ac_cv_objext" >&6
3137OBJEXT=$ac_cv_objext
3138ac_objext=$OBJEXT
3139echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3141if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3143else
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150
3151int
3152main ()
3153{
3154#ifndef __GNUC__
3155 choke me
3156#endif
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162rm -f conftest.$ac_objext
3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_compiler_gnu=yes
3185else
3186 echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189ac_compiler_gnu=no
3190fi
3191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192ac_cv_c_compiler_gnu=$ac_compiler_gnu
3193
3194fi
3195echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3196echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3197GCC=`test $ac_compiler_gnu = yes && echo yes`
3198ac_test_CFLAGS=${CFLAGS+set}
3199ac_save_CFLAGS=$CFLAGS
3200CFLAGS="-g"
3201echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3203if test "${ac_cv_prog_cc_g+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
9e07f89d
NN
3243 ac_cv_prog_cc_g=yes
3244else
c6b750e1
DJ
3245 echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3247
c6b750e1 3248ac_cv_prog_cc_g=no
376a0e54 3249fi
c6b750e1
DJ
3250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251fi
3252echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3254if test "$ac_test_CFLAGS" = set; then
c6b750e1 3255 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268fi
c6b750e1
DJ
3269echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3270echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3271if test "${ac_cv_prog_cc_stdc+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
3274 ac_cv_prog_cc_stdc=no
3275ac_save_CC=$CC
3276cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <stdarg.h>
3283#include <stdio.h>
3284#include <sys/types.h>
3285#include <sys/stat.h>
3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287struct buf { int x; };
3288FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289static char *e (p, i)
3290 char **p;
3291 int i;
3292{
3293 return p[i];
3294}
3295static char *f (char * (*g) (char **, int), char **p, ...)
3296{
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303}
3304
3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
3308 as 'x'. The following induces an error, until -std1 is added to get
3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
3311 that's true only with -std1. */
3312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
3314int test (int i, double x);
3315struct s1 {int (*f) (int a);};
3316struct s2 {int (*f) (double a);};
3317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3318int argc;
3319char **argv;
3320int
3321main ()
3322{
3323return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328# Don't try gcc -ansi; that turns off useful extensions and
3329# breaks some systems' header files.
3330# AIX -qlanglvl=ansi
3331# Ultrix and OSF/1 -std1
3332# HP-UX 10.20 and later -Ae
3333# HP-UX older versions -Aa -D_HPUX_SOURCE
3334# SVR4 -Xc -D__EXTENSIONS__
3335for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336do
3337 CC="$ac_save_CC $ac_arg"
3338 rm -f conftest.$ac_objext
3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_prog_cc_stdc=$ac_arg
3361break
3362else
3363 echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366fi
3367rm -f conftest.err conftest.$ac_objext
3368done
3369rm -f conftest.$ac_ext conftest.$ac_objext
3370CC=$ac_save_CC
3371
3372fi
3373
3374case "x$ac_cv_prog_cc_stdc" in
3375 x|xno)
3376 echo "$as_me:$LINENO: result: none needed" >&5
3377echo "${ECHO_T}none needed" >&6 ;;
3378 *)
3379 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3380echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3381 CC="$CC $ac_cv_prog_cc_stdc" ;;
3382esac
3383
3384# Some people use a C++ compiler to compile C. Since we use `exit',
3385# in C++ we need to declare it. In case someone uses the same compiler
3386# for both compiling C and C++ we need to have the C++ compiler decide
3387# the declaration of exit, since it's the most demanding environment.
3388cat >conftest.$ac_ext <<_ACEOF
3389#ifndef __cplusplus
3390 choke me
3391#endif
3392_ACEOF
3393rm -f conftest.$ac_objext
3394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395 (eval $ac_compile) 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } &&
3402 { ac_try='test -z "$ac_c_werror_flag"
3403 || test ! -s conftest.err'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; } &&
3409 { ac_try='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3415 for ac_declaration in \
3416 '' \
3417 'extern "C" void std::exit (int) throw (); using std::exit;' \
3418 'extern "C" void std::exit (int); using std::exit;' \
3419 'extern "C" void exit (int) throw ();' \
3420 'extern "C" void exit (int);' \
3421 'void exit (int);'
3422do
3423 cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
3429$ac_declaration
3430#include <stdlib.h>
3431int
3432main ()
3433{
3434exit (42);
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext
3440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try='test -z "$ac_c_werror_flag"
3449 || test ! -s conftest.err'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } &&
3455 { ac_try='test -s conftest.$ac_objext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 :
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466continue
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475$ac_declaration
3476int
3477main ()
3478{
3479exit (42);
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext
3485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 break
3507else
3508 echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511fi
3512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513done
3514rm -f conftest*
3515if test -n "$ac_declaration"; then
3516 echo '#ifdef __cplusplus' >>confdefs.h
3517 echo $ac_declaration >>confdefs.h
3518 echo '#endif' >>confdefs.h
3519fi
3520
3521else
3522 echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525fi
3526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 3532
24ff9987
DJ
3533ac_ext=cc
3534ac_cpp='$CXXCPP $CPPFLAGS'
3535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
c6b750e1 3538if test -n "$ac_tool_prefix"; then
24ff9987
DJ
3539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3540 do
3541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
c6b750e1
DJ
3543echo "$as_me:$LINENO: checking for $ac_word" >&5
3544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24ff9987 3545if test "${ac_cv_prog_CXX+set}" = set; then
c6b750e1 3546 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 3547else
24ff9987
DJ
3548 if test -n "$CXX"; then
3549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9e07f89d 3550else
c6b750e1
DJ
3551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24ff9987 3558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
c6b750e1
DJ
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562done
3563done
3564
9e07f89d
NN
3565fi
3566fi
24ff9987
DJ
3567CXX=$ac_cv_prog_CXX
3568if test -n "$CXX"; then
3569 echo "$as_me:$LINENO: result: $CXX" >&5
3570echo "${ECHO_T}$CXX" >&6
9e07f89d 3571else
c6b750e1
DJ
3572 echo "$as_me:$LINENO: result: no" >&5
3573echo "${ECHO_T}no" >&6
9e07f89d
NN
3574fi
3575
24ff9987
DJ
3576 test -n "$CXX" && break
3577 done
c6b750e1 3578fi
24ff9987
DJ
3579if test -z "$CXX"; then
3580 ac_ct_CXX=$CXX
3581 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3582do
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
3585echo "$as_me:$LINENO: checking for $ac_word" >&5
3586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24ff9987 3587if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
c6b750e1 3588 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 3589else
24ff9987
DJ
3590 if test -n "$ac_ct_CXX"; then
3591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9e07f89d 3592else
c6b750e1
DJ
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24ff9987 3600 ac_cv_prog_ac_ct_CXX="$ac_prog"
c6b750e1
DJ
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604done
3605done
3606
9e07f89d
NN
3607fi
3608fi
24ff9987
DJ
3609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3610if test -n "$ac_ct_CXX"; then
3611 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3612echo "${ECHO_T}$ac_ct_CXX" >&6
9e07f89d 3613else
c6b750e1
DJ
3614 echo "$as_me:$LINENO: result: no" >&5
3615echo "${ECHO_T}no" >&6
9e07f89d
NN
3616fi
3617
24ff9987
DJ
3618 test -n "$ac_ct_CXX" && break
3619done
3620test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3621
3622 CXX=$ac_ct_CXX
3623fi
3624
3625
3626# Provide some information about the compiler.
3627echo "$as_me:$LINENO:" \
3628 "checking for C++ compiler version" >&5
3629ac_compiler=`set X $ac_compile; echo $2`
3630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3631 (eval $ac_compiler --version </dev/null >&5) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }
3635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3636 (eval $ac_compiler -v </dev/null >&5) 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }
3640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3641 (eval $ac_compiler -V </dev/null >&5) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3645
3646echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3647echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3648if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 3650else
24ff9987
DJ
3651 cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
3657
3658int
3659main ()
3660{
3661#ifndef __GNUC__
3662 choke me
3663#endif
3664
3665 ;
3666 return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext
3670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_cxx_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_compiler_gnu=yes
3692else
3693 echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696ac_compiler_gnu=no
3697fi
3698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3700
3701fi
3702echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3703echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3704GXX=`test $ac_compiler_gnu = yes && echo yes`
3705ac_test_CXXFLAGS=${CXXFLAGS+set}
3706ac_save_CXXFLAGS=$CXXFLAGS
3707CXXFLAGS="-g"
3708echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3709echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3710if test "${ac_cv_prog_cxx_g+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723
3724 ;
3725 return 0;
3726}
3727_ACEOF
3728rm -f conftest.$ac_objext
3729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>conftest.er1
3731 ac_status=$?
3732 grep -v '^ *+' conftest.er1 >conftest.err
3733 rm -f conftest.er1
3734 cat conftest.err >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try='test -z "$ac_cxx_werror_flag"
3738 || test ! -s conftest.err'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; } &&
3744 { ac_try='test -s conftest.$ac_objext'
3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 (eval $ac_try) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }; }; then
3750 ac_cv_prog_cxx_g=yes
3751else
3752 echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755ac_cv_prog_cxx_g=no
3756fi
3757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758fi
3759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3761if test "$ac_test_CXXFLAGS" = set; then
3762 CXXFLAGS=$ac_save_CXXFLAGS
3763elif test $ac_cv_prog_cxx_g = yes; then
3764 if test "$GXX" = yes; then
3765 CXXFLAGS="-g -O2"
3766 else
3767 CXXFLAGS="-g"
3768 fi
3769else
3770 if test "$GXX" = yes; then
3771 CXXFLAGS="-O2"
3772 else
3773 CXXFLAGS=
3774 fi
3775fi
3776for ac_declaration in \
3777 '' \
3778 'extern "C" void std::exit (int) throw (); using std::exit;' \
3779 'extern "C" void std::exit (int); using std::exit;' \
3780 'extern "C" void exit (int) throw ();' \
3781 'extern "C" void exit (int);' \
3782 'void exit (int);'
3783do
3784 cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
3790$ac_declaration
3791#include <stdlib.h>
3792int
3793main ()
3794{
3795exit (42);
3796 ;
3797 return 0;
3798}
3799_ACEOF
3800rm -f conftest.$ac_objext
3801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -z "$ac_cxx_werror_flag"
3810 || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 :
3823else
3824 echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827continue
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830 cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
3836$ac_declaration
3837int
3838main ()
3839{
3840exit (42);
3841 ;
3842 return 0;
3843}
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847 (eval $ac_compile) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_cxx_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 break
3868else
3869 echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872fi
3873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874done
3875rm -f conftest*
3876if test -n "$ac_declaration"; then
3877 echo '#ifdef __cplusplus' >>confdefs.h
3878 echo $ac_declaration >>confdefs.h
3879 echo '#endif' >>confdefs.h
3880fi
3881
3882ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888
3889# We must set the default linker to the linker used by gcc for the correct
3890# operation of libtool. If LD is not defined and we are using gcc, try to
3891# set the LD default to the ld used by gcc.
3892if test -z "$LD"; then
3893 if test "$GCC" = yes; then
3894 case $build in
3895 *-*-mingw*)
3896 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3897 *)
3898 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3899 esac
3900 case $gcc_prog_ld in
3901 # Accept absolute paths.
3902 [\\/]* | [A-Za-z]:[\\/]*)
3903 LD="$gcc_prog_ld" ;;
3904 esac
3905 fi
9e07f89d
NN
3906fi
3907
24ff9987
DJ
3908
3909
3910
7df2cd5d 3911if test -n "$ac_tool_prefix"; then
24ff9987
DJ
3912 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3913set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
7df2cd5d
PB
3914echo "$as_me:$LINENO: checking for $ac_word" >&5
3915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24ff9987 3916if test "${ac_cv_prog_GNATBIND+set}" = set; then
7df2cd5d
PB
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
24ff9987
DJ
3919 if test -n "$GNATBIND"; then
3920 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
7df2cd5d
PB
3921else
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24ff9987 3929 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
7df2cd5d
PB
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933done
3934done
3935
3936fi
3937fi
24ff9987
DJ
3938GNATBIND=$ac_cv_prog_GNATBIND
3939if test -n "$GNATBIND"; then
3940 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3941echo "${ECHO_T}$GNATBIND" >&6
7df2cd5d
PB
3942else
3943 echo "$as_me:$LINENO: result: no" >&5
3944echo "${ECHO_T}no" >&6
3945fi
3946
3947fi
24ff9987
DJ
3948if test -z "$ac_cv_prog_GNATBIND"; then
3949 ac_ct_GNATBIND=$GNATBIND
3950 # Extract the first word of "gnatbind", so it can be a program name with args.
3951set dummy gnatbind; ac_word=$2
7df2cd5d
PB
3952echo "$as_me:$LINENO: checking for $ac_word" >&5
3953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24ff9987 3954if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
7df2cd5d
PB
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
24ff9987
DJ
3957 if test -n "$ac_ct_GNATBIND"; then
3958 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
7df2cd5d
PB
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24ff9987 3967 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
7df2cd5d
PB
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971done
3972done
3973
24ff9987 3974 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
7df2cd5d
PB
3975fi
3976fi
24ff9987
DJ
3977ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3978if test -n "$ac_ct_GNATBIND"; then
3979 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3980echo "${ECHO_T}$ac_ct_GNATBIND" >&6
7df2cd5d
PB
3981else
3982 echo "$as_me:$LINENO: result: no" >&5
3983echo "${ECHO_T}no" >&6
3984fi
3985
24ff9987 3986 GNATBIND=$ac_ct_GNATBIND
7df2cd5d 3987else
24ff9987 3988 GNATBIND="$ac_cv_prog_GNATBIND"
7df2cd5d
PB
3989fi
3990
c6b750e1
DJ
3991echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3992echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3993if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3995else
3996 cat >conftest.adb <<EOF
3997procedure conftest is begin null; end conftest;
3998EOF
3999acx_cv_cc_gcc_supports_ada=no
4000# There is a bug in old released versions of GCC which causes the
4001# driver to exit successfully when the appropriate language module
4002# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4003# Therefore we must check for the error message as well as an
4004# unsuccessful exit.
b8908782
DD
4005# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4006# given a .adb file, but produce no object file. So we must check
4007# if an object file was really produced to guard against this.
9e07f89d 4008errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4009if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4010 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4011fi
4012rm -f conftest.*
4013fi
c6b750e1
DJ
4014echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4015echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 4016
24ff9987 4017if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4018 have_gnat=yes
4019else
4020 have_gnat=no
4021fi
4022
c6b750e1
DJ
4023echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4024echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4025if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
4027else
4028 echo abfoo >t1
4029 echo cdfoo >t2
4030 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4031 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4032 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4033 :
4034 else
4035 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4036 fi
4037 fi
b8908782
DD
4038 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4039 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4040 :
b8908782
DD
4041 else
4042 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4043 fi
4044 fi
4045 rm t1 t2
4046
4047fi
c6b750e1
DJ
4048echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4049echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
4050do_compare="$gcc_cv_prog_cmp_skip"
4051
4052
9e07f89d 4053
11b04d1f 4054# Check for GMP and MPFR
4b900473 4055gmplibs="-lmpfr -lgmp"
4b1cb4fe 4056gmpinc=
4b900473
PB
4057have_gmp=no
4058
11b04d1f
DD
4059# Specify a location for mpfr
4060# check for this first so it ends up on the link line before gmp.
c6b750e1 4061
11b04d1f
DD
4062# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4063if test "${with_mpfr_dir+set}" = set; then
4064 withval="$with_mpfr_dir"
c6b750e1
DJ
4065 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4066Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4067echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4068Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4069 { (exit 1); exit 1; }; }
4070fi;
11b04d1f
DD
4071
4072
11b04d1f
DD
4073# Check whether --with-mpfr or --without-mpfr was given.
4074if test "${with_mpfr+set}" = set; then
4075 withval="$with_mpfr"
c6b750e1
DJ
4076
4077fi;
11b04d1f 4078
8a0d8a5c
PB
4079# Check whether --with-mpfr_include or --without-mpfr_include was given.
4080if test "${with_mpfr_include+set}" = set; then
4081 withval="$with_mpfr_include"
c6b750e1
DJ
4082
4083fi;
8a0d8a5c
PB
4084
4085# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4086if test "${with_mpfr_lib+set}" = set; then
4087 withval="$with_mpfr_lib"
8a0d8a5c 4088
c6b750e1 4089fi;
11b04d1f
DD
4090
4091if test "x$with_mpfr" != x; then
4092 gmplibs="-L$with_mpfr/lib $gmplibs"
4093 gmpinc="-I$with_mpfr/include"
4094fi
8a0d8a5c
PB
4095if test "x$with_mpfr_include" != x; then
4096 gmpinc="-I$with_mpfr_include"
4097fi
4098if test "x$with_mpfr_lib" != x; then
4099 gmplibs="-L$with_mpfr_lib $gmplibs"
4100fi
4b900473
PB
4101if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4102 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4103 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4104 # Do not test the mpfr version. Assume that it is sufficient, since
4105 # it is in the source tree, and the library has not been built yet
4106 # but it would be included on the link line in the version check below
4107 # hence making the test fail.
4108 have_gmp=yes
4109fi
11b04d1f 4110
4b1cb4fe 4111# Specify a location for gmp
c6b750e1 4112
4b1cb4fe
DD
4113# Check whether --with-gmp-dir or --without-gmp-dir was given.
4114if test "${with_gmp_dir+set}" = set; then
4115 withval="$with_gmp_dir"
c6b750e1
DJ
4116 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4117Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4118echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4119Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4120 { (exit 1); exit 1; }; }
4121fi;
4b1cb4fe
DD
4122
4123
4b1cb4fe
DD
4124# Check whether --with-gmp or --without-gmp was given.
4125if test "${with_gmp+set}" = set; then
4126 withval="$with_gmp"
c6b750e1
DJ
4127
4128fi;
4b1cb4fe 4129
8a0d8a5c
PB
4130# Check whether --with-gmp_include or --without-gmp_include was given.
4131if test "${with_gmp_include+set}" = set; then
4132 withval="$with_gmp_include"
c6b750e1
DJ
4133
4134fi;
8a0d8a5c
PB
4135
4136# Check whether --with-gmp_lib or --without-gmp_lib was given.
4137if test "${with_gmp_lib+set}" = set; then
4138 withval="$with_gmp_lib"
8a0d8a5c 4139
c6b750e1 4140fi;
8a0d8a5c 4141
4b1cb4fe 4142
11b04d1f
DD
4143if test "x$with_gmp" != x; then
4144 gmplibs="-L$with_gmp/lib $gmplibs"
4145 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 4146fi
8a0d8a5c
PB
4147if test "x$with_gmp_include" != x; then
4148 gmpinc="-I$with_gmp_include $gmpinc"
4149fi
4150if test "x$with_gmp_lib" != x; then
4151 gmplibs="-L$with_gmp_lib $gmplibs"
4152fi
4b900473
PB
4153if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4154 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4155 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4156 # Do not test the gmp version. Assume that it is sufficient, since
4157 # it is in the source tree, and the library has not been built yet
4158 # but it would be included on the link line in the version check below
4159 # hence making the test fail.
4160 have_gmp=yes
4161fi
4b1cb4fe 4162
ceb92e78 4163if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
4164 have_gmp=yes
4165 saved_CFLAGS="$CFLAGS"
4166 CFLAGS="$CFLAGS $gmpinc"
4167 # Check GMP actually works
c6b750e1
DJ
4168 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4169echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4170
4171cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h. */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h. */
4b1cb4fe 4177#include "gmp.h"
c6b750e1
DJ
4178int
4179main ()
4180{
4b1cb4fe 4181
4b900473
PB
4182 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4183 choke me
4184 #endif
c6b750e1
DJ
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190rm -f conftest.$ac_objext
4191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
4193 ac_status=$?
4194 grep -v '^ *+' conftest.er1 >conftest.err
4195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_c_werror_flag"
4200 || test ! -s conftest.err'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 (eval $ac_try) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
4212 echo "$as_me:$LINENO: result: yes" >&5
4213echo "${ECHO_T}yes" >&6
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6; have_gmp=no
4220fi
4221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 4222
4b900473
PB
4223 if test x"$have_gmp" = xyes; then
4224 saved_LIBS="$LIBS"
4225 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
4226 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4227echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4228 cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h. */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h. */
9b134994 4234#include <gmp.h>
4b900473 4235 #include <mpfr.h>
c6b750e1
DJ
4236int
4237main ()
4238{
9b134994 4239
4b900473
PB
4240 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4241 choke me
4242 #endif
4243 mpfr_t n; mpfr_init(n);
4244 mpfr_t x; mpfr_init(x);
4245 int t;
4246 mpfr_atan2 (n, n, x, GMP_RNDN);
4247 mpfr_erfc (n, x, GMP_RNDN);
4248 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
4249
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext conftest$ac_exeext
4255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4256 (eval $ac_link) 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 (eval $ac_try) 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 cat >conftest.$ac_ext <<_ACEOF
4277/* confdefs.h. */
4278_ACEOF
4279cat confdefs.h >>conftest.$ac_ext
4280cat >>conftest.$ac_ext <<_ACEOF
4281/* end confdefs.h. */
4b1cb4fe 4282#include <gmp.h>
4b900473 4283 #include <mpfr.h>
c6b750e1
DJ
4284int
4285main ()
4286{
9dbaa842 4287
4b900473
PB
4288 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4289 choke me
4290 #endif
4291 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4292
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297rm -f conftest.$ac_objext conftest$ac_exeext
4298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299 (eval $ac_link) 2>conftest.er1
4300 ac_status=$?
4301 grep -v '^ *+' conftest.er1 >conftest.err
4302 rm -f conftest.er1
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag"
4307 || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 (eval $ac_try) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest$ac_exeext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 echo "$as_me:$LINENO: result: yes" >&5
4320echo "${ECHO_T}yes" >&6
4321else
4322 echo "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4326echo "${ECHO_T}buggy but acceptable" >&6
4327fi
4328rm -f conftest.err conftest.$ac_objext \
4329 conftest$ac_exeext conftest.$ac_ext
4330else
4331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6; have_gmp=no
4336fi
4337rm -f conftest.err conftest.$ac_objext \
4338 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4339 LIBS="$saved_LIBS"
4340 fi
4341 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4342
4b900473 4343 if test x$have_gmp != xyes; then
c6b750e1
DJ
4344 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4345Try the --with-gmp and/or --with-mpfr options to specify their locations.
4346Copies of these libraries' source code can be found at their respective
4347hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4348See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4349If you obtained GMP and/or MPFR from a vendor distribution package, make
4350sure that you have installed both the libraries and the header files.
4351They may be located in separate packages." >&5
4352echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4353Try the --with-gmp and/or --with-mpfr options to specify their locations.
4354Copies of these libraries' source code can be found at their respective
4355hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4356See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4357If you obtained GMP and/or MPFR from a vendor distribution package, make
4358sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4359They may be located in separate packages." >&2;}
4360 { (exit 1); exit 1; }; }
4b900473 4361 fi
9dbaa842
DD
4362fi
4363
11b04d1f 4364# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4365
4366
4367
947f426e 4368# By default, C is the only stage 1 language.
9b134994 4369stage1_languages=,c,
1d39f329 4370
9e07f89d
NN
4371# Figure out what language subdirectories are present.
4372# Look if the user specified --enable-languages="..."; if not, use
4373# the environment variable $LANGUAGES if defined. $LANGUAGES might
4374# go away some day.
4375# NB: embedded tabs in this IF block -- do not untabify
4376if test -d ${srcdir}/gcc; then
4377 if test x"${enable_languages+set}" != xset; then
4378 if test x"${LANGUAGES+set}" = xset; then
4379 enable_languages="${LANGUAGES}"
4380 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4381 else
4382 enable_languages=all
4383 fi
4384 else
4385 if test x"${enable_languages}" = x ||
4386 test x"${enable_languages}" = xyes;
4387 then
4388 echo configure.in: --enable-languages needs at least one language argument 1>&2
4389 exit 1
4390 fi
4391 fi
4392 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4393
096f7d00
DE
4394 # 'f95' is the old name for the 'fortran' language. We issue a warning
4395 # and make the substitution.
4396 case ,${enable_languages}, in
4397 *,f95,*)
4398 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4399 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4400 ;;
4401 esac
4402
9e07f89d
NN
4403 # First scan to see if an enabled language requires some other language.
4404 # We assume that a given config-lang.in will list all the language
4405 # front ends it requires, even if some are required indirectly.
4406 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4407 case ${lang_frag} in
4408 ..) ;;
4409 # The odd quoting in the next line works around
4410 # an apparent bug in bash 1.12 on linux.
4411 ${srcdir}/gcc/[*]/config-lang.in) ;;
4412 *)
4413 # From the config-lang.in, get $language, $lang_requires
4414 language=
4415 lang_requires=
4416 . ${lang_frag}
4417 for other in ${lang_requires} ; do
4418 case ,${enable_languages}, in
4419 *,$other,*) ;;
4420 *,all,*) ;;
4421 *,$language,*)
4422 echo " \`$other' language required by \`$language'; enabling" 1>&2
4423 enable_languages="${enable_languages},${other}"
4424 ;;
4425 esac
4426 done
4427 ;;
4428 esac
4429 done
4430
9b134994 4431 new_enable_languages=,c,
9e07f89d 4432 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4433 potential_languages=,c,
9e07f89d
NN
4434
4435 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4436 case ${lang_frag} in
4437 ..) ;;
4438 # The odd quoting in the next line works around
4439 # an apparent bug in bash 1.12 on linux.
4440 ${srcdir}/gcc/[*]/config-lang.in) ;;
4441 *)
c6b750e1 4442 # From the config-lang.in, get $language, $target_libs,
1d39f329 4443 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4444 language=
4445 target_libs=
4446 lang_dirs=
64ce424c 4447 subdir_requires=
9b134994
PB
4448 boot_language=no
4449 build_by_default=yes
9e07f89d 4450 . ${lang_frag}
9b134994
PB
4451 if test x${language} = x; then
4452 echo "${lang_frag} doesn't set \$language." 1>&2
4453 exit 1
4454 fi
4455
4456 case ,${enable_languages}, in
4457 *,${language},*)
9e07f89d
NN
4458 # Language was explicitly selected; include it.
4459 add_this_lang=yes
4460 ;;
9b134994
PB
4461 *,all,*)
4462 # 'all' was selected, select it if it is a default language
4463 add_this_lang=${build_by_default}
9e07f89d
NN
4464 ;;
4465 *)
4466 add_this_lang=no
4467 ;;
4468 esac
4b1cb4fe 4469
64ce424c 4470 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4471 for i in $subdir_requires; do
3d3adb43 4472 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4473 case ,${enable_languages}, in
4474 *,${language},*)
4475 # Specifically requested language; tell them.
c6b750e1
DJ
4476 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4477echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4478 { (exit 1); exit 1; }; }
64ce424c
PB
4479 ;;
4480 *)
4481 # Silently disable.
9b134994 4482 add_this_lang=unsupported
64ce424c
PB
4483 ;;
4484 esac
4485 done
4486
9b134994
PB
4487 # Disable Ada if no preexisting GNAT is available.
4488 case ,${enable_languages},:${language}:${have_gnat} in
4489 *,${language},*:ada:no)
4490 # Specifically requested language; tell them.
c6b750e1
DJ
4491 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4492echo "$as_me: error: GNAT is required to build $language" >&2;}
4493 { (exit 1); exit 1; }; }
9b134994
PB
4494 ;;
4495 *:ada:no)
4496 # Silently disable.
4497 add_this_lang=unsupported
4498 ;;
4499 esac
4500
59f7ec45
HPN
4501 # Disable a language that is unsupported by the target.
4502 case " $unsupported_languages " in
4503 *" $language "*)
9b134994 4504 add_this_lang=unsupported
59f7ec45
HPN
4505 ;;
4506 esac
4507
4b1cb4fe 4508 case $add_this_lang in
9b134994 4509 unsupported)
9e07f89d 4510 # Remove language-dependent dirs.
1d39f329
NN
4511 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4512 ;;
9b134994
PB
4513 no)
4514 # Remove language-dependent dirs; still show language as supported.
4515 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4516 potential_languages="${potential_languages}${language},"
4517 ;;
4518 yes)
4519 new_enable_languages="${new_enable_languages}${language},"
4520 potential_languages="${potential_languages}${language},"
1d39f329
NN
4521 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4522 case ${boot_language} in
4523 yes)
4fa63067 4524 # Add to (comma-separated) list of stage 1 languages.
9b134994 4525 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4526 ;;
4527 esac
4528 ;;
9e07f89d
NN
4529 esac
4530 ;;
4531 esac
4532 done
4533
9b134994
PB
4534 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4535if test "${enable_stage1_languages+set}" = set; then
4536 enableval="$enable_stage1_languages"
4537 case ,${enable_stage1_languages}, in
4538 ,no,|,,)
4539 # Set it to something that will have no effect in the loop below
4540 enable_stage1_languages=c ;;
4541 ,yes,)
4542 enable_stage1_languages=`echo $new_enable_languages | \
4543 sed -e "s/^,//" -e "s/,$//" ` ;;
4544 *,all,*)
4545 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4546 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4547 esac
4548
4549 # Add "good" languages from enable_stage1_languages to stage1_languages,
4550 # while "bad" languages go in missing_languages. Leave no duplicates.
4551 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4552 case $potential_languages in
4553 *,$i,*)
4554 case $stage1_languages in
4555 *,$i,*) ;;
4556 *) stage1_languages="$stage1_languages$i," ;;
4557 esac ;;
4558 *)
4559 case $missing_languages in
4560 *,$i,*) ;;
4561 *) missing_languages="$missing_languages$i," ;;
4562 esac ;;
4563 esac
4564 done
c6b750e1 4565fi;
9b134994
PB
4566
4567 # Remove leading/trailing commas that were added for simplicity
4568 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4569 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4570 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4571 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4572
9e07f89d 4573 if test "x$missing_languages" != x; then
c6b750e1 4574 { { echo "$as_me:$LINENO: error:
27258dd4 4575The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4576Supported languages are: ${potential_languages}" >&5
4577echo "$as_me: error:
4578The following requested languages could not be built: ${missing_languages}
4579Supported languages are: ${potential_languages}" >&2;}
4580 { (exit 1); exit 1; }; }
9e07f89d 4581 fi
9e07f89d
NN
4582 if test "x$new_enable_languages" != "x$enable_languages"; then
4583 echo The following languages will be built: ${new_enable_languages}
9b134994 4584 enable_languages="$new_enable_languages"
9e07f89d 4585 fi
9b134994 4586
c6b750e1 4587
2e70b094 4588 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
4589fi
4590
a6df5a19
PB
4591# Handle --disable-<component> generically.
4592for dir in $configdirs $build_configdirs $target_configdirs ; do
4593 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4594 if eval test x\${enable_${dirname}} "=" xno ; then
4595 noconfigdirs="$noconfigdirs $dir"
4596 fi
4597done
4598
4f0ef2d8
CD
4599# Check for Boehm's garbage collector
4600# Check whether --enable-objc-gc or --disable-objc-gc was given.
4601if test "${enable_objc_gc+set}" = set; then
4602 enableval="$enable_objc_gc"
4603 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4604 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4605 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4606echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4607 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4608 ;;
4609esac
c6b750e1 4610fi;
4f0ef2d8
CD
4611
4612# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4613case ,${enable_languages},:${enable_objc_gc} in
4614 *,objc,*:yes)
4f0ef2d8
CD
4615 # Keep target-boehm-gc if requested for Objective-C.
4616 ;;
4f0ef2d8 4617 *)
d42c4017
DA
4618 # Otherwise remove target-boehm-gc depending on target-libjava.
4619 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4620 noconfigdirs="$noconfigdirs target-boehm-gc"
4621 fi
4f0ef2d8
CD
4622 ;;
4623esac
4624
caeba88f
AL
4625# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4626# $build_configdirs and $target_configdirs.
9e07f89d
NN
4627# If we have the source for $noconfigdirs entries, add them to $notsupp.
4628
4629notsupp=""
4630for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4631 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4632 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4633 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4634 if test -r $srcdir/$dirname/configure ; then
4635 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4636 true
4637 else
4638 notsupp="$notsupp $dir"
4639 fi
4640 fi
4641 fi
caeba88f
AL
4642 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4643 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4644 if test -r $srcdir/$dirname/configure ; then
4645 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4646 true
4647 else
4648 notsupp="$notsupp $dir"
4649 fi
4650 fi
4651 fi
9e07f89d
NN
4652 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4653 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4654 if test -r $srcdir/$dirname/configure ; then
4655 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4656 true
4657 else
4658 notsupp="$notsupp $dir"
4659 fi
4660 fi
4661 fi
4662done
4663
4664# Sometimes the tools are distributed with libiberty but with no other
4665# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4666# Don't let libgcc imply libiberty either.
9e07f89d 4667if test -n "${target_configdirs}" ; then
f86e35b8 4668 libgcc=
9e07f89d
NN
4669 others=
4670 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4671 if test "$i" = "libgcc"; then
4672 libgcc=target-libgcc
4673 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4674 if test -r $srcdir/$i/configure ; then
4675 others=yes;
4676 break;
4677 fi
4678 fi
4679 done
4680 if test -z "${others}" ; then
f86e35b8 4681 target_configdirs=$libgcc
9e07f89d
NN
4682 fi
4683fi
4684
4685# Quietly strip out all directories which aren't configurable in this tree.
4686# This relies on all configurable subdirectories being autoconfiscated, which
4687# is now the case.
6a9cf61e
PB
4688build_configdirs_all="$build_configdirs"
4689build_configdirs=
4690for i in ${build_configdirs_all} ; do
c6b750e1 4691 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4692 if test -f ${srcdir}/$j/configure ; then
4693 build_configdirs="${build_configdirs} $i"
4694 fi
4695done
4696
9e07f89d
NN
4697configdirs_all="$configdirs"
4698configdirs=
4699for i in ${configdirs_all} ; do
4700 if test -f ${srcdir}/$i/configure ; then
4701 configdirs="${configdirs} $i"
4702 fi
4703done
6a9cf61e 4704
9e07f89d
NN
4705target_configdirs_all="$target_configdirs"
4706target_configdirs=
4707for i in ${target_configdirs_all} ; do
c6b750e1 4708 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4709 if test -f ${srcdir}/$j/configure ; then
4710 target_configdirs="${target_configdirs} $i"
4711 fi
4712done
4713
4714# Produce a warning message for the subdirs we can't configure.
4715# This isn't especially interesting in the Cygnus tree, but in the individual
4716# FSF releases, it's important to let people know when their machine isn't
4717# supported by the one or two programs in a package.
4718
4719if test -n "${notsupp}" && test -z "${norecursion}" ; then
4720 # If $appdirs is non-empty, at least one of those directories must still
4721 # be configured, or we error out. (E.g., if the gas release supports a
4722 # specified target in some subdirs but not the gas subdir, we shouldn't
4723 # pretend that all is well.)
4724 if test -n "$appdirs" ; then
4725 for dir in $appdirs ; do
4726 if test -r $dir/Makefile.in ; then
4727 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4728 appdirs=""
4729 break
4730 fi
6a9cf61e 4731 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4732 appdirs=""
4733 break
4734 fi
4735 fi
4736 done
4737 if test -n "$appdirs" ; then
4738 echo "*** This configuration is not supported by this package." 1>&2
4739 exit 1
4740 fi
4741 fi
4742 # Okay, some application will build, or we don't care to check. Still
4743 # notify of subdirs not getting built.
4744 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4745 echo " ${notsupp}" 1>&2
4746 echo " (Any other directories should still work fine.)" 1>&2
4747fi
4748
4749case "$host" in
4750 *msdosdjgpp*)
4751 enable_gdbtk=no ;;
4752esac
4753
24ff9987
DJ
4754# To find our prefix, in gcc_cv_tool_prefix.
4755
4756# The user is always right.
4757if test "${PATH_SEPARATOR+set}" != set; then
4758 echo "#! /bin/sh" >conf$$.sh
4759 echo "exit 0" >>conf$$.sh
4760 chmod +x conf$$.sh
4761 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4762 PATH_SEPARATOR=';'
4763 else
4764 PATH_SEPARATOR=:
4765 fi
4766 rm -f conf$$.sh
4767fi
4768
4769
4770
4771if test "x$exec_prefix" = xNONE; then
4772 if test "x$prefix" = xNONE; then
4773 gcc_cv_tool_prefix=$ac_default_prefix
4774 else
4775 gcc_cv_tool_prefix=$prefix
4776 fi
4777else
4778 gcc_cv_tool_prefix=$exec_prefix
4779fi
4780
4781# If there is no compiler in the tree, use the PATH only. In any
4782# case, if there is no compiler in the tree nobody should use
4783# AS_FOR_TARGET and LD_FOR_TARGET.
4784if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
4785 gcc_version=`cat $srcdir/gcc/BASE-VER`
4786 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4787 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4788 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4789 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4792else
4793 gcc_cv_tool_dirs=
4794fi
4795
4796if test x$build = x$target && test -n "$md_exec_prefix"; then
4797 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4798fi
4799
4800
4801
9e07f89d
NN
4802copy_dirs=
4803
c6b750e1 4804
a19b6204
MM
4805# Check whether --with-build-sysroot or --without-build-sysroot was given.
4806if test "${with_build_sysroot+set}" = set; then
4807 withval="$with_build_sysroot"
4808 if test x"$withval" != x ; then
4809 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4810 fi
4811else
4812 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 4813fi;
a19b6204
MM
4814
4815
9e07f89d
NN
4816# Handle --with-headers=XXX. If the value is not "yes", the contents of
4817# the named directory are copied to $(tooldir)/sys-include.
4818if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4819 if test x${is_cross_compiler} = xno ; then
4820 echo 1>&2 '***' --with-headers is only supported when cross compiling
4821 exit 1
4822 fi
4823 if test x"${with_headers}" != xyes ; then
24ff9987 4824 x=${gcc_cv_tool_prefix}
c6b750e1 4825 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
4826 fi
4827fi
4828
4829# Handle --with-libs=XXX. If the value is not "yes", the contents of
4830# the name directories are copied to $(tooldir)/lib. Multiple directories
4831# are permitted.
4832if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4833 if test x${is_cross_compiler} = xno ; then
4834 echo 1>&2 '***' --with-libs is only supported when cross compiling
4835 exit 1
4836 fi
4837 if test x"${with_libs}" != xyes ; then
4838 # Copy the libraries in reverse order, so that files in the first named
4839 # library override files in subsequent libraries.
24ff9987 4840 x=${gcc_cv_tool_prefix}
9e07f89d 4841 for l in ${with_libs}; do
c6b750e1 4842 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
4843 done
4844 fi
4845fi
4846
2429c060
PB
4847# Set with_gnu_as and with_gnu_ld as appropriate.
4848#
4849# This is done by determining whether or not the appropriate directory
4850# is available, and by checking whether or not specific configurations
4851# have requested that this magic not happen.
c6b750e1
DJ
4852#
4853# The command line options always override the explicit settings in
2429c060
PB
4854# configure.in, and the settings in configure.in override this magic.
4855#
c6b750e1 4856# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
4857# want to do that, then you should use the --without-gnu-as and
4858# --without-gnu-ld options for the configure script.
4859
4860if test x${use_gnu_as} = x &&
4861 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4862 with_gnu_as=yes
4863 extra_host_args="$extra_host_args --with-gnu-as"
4864fi
4865
4866if test x${use_gnu_ld} = x &&
4867 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4868 with_gnu_ld=yes
4869 extra_host_args="$extra_host_args --with-gnu-ld"
4870fi
4871
4872# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4873# can detect this case.
4874
4875if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4876 with_newlib=yes
4877 extra_host_args="$extra_host_args --with-newlib"
4878fi
4879
9e07f89d
NN
4880# Handle ${copy_dirs}
4881set fnord ${copy_dirs}
4882shift
4883while test $# != 0 ; do
4884 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4885 :
4886 else
4887 echo Copying $1 to $2
4888
4889 # Use the install script to create the directory and all required
4890 # parent directories.
4891 if test -d $2 ; then
4892 :
4893 else
4894 echo >config.temp
4895 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4896 fi
4897
4898 # Copy the directory, assuming we have tar.
4899 # FIXME: Should we use B in the second tar? Not all systems support it.
4900 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4901
4902 # It is the responsibility of the user to correctly adjust all
4903 # symlinks. If somebody can figure out how to handle them correctly
4904 # here, feel free to add the code.
4905
4906 echo $1 > $2/COPIED
4907 fi
4908 shift; shift
4909done
4910
2429c060
PB
4911# Determine a target-dependent exec_prefix that the installed
4912# gcc will search in. Keep this list sorted by triplet, with
4913# the *-*-osname triplets last.
4914md_exec_prefix=
4915case "${target}" in
4916 alpha*-*-*vms*)
4917 md_exec_prefix=/gnu/lib/gcc-lib
4918 ;;
4919 i3456786-pc-msdosdjgpp*)
4920 md_exec_prefix=/dev/env/DJDIR/bin
4921 ;;
4922 i3456786-*-sco3.2v5*)
4923 if test $with_gnu_as = yes; then
4924 md_exec_prefix=/usr/gnu/bin
4925 else
4926 md_exec_prefix=/usr/ccs/bin/elf
4927 fi
4928 ;;
4929
4930 mn10300-*-* | \
4931 powerpc-*-chorusos* | \
4932 powerpc*-*-eabi* | \
4933 powerpc*-*-sysv* | \
4934 powerpc*-*-kaos* | \
4935 s390x-ibm-tpf*)
4936 md_exec_prefix=/usr/ccs/bin
4937 ;;
4938 sparc64-*-elf*)
4939 ;;
4940 v850*-*-*)
4941 md_exec_prefix=/usr/ccs/bin
4942 ;;
4943 xtensa-*-elf*)
4944 ;;
4945
4946 *-*-beos* | \
4947 *-*-elf* | \
4948 *-*-hpux* | \
4949 *-*-netware* | \
4950 *-*-nto-qnx* | \
4951 *-*-rtems* | \
4952 *-*-solaris2* | \
4953 *-*-sysv45* | \
4954 *-*-vxworks* | \
4955 *-wrs-windiss)
4956 md_exec_prefix=/usr/ccs/bin
4957 ;;
4958esac
4959
a0da8069
NN
4960extra_arflags_for_target=
4961extra_nmflags_for_target=
4962extra_ranlibflags_for_target=
4963target_makefile_frag=/dev/null
4964case "${target}" in
4e206d7e
DB
4965 mep*-*-*)
4966 target_makefile_frag="config/mt-mep"
4967 ;;
77d7106f
AM
4968 spu-*-*)
4969 target_makefile_frag="config/mt-spu"
4970 ;;
2a3124ca 4971 *-*-netware*)
a0da8069
NN
4972 target_makefile_frag="config/mt-netware"
4973 ;;
3d6dfe0f
NN
4974 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4975 target_makefile_frag="config/mt-gnu"
a0da8069
NN
4976 ;;
4977 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 4978 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
4979 # commands to handle both 32-bit and 64-bit objects. These flags are
4980 # harmless if we're using GNU nm or ar.
4981 extra_arflags_for_target=" -X32_64"
4982 extra_nmflags_for_target=" -B -X32_64"
4983 ;;
4984 *-*-darwin*)
4985 # ranlib from Darwin requires the -c flag to look at common symbols.
4986 extra_ranlibflags_for_target=" -c"
4987 ;;
4988 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4989 target_makefile_frag="config/mt-wince"
4990 ;;
4991esac
4992
4993alphaieee_frag=/dev/null
4994case $target in
4995 alpha*-*-*)
4996 # This just makes sure to use the -mieee option to build target libs.
4997 # This should probably be set individually by each library.
4998 alphaieee_frag="config/mt-alphaieee"
4999 ;;
5000esac
5001
5002# If --enable-target-optspace always use -Os instead of -O2 to build
5003# the target libraries, similarly if it is not specified, use -Os
5004# on selected platforms.
5005ospace_frag=/dev/null
5006case "${enable_target_optspace}:${target}" in
5007 yes:*)
5008 ospace_frag="config/mt-ospace"
5009 ;;
5010 :d30v-*)
5011 ospace_frag="config/mt-d30v"
5012 ;;
5013 :m32r-* | :d10v-* | :fr30-*)
5014 ospace_frag="config/mt-ospace"
5015 ;;
5016 no:* | :*)
5017 ;;
5018 *)
5019 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5020 ;;
5021esac
5022
a0da8069
NN
5023# Default to using --with-stabs for certain targets.
5024if test x${with_stabs} = x ; then
5025 case "${target}" in
e31d1ea3 5026 mips*-*-irix[56]*)
a0da8069
NN
5027 ;;
5028 mips*-*-* | alpha*-*-osf*)
5029 with_stabs=yes;
5030 extra_host_args="${extra_host_args} --with-stabs"
5031 ;;
5032 esac
5033fi
5034
5035# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5036# them automatically.
5037case "${host}" in
c6b750e1 5038 hppa*64*-*-hpux11*)
a0da8069
NN
5039 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5040 ;;
5041esac
5042
a0da8069
NN
5043# Some systems (e.g., one of the i386-aix systems the gas testers are
5044# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 5045tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
5046build_tooldir=${tooldir}
5047
a0da8069
NN
5048# Create a .gdbinit file which runs the one in srcdir
5049# and tells GDB to look there for source files.
5050
5051if test -r ${srcdir}/.gdbinit ; then
5052 case ${srcdir} in
5053 .) ;;
5054 *) cat > ./.gdbinit <<EOF
5055# ${NO_EDIT}
5056dir ${srcdir}
5057dir .
5058source ${srcdir}/.gdbinit
5059EOF
5060 ;;
5061 esac
5062fi
5063
a0da8069
NN
5064# Make sure that the compiler is able to generate an executable. If it
5065# can't, we are probably in trouble. We don't care whether we can run the
5066# executable--we might be using a cross compiler--we only care whether it
5067# can be created. At this point the main configure script has set CC.
5068we_are_ok=no
5069echo "int main () { return 0; }" > conftest.c
5070${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5071if test $? = 0 ; then
5072 if test -s conftest || test -s conftest.exe ; then
5073 we_are_ok=yes
5074 fi
c6b750e1 5075fi
a0da8069
NN
5076case $we_are_ok in
5077 no)
5078 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5079 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5080 rm -f conftest*
5081 exit 1
5082 ;;
5083esac
5084rm -f conftest*
5085
5086# The Solaris /usr/ucb/cc compiler does not appear to work.
5087case "${host}" in
5088 sparc-sun-solaris2*)
5089 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5090 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5091 could_use=
5092 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5093 if test -d /opt/cygnus/bin ; then
5094 if test "$could_use" = "" ; then
5095 could_use="/opt/cygnus/bin"
5096 else
5097 could_use="$could_use or /opt/cygnus/bin"
5098 fi
5099 fi
5100 if test "$could_use" = "" ; then
5101 echo "Warning: compilation may fail because you're using"
5102 echo "/usr/ucb/cc. You should change your PATH or CC "
5103 echo "variable and rerun configure."
5104 else
5105 echo "Warning: compilation may fail because you're using"
5106 echo "/usr/ucb/cc, when you should use the C compiler from"
5107 echo "$could_use. You should change your"
5108 echo "PATH or CC variable and rerun configure."
5109 fi
5110 fi
5111 ;;
5112esac
5113
a0da8069
NN
5114case "${host}" in
5115 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 5116 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
5117 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5118esac
5119
5120# Record target_configdirs and the configure arguments for target and
5121# build configuration in Makefile.
5122target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 5123build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 5124
a0da8069
NN
5125# Determine whether gdb needs tk/tcl or not.
5126# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5127# and in that case we want gdb to be built without tk. Ugh!
5128# In fact I believe gdb is the *only* package directly dependent on tk,
5129# so we should be able to put the 'maybe's in unconditionally and
5130# leave out the maybe dependencies when enable_gdbtk is false. I'm not
5131# 100% sure that that's safe though.
c180f501 5132
675c6968 5133gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
5134case "$enable_gdbtk" in
5135 no)
5136 GDB_TK="" ;;
c180f501
AC
5137 yes)
5138 GDB_TK="${gdb_tk}" ;;
a0da8069 5139 *)
c180f501
AC
5140 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5141 # distro. Eventually someone will fix this and move Insight, nee
5142 # gdbtk to a separate directory.
5143 if test -d ${srcdir}/gdb/gdbtk ; then
5144 GDB_TK="${gdb_tk}"
5145 else
5146 GDB_TK=""
5147 fi
5148 ;;
a0da8069 5149esac
907be67c
DJ
5150CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5151INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 5152
6bd3dfaa 5153# Strip out unwanted targets.
dd12c3a8
NN
5154
5155# While at that, we remove Makefiles if we were started for recursive
5156# configuration, so that the top-level Makefile reconfigures them,
5157# like we used to do when configure itself was recursive.
dd12c3a8 5158
6bd3dfaa
PB
5159# Loop over modules. $extrasub must be used with care, limiting as
5160# much as possible the usage of range addresses. That's because autoconf
5161# splits the sed script to overcome limits in the number of commands,
5162# and relying on carefully-timed sed passes may turn out to be very hard
5163# to maintain later. In this particular case, you just have to be careful
5164# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 5165
319cab08
PB
5166# Check whether --enable-bootstrap or --disable-bootstrap was given.
5167if test "${enable_bootstrap+set}" = set; then
5168 enableval="$enable_bootstrap"
c6b750e1 5169
319cab08 5170else
9cb3fa6f 5171 enable_bootstrap=default
c6b750e1 5172fi;
319cab08 5173
9cb3fa6f
PB
5174# Issue errors and warnings for invalid/strange bootstrap combinations.
5175case "$configdirs" in
5176 *gcc*) have_compiler=yes ;;
5177 *) have_compiler=no ;;
5178esac
5179
5180case "$have_compiler:$host:$target:$enable_bootstrap" in
5181 *:*:*:no) ;;
5182
0aed8855 5183 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
5184 # and we are in a native configuration.
5185 yes:$build:$build:default)
0aed8855 5186 enable_bootstrap=yes ;;
9cb3fa6f
PB
5187
5188 *:*:*:default)
5189 enable_bootstrap=no ;;
5190
5191 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 5192 yes:$build:$build:yes)
9cb3fa6f
PB
5193 ;;
5194
5195 # Other configurations, but we have a compiler. Assume the user knows
5196 # what he's doing.
80911fe1 5197 yes:*:*:yes)
c6b750e1
DJ
5198 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5199echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
5200 ;;
5201
5202 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 5203 no:*:*:yes)
c6b750e1
DJ
5204 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5205echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5206 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
5207
5208 # Fail if wrong command line
5209 *)
c6b750e1
DJ
5210 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5211echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5212 { (exit 1); exit 1; }; }
9cb3fa6f
PB
5213 ;;
5214esac
5215
5216# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
5217case "$enable_bootstrap" in
5218 yes)
498d4a71 5219 bootstrap_suffix=bootstrap ;;
319cab08 5220 no)
498d4a71 5221 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
5222esac
5223
6a9cf61e 5224for module in ${build_configdirs} ; do
498d4a71
CF
5225 if test -z "${no_recursion}" \
5226 && test -f ${build_subdir}/${module}/Makefile; then
5227 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5228 rm -f ${build_subdir}/${module}/Makefile
5229 fi
5230 extrasub="$extrasub
5231/^@if build-$module\$/d
5232/^@endif build-$module\$/d
5233/^@if build-$module-$bootstrap_suffix\$/d
5234/^@endif build-$module-$bootstrap_suffix\$/d"
5235done
5236for module in ${configdirs} ; do
80911fe1 5237 if test -z "${no_recursion}"; then
8cf39b1b 5238 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
5239 if test -f ${file}; then
5240 echo 1>&2 "*** removing ${file} to force reconfigure"
5241 rm -f ${file}
5242 fi
5243 done
498d4a71
CF
5244 fi
5245 extrasub="$extrasub
5246/^@if $module\$/d
5247/^@endif $module\$/d
5248/^@if $module-$bootstrap_suffix\$/d
5249/^@endif $module-$bootstrap_suffix\$/d"
5250done
5251for module in ${target_configdirs} ; do
5252 if test -z "${no_recursion}" \
5253 && test -f ${target_subdir}/${module}/Makefile; then
5254 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5255 rm -f ${target_subdir}/${module}/Makefile
5256 fi
5257 extrasub="$extrasub
5258/^@if target-$module\$/d
5259/^@endif target-$module\$/d
5260/^@if target-$module-$bootstrap_suffix\$/d
5261/^@endif target-$module-$bootstrap_suffix\$/d"
5262done
5263
6bd3dfaa
PB
5264extrasub="$extrasub
5265/^@if /,/^@endif /d"
a0da8069
NN
5266
5267# Create the serialization dependencies. This uses a temporary file.
5268
e6bfb94a
AO
5269# Check whether --enable-serial-configure or --disable-serial-configure was given.
5270if test "${enable_serial_configure+set}" = set; then
5271 enableval="$enable_serial_configure"
e6bfb94a 5272
c6b750e1 5273fi;
e6bfb94a 5274
1047cb91
DD
5275case ${enable_serial_configure} in
5276 yes)
5277 enable_serial_build_configure=yes
5278 enable_serial_host_configure=yes
5279 enable_serial_target_configure=yes
5280 ;;
5281esac
5282
a0da8069
NN
5283# These force 'configure's to be done one at a time, to avoid problems
5284# with contention over a shared config.cache.
5285rm -f serdep.tmp
e6bfb94a 5286echo '# serdep.tmp' > serdep.tmp
a0da8069 5287olditem=
1047cb91 5288test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
5289for item in ${build_configdirs} ; do
5290 case ${olditem} in
5291 "") ;;
e6bfb94a 5292 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5293 esac
5294 olditem=${item}
5295done
5296olditem=
1047cb91 5297test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
5298for item in ${configdirs} ; do
5299 case ${olditem} in
5300 "") ;;
e6bfb94a 5301 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5302 esac
5303 olditem=${item}
5304done
5305olditem=
1047cb91 5306test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
5307for item in ${target_configdirs} ; do
5308 case ${olditem} in
5309 "") ;;
e6bfb94a 5310 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5311 esac
5312 olditem=${item}
5313done
5314serialization_dependencies=serdep.tmp
5315
5316
e6bfb94a 5317# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5318# target, nonopt, and variable assignments. These are the ones we
5319# might not want to pass down to subconfigures. Also strip
5320# program-prefix, program-suffix, and program-transform-name, so that
5321# we can pass down a consistent program-transform-name.
5322baseargs=
5323keep_next=no
5324skip_next=no
5325eval "set -- $ac_configure_args"
24ff9987
DJ
5326for ac_arg
5327do
c6b750e1
DJ
5328 if test X"$skip_next" = X"yes"; then
5329 skip_next=no
5330 continue
5331 fi
5332 if test X"$keep_next" = X"yes"; then
5333 case $ac_arg in
5334 *\'*)
5335 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5336 esac
5337 baseargs="$baseargs '$ac_arg'"
5338 keep_next=no
5339 continue
5340 fi
5341
5342 # Handle separated arguments. Based on the logic generated by
5343 # autoconf 2.59.
5344 case $ac_arg in
5345 *=* | --config-cache | -C | -disable-* | --disable-* \
5346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5348 | -with-* | --with-* | -without-* | --without-* | --x)
5349 separate_arg=no
5350 ;;
5351 -*)
5352 separate_arg=yes
5353 ;;
5354 *)
5355 separate_arg=no
5356 ;;
5357 esac
5358
5359 case "$ac_arg" in
5360 --no*)
5361 continue
5362 ;;
5363 --c* | \
5364 --sr* | \
5365 --ho* | \
5366 --bu* | \
5367 --t* | \
5368 --program-* | \
5369 -cache_file* | \
5370 -srcdir* | \
5371 -host* | \
5372 -build* | \
5373 -target* | \
5374 -program-prefix* | \
5375 -program-suffix* | \
5376 -program-transform-name* )
5377 skip_next=$separate_arg
5378 continue
5379 ;;
5380 -*)
5381 # An option. Add it.
5382 case $ac_arg in
5383 *\'*)
5384 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5385 esac
5386 baseargs="$baseargs '$ac_arg'"
5387 keep_next=$separate_arg
5388 ;;
5389 *)
5390 # Either a variable assignment, or a nonopt (triplet). Don't
5391 # pass it down; let the Makefile handle this.
5392 continue
5393 ;;
5394 esac
5395done
5396# Remove the initial space we just introduced and, as these will be
5397# expanded by make, quote '$'.
5398baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5399
f27d4f92
DJ
5400# Add in --program-transform-name, after --program-prefix and
5401# --program-suffix have been applied to it. Autoconf has already
5402# doubled dollar signs and backslashes in program_transform_name; we want
5403# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5404# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5405# Also, because we want to override the logic in subdir configure scripts to
5406# choose program_transform_name, replace any s,x,x, with s,y,y,.
5407sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5408${program_transform_name}
5409EOF_SED
5410gcc_transform_name=`cat conftestsed.out`
5411rm -f conftestsed.out
5412baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5413
a0da8069
NN
5414# For the build-side libraries, we just need to pretend we're native,
5415# and not use the same cache file. Multilibs are neither needed nor
5416# desired.
4b900473 5417build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5418
5419# For host modules, accept cache file option, or specification as blank.
5420case "${cache_file}" in
5421"") # empty
5422 cache_file_option="" ;;
5423/* | [A-Za-z]:[\\/]* ) # absolute path
5424 cache_file_option="--cache-file=${cache_file}" ;;
5425*) # relative path
5426 cache_file_option="--cache-file=../${cache_file}" ;;
5427esac
5428
82252c06
NN
5429# Host dirs don't like to share a cache file either, horribly enough.
5430# This seems to be due to autoconf 2.5x stupidity.
4b900473 5431host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5432
5433target_configargs=${baseargs}
5434
5435# Passing a --with-cross-host argument lets the target libraries know
5436# whether they are being built with a cross-compiler or being built
5437# native. However, it would be better to use other mechanisms to make the
5438# sorts of decisions they want to make on this basis. Please consider
5439# this option to be deprecated. FIXME.
5440if test x${is_cross_compiler} = xyes ; then
c6b750e1 5441 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5442fi
5443
5444# Default to --enable-multilib.
5445if test x${enable_multilib} = x ; then
5446 target_configargs="--enable-multilib ${target_configargs}"
5447fi
5448
5449# Pass --with-newlib if appropriate. Note that target_configdirs has
5450# changed from the earlier setting of with_newlib.
5451if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5452 target_configargs="--with-newlib ${target_configargs}"
5453fi
5454
95036d20
NN
5455# Different target subdirs use different values of certain variables
5456# (notably CXX). Worse, multilibs use *lots* of different values.
5457# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5458# it doesn't automatically accept command-line overrides of them.
5459# This means it's not safe for target subdirs to share a cache file,
5460# which is disgusting, but there you have it. Hopefully this can be
5461# fixed in future. It's still worthwhile to use a cache file for each
5462# directory. I think.
5463
ae380b45
MS
5464# Pass the appropriate --build, --host, --target and --cache-file arguments.
5465# We need to pass --target, as newer autoconf's requires consistency
5466# for target_alias and gcc doesn't manage it consistently.
4b900473 5467target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5468
a0da8069
NN
5469FLAGS_FOR_TARGET=
5470case " $target_configdirs " in
5471 *" newlib "*)
5472 case " $target_configargs " in
5473 *" --with-newlib "*)
5474 case "$target" in
5475 *-cygwin*)
564b43e5 5476 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' ;;
a0da8069
NN
5477 esac
5478
5479 # If we're not building GCC, don't discard standard headers.
5480 if test -d ${srcdir}/gcc; then
5481 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5482
5483 if test "${build}" != "${host}"; then
5484 # On Canadian crosses, CC_FOR_TARGET will have already been set
5485 # by `configure', so we won't have an opportunity to add -Bgcc/
5486 # to it. This is right: we don't want to search that directory
5487 # for binaries, but we want the header files in there, so add
5488 # them explicitly.
b00612cc 5489 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5490
5491 # Someone might think of using the pre-installed headers on
5492 # Canadian crosses, in case the installed compiler is not fully
5493 # compatible with the compiler being built. In this case, it
5494 # would be better to flag an error than risking having
5495 # incompatible object files being constructed. We can't
5496 # guarantee that an error will be flagged, but let's hope the
5497 # compiler will do it, when presented with incompatible header
5498 # files.
5499 fi
5500 fi
5501
5502 case "${target}-${is_cross_compiler}" in
ec11bdc6 5503 i[3456789]86-*-linux*-no)
a0da8069
NN
5504 # Here host == target, so we don't need to build gcc,
5505 # so we don't want to discard standard headers.
5506 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5507 ;;
5508 *)
5509 # If we're building newlib, use its generic headers last, but search
5510 # for any libc-related directories first (so make it the last -B
5511 # switch).
5512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5513 ;;
5514 esac
5515 ;;
5516 esac
5517 ;;
5518esac
45055374
CV
5519case "$target" in
5520*-mingw*)
5521 # Can't be handled as Cygwin above since Mingw does not use newlib.
5522 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' ;;
5523esac
a0da8069 5524
5fbad20a
DD
5525# Allow the user to override the flags for
5526# our build compiler if desired.
5527CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5528
a0da8069
NN
5529# On Canadian crosses, we'll be searching the right directories for
5530# the previously-installed cross compiler, so don't bother to add
5531# flags for directories within the install tree of the compiler
5532# being built; programs in there won't even run.
5533if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5534 # Search for pre-installed headers if nothing else fits.
bba45b8b 5535 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
5536fi
5537
5538if test "x${use_gnu_ld}" = x &&
5539 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5540 # Arrange for us to find uninstalled linker scripts.
b00612cc 5541 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5542fi
5543
a481dbb7
DD
5544# Search for other target-specific linker scripts and such.
5545case "${target}" in
5546 m32c-*-* )
5547 if test -d ${srcdir}/libgloss/m32c; then
5548 # This is for crt0.o
5549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5550 # This is for r8c.ld
5551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5552 # This is for libnosys.a
5553 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5554 fi
5555 ;;
4e206d7e
DB
5556 mep*)
5557 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5558 ;;
5559esac
5560
a0da8069 5561# Makefile fragments.
3e707e94
PB
5562for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5563do
5564 eval fragval=\$$frag
5565 if test $fragval != /dev/null; then
5566 eval $frag=${srcdir}/$fragval
5567 fi
5568done
a0da8069
NN
5569
5570
5571
5572
5573
5574# Miscellanea: directories, flags, etc.
5575
5576
5577
5578
5579
5580
5581
6a9cf61e 5582# Build module lists & subconfigure args.
a0da8069
NN
5583
5584
5585
be01d343
PB
5586# Host module lists & subconfigure args.
5587
5588
5589
5590# Target module lists & subconfigure args.
5591
5592
5593
5594# Build tools.
5595
5596
5597
5598# Generate default definitions for YACC, M4, LEX and other programs that run
5599# on the build machine. These are used if the Makefile can't locate these
5600# programs in objdir.
5601MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5602
5603for ac_prog in 'bison -y' byacc yacc
5604do
c6b750e1 5605 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5606set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_YACC+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5611else
5612 if test -n "$YACC"; then
5613 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5614else
c6b750e1
DJ
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_YACC="$ac_prog"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5628
be01d343
PB
5629fi
5630fi
c6b750e1 5631YACC=$ac_cv_prog_YACC
be01d343 5632if test -n "$YACC"; then
c6b750e1
DJ
5633 echo "$as_me:$LINENO: result: $YACC" >&5
5634echo "${ECHO_T}$YACC" >&6
be01d343 5635else
c6b750e1
DJ
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
be01d343
PB
5638fi
5639
c6b750e1 5640 test -n "$YACC" && break
be01d343
PB
5641done
5642test -n "$YACC" || YACC="$MISSING bison -y"
5643
5644case " $build_configdirs " in
5645 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5646 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5647esac
5648
5649for ac_prog in bison
5650do
c6b750e1 5651 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5652set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5653echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655if test "${ac_cv_prog_BISON+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5657else
5658 if test -n "$BISON"; then
5659 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5660else
c6b750e1
DJ
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_BISON="$ac_prog"
5669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672done
5673done
5674
be01d343
PB
5675fi
5676fi
c6b750e1 5677BISON=$ac_cv_prog_BISON
be01d343 5678if test -n "$BISON"; then
c6b750e1
DJ
5679 echo "$as_me:$LINENO: result: $BISON" >&5
5680echo "${ECHO_T}$BISON" >&6
be01d343 5681else
c6b750e1
DJ
5682 echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6
be01d343
PB
5684fi
5685
c6b750e1 5686 test -n "$BISON" && break
be01d343
PB
5687done
5688test -n "$BISON" || BISON="$MISSING bison"
5689
5690case " $build_configdirs " in
5691 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5692esac
5693
5694for ac_prog in gm4 gnum4 m4
5695do
c6b750e1 5696 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5697set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5698echo "$as_me:$LINENO: checking for $ac_word" >&5
5699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5700if test "${ac_cv_prog_M4+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5702else
5703 if test -n "$M4"; then
5704 ac_cv_prog_M4="$M4" # Let the user override the test.
5705else
c6b750e1
DJ
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_M4="$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717done
5718done
5719
be01d343
PB
5720fi
5721fi
c6b750e1 5722M4=$ac_cv_prog_M4
be01d343 5723if test -n "$M4"; then
c6b750e1
DJ
5724 echo "$as_me:$LINENO: result: $M4" >&5
5725echo "${ECHO_T}$M4" >&6
be01d343 5726else
c6b750e1
DJ
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
be01d343
PB
5729fi
5730
c6b750e1 5731 test -n "$M4" && break
be01d343
PB
5732done
5733test -n "$M4" || M4="$MISSING m4"
5734
5735case " $build_configdirs " in
5736 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5737esac
5738
5739for ac_prog in flex lex
5740do
c6b750e1 5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5742set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5743echo "$as_me:$LINENO: checking for $ac_word" >&5
5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745if test "${ac_cv_prog_LEX+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5747else
5748 if test -n "$LEX"; then
5749 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5750else
c6b750e1
DJ
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_LEX="$ac_prog"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763done
5764
be01d343
PB
5765fi
5766fi
c6b750e1 5767LEX=$ac_cv_prog_LEX
be01d343 5768if test -n "$LEX"; then
c6b750e1
DJ
5769 echo "$as_me:$LINENO: result: $LEX" >&5
5770echo "${ECHO_T}$LEX" >&6
be01d343 5771else
c6b750e1
DJ
5772 echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6
be01d343
PB
5774fi
5775
c6b750e1 5776 test -n "$LEX" && break
be01d343
PB
5777done
5778test -n "$LEX" || LEX="$MISSING flex"
5779
5780case " $build_configdirs " in
5781 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5782 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5783esac
5784
5785for ac_prog in flex
5786do
c6b750e1 5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5788set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5789echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5791if test "${ac_cv_prog_FLEX+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5793else
5794 if test -n "$FLEX"; then
5795 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5796else
c6b750e1
DJ
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_FLEX="$ac_prog"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809done
5810
be01d343
PB
5811fi
5812fi
c6b750e1 5813FLEX=$ac_cv_prog_FLEX
be01d343 5814if test -n "$FLEX"; then
c6b750e1
DJ
5815 echo "$as_me:$LINENO: result: $FLEX" >&5
5816echo "${ECHO_T}$FLEX" >&6
be01d343 5817else
c6b750e1
DJ
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
be01d343
PB
5820fi
5821
c6b750e1 5822 test -n "$FLEX" && break
be01d343
PB
5823done
5824test -n "$FLEX" || FLEX="$MISSING flex"
5825
5826case " $build_configdirs " in
5827 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5828esac
5829
5830for ac_prog in makeinfo
5831do
c6b750e1 5832 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5833set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5834echo "$as_me:$LINENO: checking for $ac_word" >&5
5835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5836if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5838else
5839 if test -n "$MAKEINFO"; then
5840 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5841else
c6b750e1
DJ
5842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843for as_dir in $PATH
5844do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_MAKEINFO="$ac_prog"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853done
5854done
5855
be01d343
PB
5856fi
5857fi
c6b750e1 5858MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 5859if test -n "$MAKEINFO"; then
c6b750e1
DJ
5860 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5861echo "${ECHO_T}$MAKEINFO" >&6
be01d343 5862else
c6b750e1
DJ
5863 echo "$as_me:$LINENO: result: no" >&5
5864echo "${ECHO_T}no" >&6
be01d343
PB
5865fi
5866
c6b750e1 5867 test -n "$MAKEINFO" && break
be01d343
PB
5868done
5869test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5870
5871case " $build_configdirs " in
5872 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5873 *)
5874
a4ef73e9 5875 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
5876 # higher, else we use the "missing" dummy.
5877 if ${MAKEINFO} --version \
a4ef73e9 5878 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
5879 :
5880 else
5881 MAKEINFO="$MISSING makeinfo"
5882 fi
5883 ;;
5884
5885esac
a0da8069 5886
be01d343 5887# FIXME: expect and dejagnu may become build tools?
a0da8069 5888
be01d343
PB
5889for ac_prog in expect
5890do
c6b750e1 5891 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5892set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5893echo "$as_me:$LINENO: checking for $ac_word" >&5
5894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895if test "${ac_cv_prog_EXPECT+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5897else
5898 if test -n "$EXPECT"; then
5899 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5900else
c6b750e1
DJ
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_EXPECT="$ac_prog"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913done
5914
be01d343
PB
5915fi
5916fi
c6b750e1 5917EXPECT=$ac_cv_prog_EXPECT
be01d343 5918if test -n "$EXPECT"; then
c6b750e1
DJ
5919 echo "$as_me:$LINENO: result: $EXPECT" >&5
5920echo "${ECHO_T}$EXPECT" >&6
be01d343 5921else
c6b750e1
DJ
5922 echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6
be01d343 5924fi
a0da8069 5925
c6b750e1 5926 test -n "$EXPECT" && break
be01d343
PB
5927done
5928test -n "$EXPECT" || EXPECT="expect"
a0da8069 5929
be01d343
PB
5930case " $configdirs " in
5931 *" expect "*)
5932 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5933 ;;
5934esac
a0da8069 5935
be01d343
PB
5936for ac_prog in runtest
5937do
c6b750e1 5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5939set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5940echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942if test "${ac_cv_prog_RUNTEST+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5944else
5945 if test -n "$RUNTEST"; then
5946 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5947else
c6b750e1
DJ
5948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_RUNTEST="$ac_prog"
5956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959done
5960done
5961
be01d343
PB
5962fi
5963fi
c6b750e1 5964RUNTEST=$ac_cv_prog_RUNTEST
be01d343 5965if test -n "$RUNTEST"; then
c6b750e1
DJ
5966 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5967echo "${ECHO_T}$RUNTEST" >&6
be01d343 5968else
c6b750e1
DJ
5969 echo "$as_me:$LINENO: result: no" >&5
5970echo "${ECHO_T}no" >&6
be01d343 5971fi
a0da8069 5972
c6b750e1 5973 test -n "$RUNTEST" && break
be01d343
PB
5974done
5975test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 5976
be01d343
PB
5977case " $configdirs " in
5978 *" dejagnu "*)
6b89cc21 5979 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
5980 ;;
5981esac
a0da8069
NN
5982
5983
a0da8069 5984# Host tools.
859789af
AC
5985ncn_tool_prefix=
5986test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5987ncn_target_tool_prefix=
5988test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5989
05cbd757
PB
5990 for ncn_progname in ar; do
5991 if test -n "$ncn_tool_prefix"; then
5992 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5993set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5994echo "$as_me:$LINENO: checking for $ac_word" >&5
5995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996if test "${ac_cv_prog_AR+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5998else
5999 if test -n "$AR"; then
6000 ac_cv_prog_AR="$AR" # Let the user override the test.
6001else
c6b750e1
DJ
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013done
6014done
6015
859789af
AC
6016fi
6017fi
c6b750e1 6018AR=$ac_cv_prog_AR
859789af 6019if test -n "$AR"; then
c6b750e1
DJ
6020 echo "$as_me:$LINENO: result: $AR" >&5
6021echo "${ECHO_T}$AR" >&6
859789af 6022else
c6b750e1
DJ
6023 echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6
859789af
AC
6025fi
6026
05cbd757
PB
6027 fi
6028 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6030set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6031echo "$as_me:$LINENO: checking for $ac_word" >&5
6032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033if test "${ac_cv_prog_AR+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6035else
05cbd757
PB
6036 if test -n "$AR"; then
6037 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 6038else
c6b750e1
DJ
6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040for as_dir in $PATH
6041do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_AR="${ncn_progname}"
6047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050done
6051done
6052
859789af
AC
6053fi
6054fi
c6b750e1 6055AR=$ac_cv_prog_AR
05cbd757 6056if test -n "$AR"; then
c6b750e1
DJ
6057 echo "$as_me:$LINENO: result: $AR" >&5
6058echo "${ECHO_T}$AR" >&6
859789af 6059else
c6b750e1
DJ
6060 echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6
859789af 6062fi
c6b750e1 6063
05cbd757
PB
6064 fi
6065 test -n "$ac_cv_prog_AR" && break
6066done
6067
6068if test -z "$ac_cv_prog_AR" ; then
6069 set dummy ar
6070 if test $build = $host ; then
6071 AR="$2"
859789af 6072 else
05cbd757 6073 AR="${ncn_tool_prefix}$2"
859789af 6074 fi
859789af
AC
6075fi
6076
05cbd757
PB
6077 for ncn_progname in as; do
6078 if test -n "$ncn_tool_prefix"; then
6079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6080set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6081echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6083if test "${ac_cv_prog_AS+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6085else
6086 if test -n "$AS"; then
6087 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100done
6101done
6102
859789af
AC
6103fi
6104fi
c6b750e1 6105AS=$ac_cv_prog_AS
859789af 6106if test -n "$AS"; then
c6b750e1
DJ
6107 echo "$as_me:$LINENO: result: $AS" >&5
6108echo "${ECHO_T}$AS" >&6
859789af 6109else
c6b750e1
DJ
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
859789af
AC
6112fi
6113
05cbd757
PB
6114 fi
6115 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6117set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6118echo "$as_me:$LINENO: checking for $ac_word" >&5
6119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120if test "${ac_cv_prog_AS+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6122else
05cbd757
PB
6123 if test -n "$AS"; then
6124 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 6125else
c6b750e1
DJ
6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127for as_dir in $PATH
6128do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_AS="${ncn_progname}"
6134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137done
6138done
6139
859789af
AC
6140fi
6141fi
c6b750e1 6142AS=$ac_cv_prog_AS
05cbd757 6143if test -n "$AS"; then
c6b750e1
DJ
6144 echo "$as_me:$LINENO: result: $AS" >&5
6145echo "${ECHO_T}$AS" >&6
859789af 6146else
c6b750e1
DJ
6147 echo "$as_me:$LINENO: result: no" >&5
6148echo "${ECHO_T}no" >&6
859789af 6149fi
c6b750e1 6150
05cbd757
PB
6151 fi
6152 test -n "$ac_cv_prog_AS" && break
6153done
6154
6155if test -z "$ac_cv_prog_AS" ; then
6156 set dummy as
6157 if test $build = $host ; then
6158 AS="$2"
859789af 6159 else
05cbd757 6160 AS="${ncn_tool_prefix}$2"
859789af 6161 fi
859789af
AC
6162fi
6163
05cbd757
PB
6164 for ncn_progname in dlltool; do
6165 if test -n "$ncn_tool_prefix"; then
6166 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6167set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6168echo "$as_me:$LINENO: checking for $ac_word" >&5
6169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6170if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6172else
6173 if test -n "$DLLTOOL"; then
6174 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6175else
c6b750e1
DJ
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187done
6188done
6189
859789af
AC
6190fi
6191fi
c6b750e1 6192DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 6193if test -n "$DLLTOOL"; then
c6b750e1
DJ
6194 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6195echo "${ECHO_T}$DLLTOOL" >&6
859789af 6196else
c6b750e1
DJ
6197 echo "$as_me:$LINENO: result: no" >&5
6198echo "${ECHO_T}no" >&6
859789af
AC
6199fi
6200
05cbd757
PB
6201 fi
6202 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6204set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6205echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6207if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6209else
05cbd757
PB
6210 if test -n "$DLLTOOL"; then
6211 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 6212else
c6b750e1
DJ
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_DLLTOOL="${ncn_progname}"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224done
6225done
6226
859789af
AC
6227fi
6228fi
c6b750e1 6229DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 6230if test -n "$DLLTOOL"; then
c6b750e1
DJ
6231 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6232echo "${ECHO_T}$DLLTOOL" >&6
859789af 6233else
c6b750e1
DJ
6234 echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6
859789af 6236fi
c6b750e1 6237
05cbd757
PB
6238 fi
6239 test -n "$ac_cv_prog_DLLTOOL" && break
6240done
6241
6242if test -z "$ac_cv_prog_DLLTOOL" ; then
6243 set dummy dlltool
6244 if test $build = $host ; then
6245 DLLTOOL="$2"
859789af 6246 else
05cbd757 6247 DLLTOOL="${ncn_tool_prefix}$2"
859789af 6248 fi
859789af
AC
6249fi
6250
05cbd757
PB
6251 for ncn_progname in ld; do
6252 if test -n "$ncn_tool_prefix"; then
6253 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6254set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6255echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6257if test "${ac_cv_prog_LD+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6259else
6260 if test -n "$LD"; then
6261 ac_cv_prog_LD="$LD" # Let the user override the test.
6262else
c6b750e1
DJ
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274done
6275done
6276
859789af
AC
6277fi
6278fi
c6b750e1 6279LD=$ac_cv_prog_LD
859789af 6280if test -n "$LD"; then
c6b750e1
DJ
6281 echo "$as_me:$LINENO: result: $LD" >&5
6282echo "${ECHO_T}$LD" >&6
859789af 6283else
c6b750e1
DJ
6284 echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
859789af
AC
6286fi
6287
05cbd757
PB
6288 fi
6289 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6291set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6292echo "$as_me:$LINENO: checking for $ac_word" >&5
6293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294if test "${ac_cv_prog_LD+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6296else
05cbd757
PB
6297 if test -n "$LD"; then
6298 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 6299else
c6b750e1
DJ
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
6302do
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_LD="${ncn_progname}"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6310 fi
6311done
6312done
6313
859789af
AC
6314fi
6315fi
c6b750e1 6316LD=$ac_cv_prog_LD
05cbd757 6317if test -n "$LD"; then
c6b750e1
DJ
6318 echo "$as_me:$LINENO: result: $LD" >&5
6319echo "${ECHO_T}$LD" >&6
859789af 6320else
c6b750e1
DJ
6321 echo "$as_me:$LINENO: result: no" >&5
6322echo "${ECHO_T}no" >&6
859789af 6323fi
c6b750e1 6324
05cbd757
PB
6325 fi
6326 test -n "$ac_cv_prog_LD" && break
6327done
6328
6329if test -z "$ac_cv_prog_LD" ; then
6330 set dummy ld
6331 if test $build = $host ; then
6332 LD="$2"
859789af 6333 else
05cbd757 6334 LD="${ncn_tool_prefix}$2"
859789af 6335 fi
859789af
AC
6336fi
6337
be01d343
PB
6338 for ncn_progname in lipo; do
6339 if test -n "$ncn_tool_prefix"; then
6340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6342echo "$as_me:$LINENO: checking for $ac_word" >&5
6343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6344if test "${ac_cv_prog_LIPO+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6346else
6347 if test -n "$LIPO"; then
6348 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6349else
c6b750e1
DJ
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361done
6362done
6363
be01d343
PB
6364fi
6365fi
c6b750e1 6366LIPO=$ac_cv_prog_LIPO
be01d343 6367if test -n "$LIPO"; then
c6b750e1
DJ
6368 echo "$as_me:$LINENO: result: $LIPO" >&5
6369echo "${ECHO_T}$LIPO" >&6
be01d343 6370else
c6b750e1
DJ
6371 echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6
be01d343
PB
6373fi
6374
6375 fi
6376 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6378set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6379echo "$as_me:$LINENO: checking for $ac_word" >&5
6380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381if test "${ac_cv_prog_LIPO+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6383else
6384 if test -n "$LIPO"; then
6385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6386else
c6b750e1
DJ
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_LIPO="${ncn_progname}"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398done
6399done
6400
be01d343
PB
6401fi
6402fi
c6b750e1 6403LIPO=$ac_cv_prog_LIPO
be01d343 6404if test -n "$LIPO"; then
c6b750e1
DJ
6405 echo "$as_me:$LINENO: result: $LIPO" >&5
6406echo "${ECHO_T}$LIPO" >&6
be01d343 6407else
c6b750e1
DJ
6408 echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6
be01d343 6410fi
c6b750e1 6411
be01d343
PB
6412 fi
6413 test -n "$ac_cv_prog_LIPO" && break
6414done
6415
6416if test -z "$ac_cv_prog_LIPO" ; then
6417 set dummy lipo
6418 if test $build = $host ; then
6419 LIPO="$2"
6420 else
6421 LIPO="${ncn_tool_prefix}$2"
6422 fi
6423fi
6424
05cbd757
PB
6425 for ncn_progname in nm; do
6426 if test -n "$ncn_tool_prefix"; then
6427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6428set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6429echo "$as_me:$LINENO: checking for $ac_word" >&5
6430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6431if test "${ac_cv_prog_NM+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6433else
6434 if test -n "$NM"; then
6435 ac_cv_prog_NM="$NM" # Let the user override the test.
6436else
c6b750e1
DJ
6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438for as_dir in $PATH
6439do
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6447 fi
6448done
6449done
6450
859789af
AC
6451fi
6452fi
c6b750e1 6453NM=$ac_cv_prog_NM
859789af 6454if test -n "$NM"; then
c6b750e1
DJ
6455 echo "$as_me:$LINENO: result: $NM" >&5
6456echo "${ECHO_T}$NM" >&6
859789af 6457else
c6b750e1
DJ
6458 echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6
859789af
AC
6460fi
6461
05cbd757
PB
6462 fi
6463 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6465set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6466echo "$as_me:$LINENO: checking for $ac_word" >&5
6467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6468if test "${ac_cv_prog_NM+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6470else
05cbd757
PB
6471 if test -n "$NM"; then
6472 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6473else
c6b750e1
DJ
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_NM="${ncn_progname}"
6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485done
6486done
6487
859789af
AC
6488fi
6489fi
c6b750e1 6490NM=$ac_cv_prog_NM
05cbd757 6491if test -n "$NM"; then
c6b750e1
DJ
6492 echo "$as_me:$LINENO: result: $NM" >&5
6493echo "${ECHO_T}$NM" >&6
859789af 6494else
c6b750e1
DJ
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
859789af 6497fi
c6b750e1 6498
05cbd757
PB
6499 fi
6500 test -n "$ac_cv_prog_NM" && break
6501done
6502
6503if test -z "$ac_cv_prog_NM" ; then
6504 set dummy nm
6505 if test $build = $host ; then
6506 NM="$2"
859789af 6507 else
05cbd757 6508 NM="${ncn_tool_prefix}$2"
859789af 6509 fi
859789af
AC
6510fi
6511
05cbd757
PB
6512 for ncn_progname in ranlib; do
6513 if test -n "$ncn_tool_prefix"; then
6514 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6515set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6516echo "$as_me:$LINENO: checking for $ac_word" >&5
6517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6518if test "${ac_cv_prog_RANLIB+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6520else
6521 if test -n "$RANLIB"; then
6522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6523else
c6b750e1
DJ
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536done
6537
859789af
AC
6538fi
6539fi
c6b750e1 6540RANLIB=$ac_cv_prog_RANLIB
859789af 6541if test -n "$RANLIB"; then
c6b750e1
DJ
6542 echo "$as_me:$LINENO: result: $RANLIB" >&5
6543echo "${ECHO_T}$RANLIB" >&6
859789af 6544else
c6b750e1
DJ
6545 echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
859789af
AC
6547fi
6548
05cbd757
PB
6549 fi
6550 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6552set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6553echo "$as_me:$LINENO: checking for $ac_word" >&5
6554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555if test "${ac_cv_prog_RANLIB+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6557else
05cbd757
PB
6558 if test -n "$RANLIB"; then
6559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 6560else
c6b750e1
DJ
6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562for as_dir in $PATH
6563do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_RANLIB="${ncn_progname}"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6571 fi
6572done
6573done
6574
859789af
AC
6575fi
6576fi
c6b750e1 6577RANLIB=$ac_cv_prog_RANLIB
05cbd757 6578if test -n "$RANLIB"; then
c6b750e1
DJ
6579 echo "$as_me:$LINENO: result: $RANLIB" >&5
6580echo "${ECHO_T}$RANLIB" >&6
859789af 6581else
c6b750e1
DJ
6582 echo "$as_me:$LINENO: result: no" >&5
6583echo "${ECHO_T}no" >&6
859789af 6584fi
c6b750e1 6585
859789af 6586 fi
05cbd757
PB
6587 test -n "$ac_cv_prog_RANLIB" && break
6588done
6589
6590if test -z "$ac_cv_prog_RANLIB" ; then
6591 RANLIB=":"
859789af
AC
6592fi
6593
be01d343
PB
6594 for ncn_progname in strip; do
6595 if test -n "$ncn_tool_prefix"; then
6596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6597set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6598echo "$as_me:$LINENO: checking for $ac_word" >&5
6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6600if test "${ac_cv_prog_STRIP+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6602else
6603 if test -n "$STRIP"; then
6604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6605else
c6b750e1
DJ
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618done
6619
be01d343
PB
6620fi
6621fi
c6b750e1 6622STRIP=$ac_cv_prog_STRIP
be01d343 6623if test -n "$STRIP"; then
c6b750e1
DJ
6624 echo "$as_me:$LINENO: result: $STRIP" >&5
6625echo "${ECHO_T}$STRIP" >&6
be01d343 6626else
c6b750e1
DJ
6627 echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
be01d343
PB
6629fi
6630
6631 fi
6632 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6634set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6635echo "$as_me:$LINENO: checking for $ac_word" >&5
6636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6637if test "${ac_cv_prog_STRIP+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6639else
6640 if test -n "$STRIP"; then
6641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6642else
c6b750e1
DJ
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_STRIP="${ncn_progname}"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654done
6655done
6656
be01d343
PB
6657fi
6658fi
c6b750e1 6659STRIP=$ac_cv_prog_STRIP
be01d343 6660if test -n "$STRIP"; then
c6b750e1
DJ
6661 echo "$as_me:$LINENO: result: $STRIP" >&5
6662echo "${ECHO_T}$STRIP" >&6
be01d343 6663else
c6b750e1
DJ
6664 echo "$as_me:$LINENO: result: no" >&5
6665echo "${ECHO_T}no" >&6
be01d343 6666fi
c6b750e1 6667
be01d343
PB
6668 fi
6669 test -n "$ac_cv_prog_STRIP" && break
6670done
6671
6672if test -z "$ac_cv_prog_STRIP" ; then
6673 STRIP=":"
6674fi
6675
05cbd757
PB
6676 for ncn_progname in windres; do
6677 if test -n "$ncn_tool_prefix"; then
6678 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6679set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6680echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6682if test "${ac_cv_prog_WINDRES+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6684else
6685 if test -n "$WINDRES"; then
6686 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6687else
c6b750e1
DJ
6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699done
6700done
6701
859789af
AC
6702fi
6703fi
c6b750e1 6704WINDRES=$ac_cv_prog_WINDRES
859789af 6705if test -n "$WINDRES"; then
c6b750e1
DJ
6706 echo "$as_me:$LINENO: result: $WINDRES" >&5
6707echo "${ECHO_T}$WINDRES" >&6
859789af 6708else
c6b750e1
DJ
6709 echo "$as_me:$LINENO: result: no" >&5
6710echo "${ECHO_T}no" >&6
859789af
AC
6711fi
6712
05cbd757
PB
6713 fi
6714 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6716set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6717echo "$as_me:$LINENO: checking for $ac_word" >&5
6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6719if test "${ac_cv_prog_WINDRES+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6721else
05cbd757
PB
6722 if test -n "$WINDRES"; then
6723 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 6724else
c6b750e1
DJ
6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726for as_dir in $PATH
6727do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_WINDRES="${ncn_progname}"
6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736done
6737done
6738
859789af
AC
6739fi
6740fi
c6b750e1 6741WINDRES=$ac_cv_prog_WINDRES
05cbd757 6742if test -n "$WINDRES"; then
c6b750e1
DJ
6743 echo "$as_me:$LINENO: result: $WINDRES" >&5
6744echo "${ECHO_T}$WINDRES" >&6
859789af 6745else
c6b750e1
DJ
6746 echo "$as_me:$LINENO: result: no" >&5
6747echo "${ECHO_T}no" >&6
859789af 6748fi
c6b750e1 6749
05cbd757
PB
6750 fi
6751 test -n "$ac_cv_prog_WINDRES" && break
6752done
6753
6754if test -z "$ac_cv_prog_WINDRES" ; then
6755 set dummy windres
6756 if test $build = $host ; then
6757 WINDRES="$2"
859789af 6758 else
05cbd757 6759 WINDRES="${ncn_tool_prefix}$2"
859789af 6760 fi
859789af
AC
6761fi
6762
05cbd757
PB
6763 for ncn_progname in objcopy; do
6764 if test -n "$ncn_tool_prefix"; then
6765 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6766set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6767echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6769if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6771else
6772 if test -n "$OBJCOPY"; then
6773 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6774else
c6b750e1
DJ
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787done
6788
859789af
AC
6789fi
6790fi
c6b750e1 6791OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 6792if test -n "$OBJCOPY"; then
c6b750e1
DJ
6793 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6794echo "${ECHO_T}$OBJCOPY" >&6
859789af 6795else
c6b750e1
DJ
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
859789af
AC
6798fi
6799
05cbd757
PB
6800 fi
6801 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6803set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6804echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6806if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6808else
05cbd757
PB
6809 if test -n "$OBJCOPY"; then
6810 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 6811else
c6b750e1
DJ
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_OBJCOPY="${ncn_progname}"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824done
6825
859789af
AC
6826fi
6827fi
c6b750e1 6828OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 6829if test -n "$OBJCOPY"; then
c6b750e1
DJ
6830 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6831echo "${ECHO_T}$OBJCOPY" >&6
859789af 6832else
c6b750e1
DJ
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
859789af 6835fi
c6b750e1 6836
05cbd757
PB
6837 fi
6838 test -n "$ac_cv_prog_OBJCOPY" && break
6839done
6840
6841if test -z "$ac_cv_prog_OBJCOPY" ; then
6842 set dummy objcopy
6843 if test $build = $host ; then
6844 OBJCOPY="$2"
859789af 6845 else
05cbd757 6846 OBJCOPY="${ncn_tool_prefix}$2"
859789af 6847 fi
859789af
AC
6848fi
6849
05cbd757
PB
6850 for ncn_progname in objdump; do
6851 if test -n "$ncn_tool_prefix"; then
6852 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6853set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6854echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6858else
6859 if test -n "$OBJDUMP"; then
6860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6861else
c6b750e1
DJ
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874done
6875
859789af
AC
6876fi
6877fi
c6b750e1 6878OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 6879if test -n "$OBJDUMP"; then
c6b750e1
DJ
6880 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6881echo "${ECHO_T}$OBJDUMP" >&6
859789af 6882else
c6b750e1
DJ
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
859789af
AC
6885fi
6886
05cbd757
PB
6887 fi
6888 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6890set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6891echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6893if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6895else
05cbd757
PB
6896 if test -n "$OBJDUMP"; then
6897 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 6898else
c6b750e1
DJ
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_OBJDUMP="${ncn_progname}"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
6912
859789af
AC
6913fi
6914fi
c6b750e1 6915OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 6916if test -n "$OBJDUMP"; then
c6b750e1
DJ
6917 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6918echo "${ECHO_T}$OBJDUMP" >&6
859789af 6919else
c6b750e1
DJ
6920 echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6
859789af 6922fi
c6b750e1 6923
05cbd757
PB
6924 fi
6925 test -n "$ac_cv_prog_OBJDUMP" && break
6926done
6927
6928if test -z "$ac_cv_prog_OBJDUMP" ; then
6929 set dummy objdump
6930 if test $build = $host ; then
6931 OBJDUMP="$2"
859789af 6932 else
05cbd757 6933 OBJDUMP="${ncn_tool_prefix}$2"
859789af 6934 fi
859789af
AC
6935fi
6936
a0da8069
NN
6937
6938
6939
6940
6941
6942
be01d343 6943# Target tools.
c6b750e1 6944
2429c060
PB
6945# Check whether --with-build-time-tools or --without-build-time-tools was given.
6946if test "${with_build_time_tools+set}" = set; then
6947 withval="$with_build_time_tools"
6948 case x"$withval" in
6949 x/*) ;;
6950 *)
6951 with_build_time_tools=
c6b750e1
DJ
6952 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6953echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
6954 ;;
6955 esac
859789af 6956else
2429c060 6957 with_build_time_tools=
c6b750e1 6958fi;
859789af 6959
2429c060
PB
6960 if test -n "$with_build_time_tools"; then
6961 for ncn_progname in cc gcc; do
c6b750e1
DJ
6962 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6963echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6964 if test -x $with_build_time_tools/${ncn_progname}; then
6965 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6966 echo "$as_me:$LINENO: result: yes" >&5
6967echo "${ECHO_T}yes" >&6
cac3d6c4 6968 break
2429c060 6969 else
c6b750e1
DJ
6970 echo "$as_me:$LINENO: result: no" >&5
6971echo "${ECHO_T}no" >&6
cac3d6c4
CM
6972 fi
6973 done
55db4b87
PB
6974fi
6975
2429c060
PB
6976if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6977 for ncn_progname in cc gcc; do
6978 if test -n "$ncn_target_tool_prefix"; then
6979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6980set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6981echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
6985else
6986 if test -n "$CC_FOR_TARGET"; then
6987 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6988else
c6b750e1
DJ
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001done
7002
55db4b87
PB
7003fi
7004fi
c6b750e1 7005CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 7006if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7007 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7008echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7009else
c6b750e1
DJ
7010 echo "$as_me:$LINENO: result: no" >&5
7011echo "${ECHO_T}no" >&6
55db4b87
PB
7012fi
7013
2429c060
PB
7014 fi
7015 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7017set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7018echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7020if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7022else
05cbd757
PB
7023 if test -n "$CC_FOR_TARGET"; then
7024 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 7025else
c6b750e1
DJ
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038done
7039
55db4b87
PB
7040fi
7041fi
c6b750e1 7042CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 7043if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
7044 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7045echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 7046else
c6b750e1
DJ
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
55db4b87 7049fi
c6b750e1 7050
2429c060
PB
7051 fi
7052 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7053 done
7054fi
c6b750e1 7055
05cbd757
PB
7056if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7057 set dummy cc gcc
7058 if test $build = $target ; then
7059 CC_FOR_TARGET="$2"
55db4b87 7060 else
05cbd757 7061 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7062 fi
55db4b87
PB
7063fi
7064
2429c060
PB
7065 if test -n "$with_build_time_tools"; then
7066 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
7067 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7068echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7069 if test -x $with_build_time_tools/${ncn_progname}; then
7070 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7071 echo "$as_me:$LINENO: result: yes" >&5
7072echo "${ECHO_T}yes" >&6
2429c060
PB
7073 break
7074 else
c6b750e1
DJ
7075 echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6
2429c060
PB
7077 fi
7078 done
7079fi
7080
7081if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7082 for ncn_progname in c++ g++ cxx gxx; do
7083 if test -n "$ncn_target_tool_prefix"; then
7084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7085set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7086echo "$as_me:$LINENO: checking for $ac_word" >&5
7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7088if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7090else
7091 if test -n "$CXX_FOR_TARGET"; then
7092 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7093else
c6b750e1
DJ
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107
55db4b87
PB
7108fi
7109fi
c6b750e1 7110CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 7111if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
7112 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7113echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 7114else
c6b750e1
DJ
7115 echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6
55db4b87
PB
7117fi
7118
2429c060
PB
7119 fi
7120 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7122set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7123echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7125if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7127else
05cbd757
PB
7128 if test -n "$CXX_FOR_TARGET"; then
7129 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 7130else
c6b750e1
DJ
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142done
7143done
7144
55db4b87
PB
7145fi
7146fi
c6b750e1 7147CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 7148if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
7149 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7150echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 7151else
c6b750e1
DJ
7152 echo "$as_me:$LINENO: result: no" >&5
7153echo "${ECHO_T}no" >&6
55db4b87 7154fi
c6b750e1 7155
2429c060
PB
7156 fi
7157 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7158 done
7159fi
c6b750e1 7160
05cbd757
PB
7161if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7162 set dummy c++ g++ cxx gxx
7163 if test $build = $target ; then
7164 CXX_FOR_TARGET="$2"
55db4b87 7165 else
05cbd757 7166 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7167 fi
859789af
AC
7168fi
7169
2429c060
PB
7170 if test -n "$with_build_time_tools"; then
7171 for ncn_progname in gcc; do
c6b750e1
DJ
7172 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7173echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7174 if test -x $with_build_time_tools/${ncn_progname}; then
7175 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
2429c060
PB
7178 break
7179 else
c6b750e1
DJ
7180 echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6
2429c060
PB
7182 fi
7183 done
7184fi
7185
7186if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7187 for ncn_progname in gcc; do
7188 if test -n "$ncn_target_tool_prefix"; then
7189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7190set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7191echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7193if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7195else
2429c060
PB
7196 if test -n "$GCC_FOR_TARGET"; then
7197 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 7198else
c6b750e1
DJ
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210done
7211done
7212
55db4b87
PB
7213fi
7214fi
c6b750e1 7215GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 7216if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
7217 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7218echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 7219else
c6b750e1
DJ
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
55db4b87
PB
7222fi
7223
2429c060
PB
7224 fi
7225 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7227set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7228echo "$as_me:$LINENO: checking for $ac_word" >&5
7229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7230if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7232else
05cbd757
PB
7233 if test -n "$GCC_FOR_TARGET"; then
7234 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 7235else
c6b750e1
DJ
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248done
7249
55db4b87
PB
7250fi
7251fi
c6b750e1 7252GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 7253if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
7254 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7255echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 7256else
c6b750e1
DJ
7257 echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6
55db4b87 7259fi
c6b750e1 7260
2429c060
PB
7261 fi
7262 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7263 done
7264fi
c6b750e1 7265
05cbd757
PB
7266if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7267 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
7268fi
7269
2429c060
PB
7270 if test -n "$with_build_time_tools"; then
7271 for ncn_progname in gcj; do
c6b750e1
DJ
7272 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7273echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7274 if test -x $with_build_time_tools/${ncn_progname}; then
7275 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7276 echo "$as_me:$LINENO: result: yes" >&5
7277echo "${ECHO_T}yes" >&6
2429c060
PB
7278 break
7279 else
c6b750e1
DJ
7280 echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6
2429c060
PB
7282 fi
7283 done
7284fi
7285
7286if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7287 for ncn_progname in gcj; do
7288 if test -n "$ncn_target_tool_prefix"; then
7289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7290set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7291echo "$as_me:$LINENO: checking for $ac_word" >&5
7292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7295else
7296 if test -n "$GCJ_FOR_TARGET"; then
7297 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7298else
c6b750e1
DJ
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310done
7311done
7312
55db4b87
PB
7313fi
7314fi
c6b750e1 7315GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
55db4b87 7316if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
7317 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7318echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 7319else
c6b750e1
DJ
7320 echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6
55db4b87
PB
7322fi
7323
2429c060
PB
7324 fi
7325 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7327set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7328echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7332else
05cbd757
PB
7333 if test -n "$GCJ_FOR_TARGET"; then
7334 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
55db4b87 7335else
c6b750e1
DJ
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339 IFS=$as_save_IFS
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 break 2
7346 fi
7347done
7348done
7349
55db4b87
PB
7350fi
7351fi
c6b750e1 7352GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
05cbd757 7353if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
7354 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7355echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 7356else
c6b750e1
DJ
7357 echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6
55db4b87 7359fi
c6b750e1 7360
2429c060
PB
7361 fi
7362 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7363 done
7364fi
c6b750e1 7365
05cbd757
PB
7366if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7367 set dummy gcj
7368 if test $build = $target ; then
7369 GCJ_FOR_TARGET="$2"
55db4b87 7370 else
05cbd757 7371 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7372 fi
55db4b87
PB
7373fi
7374
2429c060
PB
7375 if test -n "$with_build_time_tools"; then
7376 for ncn_progname in gfortran; do
c6b750e1
DJ
7377 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7378echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7379 if test -x $with_build_time_tools/${ncn_progname}; then
7380 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
2429c060
PB
7383 break
7384 else
c6b750e1
DJ
7385 echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6
2429c060
PB
7387 fi
7388 done
7389fi
7390
7391if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7392 for ncn_progname in gfortran; do
7393 if test -n "$ncn_target_tool_prefix"; then
7394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7395set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7396echo "$as_me:$LINENO: checking for $ac_word" >&5
7397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7400else
7401 if test -n "$GFORTRAN_FOR_TARGET"; then
7402 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7403else
c6b750e1
DJ
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415done
7416done
7417
55db4b87
PB
7418fi
7419fi
c6b750e1 7420GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 7421if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7422 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7423echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7424else
c6b750e1
DJ
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
55db4b87
PB
7427fi
7428
2429c060
PB
7429 fi
7430 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7432set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7433echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7435if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7437else
05cbd757 7438 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7439 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454
55db4b87
PB
7455fi
7456fi
c6b750e1 7457GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 7458if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7459 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7460echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7461else
c6b750e1
DJ
7462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
55db4b87 7464fi
c6b750e1 7465
2429c060
PB
7466 fi
7467 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7468 done
7469fi
c6b750e1 7470
05cbd757
PB
7471if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7472 set dummy gfortran
7473 if test $build = $target ; then
7474 GFORTRAN_FOR_TARGET="$2"
55db4b87 7475 else
05cbd757 7476 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7477 fi
859789af
AC
7478fi
7479
2429c060
PB
7480
7481
2429c060
PB
7482cat > conftest.c << \EOF
7483#ifdef __GNUC__
7484 gcc_yay;
7485#endif
7486EOF
7487if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7488 have_gcc_for_target=yes
859789af 7489else
2429c060
PB
7490 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7491 have_gcc_for_target=no
859789af 7492fi
2429c060
PB
7493rm conftest.c
7494
7495
7496
859789af 7497
2429c060
PB
7498if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7499 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7500 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7501echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7502 if test -x $with_build_time_tools/ar; then
7503 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7504 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
7505 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7506echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 7507 else
c6b750e1
DJ
7508 echo "$as_me:$LINENO: result: no" >&5
7509echo "${ECHO_T}no" >&6
3a35eeb3 7510 fi
2429c060
PB
7511 elif test $build != $host && test $have_gcc_for_target = yes; then
7512 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7513 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7514 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 7515 fi
2429c060 7516fi
c6b750e1 7517if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7518 # Extract the first word of "ar", so it can be a program name with args.
7519set dummy ar; ac_word=$2
c6b750e1
DJ
7520echo "$as_me:$LINENO: checking for $ac_word" >&5
7521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7522if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7524else
c6b750e1
DJ
7525 case $AR_FOR_TARGET in
7526 [\\/]* | ?:[\\/]*)
2429c060
PB
7527 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7528 ;;
2429c060 7529 *)
c6b750e1
DJ
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $gcc_cv_tool_dirs
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7540 fi
7541done
7542done
7543
2429c060
PB
7544 ;;
7545esac
859789af 7546fi
c6b750e1
DJ
7547AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7548
2429c060 7549if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7550 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7551echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 7552else
c6b750e1
DJ
7553 echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
859789af 7555fi
05cbd757 7556
2429c060
PB
7557fi
7558if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7559 if test -n "$with_build_time_tools"; then
7560 for ncn_progname in ar; do
c6b750e1
DJ
7561 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7562echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7563 if test -x $with_build_time_tools/${ncn_progname}; then
7564 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7565 echo "$as_me:$LINENO: result: yes" >&5
7566echo "${ECHO_T}yes" >&6
2429c060
PB
7567 break
7568 else
c6b750e1
DJ
7569 echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6
2429c060
PB
7571 fi
7572 done
859789af
AC
7573fi
7574
2429c060
PB
7575if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7576 for ncn_progname in ar; do
7577 if test -n "$ncn_target_tool_prefix"; then
7578 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7579set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7580echo "$as_me:$LINENO: checking for $ac_word" >&5
7581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7582if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7584else
2429c060
PB
7585 if test -n "$AR_FOR_TARGET"; then
7586 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 7587else
c6b750e1
DJ
7588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589for as_dir in $PATH
7590do
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599done
7600done
7601
7e0f7140
GK
7602fi
7603fi
c6b750e1 7604AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7605if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7606 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7607echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7608else
c6b750e1
DJ
7609 echo "$as_me:$LINENO: result: no" >&5
7610echo "${ECHO_T}no" >&6
7e0f7140
GK
7611fi
7612
2429c060
PB
7613 fi
7614 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 7616set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7617echo "$as_me:$LINENO: checking for $ac_word" >&5
7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7621else
2429c060
PB
7622 if test -n "$AR_FOR_TARGET"; then
7623 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 7624else
c6b750e1
DJ
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637done
7638
7e0f7140
GK
7639fi
7640fi
c6b750e1 7641AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7642if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7643 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7644echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7645else
c6b750e1
DJ
7646 echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
7e0f7140 7648fi
c6b750e1 7649
2429c060
PB
7650 fi
7651 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7652 done
7653fi
c6b750e1 7654
2429c060
PB
7655if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7656 set dummy ar
7e0f7140 7657 if test $build = $target ; then
2429c060 7658 AR_FOR_TARGET="$2"
7e0f7140 7659 else
2429c060 7660 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
7661 fi
7662fi
7663
3a35eeb3
PB
7664else
7665 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
7666fi
7667
7668
7669
7670
7671if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7672 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7673 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7674echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7675 if test -x $with_build_time_tools/as; then
7676 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7677 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
7678 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7679echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 7680 else
c6b750e1
DJ
7681 echo "$as_me:$LINENO: result: no" >&5
7682echo "${ECHO_T}no" >&6
3a35eeb3 7683 fi
2429c060
PB
7684 elif test $build != $host && test $have_gcc_for_target = yes; then
7685 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7686 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7687 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7688 fi
7689fi
c6b750e1 7690if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7691 # Extract the first word of "as", so it can be a program name with args.
7692set dummy as; ac_word=$2
c6b750e1
DJ
7693echo "$as_me:$LINENO: checking for $ac_word" >&5
7694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7695if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7697else
c6b750e1
DJ
7698 case $AS_FOR_TARGET in
7699 [\\/]* | ?:[\\/]*)
2429c060
PB
7700 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7701 ;;
2429c060 7702 *)
c6b750e1
DJ
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704for as_dir in $gcc_cv_tool_dirs
7705do
7706 IFS=$as_save_IFS
7707 test -z "$as_dir" && as_dir=.
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7710 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714done
7715done
7716
2429c060
PB
7717 ;;
7718esac
7719fi
c6b750e1
DJ
7720AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7721
2429c060 7722if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7723 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7724echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7725else
c6b750e1
DJ
7726 echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6
2429c060
PB
7728fi
7729
7730fi
7731if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7732 if test -n "$with_build_time_tools"; then
7733 for ncn_progname in as; do
c6b750e1
DJ
7734 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7735echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7736 if test -x $with_build_time_tools/${ncn_progname}; then
7737 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7738 echo "$as_me:$LINENO: result: yes" >&5
7739echo "${ECHO_T}yes" >&6
2429c060
PB
7740 break
7741 else
c6b750e1
DJ
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
2429c060
PB
7744 fi
7745 done
7746fi
7747
7748if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7749 for ncn_progname in as; do
7750 if test -n "$ncn_target_tool_prefix"; then
7751 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7752set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7753echo "$as_me:$LINENO: checking for $ac_word" >&5
7754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7757else
7758 if test -n "$AS_FOR_TARGET"; then
7759 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7760else
c6b750e1
DJ
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772done
7773done
7774
2429c060
PB
7775fi
7776fi
c6b750e1 7777AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7778if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7779 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7780echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7781else
c6b750e1
DJ
7782 echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6
2429c060
PB
7784fi
7785
7786 fi
7787 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7789set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7790echo "$as_me:$LINENO: checking for $ac_word" >&5
7791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7794else
7795 if test -n "$AS_FOR_TARGET"; then
7796 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7797else
c6b750e1
DJ
7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809done
7810done
7811
2429c060
PB
7812fi
7813fi
c6b750e1 7814AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7815if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7816 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7817echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7818else
c6b750e1
DJ
7819 echo "$as_me:$LINENO: result: no" >&5
7820echo "${ECHO_T}no" >&6
2429c060 7821fi
c6b750e1 7822
2429c060
PB
7823 fi
7824 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7825 done
7826fi
c6b750e1 7827
2429c060
PB
7828if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7829 set dummy as
7830 if test $build = $target ; then
7831 AS_FOR_TARGET="$2"
7832 else
7833 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7834 fi
7835fi
7836
3a35eeb3
PB
7837else
7838 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
7839fi
7840
7841
7842
7843
7844if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7845 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7846 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7847echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7848 if test -x $with_build_time_tools/dlltool; then
7849 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7850 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
7851 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7852echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 7853 else
c6b750e1
DJ
7854 echo "$as_me:$LINENO: result: no" >&5
7855echo "${ECHO_T}no" >&6
3a35eeb3 7856 fi
2429c060
PB
7857 elif test $build != $host && test $have_gcc_for_target = yes; then
7858 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7859 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7860 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7861 fi
7862fi
c6b750e1 7863if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7864 # Extract the first word of "dlltool", so it can be a program name with args.
7865set dummy dlltool; ac_word=$2
c6b750e1
DJ
7866echo "$as_me:$LINENO: checking for $ac_word" >&5
7867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7870else
c6b750e1
DJ
7871 case $DLLTOOL_FOR_TARGET in
7872 [\\/]* | ?:[\\/]*)
2429c060
PB
7873 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7874 ;;
2429c060 7875 *)
c6b750e1
DJ
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $gcc_cv_tool_dirs
7878do
7879 IFS=$as_save_IFS
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887done
7888done
7889
2429c060
PB
7890 ;;
7891esac
7892fi
c6b750e1
DJ
7893DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7894
2429c060 7895if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7896 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7897echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7898else
c6b750e1
DJ
7899 echo "$as_me:$LINENO: result: no" >&5
7900echo "${ECHO_T}no" >&6
2429c060
PB
7901fi
7902
7903fi
7904if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7905 if test -n "$with_build_time_tools"; then
7906 for ncn_progname in dlltool; do
c6b750e1
DJ
7907 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7908echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7909 if test -x $with_build_time_tools/${ncn_progname}; then
7910 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7911 echo "$as_me:$LINENO: result: yes" >&5
7912echo "${ECHO_T}yes" >&6
2429c060
PB
7913 break
7914 else
c6b750e1
DJ
7915 echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6
2429c060
PB
7917 fi
7918 done
7919fi
7920
7921if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7922 for ncn_progname in dlltool; do
7923 if test -n "$ncn_target_tool_prefix"; then
7924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7925set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7926echo "$as_me:$LINENO: checking for $ac_word" >&5
7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7928if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7930else
7931 if test -n "$DLLTOOL_FOR_TARGET"; then
7932 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7933else
c6b750e1
DJ
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947
2429c060
PB
7948fi
7949fi
c6b750e1 7950DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 7951if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7952 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7953echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7954else
c6b750e1
DJ
7955 echo "$as_me:$LINENO: result: no" >&5
7956echo "${ECHO_T}no" >&6
2429c060
PB
7957fi
7958
7959 fi
7960 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7962set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7963echo "$as_me:$LINENO: checking for $ac_word" >&5
7964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7965if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7967else
7968 if test -n "$DLLTOOL_FOR_TARGET"; then
7969 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7970else
c6b750e1
DJ
7971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972for as_dir in $PATH
7973do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982done
7983done
7984
2429c060
PB
7985fi
7986fi
c6b750e1 7987DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 7988if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7989 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7990echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7991else
c6b750e1
DJ
7992 echo "$as_me:$LINENO: result: no" >&5
7993echo "${ECHO_T}no" >&6
2429c060 7994fi
c6b750e1 7995
2429c060
PB
7996 fi
7997 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7998 done
7999fi
c6b750e1 8000
2429c060
PB
8001if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8002 set dummy dlltool
8003 if test $build = $target ; then
8004 DLLTOOL_FOR_TARGET="$2"
8005 else
8006 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8007 fi
8008fi
8009
3a35eeb3
PB
8010else
8011 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
8012fi
8013
8014
8015
8016
8017if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8018 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8019 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
8020echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8021 if test -x $with_build_time_tools/ld; then
8022 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8023 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
8024 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
8025echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 8026 else
c6b750e1
DJ
8027 echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6
3a35eeb3 8029 fi
2429c060
PB
8030 elif test $build != $host && test $have_gcc_for_target = yes; then
8031 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8032 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8033 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8034 fi
8035fi
c6b750e1 8036if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8037 # Extract the first word of "ld", so it can be a program name with args.
8038set dummy ld; ac_word=$2
c6b750e1
DJ
8039echo "$as_me:$LINENO: checking for $ac_word" >&5
8040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8041if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8043else
c6b750e1
DJ
8044 case $LD_FOR_TARGET in
8045 [\\/]* | ?:[\\/]*)
2429c060
PB
8046 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8047 ;;
2429c060 8048 *)
c6b750e1
DJ
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $gcc_cv_tool_dirs
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060done
8061done
8062
2429c060
PB
8063 ;;
8064esac
8065fi
c6b750e1
DJ
8066LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8067
2429c060 8068if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
8069 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8070echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 8071else
c6b750e1
DJ
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
2429c060
PB
8074fi
8075
8076fi
8077if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8078 if test -n "$with_build_time_tools"; then
8079 for ncn_progname in ld; do
c6b750e1
DJ
8080 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8081echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8082 if test -x $with_build_time_tools/${ncn_progname}; then
8083 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
2429c060
PB
8086 break
8087 else
c6b750e1
DJ
8088 echo "$as_me:$LINENO: result: no" >&5
8089echo "${ECHO_T}no" >&6
2429c060
PB
8090 fi
8091 done
8092fi
8093
8094if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8095 for ncn_progname in ld; do
8096 if test -n "$ncn_target_tool_prefix"; then
8097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8098set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8099echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8103else
8104 if test -n "$LD_FOR_TARGET"; then
8105 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8106else
c6b750e1
DJ
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118done
8119done
8120
2429c060
PB
8121fi
8122fi
c6b750e1 8123LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 8124if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
8125 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8126echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 8127else
c6b750e1
DJ
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
2429c060
PB
8130fi
8131
8132 fi
8133 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8135set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8136echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8138if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8140else
8141 if test -n "$LD_FOR_TARGET"; then
8142 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8143else
c6b750e1
DJ
8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145for as_dir in $PATH
8146do
8147 IFS=$as_save_IFS
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 break 2
8154 fi
8155done
8156done
8157
2429c060
PB
8158fi
8159fi
c6b750e1 8160LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 8161if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
8162 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8163echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 8164else
c6b750e1
DJ
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
2429c060 8167fi
c6b750e1 8168
2429c060
PB
8169 fi
8170 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8171 done
8172fi
c6b750e1 8173
2429c060
PB
8174if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8175 set dummy ld
8176 if test $build = $target ; then
8177 LD_FOR_TARGET="$2"
8178 else
8179 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
8180 fi
8181fi
8182
3a35eeb3
PB
8183else
8184 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
8185fi
8186
8187
8188
8189
8190if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8191 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8192 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
8193echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8194 if test -x $with_build_time_tools/lipo; then
8195 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8196 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
8197 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
8198echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 8199 else
c6b750e1
DJ
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
3a35eeb3 8202 fi
2429c060
PB
8203 elif test $build != $host && test $have_gcc_for_target = yes; then
8204 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8205 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8206 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8207 fi
8208fi
c6b750e1 8209if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8210 # Extract the first word of "lipo", so it can be a program name with args.
8211set dummy lipo; ac_word=$2
c6b750e1
DJ
8212echo "$as_me:$LINENO: checking for $ac_word" >&5
8213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8214if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8216else
c6b750e1
DJ
8217 case $LIPO_FOR_TARGET in
8218 [\\/]* | ?:[\\/]*)
2429c060
PB
8219 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8220 ;;
2429c060 8221 *)
c6b750e1
DJ
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $gcc_cv_tool_dirs
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8229 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233done
8234done
8235
2429c060
PB
8236 ;;
8237esac
8238fi
c6b750e1
DJ
8239LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8240
2429c060 8241if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8242 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8243echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8244else
c6b750e1
DJ
8245 echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6
2429c060
PB
8247fi
8248
8249fi
8250if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8251 if test -n "$with_build_time_tools"; then
8252 for ncn_progname in lipo; do
c6b750e1
DJ
8253 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8254echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8255 if test -x $with_build_time_tools/${ncn_progname}; then
8256 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8257 echo "$as_me:$LINENO: result: yes" >&5
8258echo "${ECHO_T}yes" >&6
2429c060
PB
8259 break
8260 else
c6b750e1
DJ
8261 echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6
2429c060
PB
8263 fi
8264 done
8265fi
8266
8267if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8268 for ncn_progname in lipo; do
8269 if test -n "$ncn_target_tool_prefix"; then
8270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8272echo "$as_me:$LINENO: checking for $ac_word" >&5
8273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8274if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8276else
8277 if test -n "$LIPO_FOR_TARGET"; then
8278 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8279else
c6b750e1
DJ
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291done
8292done
8293
2429c060
PB
8294fi
8295fi
c6b750e1 8296LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 8297if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8298 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8299echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8300else
c6b750e1
DJ
8301 echo "$as_me:$LINENO: result: no" >&5
8302echo "${ECHO_T}no" >&6
2429c060
PB
8303fi
8304
8305 fi
8306 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8309echo "$as_me:$LINENO: checking for $ac_word" >&5
8310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8311if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8313else
8314 if test -n "$LIPO_FOR_TARGET"; then
8315 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8316else
c6b750e1
DJ
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328done
8329done
8330
2429c060
PB
8331fi
8332fi
c6b750e1 8333LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 8334if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8335 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8336echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8337else
c6b750e1
DJ
8338 echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6
2429c060 8340fi
c6b750e1 8341
2429c060
PB
8342 fi
8343 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8344 done
8345fi
c6b750e1 8346
2429c060
PB
8347if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8348 set dummy lipo
8349 if test $build = $target ; then
8350 LIPO_FOR_TARGET="$2"
8351 else
8352 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8353 fi
8354fi
8355
3a35eeb3
PB
8356else
8357 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
8358fi
8359
8360
8361
8362
8363if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8364 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8365 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8366echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8367 if test -x $with_build_time_tools/nm; then
8368 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8369 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
8370 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8371echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 8372 else
c6b750e1
DJ
8373 echo "$as_me:$LINENO: result: no" >&5
8374echo "${ECHO_T}no" >&6
3a35eeb3 8375 fi
2429c060
PB
8376 elif test $build != $host && test $have_gcc_for_target = yes; then
8377 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8378 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8379 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8380 fi
8381fi
c6b750e1 8382if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8383 # Extract the first word of "nm", so it can be a program name with args.
8384set dummy nm; ac_word=$2
c6b750e1
DJ
8385echo "$as_me:$LINENO: checking for $ac_word" >&5
8386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8387if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8389else
c6b750e1
DJ
8390 case $NM_FOR_TARGET in
8391 [\\/]* | ?:[\\/]*)
2429c060
PB
8392 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8393 ;;
2429c060 8394 *)
c6b750e1
DJ
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $gcc_cv_tool_dirs
8397do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8405 fi
8406done
8407done
8408
2429c060
PB
8409 ;;
8410esac
8411fi
c6b750e1
DJ
8412NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8413
2429c060 8414if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8415 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8416echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 8417else
c6b750e1
DJ
8418 echo "$as_me:$LINENO: result: no" >&5
8419echo "${ECHO_T}no" >&6
2429c060
PB
8420fi
8421
8422fi
8423if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8424 if test -n "$with_build_time_tools"; then
8425 for ncn_progname in nm; do
c6b750e1
DJ
8426 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8427echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8428 if test -x $with_build_time_tools/${ncn_progname}; then
8429 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
2429c060
PB
8432 break
8433 else
c6b750e1
DJ
8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
2429c060
PB
8436 fi
8437 done
8438fi
8439
8440if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8441 for ncn_progname in nm; do
8442 if test -n "$ncn_target_tool_prefix"; then
8443 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 8444set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8445echo "$as_me:$LINENO: checking for $ac_word" >&5
8446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8447if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8449else
55db4b87
PB
8450 if test -n "$NM_FOR_TARGET"; then
8451 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8452else
c6b750e1
DJ
8453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8463 fi
8464done
8465done
8466
859789af
AC
8467fi
8468fi
c6b750e1 8469NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 8470if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8471 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8472echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8473else
c6b750e1
DJ
8474 echo "$as_me:$LINENO: result: no" >&5
8475echo "${ECHO_T}no" >&6
859789af
AC
8476fi
8477
2429c060
PB
8478 fi
8479 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8481set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8482echo "$as_me:$LINENO: checking for $ac_word" >&5
8483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8484if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8486else
05cbd757
PB
8487 if test -n "$NM_FOR_TARGET"; then
8488 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8489else
c6b750e1
DJ
8490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491for as_dir in $PATH
8492do
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8500 fi
8501done
8502done
8503
859789af
AC
8504fi
8505fi
c6b750e1 8506NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 8507if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8508 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8509echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8510else
c6b750e1
DJ
8511 echo "$as_me:$LINENO: result: no" >&5
8512echo "${ECHO_T}no" >&6
859789af 8513fi
c6b750e1 8514
2429c060
PB
8515 fi
8516 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8517 done
8518fi
c6b750e1 8519
05cbd757
PB
8520if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8521 set dummy nm
8522 if test $build = $target ; then
8523 NM_FOR_TARGET="$2"
859789af 8524 else
05cbd757 8525 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8526 fi
859789af
AC
8527fi
8528
3a35eeb3
PB
8529else
8530 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
8531fi
8532
8533
8534
8535
8536if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8537 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8538 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8539echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8540 if test -x $with_build_time_tools/objdump; then
8541 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8542 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
8543 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8544echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 8545 else
c6b750e1
DJ
8546 echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6
3a35eeb3 8548 fi
2429c060
PB
8549 elif test $build != $host && test $have_gcc_for_target = yes; then
8550 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8551 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8552 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8553 fi
8554fi
c6b750e1 8555if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8556 # Extract the first word of "objdump", so it can be a program name with args.
8557set dummy objdump; ac_word=$2
c6b750e1
DJ
8558echo "$as_me:$LINENO: checking for $ac_word" >&5
8559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8560if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8562else
c6b750e1
DJ
8563 case $OBJDUMP_FOR_TARGET in
8564 [\\/]* | ?:[\\/]*)
2429c060
PB
8565 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8566 ;;
2429c060 8567 *)
c6b750e1
DJ
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $gcc_cv_tool_dirs
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8578 fi
8579done
8580done
8581
2429c060
PB
8582 ;;
8583esac
8584fi
c6b750e1
DJ
8585OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8586
2429c060 8587if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8588 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8589echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 8590else
c6b750e1
DJ
8591 echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6
2429c060
PB
8593fi
8594
8595fi
8596if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8597 if test -n "$with_build_time_tools"; then
8598 for ncn_progname in objdump; do
c6b750e1
DJ
8599 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8600echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8601 if test -x $with_build_time_tools/${ncn_progname}; then
8602 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
2429c060
PB
8605 break
8606 else
c6b750e1
DJ
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
2429c060
PB
8609 fi
8610 done
8611fi
8612
8613if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8614 for ncn_progname in objdump; do
8615 if test -n "$ncn_target_tool_prefix"; then
8616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8617set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8618echo "$as_me:$LINENO: checking for $ac_word" >&5
8619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8620if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8622else
8623 if test -n "$OBJDUMP_FOR_TARGET"; then
8624 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8625else
c6b750e1
DJ
8626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627for as_dir in $PATH
8628do
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8636 fi
8637done
8638done
8639
5ae72758
DJ
8640fi
8641fi
c6b750e1 8642OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8643if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8644 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8645echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8646else
c6b750e1
DJ
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
5ae72758
DJ
8649fi
8650
2429c060
PB
8651 fi
8652 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 8654set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8655echo "$as_me:$LINENO: checking for $ac_word" >&5
8656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8657if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8659else
8660 if test -n "$OBJDUMP_FOR_TARGET"; then
8661 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8662else
c6b750e1
DJ
8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674done
8675done
8676
5ae72758
DJ
8677fi
8678fi
c6b750e1 8679OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8680if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8681 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8682echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8683else
c6b750e1
DJ
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
5ae72758 8686fi
c6b750e1 8687
2429c060
PB
8688 fi
8689 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8690 done
8691fi
c6b750e1 8692
5ae72758
DJ
8693if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8694 set dummy objdump
8695 if test $build = $target ; then
8696 OBJDUMP_FOR_TARGET="$2"
8697 else
8698 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8699 fi
8700fi
8701
3a35eeb3
PB
8702else
8703 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
8704fi
8705
8706
8707
8708
8709if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8710 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8711 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8712echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8713 if test -x $with_build_time_tools/ranlib; then
8714 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8715 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
8716 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8717echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 8718 else
c6b750e1
DJ
8719 echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6
3a35eeb3 8721 fi
2429c060
PB
8722 elif test $build != $host && test $have_gcc_for_target = yes; then
8723 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8724 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8725 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8726 fi
8727fi
c6b750e1 8728if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8729 # Extract the first word of "ranlib", so it can be a program name with args.
8730set dummy ranlib; ac_word=$2
c6b750e1
DJ
8731echo "$as_me:$LINENO: checking for $ac_word" >&5
8732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8733if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8735else
c6b750e1
DJ
8736 case $RANLIB_FOR_TARGET in
8737 [\\/]* | ?:[\\/]*)
2429c060
PB
8738 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8739 ;;
2429c060 8740 *)
c6b750e1
DJ
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742for as_dir in $gcc_cv_tool_dirs
8743do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8748 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752done
8753done
8754
2429c060
PB
8755 ;;
8756esac
8757fi
c6b750e1
DJ
8758RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8759
2429c060 8760if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8761 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8762echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 8763else
c6b750e1
DJ
8764 echo "$as_me:$LINENO: result: no" >&5
8765echo "${ECHO_T}no" >&6
2429c060
PB
8766fi
8767
8768fi
8769if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8770 if test -n "$with_build_time_tools"; then
8771 for ncn_progname in ranlib; do
c6b750e1
DJ
8772 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8773echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8774 if test -x $with_build_time_tools/${ncn_progname}; then
8775 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8776 echo "$as_me:$LINENO: result: yes" >&5
8777echo "${ECHO_T}yes" >&6
2429c060
PB
8778 break
8779 else
c6b750e1
DJ
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
2429c060
PB
8782 fi
8783 done
8784fi
8785
8786if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8787 for ncn_progname in ranlib; do
8788 if test -n "$ncn_target_tool_prefix"; then
8789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 8790set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8791echo "$as_me:$LINENO: checking for $ac_word" >&5
8792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8793if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8795else
55db4b87
PB
8796 if test -n "$RANLIB_FOR_TARGET"; then
8797 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8798else
c6b750e1
DJ
8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810done
8811done
8812
859789af
AC
8813fi
8814fi
c6b750e1 8815RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 8816if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8817 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8818echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8819else
c6b750e1
DJ
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
859789af
AC
8822fi
8823
2429c060
PB
8824 fi
8825 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8827set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8828echo "$as_me:$LINENO: checking for $ac_word" >&5
8829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8830if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8832else
05cbd757
PB
8833 if test -n "$RANLIB_FOR_TARGET"; then
8834 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8835else
c6b750e1
DJ
8836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837for as_dir in $PATH
8838do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8843 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847done
8848done
8849
859789af
AC
8850fi
8851fi
c6b750e1 8852RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 8853if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8854 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8855echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8856else
c6b750e1
DJ
8857 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6
859789af 8859fi
c6b750e1 8860
2429c060
PB
8861 fi
8862 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8863 done
8864fi
c6b750e1 8865
2429c060
PB
8866if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8867 set dummy ranlib
8868 if test $build = $target ; then
8869 RANLIB_FOR_TARGET="$2"
8870 else
8871 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8872 fi
2429c060 8873fi
05cbd757 8874
3a35eeb3
PB
8875else
8876 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
8877fi
8878
2429c060
PB
8879
8880
8881
8882if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8883 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8884 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8885echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8886 if test -x $with_build_time_tools/strip; then
8887 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8888 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
8889 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8890echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 8891 else
c6b750e1
DJ
8892 echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
3a35eeb3 8894 fi
2429c060
PB
8895 elif test $build != $host && test $have_gcc_for_target = yes; then
8896 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8897 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8898 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8899 fi
8900fi
c6b750e1 8901if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8902 # Extract the first word of "strip", so it can be a program name with args.
8903set dummy strip; ac_word=$2
c6b750e1
DJ
8904echo "$as_me:$LINENO: checking for $ac_word" >&5
8905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8906if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8908else
c6b750e1
DJ
8909 case $STRIP_FOR_TARGET in
8910 [\\/]* | ?:[\\/]*)
2429c060
PB
8911 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8912 ;;
2429c060 8913 *)
c6b750e1
DJ
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915for as_dir in $gcc_cv_tool_dirs
8916do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 break 2
8924 fi
8925done
8926done
8927
2429c060
PB
8928 ;;
8929esac
8930fi
c6b750e1
DJ
8931STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8932
2429c060 8933if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8934 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8935echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 8936else
c6b750e1
DJ
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
2429c060
PB
8939fi
8940
8941fi
8942if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8943 if test -n "$with_build_time_tools"; then
8944 for ncn_progname in strip; do
c6b750e1
DJ
8945 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8946echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8947 if test -x $with_build_time_tools/${ncn_progname}; then
8948 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8949 echo "$as_me:$LINENO: result: yes" >&5
8950echo "${ECHO_T}yes" >&6
2429c060
PB
8951 break
8952 else
c6b750e1
DJ
8953 echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6
2429c060
PB
8955 fi
8956 done
8957fi
8958
8959if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8960 for ncn_progname in strip; do
8961 if test -n "$ncn_target_tool_prefix"; then
8962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 8963set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8964echo "$as_me:$LINENO: checking for $ac_word" >&5
8965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8966if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
8968else
8969 if test -n "$STRIP_FOR_TARGET"; then
8970 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
8971else
8972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8982 fi
8983done
8984done
8985
7e0f7140
GK
8986fi
8987fi
c6b750e1 8988STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 8989if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8990 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8991echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 8992else
c6b750e1
DJ
8993 echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
7e0f7140
GK
8995fi
8996
2429c060
PB
8997 fi
8998 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9000set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9001echo "$as_me:$LINENO: checking for $ac_word" >&5
9002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9003if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
9005else
9006 if test -n "$STRIP_FOR_TARGET"; then
9007 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9008else
c6b750e1
DJ
9009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010for as_dir in $PATH
9011do
9012 IFS=$as_save_IFS
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020done
9021done
9022
7e0f7140
GK
9023fi
9024fi
c6b750e1 9025STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 9026if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
9027 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9028echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 9029else
c6b750e1
DJ
9030 echo "$as_me:$LINENO: result: no" >&5
9031echo "${ECHO_T}no" >&6
7e0f7140 9032fi
c6b750e1 9033
2429c060
PB
9034 fi
9035 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9036 done
9037fi
c6b750e1 9038
7e0f7140
GK
9039if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9040 set dummy strip
9041 if test $build = $target ; then
9042 STRIP_FOR_TARGET="$2"
9043 else
9044 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9045 fi
9046fi
9047
3a35eeb3
PB
9048else
9049 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
9050fi
9051
9052
9053
9054
9055if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9056 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
9057 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
9058echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9059 if test -x $with_build_time_tools/windres; then
9060 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9061 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
9062 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9063echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 9064 else
c6b750e1
DJ
9065 echo "$as_me:$LINENO: result: no" >&5
9066echo "${ECHO_T}no" >&6
3a35eeb3 9067 fi
2429c060
PB
9068 elif test $build != $host && test $have_gcc_for_target = yes; then
9069 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9070 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9071 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9072 fi
9073fi
c6b750e1 9074if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9075 # Extract the first word of "windres", so it can be a program name with args.
9076set dummy windres; ac_word=$2
c6b750e1
DJ
9077echo "$as_me:$LINENO: checking for $ac_word" >&5
9078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9079if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 9081else
c6b750e1
DJ
9082 case $WINDRES_FOR_TARGET in
9083 [\\/]* | ?:[\\/]*)
2429c060
PB
9084 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9085 ;;
2429c060 9086 *)
c6b750e1
DJ
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088for as_dir in $gcc_cv_tool_dirs
9089do
9090 IFS=$as_save_IFS
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 break 2
9097 fi
9098done
9099done
9100
2429c060
PB
9101 ;;
9102esac
9103fi
c6b750e1
DJ
9104WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9105
2429c060 9106if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
9107 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9108echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 9109else
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
2429c060
PB
9112fi
9113
9114fi
9115if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9116 if test -n "$with_build_time_tools"; then
9117 for ncn_progname in windres; do
c6b750e1
DJ
9118 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9119echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
9120 if test -x $with_build_time_tools/${ncn_progname}; then
9121 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
9122 echo "$as_me:$LINENO: result: yes" >&5
9123echo "${ECHO_T}yes" >&6
2429c060
PB
9124 break
9125 else
c6b750e1
DJ
9126 echo "$as_me:$LINENO: result: no" >&5
9127echo "${ECHO_T}no" >&6
2429c060
PB
9128 fi
9129 done
9130fi
9131
9132if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9133 for ncn_progname in windres; do
9134 if test -n "$ncn_target_tool_prefix"; then
9135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9136set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
9137echo "$as_me:$LINENO: checking for $ac_word" >&5
9138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9139if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9141else
55db4b87
PB
9142 if test -n "$WINDRES_FOR_TARGET"; then
9143 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 9144else
c6b750e1
DJ
9145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146for as_dir in $PATH
9147do
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9152 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9155 fi
9156done
9157done
9158
859789af
AC
9159fi
9160fi
c6b750e1 9161WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 9162if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
9163 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9164echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 9165else
c6b750e1
DJ
9166 echo "$as_me:$LINENO: result: no" >&5
9167echo "${ECHO_T}no" >&6
859789af
AC
9168fi
9169
2429c060
PB
9170 fi
9171 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9173set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
9174echo "$as_me:$LINENO: checking for $ac_word" >&5
9175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9176if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 9178else
05cbd757
PB
9179 if test -n "$WINDRES_FOR_TARGET"; then
9180 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 9181else
c6b750e1
DJ
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9189 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9192 fi
9193done
9194done
9195
859789af
AC
9196fi
9197fi
c6b750e1 9198WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 9199if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
9200 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9201echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 9202else
c6b750e1
DJ
9203 echo "$as_me:$LINENO: result: no" >&5
9204echo "${ECHO_T}no" >&6
859789af 9205fi
c6b750e1 9206
2429c060
PB
9207 fi
9208 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9209 done
9210fi
c6b750e1 9211
05cbd757
PB
9212if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9213 set dummy windres
9214 if test $build = $target ; then
9215 WINDRES_FOR_TARGET="$2"
859789af 9216 else
05cbd757 9217 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 9218 fi
859789af
AC
9219fi
9220
3a35eeb3
PB
9221else
9222 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
9223fi
9224
852e5f18 9225
be01d343
PB
9226RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9227
c6b750e1
DJ
9228echo "$as_me:$LINENO: checking where to find the target ar" >&5
9229echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 9230if test "x${build}" != "x${host}" ; then
2429c060
PB
9231 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9232 # We already found the complete path
c6b750e1
DJ
9233 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9234echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2429c060
PB
9235 else
9236 # Canadian cross, just use what we found
c6b750e1
DJ
9237 echo "$as_me:$LINENO: result: pre-installed" >&5
9238echo "${ECHO_T}pre-installed" >&6
2429c060 9239 fi
be01d343
PB
9240else
9241 ok=yes
9242 case " ${configdirs} " in
9243 *" binutils "*) ;;
9244 *) ok=no ;;
9245 esac
c6b750e1 9246
be01d343
PB
9247 if test $ok = yes; then
9248 # An in-tree tool is available and we can use it
9249 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
9250 echo "$as_me:$LINENO: result: just compiled" >&5
9251echo "${ECHO_T}just compiled" >&6
2429c060
PB
9252 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9253 # We already found the complete path
c6b750e1
DJ
9254 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9255echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
be01d343
PB
9256 elif test "x$target" = "x$host"; then
9257 # We can use an host tool
9258 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
9259 echo "$as_me:$LINENO: result: host tool" >&5
9260echo "${ECHO_T}host tool" >&6
be01d343
PB
9261 else
9262 # We need a cross tool
c6b750e1
DJ
9263 echo "$as_me:$LINENO: result: pre-installed" >&5
9264echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9265 fi
9266fi
4b900473 9267
c6b750e1
DJ
9268echo "$as_me:$LINENO: checking where to find the target as" >&5
9269echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 9270if test "x${build}" != "x${host}" ; then
2429c060
PB
9271 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9272 # We already found the complete path
c6b750e1
DJ
9273 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9274echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2429c060
PB
9275 else
9276 # Canadian cross, just use what we found
c6b750e1
DJ
9277 echo "$as_me:$LINENO: result: pre-installed" >&5
9278echo "${ECHO_T}pre-installed" >&6
2429c060 9279 fi
be01d343
PB
9280else
9281 ok=yes
9282 case " ${configdirs} " in
9283 *" gas "*) ;;
9284 *) ok=no ;;
9285 esac
c6b750e1 9286
be01d343
PB
9287 if test $ok = yes; then
9288 # An in-tree tool is available and we can use it
9289 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
9290 echo "$as_me:$LINENO: result: just compiled" >&5
9291echo "${ECHO_T}just compiled" >&6
2429c060
PB
9292 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9293 # We already found the complete path
c6b750e1
DJ
9294 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9295echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
be01d343
PB
9296 elif test "x$target" = "x$host"; then
9297 # We can use an host tool
9298 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
9299 echo "$as_me:$LINENO: result: host tool" >&5
9300echo "${ECHO_T}host tool" >&6
be01d343
PB
9301 else
9302 # We need a cross tool
c6b750e1
DJ
9303 echo "$as_me:$LINENO: result: pre-installed" >&5
9304echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9305 fi
9306fi
4b900473 9307
c6b750e1
DJ
9308echo "$as_me:$LINENO: checking where to find the target cc" >&5
9309echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 9310if test "x${build}" != "x${host}" ; then
2429c060
PB
9311 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9312 # We already found the complete path
c6b750e1
DJ
9313 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9314echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2429c060
PB
9315 else
9316 # Canadian cross, just use what we found
c6b750e1
DJ
9317 echo "$as_me:$LINENO: result: pre-installed" >&5
9318echo "${ECHO_T}pre-installed" >&6
2429c060 9319 fi
be01d343
PB
9320else
9321 ok=yes
9322 case " ${configdirs} " in
9323 *" gcc "*) ;;
9324 *) ok=no ;;
9325 esac
c6b750e1 9326
be01d343
PB
9327 if test $ok = yes; then
9328 # An in-tree tool is available and we can use it
9329 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9330 echo "$as_me:$LINENO: result: just compiled" >&5
9331echo "${ECHO_T}just compiled" >&6
2429c060
PB
9332 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9333 # We already found the complete path
c6b750e1
DJ
9334 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9335echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
be01d343
PB
9336 elif test "x$target" = "x$host"; then
9337 # We can use an host tool
9338 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
9339 echo "$as_me:$LINENO: result: host tool" >&5
9340echo "${ECHO_T}host tool" >&6
be01d343
PB
9341 else
9342 # We need a cross tool
c6b750e1
DJ
9343 echo "$as_me:$LINENO: result: pre-installed" >&5
9344echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9345 fi
9346fi
4b900473 9347
c6b750e1
DJ
9348echo "$as_me:$LINENO: checking where to find the target c++" >&5
9349echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 9350if test "x${build}" != "x${host}" ; then
2429c060
PB
9351 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9352 # We already found the complete path
c6b750e1
DJ
9353 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9354echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2429c060
PB
9355 else
9356 # Canadian cross, just use what we found
c6b750e1
DJ
9357 echo "$as_me:$LINENO: result: pre-installed" >&5
9358echo "${ECHO_T}pre-installed" >&6
2429c060 9359 fi
be01d343
PB
9360else
9361 ok=yes
9362 case " ${configdirs} " in
9363 *" gcc "*) ;;
9364 *) ok=no ;;
9365 esac
9366 case ,${enable_languages}, in
9367 *,c++,*) ;;
9368 *) ok=no ;;
9369 esac
9370 if test $ok = yes; then
9371 # An in-tree tool is available and we can use it
9372 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'
c6b750e1
DJ
9373 echo "$as_me:$LINENO: result: just compiled" >&5
9374echo "${ECHO_T}just compiled" >&6
2429c060
PB
9375 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9376 # We already found the complete path
c6b750e1
DJ
9377 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9378echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
be01d343
PB
9379 elif test "x$target" = "x$host"; then
9380 # We can use an host tool
9381 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9382 echo "$as_me:$LINENO: result: host tool" >&5
9383echo "${ECHO_T}host tool" >&6
be01d343
PB
9384 else
9385 # We need a cross tool
c6b750e1
DJ
9386 echo "$as_me:$LINENO: result: pre-installed" >&5
9387echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9388 fi
9389fi
4b900473 9390
c6b750e1
DJ
9391echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9392echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 9393if test "x${build}" != "x${host}" ; then
2429c060
PB
9394 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9395 # We already found the complete path
c6b750e1
DJ
9396 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9397echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2429c060
PB
9398 else
9399 # Canadian cross, just use what we found
c6b750e1
DJ
9400 echo "$as_me:$LINENO: result: pre-installed" >&5
9401echo "${ECHO_T}pre-installed" >&6
2429c060 9402 fi
be01d343
PB
9403else
9404 ok=yes
9405 case " ${configdirs} " in
9406 *" gcc "*) ;;
9407 *) ok=no ;;
9408 esac
9409 case ,${enable_languages}, in
9410 *,c++,*) ;;
9411 *) ok=no ;;
9412 esac
9413 if test $ok = yes; then
9414 # An in-tree tool is available and we can use it
9415 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'
c6b750e1
DJ
9416 echo "$as_me:$LINENO: result: just compiled" >&5
9417echo "${ECHO_T}just compiled" >&6
2429c060
PB
9418 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9419 # We already found the complete path
c6b750e1
DJ
9420 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9421echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
be01d343
PB
9422 elif test "x$target" = "x$host"; then
9423 # We can use an host tool
9424 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9425 echo "$as_me:$LINENO: result: host tool" >&5
9426echo "${ECHO_T}host tool" >&6
be01d343
PB
9427 else
9428 # We need a cross tool
c6b750e1
DJ
9429 echo "$as_me:$LINENO: result: pre-installed" >&5
9430echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9431 fi
9432fi
4b900473 9433
c6b750e1
DJ
9434echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9435echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 9436if test "x${build}" != "x${host}" ; then
2429c060
PB
9437 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9438 # We already found the complete path
c6b750e1
DJ
9439 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9440echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2429c060
PB
9441 else
9442 # Canadian cross, just use what we found
c6b750e1
DJ
9443 echo "$as_me:$LINENO: result: pre-installed" >&5
9444echo "${ECHO_T}pre-installed" >&6
2429c060 9445 fi
be01d343
PB
9446else
9447 ok=yes
9448 case " ${configdirs} " in
9449 *" binutils "*) ;;
9450 *) ok=no ;;
9451 esac
c6b750e1 9452
be01d343
PB
9453 if test $ok = yes; then
9454 # An in-tree tool is available and we can use it
9455 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
9456 echo "$as_me:$LINENO: result: just compiled" >&5
9457echo "${ECHO_T}just compiled" >&6
2429c060
PB
9458 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9459 # We already found the complete path
c6b750e1
DJ
9460 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9461echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
be01d343
PB
9462 elif test "x$target" = "x$host"; then
9463 # We can use an host tool
9464 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
9465 echo "$as_me:$LINENO: result: host tool" >&5
9466echo "${ECHO_T}host tool" >&6
be01d343
PB
9467 else
9468 # We need a cross tool
c6b750e1
DJ
9469 echo "$as_me:$LINENO: result: pre-installed" >&5
9470echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9471 fi
9472fi
4b900473 9473
c6b750e1
DJ
9474echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9475echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 9476if test "x${build}" != "x${host}" ; then
2429c060
PB
9477 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9478 # We already found the complete path
c6b750e1
DJ
9479 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9480echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2429c060
PB
9481 else
9482 # Canadian cross, just use what we found
c6b750e1
DJ
9483 echo "$as_me:$LINENO: result: pre-installed" >&5
9484echo "${ECHO_T}pre-installed" >&6
2429c060 9485 fi
be01d343
PB
9486else
9487 ok=yes
9488 case " ${configdirs} " in
9489 *" gcc "*) ;;
9490 *) ok=no ;;
9491 esac
c6b750e1 9492
be01d343
PB
9493 if test $ok = yes; then
9494 # An in-tree tool is available and we can use it
9495 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9496 echo "$as_me:$LINENO: result: just compiled" >&5
9497echo "${ECHO_T}just compiled" >&6
2429c060
PB
9498 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9499 # We already found the complete path
c6b750e1
DJ
9500 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9501echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
be01d343
PB
9502 elif test "x$target" = "x$host"; then
9503 # We can use an host tool
9504 GCC_FOR_TARGET='$()'
c6b750e1
DJ
9505 echo "$as_me:$LINENO: result: host tool" >&5
9506echo "${ECHO_T}host tool" >&6
be01d343
PB
9507 else
9508 # We need a cross tool
c6b750e1
DJ
9509 echo "$as_me:$LINENO: result: pre-installed" >&5
9510echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9511 fi
9512fi
4b900473 9513
c6b750e1
DJ
9514echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9515echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 9516if test "x${build}" != "x${host}" ; then
2429c060
PB
9517 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9518 # We already found the complete path
c6b750e1
DJ
9519 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9520echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2429c060
PB
9521 else
9522 # Canadian cross, just use what we found
c6b750e1
DJ
9523 echo "$as_me:$LINENO: result: pre-installed" >&5
9524echo "${ECHO_T}pre-installed" >&6
2429c060 9525 fi
be01d343
PB
9526else
9527 ok=yes
9528 case " ${configdirs} " in
9529 *" gcc "*) ;;
9530 *) ok=no ;;
9531 esac
9532 case ,${enable_languages}, in
9533 *,java,*) ;;
9534 *) ok=no ;;
9535 esac
9536 if test $ok = yes; then
9537 # An in-tree tool is available and we can use it
9538 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9539 echo "$as_me:$LINENO: result: just compiled" >&5
9540echo "${ECHO_T}just compiled" >&6
2429c060
PB
9541 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9542 # We already found the complete path
c6b750e1
DJ
9543 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9544echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
be01d343
PB
9545 elif test "x$target" = "x$host"; then
9546 # We can use an host tool
9547 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
9548 echo "$as_me:$LINENO: result: host tool" >&5
9549echo "${ECHO_T}host tool" >&6
be01d343
PB
9550 else
9551 # We need a cross tool
c6b750e1
DJ
9552 echo "$as_me:$LINENO: result: pre-installed" >&5
9553echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9554 fi
9555fi
4b900473 9556
c6b750e1
DJ
9557echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9558echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 9559if test "x${build}" != "x${host}" ; then
2429c060
PB
9560 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9561 # We already found the complete path
c6b750e1
DJ
9562 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9563echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2429c060
PB
9564 else
9565 # Canadian cross, just use what we found
c6b750e1
DJ
9566 echo "$as_me:$LINENO: result: pre-installed" >&5
9567echo "${ECHO_T}pre-installed" >&6
2429c060 9568 fi
be01d343
PB
9569else
9570 ok=yes
9571 case " ${configdirs} " in
9572 *" gcc "*) ;;
9573 *) ok=no ;;
9574 esac
9575 case ,${enable_languages}, in
9576 *,fortran,*) ;;
9577 *) ok=no ;;
9578 esac
9579 if test $ok = yes; then
9580 # An in-tree tool is available and we can use it
9581 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9582 echo "$as_me:$LINENO: result: just compiled" >&5
9583echo "${ECHO_T}just compiled" >&6
2429c060
PB
9584 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9585 # We already found the complete path
c6b750e1
DJ
9586 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9587echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
be01d343
PB
9588 elif test "x$target" = "x$host"; then
9589 # We can use an host tool
9590 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
9591 echo "$as_me:$LINENO: result: host tool" >&5
9592echo "${ECHO_T}host tool" >&6
be01d343
PB
9593 else
9594 # We need a cross tool
c6b750e1
DJ
9595 echo "$as_me:$LINENO: result: pre-installed" >&5
9596echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9597 fi
9598fi
4b900473 9599
c6b750e1
DJ
9600echo "$as_me:$LINENO: checking where to find the target ld" >&5
9601echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 9602if test "x${build}" != "x${host}" ; then
2429c060
PB
9603 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9604 # We already found the complete path
c6b750e1
DJ
9605 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9606echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2429c060
PB
9607 else
9608 # Canadian cross, just use what we found
c6b750e1
DJ
9609 echo "$as_me:$LINENO: result: pre-installed" >&5
9610echo "${ECHO_T}pre-installed" >&6
2429c060 9611 fi
be01d343
PB
9612else
9613 ok=yes
9614 case " ${configdirs} " in
9615 *" ld "*) ;;
9616 *) ok=no ;;
9617 esac
c6b750e1 9618
be01d343
PB
9619 if test $ok = yes; then
9620 # An in-tree tool is available and we can use it
9621 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
9622 echo "$as_me:$LINENO: result: just compiled" >&5
9623echo "${ECHO_T}just compiled" >&6
2429c060
PB
9624 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9625 # We already found the complete path
c6b750e1
DJ
9626 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9627echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
be01d343
PB
9628 elif test "x$target" = "x$host"; then
9629 # We can use an host tool
9630 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
9631 echo "$as_me:$LINENO: result: host tool" >&5
9632echo "${ECHO_T}host tool" >&6
be01d343
PB
9633 else
9634 # We need a cross tool
c6b750e1
DJ
9635 echo "$as_me:$LINENO: result: pre-installed" >&5
9636echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9637 fi
9638fi
4b900473 9639
c6b750e1
DJ
9640echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9641echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 9642if test "x${build}" != "x${host}" ; then
2429c060
PB
9643 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9644 # We already found the complete path
c6b750e1
DJ
9645 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9646echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060
PB
9647 else
9648 # Canadian cross, just use what we found
c6b750e1
DJ
9649 echo "$as_me:$LINENO: result: pre-installed" >&5
9650echo "${ECHO_T}pre-installed" >&6
2429c060 9651 fi
be01d343 9652else
2429c060
PB
9653 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9654 # We already found the complete path
c6b750e1
DJ
9655 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9656echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060 9657 elif test "x$target" = "x$host"; then
be01d343
PB
9658 # We can use an host tool
9659 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
9660 echo "$as_me:$LINENO: result: host tool" >&5
9661echo "${ECHO_T}host tool" >&6
be01d343
PB
9662 else
9663 # We need a cross tool
c6b750e1
DJ
9664 echo "$as_me:$LINENO: result: pre-installed" >&5
9665echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9666 fi
9667fi
4b900473 9668
c6b750e1
DJ
9669echo "$as_me:$LINENO: checking where to find the target nm" >&5
9670echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 9671if test "x${build}" != "x${host}" ; then
2429c060
PB
9672 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9673 # We already found the complete path
c6b750e1
DJ
9674 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9675echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2429c060
PB
9676 else
9677 # Canadian cross, just use what we found
c6b750e1
DJ
9678 echo "$as_me:$LINENO: result: pre-installed" >&5
9679echo "${ECHO_T}pre-installed" >&6
2429c060 9680 fi
be01d343
PB
9681else
9682 ok=yes
9683 case " ${configdirs} " in
9684 *" binutils "*) ;;
9685 *) ok=no ;;
9686 esac
c6b750e1 9687
be01d343
PB
9688 if test $ok = yes; then
9689 # An in-tree tool is available and we can use it
9690 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
9691 echo "$as_me:$LINENO: result: just compiled" >&5
9692echo "${ECHO_T}just compiled" >&6
2429c060
PB
9693 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9694 # We already found the complete path
c6b750e1
DJ
9695 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9696echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
be01d343
PB
9697 elif test "x$target" = "x$host"; then
9698 # We can use an host tool
9699 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
9700 echo "$as_me:$LINENO: result: host tool" >&5
9701echo "${ECHO_T}host tool" >&6
be01d343
PB
9702 else
9703 # We need a cross tool
c6b750e1
DJ
9704 echo "$as_me:$LINENO: result: pre-installed" >&5
9705echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9706 fi
9707fi
4b900473 9708
c6b750e1
DJ
9709echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9710echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 9711if test "x${build}" != "x${host}" ; then
2429c060
PB
9712 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9713 # We already found the complete path
c6b750e1
DJ
9714 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9715echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2429c060
PB
9716 else
9717 # Canadian cross, just use what we found
c6b750e1
DJ
9718 echo "$as_me:$LINENO: result: pre-installed" >&5
9719echo "${ECHO_T}pre-installed" >&6
2429c060 9720 fi
be01d343
PB
9721else
9722 ok=yes
9723 case " ${configdirs} " in
9724 *" binutils "*) ;;
9725 *) ok=no ;;
9726 esac
c6b750e1 9727
be01d343
PB
9728 if test $ok = yes; then
9729 # An in-tree tool is available and we can use it
9730 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
9731 echo "$as_me:$LINENO: result: just compiled" >&5
9732echo "${ECHO_T}just compiled" >&6
2429c060
PB
9733 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9734 # We already found the complete path
c6b750e1
DJ
9735 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9736echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
be01d343
PB
9737 elif test "x$target" = "x$host"; then
9738 # We can use an host tool
9739 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
9740 echo "$as_me:$LINENO: result: host tool" >&5
9741echo "${ECHO_T}host tool" >&6
be01d343
PB
9742 else
9743 # We need a cross tool
c6b750e1
DJ
9744 echo "$as_me:$LINENO: result: pre-installed" >&5
9745echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9746 fi
9747fi
4b900473 9748
c6b750e1
DJ
9749echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9750echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 9751if test "x${build}" != "x${host}" ; then
2429c060
PB
9752 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9753 # We already found the complete path
c6b750e1
DJ
9754 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9755echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2429c060
PB
9756 else
9757 # Canadian cross, just use what we found
c6b750e1
DJ
9758 echo "$as_me:$LINENO: result: pre-installed" >&5
9759echo "${ECHO_T}pre-installed" >&6
2429c060 9760 fi
be01d343
PB
9761else
9762 ok=yes
9763 case " ${configdirs} " in
9764 *" binutils "*) ;;
9765 *) ok=no ;;
9766 esac
c6b750e1 9767
be01d343
PB
9768 if test $ok = yes; then
9769 # An in-tree tool is available and we can use it
9770 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
9771 echo "$as_me:$LINENO: result: just compiled" >&5
9772echo "${ECHO_T}just compiled" >&6
2429c060
PB
9773 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9774 # We already found the complete path
c6b750e1
DJ
9775 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9776echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
be01d343
PB
9777 elif test "x$target" = "x$host"; then
9778 # We can use an host tool
9779 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
9780 echo "$as_me:$LINENO: result: host tool" >&5
9781echo "${ECHO_T}host tool" >&6
be01d343
PB
9782 else
9783 # We need a cross tool
c6b750e1
DJ
9784 echo "$as_me:$LINENO: result: pre-installed" >&5
9785echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9786 fi
9787fi
4b900473 9788
c6b750e1
DJ
9789echo "$as_me:$LINENO: checking where to find the target strip" >&5
9790echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 9791if test "x${build}" != "x${host}" ; then
2429c060
PB
9792 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9793 # We already found the complete path
c6b750e1
DJ
9794 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9795echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2429c060
PB
9796 else
9797 # Canadian cross, just use what we found
c6b750e1
DJ
9798 echo "$as_me:$LINENO: result: pre-installed" >&5
9799echo "${ECHO_T}pre-installed" >&6
2429c060 9800 fi
be01d343
PB
9801else
9802 ok=yes
9803 case " ${configdirs} " in
9804 *" binutils "*) ;;
9805 *) ok=no ;;
9806 esac
c6b750e1 9807
be01d343
PB
9808 if test $ok = yes; then
9809 # An in-tree tool is available and we can use it
9810 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
9811 echo "$as_me:$LINENO: result: just compiled" >&5
9812echo "${ECHO_T}just compiled" >&6
2429c060
PB
9813 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9814 # We already found the complete path
c6b750e1
DJ
9815 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9816echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
be01d343
PB
9817 elif test "x$target" = "x$host"; then
9818 # We can use an host tool
9819 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
9820 echo "$as_me:$LINENO: result: host tool" >&5
9821echo "${ECHO_T}host tool" >&6
be01d343
PB
9822 else
9823 # We need a cross tool
c6b750e1
DJ
9824 echo "$as_me:$LINENO: result: pre-installed" >&5
9825echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9826 fi
9827fi
4b900473 9828
c6b750e1
DJ
9829echo "$as_me:$LINENO: checking where to find the target windres" >&5
9830echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 9831if test "x${build}" != "x${host}" ; then
2429c060
PB
9832 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9833 # We already found the complete path
c6b750e1
DJ
9834 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9835echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2429c060
PB
9836 else
9837 # Canadian cross, just use what we found
c6b750e1
DJ
9838 echo "$as_me:$LINENO: result: pre-installed" >&5
9839echo "${ECHO_T}pre-installed" >&6
2429c060 9840 fi
be01d343
PB
9841else
9842 ok=yes
9843 case " ${configdirs} " in
9844 *" binutils "*) ;;
9845 *) ok=no ;;
9846 esac
c6b750e1 9847
be01d343
PB
9848 if test $ok = yes; then
9849 # An in-tree tool is available and we can use it
9850 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
9851 echo "$as_me:$LINENO: result: just compiled" >&5
9852echo "${ECHO_T}just compiled" >&6
2429c060
PB
9853 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9854 # We already found the complete path
c6b750e1
DJ
9855 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9856echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
be01d343
PB
9857 elif test "x$target" = "x$host"; then
9858 # We can use an host tool
9859 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
9860 echo "$as_me:$LINENO: result: host tool" >&5
9861echo "${ECHO_T}host tool" >&6
be01d343
PB
9862 else
9863 # We need a cross tool
c6b750e1
DJ
9864 echo "$as_me:$LINENO: result: pre-installed" >&5
9865echo "${ECHO_T}pre-installed" >&6
be01d343 9866 fi
a0da8069 9867fi
54752a6b
NN
9868
9869
9870
be01d343 9871
4b900473 9872
a0da8069
NN
9873# Certain tools may need extra flags.
9874AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9875RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9876NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9877
be01d343
PB
9878# When building target libraries, except in a Canadian cross, we use
9879# the same toolchain as the compiler we just built.
9880COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9881COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9882COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9883if test $host = $build; then
9884 case " $configdirs " in
9885 *" gcc "*)
9886 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9887 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9888 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9889 ;;
9890 esac
9891fi
9892
9893
9894
9895
9896
c6b750e1
DJ
9897echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9898echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
9899# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9900if test "${enable_maintainer_mode+set}" = set; then
9901 enableval="$enable_maintainer_mode"
9902 USE_MAINTAINER_MODE=$enableval
9903else
9904 USE_MAINTAINER_MODE=no
c6b750e1
DJ
9905fi;
9906echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9907echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
9908
9909
9910if test "$USE_MAINTAINER_MODE" = yes; then
9911 MAINTAINER_MODE_TRUE=
9912 MAINTAINER_MODE_FALSE='#'
9913else
9914 MAINTAINER_MODE_TRUE='#'
9915 MAINTAINER_MODE_FALSE=
c6b750e1 9916fi
3d5e36ae
AO
9917MAINT=$MAINTAINER_MODE_TRUE
9918
1d39f329
NN
9919# ---------------------
9920# GCC bootstrap support
9921# ---------------------
9922
9923# Stage specific cflags for build.
9924stage1_cflags="-g"
9925case $build in
9926 vax-*-*)
9927 case ${GCC} in
9928 yes) stage1_cflags="-g -Wa,-J" ;;
9929 *) stage1_cflags="-g -J" ;;
9930 esac ;;
1d39f329
NN
9931esac
9932
1d89b610
PB
9933# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9934if test "$GCC" = yes; then
9935 saved_CFLAGS="$CFLAGS"
9936
9937 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9938 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
9939 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9940echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9941 cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h. */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h. */
9947
9948int
9949main ()
9950{
9951
9952 ;
9953 return 0;
9954}
9955_ACEOF
9956rm -f conftest.$ac_objext
9957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 (eval $ac_try) 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 echo "$as_me:$LINENO: result: yes" >&5
9979echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9980else
9981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984echo "$as_me:$LINENO: result: no" >&5
9985echo "${ECHO_T}no" >&6
9986fi
9987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
9988
9989 CFLAGS="$saved_CFLAGS"
9990fi
9991
9992
1d39f329 9993
8a0d8a5c
PB
9994# Enable --enable-checking in stage1 of the compiler.
9995# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9996if test "${enable_stage1_checking+set}" = set; then
9997 enableval="$enable_stage1_checking"
9998 stage1_checking=--enable-checking=${enable_stage1_checking}
9999else
10000 if test "x$enable_checking" = xno; then
10001 stage1_checking=--enable-checking
10002else
10003 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10004fi
c6b750e1 10005fi;
8a0d8a5c
PB
10006
10007
1d39f329 10008# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
10009# Check whether --enable-werror or --disable-werror was given.
10010if test "${enable_werror+set}" = set; then
10011 enableval="$enable_werror"
c6b750e1 10012
1d39f329 10013else
a0323144 10014 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 10015 enable_werror=yes
79fcd0ec
PB
10016else
10017 enable_werror=no
10018fi
c6b750e1 10019fi;
1a6f2dc7
NN
10020case ${enable_werror} in
10021 yes) stage2_werror_flag="--enable-werror-always" ;;
10022 *) stage2_werror_flag="" ;;
1d39f329
NN
10023esac
10024
10025
108a6f8e 10026# Flags needed to enable html installing and building
c6b750e1 10027
108a6f8e
CD
10028# Check whether --with-datarootdir or --without-datarootdir was given.
10029if test "${with_datarootdir+set}" = set; then
10030 withval="$with_datarootdir"
10031 datarootdir="\${prefix}/${withval}"
10032else
10033 datarootdir="\${prefix}/share"
c6b750e1 10034fi;
108a6f8e
CD
10035
10036
10037# Check whether --with-docdir or --without-docdir was given.
10038if test "${with_docdir+set}" = set; then
10039 withval="$with_docdir"
10040 docdir="\${prefix}/${withval}"
10041else
10042 docdir="\${datarootdir}/doc"
c6b750e1 10043fi;
108a6f8e
CD
10044
10045
10046# Check whether --with-htmldir or --without-htmldir was given.
10047if test "${with_htmldir+set}" = set; then
10048 withval="$with_htmldir"
10049 htmldir="\${prefix}/${withval}"
10050else
10051 htmldir="\${docdir}"
c6b750e1 10052fi;
108a6f8e
CD
10053
10054
10055
10056
10057
c6b750e1
DJ
10058 ac_config_files="$ac_config_files Makefile"
10059cat >confcache <<\_ACEOF
a0da8069
NN
10060# This file is a shell script that caches the results of configure
10061# tests run on this system so they can be shared between configure
c6b750e1
DJ
10062# scripts and configure runs, see configure's option --config-cache.
10063# It is not useful on other systems. If it contains results you don't
10064# want to keep, you may remove or edit it.
a0da8069 10065#
c6b750e1
DJ
10066# config.status only pays attention to the cache file if you give it
10067# the --recheck option to rerun configure.
a0da8069 10068#
c6b750e1
DJ
10069# `ac_cv_env_foo' variables (set or unset) will be overridden when
10070# loading this file, other *unset* `ac_cv_foo' will be assigned the
10071# following values.
10072
10073_ACEOF
10074
a0da8069
NN
10075# The following way of writing the cache mishandles newlines in values,
10076# but we know of no workaround that is simple, portable, and efficient.
10077# So, don't put newlines in cache variables' values.
10078# Ultrix sh set writes to stderr and can't be redirected directly,
10079# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
10080{
10081 (set) 2>&1 |
10082 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10083 *ac_space=\ *)
10084 # `set' does not quote correctly, so add quotes (double-quote
10085 # substitution turns \\\\ into \\, and sed turns \\ into \).
10086 sed -n \
10087 "s/'/'\\\\''/g;
10088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10089 ;;
10090 *)
10091 # `set' quotes correctly as required by POSIX, so do not add quotes.
10092 sed -n \
10093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10094 ;;
10095 esac;
10096} |
10097 sed '
10098 t clear
10099 : clear
10100 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10101 t end
10102 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10103 : end' >>confcache
10104if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 10105 if test -w $cache_file; then
c6b750e1
DJ
10106 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10107 cat confcache >$cache_file
a0da8069
NN
10108 else
10109 echo "not updating unwritable cache $cache_file"
10110 fi
852e5f18 10111fi
a0da8069 10112rm -f confcache
852e5f18 10113
a0da8069
NN
10114test "x$prefix" = xNONE && prefix=$ac_default_prefix
10115# Let make expand exec_prefix.
10116test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 10117
c6b750e1
DJ
10118# VPATH may cause trouble with some makes, so we remove $(srcdir),
10119# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10120# trailing colons and then remove the whole line if VPATH becomes empty
10121# (actually we leave an empty line to preserve line numbers).
a0da8069 10122if test "x$srcdir" = x.; then
c6b750e1
DJ
10123 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10124s/:*\$(srcdir):*/:/;
10125s/:*\${srcdir}:*/:/;
10126s/:*@srcdir@:*/:/;
10127s/^\([^=]*=[ ]*\):*/\1/;
10128s/:*$//;
10129s/^[^=]*=[ ]*$//;
10130}'
a0da8069 10131fi
252b5132 10132
a0da8069
NN
10133# Transform confdefs.h into DEFS.
10134# Protect against shell expansion while executing Makefile rules.
10135# Protect against Makefile macro expansion.
c6b750e1
DJ
10136#
10137# If the first sed substitution is executed (which looks for macros that
10138# take arguments), then we branch to the quote section. Otherwise,
10139# look for a macro that doesn't take arguments.
10140cat >confdef2opt.sed <<\_ACEOF
10141t clear
10142: clear
10143s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10144t quote
10145s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10146t quote
10147d
10148: quote
10149s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10150s,\[,\\&,g
10151s,\],\\&,g
10152s,\$,$$,g
10153p
10154_ACEOF
10155# We use echo to avoid assuming a particular line-breaking character.
10156# The extra dot is to prevent the shell from consuming trailing
10157# line-breaks from the sub-command output. A line-break within
10158# single-quotes doesn't work because, if this script is created in a
10159# platform that uses two characters for line-breaks (e.g., DOS), tr
10160# would break.
10161ac_LF_and_DOT=`echo; echo .`
10162DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10163rm -f confdef2opt.sed
10164
10165
10166ac_libobjs=
10167ac_ltlibobjs=
10168for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10169 # 1. Remove the extension, and $U if already installed.
10170 ac_i=`echo "$ac_i" |
10171 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10172 # 2. Add them.
10173 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10174 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10175done
10176LIBOBJS=$ac_libobjs
852e5f18 10177
c6b750e1 10178LTLIBOBJS=$ac_ltlibobjs
376a0e54 10179
cac3d6c4 10180
c6b750e1
DJ
10181
10182: ${CONFIG_STATUS=./config.status}
10183ac_clean_files_save=$ac_clean_files
10184ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10185{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10186echo "$as_me: creating $CONFIG_STATUS" >&6;}
10187cat >$CONFIG_STATUS <<_ACEOF
10188#! $SHELL
10189# Generated by $as_me.
a0da8069 10190# Run this file to recreate the current configuration.
a0da8069 10191# Compiler output produced by configure, useful for debugging
c6b750e1 10192# configure, is in config.log if it exists.
376a0e54 10193
c6b750e1
DJ
10194debug=false
10195ac_cs_recheck=false
10196ac_cs_silent=false
10197SHELL=\${CONFIG_SHELL-$SHELL}
10198_ACEOF
10199
10200cat >>$CONFIG_STATUS <<\_ACEOF
10201## --------------------- ##
10202## M4sh Initialization. ##
10203## --------------------- ##
10204
10205# Be Bourne compatible
10206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10207 emulate sh
10208 NULLCMD=:
10209 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10210 # is contrary to our usage. Disable this feature.
10211 alias -g '${1+"$@"}'='"$@"'
10212elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10213 set -o posix
10214fi
10215DUALCASE=1; export DUALCASE # for MKS sh
10216
10217# Support unset when possible.
10218if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10219 as_unset=unset
10220else
10221 as_unset=false
10222fi
10223
10224
10225# Work around bugs in pre-3.0 UWIN ksh.
10226$as_unset ENV MAIL MAILPATH
10227PS1='$ '
10228PS2='> '
10229PS4='+ '
10230
10231# NLS nuisances.
10232for as_var in \
10233 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10234 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10235 LC_TELEPHONE LC_TIME
10236do
10237 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10238 eval $as_var=C; export $as_var
10239 else
10240 $as_unset $as_var
10241 fi
10242done
10243
10244# Required to use basename.
10245if expr a : '\(a\)' >/dev/null 2>&1; then
10246 as_expr=expr
10247else
10248 as_expr=false
10249fi
10250
10251if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10252 as_basename=basename
10253else
10254 as_basename=false
10255fi
10256
10257
10258# Name of the executable.
10259as_me=`$as_basename "$0" ||
10260$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10261 X"$0" : 'X\(//\)$' \| \
10262 X"$0" : 'X\(/\)$' \| \
10263 . : '\(.\)' 2>/dev/null ||
10264echo X/"$0" |
10265 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10266 /^X\/\(\/\/\)$/{ s//\1/; q; }
10267 /^X\/\(\/\).*/{ s//\1/; q; }
10268 s/.*/./; q'`
10269
10270
10271# PATH needs CR, and LINENO needs CR and PATH.
10272# Avoid depending upon Character Ranges.
10273as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10274as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10275as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10276as_cr_digits='0123456789'
10277as_cr_alnum=$as_cr_Letters$as_cr_digits
10278
10279# The user is always right.
10280if test "${PATH_SEPARATOR+set}" != set; then
10281 echo "#! /bin/sh" >conf$$.sh
10282 echo "exit 0" >>conf$$.sh
10283 chmod +x conf$$.sh
10284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10285 PATH_SEPARATOR=';'
10286 else
10287 PATH_SEPARATOR=:
10288 fi
10289 rm -f conf$$.sh
10290fi
10291
10292
10293 as_lineno_1=$LINENO
10294 as_lineno_2=$LINENO
10295 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10296 test "x$as_lineno_1" != "x$as_lineno_2" &&
10297 test "x$as_lineno_3" = "x$as_lineno_2" || {
10298 # Find who we are. Look in the path if we contain no path at all
10299 # relative or not.
10300 case $0 in
10301 *[\\/]* ) as_myself=$0 ;;
10302 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10308done
10309
10310 ;;
10311 esac
10312 # We did not find ourselves, most probably we were run as `sh COMMAND'
10313 # in which case we are not to be found in the path.
10314 if test "x$as_myself" = x; then
10315 as_myself=$0
10316 fi
10317 if test ! -f "$as_myself"; then
10318 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10319echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10320 { (exit 1); exit 1; }; }
10321 fi
10322 case $CONFIG_SHELL in
10323 '')
10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10326do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for as_base in sh bash ksh sh5; do
10330 case $as_dir in
10331 /*)
10332 if ("$as_dir/$as_base" -c '
10333 as_lineno_1=$LINENO
10334 as_lineno_2=$LINENO
10335 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10336 test "x$as_lineno_1" != "x$as_lineno_2" &&
10337 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10338 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10339 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10340 CONFIG_SHELL=$as_dir/$as_base
10341 export CONFIG_SHELL
10342 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10343 fi;;
10344 esac
10345 done
10346done
10347;;
10348 esac
10349
10350 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10351 # uniformly replaced by the line number. The first 'sed' inserts a
10352 # line-number line before each line; the second 'sed' does the real
10353 # work. The second script uses 'N' to pair each line-number line
10354 # with the numbered line, and appends trailing '-' during
10355 # substitution so that $LINENO is not a special case at line end.
10356 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10357 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10358 sed '=' <$as_myself |
10359 sed '
10360 N
10361 s,$,-,
10362 : loop
10363 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10364 t loop
10365 s,-$,,
10366 s,^['$as_cr_digits']*\n,,
10367 ' >$as_me.lineno &&
10368 chmod +x $as_me.lineno ||
10369 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10370echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10371 { (exit 1); exit 1; }; }
10372
10373 # Don't try to exec as it changes $[0], causing all sort of problems
10374 # (the dirname of $[0] is not the place where we might find the
10375 # original and so on. Autoconf is especially sensible to this).
10376 . ./$as_me.lineno
10377 # Exit status is that of the last command.
10378 exit
10379}
10380
10381
10382case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10383 *c*,-n*) ECHO_N= ECHO_C='
10384' ECHO_T=' ' ;;
10385 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10386 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10387esac
10388
10389if expr a : '\(a\)' >/dev/null 2>&1; then
10390 as_expr=expr
10391else
10392 as_expr=false
10393fi
10394
10395rm -f conf$$ conf$$.exe conf$$.file
10396echo >conf$$.file
10397if ln -s conf$$.file conf$$ 2>/dev/null; then
10398 # We could just check for DJGPP; but this test a) works b) is more generic
10399 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10400 if test -f conf$$.exe; then
10401 # Don't use ln at all; we don't have any links
10402 as_ln_s='cp -p'
10403 else
10404 as_ln_s='ln -s'
10405 fi
10406elif ln conf$$.file conf$$ 2>/dev/null; then
10407 as_ln_s=ln
10408else
10409 as_ln_s='cp -p'
10410fi
10411rm -f conf$$ conf$$.exe conf$$.file
10412
10413if mkdir -p . 2>/dev/null; then
10414 as_mkdir_p=:
10415else
10416 test -d ./-p && rmdir ./-p
10417 as_mkdir_p=false
10418fi
10419
10420as_executable_p="test -f"
10421
10422# Sed expression to map a string onto a valid CPP name.
10423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10424
10425# Sed expression to map a string onto a valid variable name.
10426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10427
10428
10429# IFS
10430# We need space, tab and new line, in precisely that order.
10431as_nl='
10432'
10433IFS=" $as_nl"
10434
10435# CDPATH.
10436$as_unset CDPATH
10437
10438exec 6>&1
10439
10440# Open the log real soon, to keep \$[0] and so on meaningful, and to
10441# report actual input values of CONFIG_FILES etc. instead of their
10442# values after options handling. Logging --version etc. is OK.
10443exec 5>>config.log
10444{
10445 echo
10446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10447## Running $as_me. ##
10448_ASBOX
10449} >&5
10450cat >&5 <<_CSEOF
10451
10452This file was extended by $as_me, which was
10453generated by GNU Autoconf 2.59. Invocation command line was
10454
10455 CONFIG_FILES = $CONFIG_FILES
10456 CONFIG_HEADERS = $CONFIG_HEADERS
10457 CONFIG_LINKS = $CONFIG_LINKS
10458 CONFIG_COMMANDS = $CONFIG_COMMANDS
10459 $ $0 $@
10460
10461_CSEOF
10462echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10463echo >&5
10464_ACEOF
10465
10466# Files that config.status was made for.
10467if test -n "$ac_config_files"; then
10468 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10469fi
10470
10471if test -n "$ac_config_headers"; then
10472 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10473fi
10474
10475if test -n "$ac_config_links"; then
10476 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10477fi
10478
10479if test -n "$ac_config_commands"; then
10480 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10481fi
10482
10483cat >>$CONFIG_STATUS <<\_ACEOF
10484
10485ac_cs_usage="\
10486\`$as_me' instantiates files from templates according to the
10487current configuration.
10488
10489Usage: $0 [OPTIONS] [FILE]...
10490
10491 -h, --help print this help, then exit
10492 -V, --version print version number, then exit
10493 -q, --quiet do not print progress messages
10494 -d, --debug don't remove temporary files
10495 --recheck update $as_me by reconfiguring in the same conditions
10496 --file=FILE[:TEMPLATE]
10497 instantiate the configuration file FILE
10498
10499Configuration files:
10500$config_files
10501
10502Report bugs to <bug-autoconf@gnu.org>."
10503_ACEOF
10504
10505cat >>$CONFIG_STATUS <<_ACEOF
10506ac_cs_version="\\
10507config.status
10508configured by $0, generated by GNU Autoconf 2.59,
10509 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10510
10511Copyright (C) 2003 Free Software Foundation, Inc.
10512This config.status script is free software; the Free Software Foundation
10513gives unlimited permission to copy, distribute and modify it."
10514srcdir=$srcdir
10515INSTALL="$INSTALL"
10516_ACEOF
10517
10518cat >>$CONFIG_STATUS <<\_ACEOF
10519# If no file are specified by the user, then we need to provide default
10520# value. By we need to know if files were specified by the user.
10521ac_need_defaults=:
10522while test $# != 0
a0da8069 10523do
c6b750e1
DJ
10524 case $1 in
10525 --*=*)
10526 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10527 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10528 ac_shift=:
10529 ;;
10530 -*)
10531 ac_option=$1
10532 ac_optarg=$2
10533 ac_shift=shift
10534 ;;
10535 *) # This is not an option, so the user has probably given explicit
10536 # arguments.
10537 ac_option=$1
10538 ac_need_defaults=false;;
10539 esac
10540
10541 case $ac_option in
10542 # Handling of the options.
10543_ACEOF
10544cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 10545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
10546 ac_cs_recheck=: ;;
10547 --version | --vers* | -V )
10548 echo "$ac_cs_version"; exit 0 ;;
10549 --he | --h)
10550 # Conflict between --help and --header
10551 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10552Try \`$0 --help' for more information." >&5
10553echo "$as_me: error: ambiguous option: $1
10554Try \`$0 --help' for more information." >&2;}
10555 { (exit 1); exit 1; }; };;
10556 --help | --hel | -h )
10557 echo "$ac_cs_usage"; exit 0 ;;
10558 --debug | --d* | -d )
10559 debug=: ;;
10560 --file | --fil | --fi | --f )
10561 $ac_shift
10562 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10563 ac_need_defaults=false;;
10564 --header | --heade | --head | --hea )
10565 $ac_shift
10566 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10567 ac_need_defaults=false;;
10568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10569 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10570 ac_cs_silent=: ;;
10571
10572 # This is an error.
10573 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10574Try \`$0 --help' for more information." >&5
10575echo "$as_me: error: unrecognized option: $1
10576Try \`$0 --help' for more information." >&2;}
10577 { (exit 1); exit 1; }; } ;;
10578
10579 *) ac_config_targets="$ac_config_targets $1" ;;
10580
376a0e54 10581 esac
c6b750e1 10582 shift
376a0e54
CM
10583done
10584
c6b750e1 10585ac_configure_extra_args=
376a0e54 10586
c6b750e1
DJ
10587if $ac_cs_silent; then
10588 exec 6>/dev/null
10589 ac_configure_extra_args="$ac_configure_extra_args --silent"
10590fi
376a0e54 10591
c6b750e1
DJ
10592_ACEOF
10593cat >>$CONFIG_STATUS <<_ACEOF
10594if \$ac_cs_recheck; then
10595 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10596 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10597fi
10598
10599_ACEOF
10600
10601
10602
10603
10604
10605cat >>$CONFIG_STATUS <<\_ACEOF
10606for ac_config_target in $ac_config_targets
10607do
10608 case "$ac_config_target" in
10609 # Handling of arguments.
10610 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10611 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10612echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10613 { (exit 1); exit 1; }; };;
10614 esac
10615done
10616
10617# If the user did not use the arguments to specify the items to instantiate,
10618# then the envvar interface is used. Set only those that are not.
10619# We use the long form for the default assignment because of an extremely
10620# bizarre bug on SunOS 4.1.3.
10621if $ac_need_defaults; then
10622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10623fi
10624
10625# Have a temporary directory for convenience. Make it in the build tree
10626# simply because there is no reason to put it here, and in addition,
10627# creating and moving files from /tmp can sometimes cause problems.
10628# Create a temporary directory, and hook for its removal unless debugging.
10629$debug ||
10630{
10631 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10632 trap '{ (exit 1); exit 1; }' 1 2 13 15
10633}
10634
10635# Create a (secure) tmp directory for tmp files.
10636
10637{
10638 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10639 test -n "$tmp" && test -d "$tmp"
10640} ||
10641{
10642 tmp=./confstat$$-$RANDOM
10643 (umask 077 && mkdir $tmp)
10644} ||
10645{
10646 echo "$me: cannot create a temporary directory in ." >&2
10647 { (exit 1); exit 1; }
10648}
10649
10650_ACEOF
10651
10652cat >>$CONFIG_STATUS <<_ACEOF
10653
10654#
10655# CONFIG_FILES section.
10656#
10657
10658# No need to generate the scripts if there are no CONFIG_FILES.
10659# This happens for instance when ./config.status config.h
10660if test -n "\$CONFIG_FILES"; then
10661 # Protect against being on the right side of a sed subst in config.status.
10662 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10663 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10664s,@SHELL@,$SHELL,;t t
10665s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10666s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10667s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10668s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10669s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10670s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10671s,@exec_prefix@,$exec_prefix,;t t
10672s,@prefix@,$prefix,;t t
10673s,@program_transform_name@,$program_transform_name,;t t
10674s,@bindir@,$bindir,;t t
10675s,@sbindir@,$sbindir,;t t
10676s,@libexecdir@,$libexecdir,;t t
10677s,@datadir@,$datadir,;t t
10678s,@sysconfdir@,$sysconfdir,;t t
10679s,@sharedstatedir@,$sharedstatedir,;t t
10680s,@localstatedir@,$localstatedir,;t t
10681s,@libdir@,$libdir,;t t
10682s,@includedir@,$includedir,;t t
10683s,@oldincludedir@,$oldincludedir,;t t
10684s,@infodir@,$infodir,;t t
10685s,@mandir@,$mandir,;t t
10686s,@build_alias@,$build_alias,;t t
10687s,@host_alias@,$host_alias,;t t
10688s,@target_alias@,$target_alias,;t t
10689s,@DEFS@,$DEFS,;t t
10690s,@ECHO_C@,$ECHO_C,;t t
10691s,@ECHO_N@,$ECHO_N,;t t
10692s,@ECHO_T@,$ECHO_T,;t t
10693s,@LIBS@,$LIBS,;t t
10694s,@build@,$build,;t t
10695s,@build_cpu@,$build_cpu,;t t
10696s,@build_vendor@,$build_vendor,;t t
10697s,@build_os@,$build_os,;t t
10698s,@build_noncanonical@,$build_noncanonical,;t t
10699s,@host_noncanonical@,$host_noncanonical,;t t
10700s,@target_noncanonical@,$target_noncanonical,;t t
10701s,@host@,$host,;t t
10702s,@host_cpu@,$host_cpu,;t t
10703s,@host_vendor@,$host_vendor,;t t
10704s,@host_os@,$host_os,;t t
10705s,@target@,$target,;t t
10706s,@target_cpu@,$target_cpu,;t t
10707s,@target_vendor@,$target_vendor,;t t
10708s,@target_os@,$target_os,;t t
10709s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10710s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10711s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10712s,@LN@,$LN,;t t
10713s,@LN_S@,$LN_S,;t t
10714s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10715s,@build_libsubdir@,$build_libsubdir,;t t
10716s,@build_subdir@,$build_subdir,;t t
10717s,@host_subdir@,$host_subdir,;t t
10718s,@target_subdir@,$target_subdir,;t t
10719s,@CC@,$CC,;t t
10720s,@CFLAGS@,$CFLAGS,;t t
10721s,@LDFLAGS@,$LDFLAGS,;t t
10722s,@CPPFLAGS@,$CPPFLAGS,;t t
10723s,@ac_ct_CC@,$ac_ct_CC,;t t
10724s,@EXEEXT@,$EXEEXT,;t t
10725s,@OBJEXT@,$OBJEXT,;t t
24ff9987
DJ
10726s,@CXX@,$CXX,;t t
10727s,@CXXFLAGS@,$CXXFLAGS,;t t
10728s,@ac_ct_CXX@,$ac_ct_CXX,;t t
c6b750e1
DJ
10729s,@GNATBIND@,$GNATBIND,;t t
10730s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10731s,@do_compare@,$do_compare,;t t
10732s,@gmplibs@,$gmplibs,;t t
10733s,@gmpinc@,$gmpinc,;t t
10734s,@stage1_languages@,$stage1_languages,;t t
10735s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10736s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10737s,@tooldir@,$tooldir,;t t
10738s,@build_tooldir@,$build_tooldir,;t t
10739s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10740s,@GDB_TK@,$GDB_TK,;t t
10741s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10742s,@build_configargs@,$build_configargs,;t t
10743s,@build_configdirs@,$build_configdirs,;t t
10744s,@host_configargs@,$host_configargs,;t t
10745s,@configdirs@,$configdirs,;t t
10746s,@target_configargs@,$target_configargs,;t t
10747s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10748s,@config_shell@,$config_shell,;t t
10749s,@YACC@,$YACC,;t t
10750s,@BISON@,$BISON,;t t
10751s,@M4@,$M4,;t t
10752s,@LEX@,$LEX,;t t
10753s,@FLEX@,$FLEX,;t t
10754s,@MAKEINFO@,$MAKEINFO,;t t
10755s,@EXPECT@,$EXPECT,;t t
10756s,@RUNTEST@,$RUNTEST,;t t
10757s,@AR@,$AR,;t t
10758s,@AS@,$AS,;t t
10759s,@DLLTOOL@,$DLLTOOL,;t t
10760s,@LD@,$LD,;t t
10761s,@LIPO@,$LIPO,;t t
10762s,@NM@,$NM,;t t
10763s,@RANLIB@,$RANLIB,;t t
10764s,@STRIP@,$STRIP,;t t
10765s,@WINDRES@,$WINDRES,;t t
10766s,@OBJCOPY@,$OBJCOPY,;t t
10767s,@OBJDUMP@,$OBJDUMP,;t t
c6b750e1 10768s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
c6b750e1
DJ
10769s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10770s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10771s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10772s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10773s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10774s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10775s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10776s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10777s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10778s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10779s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10780s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10781s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10782s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10783s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10784s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10785s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10786s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10787s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10788s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10789s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10790s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10791s,@MAINT@,$MAINT,;t t
10792s,@stage1_cflags@,$stage1_cflags,;t t
10793s,@stage1_checking@,$stage1_checking,;t t
10794s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10795s,@datarootdir@,$datarootdir,;t t
10796s,@docdir@,$docdir,;t t
10797s,@htmldir@,$htmldir,;t t
10798s,@LIBOBJS@,$LIBOBJS,;t t
10799s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 10800/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 10801s,@serialization_dependencies@,,;t t
a0da8069 10802/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 10803s,@host_makefile_frag@,,;t t
a0da8069 10804/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 10805s,@target_makefile_frag@,,;t t
a0da8069 10806/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 10807s,@alphaieee_frag@,,;t t
a0da8069 10808/@ospace_frag@/r $ospace_frag
c6b750e1 10809s,@ospace_frag@,,;t t
a0da8069 10810CEOF
252b5132 10811
c6b750e1
DJ
10812_ACEOF
10813
10814 cat >>$CONFIG_STATUS <<\_ACEOF
10815 # Split the substitutions into bite-sized pieces for seds with
10816 # small command number limits, like on Digital OSF/1 and HP-UX.
10817 ac_max_sed_lines=48
10818 ac_sed_frag=1 # Number of current file.
10819 ac_beg=1 # First line for current file.
10820 ac_end=$ac_max_sed_lines # Line after last line for current file.
10821 ac_more_lines=:
10822 ac_sed_cmds=
10823 while $ac_more_lines; do
10824 if test $ac_beg -gt 1; then
10825 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10826 else
10827 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10828 fi
10829 if test ! -s $tmp/subs.frag; then
10830 ac_more_lines=false
a0da8069 10831 else
c6b750e1
DJ
10832 # The purpose of the label and of the branching condition is to
10833 # speed up the sed processing (if there are no `@' at all, there
10834 # is no need to browse any of the substitutions).
10835 # These are the two extra sed commands mentioned above.
10836 (echo ':t
10837 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10838 if test -z "$ac_sed_cmds"; then
10839 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10840 else
10841 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10842 fi
10843 ac_sed_frag=`expr $ac_sed_frag + 1`
10844 ac_beg=$ac_end
10845 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 10846 fi
c6b750e1
DJ
10847 done
10848 if test -z "$ac_sed_cmds"; then
10849 ac_sed_cmds=cat
852e5f18 10850 fi
c6b750e1 10851fi # test -n "$CONFIG_FILES"
cac3d6c4 10852
c6b750e1
DJ
10853_ACEOF
10854cat >>$CONFIG_STATUS <<\_ACEOF
10855for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 10856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
10857 case $ac_file in
10858 - | *:- | *:-:* ) # input from stdin
10859 cat >$tmp/stdin
10860 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10861 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10862 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10863 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10864 * ) ac_file_in=$ac_file.in ;;
a0da8069 10865 esac
252b5132 10866
c6b750e1
DJ
10867 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10868 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10869$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10870 X"$ac_file" : 'X\(//\)[^/]' \| \
10871 X"$ac_file" : 'X\(//\)$' \| \
10872 X"$ac_file" : 'X\(/\)' \| \
10873 . : '\(.\)' 2>/dev/null ||
10874echo X"$ac_file" |
10875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10877 /^X\(\/\/\)$/{ s//\1/; q; }
10878 /^X\(\/\).*/{ s//\1/; q; }
10879 s/.*/./; q'`
10880 { if $as_mkdir_p; then
10881 mkdir -p "$ac_dir"
cac3d6c4 10882 else
c6b750e1
DJ
10883 as_dir="$ac_dir"
10884 as_dirs=
10885 while test ! -d "$as_dir"; do
10886 as_dirs="$as_dir $as_dirs"
10887 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10888$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10889 X"$as_dir" : 'X\(//\)[^/]' \| \
10890 X"$as_dir" : 'X\(//\)$' \| \
10891 X"$as_dir" : 'X\(/\)' \| \
10892 . : '\(.\)' 2>/dev/null ||
10893echo X"$as_dir" |
10894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10896 /^X\(\/\/\)$/{ s//\1/; q; }
10897 /^X\(\/\).*/{ s//\1/; q; }
10898 s/.*/./; q'`
10899 done
10900 test ! -n "$as_dirs" || mkdir $as_dirs
10901 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10902echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10903 { (exit 1); exit 1; }; }; }
10904
10905 ac_builddir=.
252b5132 10906
c6b750e1
DJ
10907if test "$ac_dir" != .; then
10908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10909 # A "../" for each directory in $ac_dir_suffix.
10910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10911else
10912 ac_dir_suffix= ac_top_builddir=
10913fi
10914
10915case $srcdir in
10916 .) # No --srcdir option. We are building in place.
10917 ac_srcdir=.
10918 if test -z "$ac_top_builddir"; then
10919 ac_top_srcdir=.
10920 else
10921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10922 fi ;;
10923 [\\/]* | ?:[\\/]* ) # Absolute path.
10924 ac_srcdir=$srcdir$ac_dir_suffix;
10925 ac_top_srcdir=$srcdir ;;
a0da8069 10926 *) # Relative path.
c6b750e1
DJ
10927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10929esac
252b5132 10930
c6b750e1
DJ
10931# Do not use `cd foo && pwd` to compute absolute paths, because
10932# the directories may not exist.
10933case `pwd` in
10934.) ac_abs_builddir="$ac_dir";;
10935*)
10936 case "$ac_dir" in
10937 .) ac_abs_builddir=`pwd`;;
10938 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10939 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10940 esac;;
10941esac
10942case $ac_abs_builddir in
10943.) ac_abs_top_builddir=${ac_top_builddir}.;;
10944*)
10945 case ${ac_top_builddir}. in
10946 .) ac_abs_top_builddir=$ac_abs_builddir;;
10947 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10948 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10949 esac;;
10950esac
10951case $ac_abs_builddir in
10952.) ac_abs_srcdir=$ac_srcdir;;
10953*)
10954 case $ac_srcdir in
10955 .) ac_abs_srcdir=$ac_abs_builddir;;
10956 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10957 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10958 esac;;
10959esac
10960case $ac_abs_builddir in
10961.) ac_abs_top_srcdir=$ac_top_srcdir;;
10962*)
10963 case $ac_top_srcdir in
10964 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10965 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10966 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10967 esac;;
10968esac
252b5132 10969
c6b750e1
DJ
10970
10971 case $INSTALL in
10972 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10973 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 10974 esac
252b5132 10975
c6b750e1
DJ
10976 if test x"$ac_file" != x-; then
10977 { echo "$as_me:$LINENO: creating $ac_file" >&5
10978echo "$as_me: creating $ac_file" >&6;}
10979 rm -f "$ac_file"
10980 fi
10981 # Let's still pretend it is `configure' which instantiates (i.e., don't
10982 # use $as_me), people would be surprised to read:
10983 # /* config.h. Generated by config.status. */
10984 if test x"$ac_file" = x-; then
10985 configure_input=
10986 else
10987 configure_input="$ac_file. "
10988 fi
10989 configure_input=$configure_input"Generated from `echo $ac_file_in |
10990 sed 's,.*/,,'` by configure."
10991
10992 # First look for the input files in the build tree, otherwise in the
10993 # src tree.
10994 ac_file_inputs=`IFS=:
10995 for f in $ac_file_in; do
10996 case $f in
10997 -) echo $tmp/stdin ;;
10998 [\\/$]*)
10999 # Absolute (can't be DOS-style, as IFS=:)
11000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11001echo "$as_me: error: cannot find input file: $f" >&2;}
11002 { (exit 1); exit 1; }; }
11003 echo "$f";;
11004 *) # Relative
11005 if test -f "$f"; then
11006 # Build tree
11007 echo "$f"
11008 elif test -f "$srcdir/$f"; then
11009 # Source tree
11010 echo "$srcdir/$f"
11011 else
11012 # /dev/null tree
11013 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11014echo "$as_me: error: cannot find input file: $f" >&2;}
11015 { (exit 1); exit 1; }; }
11016 fi;;
11017 esac
11018 done` || { (exit 1); exit 1; }
11019_ACEOF
11020cat >>$CONFIG_STATUS <<_ACEOF
11021 sed "$ac_vpsub
11022$extrasub
11023_ACEOF
11024cat >>$CONFIG_STATUS <<\_ACEOF
11025:t
11026/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11027s,@configure_input@,$configure_input,;t t
11028s,@srcdir@,$ac_srcdir,;t t
11029s,@abs_srcdir@,$ac_abs_srcdir,;t t
11030s,@top_srcdir@,$ac_top_srcdir,;t t
11031s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11032s,@builddir@,$ac_builddir,;t t
11033s,@abs_builddir@,$ac_abs_builddir,;t t
11034s,@top_builddir@,$ac_top_builddir,;t t
11035s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11036s,@INSTALL@,$ac_INSTALL,;t t
11037" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11038 rm -f $tmp/stdin
11039 if test x"$ac_file" != x-; then
11040 mv $tmp/out $ac_file
11041 else
11042 cat $tmp/out
11043 rm -f $tmp/out
11044 fi
c148b4cb 11045
c6b750e1
DJ
11046done
11047_ACEOF
c148b4cb 11048
c6b750e1 11049cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 11050
c6b750e1
DJ
11051{ (exit 0); exit 0; }
11052_ACEOF
c148b4cb 11053chmod +x $CONFIG_STATUS
c6b750e1
DJ
11054ac_clean_files=$ac_clean_files_save
11055
11056
11057# configure is writing to config.log, and then calls config.status.
11058# config.status does its own redirection, appending to config.log.
11059# Unfortunately, on DOS this fails, as config.log is still kept open
11060# by configure, so config.status won't be able to write to it; its
11061# output is simply discarded. So we exec the FD to /dev/null,
11062# effectively closing config.log, so it can be properly (re)opened and
11063# appended to by config.status. When coming back to configure, we
11064# need to make the FD available again.
11065if test "$no_create" != yes; then
11066 ac_cs_success=:
11067 ac_config_status_args=
11068 test "$silent" = yes &&
11069 ac_config_status_args="$ac_config_status_args --quiet"
11070 exec 5>/dev/null
11071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11072 exec 5>>config.log
11073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11074 # would make configure fail if this is the last instruction.
11075 $ac_cs_success || { (exit 1); exit 1; }
11076fi
c148b4cb 11077
This page took 0.968514 seconds and 4 git commands to generate.