]> gcc.gnu.org Git - gcc.git/blame - configure
re PR c++/30225 (builtins's decl is copied in some cases where it is not needed to...
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
0b0dc272 3# Generated by GNU Autoconf 2.59.
671aa708 4#
0b0dc272 5# Copyright (C) 2003 Free Software Foundation, Inc.
671aa708
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
0b0dc272
AM
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
a4b9e93e 233
0b0dc272
AM
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
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
671aa708 254ac_default_prefix=/usr/local
0b0dc272
AM
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"
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 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 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 CXX CFLAGS_FOR_BUILD CXXFLAGS 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'
276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
671aa708
NN
277
278# Initialize some variables set by options.
0b0dc272
AM
279ac_init_help=
280ac_init_version=false
671aa708
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
0b0dc272 283cache_file=/dev/null
671aa708 284exec_prefix=NONE
671aa708 285no_create=
671aa708
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
671aa708
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
0b0dc272
AM
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
671aa708
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
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'
79c06341 315
671aa708
NN
316ac_prev=
317for ac_option
318do
671aa708
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
79c06341 325
0b0dc272 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
671aa708
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
0b0dc272 330 case $ac_option in
671aa708
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
0b0dc272 335 bindir=$ac_optarg ;;
671aa708
NN
336
337 -build | --build | --buil | --bui | --bu)
0b0dc272 338 ac_prev=build_alias ;;
671aa708 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
0b0dc272 340 build_alias=$ac_optarg ;;
671aa708
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
0b0dc272
AM
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
671aa708
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
0b0dc272 356 datadir=$ac_optarg ;;
671aa708
NN
357
358 -disable-* | --disable-*)
0b0dc272 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 360 # Reject names that are not valid shell variable names.
0b0dc272
AM
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" ;;
671aa708
NN
366
367 -enable-* | --enable-*)
0b0dc272 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 369 # Reject names that are not valid shell variable names.
0b0dc272
AM
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"`;;
671aa708
NN
376 *) ac_optarg=yes ;;
377 esac
0b0dc272 378 eval "enable_$ac_feature='$ac_optarg'" ;;
671aa708
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
0b0dc272 387 exec_prefix=$ac_optarg ;;
671aa708
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
0b0dc272
AM
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
671aa708
NN
399
400 -host | --host | --hos | --ho)
0b0dc272 401 ac_prev=host_alias ;;
671aa708 402 -host=* | --host=* | --hos=* | --ho=*)
0b0dc272 403 host_alias=$ac_optarg ;;
671aa708
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
0b0dc272 410 includedir=$ac_optarg ;;
671aa708
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
0b0dc272 415 infodir=$ac_optarg ;;
671aa708
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
0b0dc272 420 libdir=$ac_optarg ;;
671aa708
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
0b0dc272 427 libexecdir=$ac_optarg ;;
671aa708
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=*)
0b0dc272 436 localstatedir=$ac_optarg ;;
671aa708
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
0b0dc272 441 mandir=$ac_optarg ;;
671aa708
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
0b0dc272 448 | --no-cr | --no-c | -n)
671aa708
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
0b0dc272 462 oldincludedir=$ac_optarg ;;
671aa708
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
0b0dc272 467 prefix=$ac_optarg ;;
671aa708
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
0b0dc272 474 program_prefix=$ac_optarg ;;
671aa708
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
0b0dc272 481 program_suffix=$ac_optarg ;;
671aa708
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
0b0dc272 498 program_transform_name=$ac_optarg ;;
671aa708
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
0b0dc272 508 sbindir=$ac_optarg ;;
671aa708
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
0b0dc272 519 sharedstatedir=$ac_optarg ;;
671aa708
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
0b0dc272 524 site=$ac_optarg ;;
671aa708
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
0b0dc272 529 srcdir=$ac_optarg ;;
671aa708
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
0b0dc272 536 sysconfdir=$ac_optarg ;;
671aa708
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
0b0dc272 539 ac_prev=target_alias ;;
671aa708 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
0b0dc272 541 target_alias=$ac_optarg ;;
671aa708
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
0b0dc272
AM
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
671aa708
NN
548
549 -with-* | --with-*)
0b0dc272 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 551 # Reject names that are not valid shell variable names.
0b0dc272
AM
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; }; }
671aa708 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
0b0dc272
AM
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
671aa708
NN
558 *) ac_optarg=yes ;;
559 esac
0b0dc272 560 eval "with_$ac_package='$ac_optarg'" ;;
671aa708
NN
561
562 -without-* | --without-*)
0b0dc272 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 564 # Reject names that are not valid shell variable names.
0b0dc272
AM
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" ;;
671aa708
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
0b0dc272 580 x_includes=$ac_optarg ;;
671aa708
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
0b0dc272 587 x_libraries=$ac_optarg ;;
671aa708 588
0b0dc272
AM
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
671aa708
NN
592 ;;
593
0b0dc272
AM
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
671aa708 604 *)
0b0dc272
AM
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
0b0dc272
AM
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; }; }
fb0103e5 619fi
671aa708 620
0b0dc272
AM
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
fb0103e5 631
0b0dc272
AM
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
671aa708 635do
0b0dc272
AM
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
671aa708
NN
641 esac
642done
643
0b0dc272
AM
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
a4b9e93e 650
0b0dc272
AM
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
671aa708 666
671aa708
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
0b0dc272
AM
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'`
671aa708
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
0b0dc272
AM
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
671aa708 695 else
0b0dc272
AM
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
732
733#
734# Report the --help message.
735#
736if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<_ACEOF
740\`configure' configures this package to adapt to many kinds of systems.
741
742Usage: $0 [OPTION]... [VAR=VALUE]...
743
744To assign environment variables (e.g., CC, CFLAGS...), specify them as
745VAR=VALUE. See below for descriptions of some of the useful variables.
746
747Defaults for the options are specified in brackets.
748
749Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
759
760_ACEOF
761
762 cat <<_ACEOF
763Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
768
769By default, \`make install' will install all the files in
770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772for instance \`--prefix=\$HOME'.
773
774For better control, use the options below.
775
776Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789_ACEOF
790
791 cat <<\_ACEOF
792
793Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
797
798System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801 --target=TARGET configure for building compilers for TARGET [HOST]
802_ACEOF
803fi
804
805if test -n "$ac_init_help"; then
806
807 cat <<\_ACEOF
808
809Optional Features:
810 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
811 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
812 --enable-libada Builds libada directory
813 --enable-libssp Builds libssp directory
814 --enable-objc-gc enable the use of Boehm's garbage collector with
815 the GNU Objective-C runtime.
816 --enable-bootstrap Enable bootstrapping yes if native build
817 --enable-serial-{host,target,build}-configure
818 Force sequential configuration of
819 sub-packages for the host, target or build
820 machine, or all sub-packages
821 --enable-maintainer-mode enable make rules and dependencies not useful
822 (and sometimes confusing) to the casual installer
823 --enable-stage1-checking=all choose additional checking for stage1
824 of the compiler.
825 --enable-werror enable -Werror in bootstrap stage2 and later
826
827Optional Packages:
828 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
829 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
830 --with-build-libsubdir=DIR Directory where to find libraries for build system
831 --with-mpfr-dir=PATH This option has been REMOVED
832 --with-mpfr=PATH Specify prefix directory for installed MPFR package
833 Equivalent to --with-mpfr-include=PATH/include
834 plus --with-mpfr-lib=PATH/lib
835 --with-mpfr-include=PATH
836 Specify directory for installed MPFR include files
837 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
838 --with-gmp-dir=PATH This option has been REMOVED
839 --with-gmp=PATH Specify prefix directory for the installed GMP package
840 Equivalent to --with-gmp-include=PATH/include
841 plus --with-gmp-lib=PATH/lib
842 --with-gmp-include=PATH Specify directory for installed GMP include files
843 --with-gmp-lib=PATH Specify the directory for the installed GMP library
844 --with-build-sysroot=sysroot
845 use sysroot as the system root during the build
846 --with-build-time-tools=path
847 use given path to find target tools during the build
848 --with-datarootdir Use datarootdir as the data root directory.
849 --with-docdir Install documentation in this directory.
850 --with-htmldir Install html in this directory.
851
852Some influential environment variables:
853 CC C compiler command
854 CFLAGS C compiler flags
855 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
856 nonstandard directory <lib dir>
857 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
858 headers in a nonstandard directory <include dir>
859
860Use these variables to override the choices made by `configure' or to help
861it to find libraries and programs with nonstandard names/locations.
862
863_ACEOF
a4b9e93e 864fi
a4b9e93e 865
0b0dc272
AM
866if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
868 ac_popdir=`pwd`
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
871 ac_builddir=.
872
873if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877else
878 ac_dir_suffix= ac_top_builddir=
879fi
880
881case $srcdir in
882 .) # No --srcdir option. We are building in place.
883 ac_srcdir=.
884 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=.
886 else
887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 fi ;;
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
892 *) # Relative path.
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895esac
896
897# Do not use `cd foo && pwd` to compute absolute paths, because
898# the directories may not exist.
899case `pwd` in
900.) ac_abs_builddir="$ac_dir";;
901*)
902 case "$ac_dir" in
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
906 esac;;
907esac
908case $ac_abs_builddir in
909.) ac_abs_top_builddir=${ac_top_builddir}.;;
910*)
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915 esac;;
916esac
917case $ac_abs_builddir in
918.) ac_abs_srcdir=$ac_srcdir;;
919*)
920 case $ac_srcdir in
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924 esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_top_srcdir=$ac_top_srcdir;;
928*)
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933 esac;;
934esac
935
936 cd $ac_dir
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
939 echo
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
942 echo
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
946 echo
947 $ac_configure --help
948 else
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 fi
951 cd $ac_popdir
952 done
953fi
954
955test -n "$ac_init_help" && exit 0
956if $ac_init_version; then
957 cat <<\_ACEOF
958
959Copyright (C) 2003 Free Software Foundation, Inc.
960This configure script is free software; the Free Software Foundation
961gives unlimited permission to copy, distribute and modify it.
962_ACEOF
963 exit 0
964fi
965exec 5>config.log
966cat >&5 <<_ACEOF
967This file contains any messages produced by compilers while
968running configure, to aid debugging if configure makes a mistake.
969
970It was created by $as_me, which was
971generated by GNU Autoconf 2.59. Invocation command line was
972
973 $ $0 $@
974
975_ACEOF
976{
977cat <<_ASUNAME
978## --------- ##
979## Platform. ##
980## --------- ##
981
982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983uname -m = `(uname -m) 2>/dev/null || echo unknown`
984uname -r = `(uname -r) 2>/dev/null || echo unknown`
985uname -s = `(uname -s) 2>/dev/null || echo unknown`
986uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990
991/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
998
999_ASUNAME
1000
1001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002for as_dir in $PATH
1003do
1004 IFS=$as_save_IFS
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1007done
1008
1009} >&5
1010
1011cat >&5 <<_ACEOF
1012
1013
1014## ----------- ##
1015## Core tests. ##
1016## ----------- ##
1017
1018_ACEOF
1019
1020
1021# Keep a trace of the command line.
1022# Strip out --no-create and --no-recursion so they do not pile up.
1023# Strip out --silent because we don't want to record it for future runs.
1024# Also quote any args containing shell meta-characters.
1025# Make two passes to allow for proper duplicate-argument suppression.
1026ac_configure_args=
1027ac_configure_args0=
1028ac_configure_args1=
1029ac_sep=
1030ac_must_keep_next=false
1031for ac_pass in 1 2
1032do
1033 for ac_arg
1034 do
1035 case $ac_arg in
1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1039 continue ;;
1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042 esac
1043 case $ac_pass in
1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 2)
1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047 if test $ac_must_keep_next = true; then
1048 ac_must_keep_next=false # Got value, back to normal.
1049 else
1050 case $ac_arg in
1051 *=* | --config-cache | -C | -disable-* | --disable-* \
1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054 | -with-* | --with-* | -without-* | --without-* | --x)
1055 case "$ac_configure_args0 " in
1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1057 esac
1058 ;;
1059 -* ) ac_must_keep_next=true ;;
1060 esac
1061 fi
1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063 # Get rid of the leading space.
1064 ac_sep=" "
1065 ;;
1066 esac
1067 done
1068done
1069$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071
1072# When interrupted or exit'd, cleanup temporary files, and complete
1073# config.log. We remove comments because anyway the quotes in there
1074# would cause problems or look ugly.
1075# WARNING: Be sure not to use single quotes in there, as some shells,
1076# such as our DU 5.0 friend, will then `close' the trap.
1077trap 'exit_status=$?
1078 # Save into config.log some information that might help in debugging.
1079 {
1080 echo
1081
1082 cat <<\_ASBOX
1083## ---------------- ##
1084## Cache variables. ##
1085## ---------------- ##
1086_ASBOX
1087 echo
1088 # The following way of writing the cache mishandles newlines in values,
1089{
1090 (set) 2>&1 |
1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092 *ac_space=\ *)
1093 sed -n \
1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096 ;;
1097 *)
1098 sed -n \
1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100 ;;
1101 esac;
1102}
1103 echo
1104
1105 cat <<\_ASBOX
1106## ----------------- ##
1107## Output variables. ##
1108## ----------------- ##
1109_ASBOX
1110 echo
1111 for ac_var in $ac_subst_vars
1112 do
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1115 done | sort
1116 echo
1117
1118 if test -n "$ac_subst_files"; then
1119 cat <<\_ASBOX
1120## ------------- ##
1121## Output files. ##
1122## ------------- ##
1123_ASBOX
1124 echo
1125 for ac_var in $ac_subst_files
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131 fi
1132
1133 if test -s confdefs.h; then
1134 cat <<\_ASBOX
1135## ----------- ##
1136## confdefs.h. ##
1137## ----------- ##
1138_ASBOX
1139 echo
1140 sed "/^$/d" confdefs.h | sort
1141 echo
1142 fi
1143 test "$ac_signal" != 0 &&
1144 echo "$as_me: caught signal $ac_signal"
1145 echo "$as_me: exit $exit_status"
1146 } >&5
1147 rm -f core *.core &&
1148 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1149 exit $exit_status
1150 ' 0
1151for ac_signal in 1 2 13 15; do
1152 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153done
1154ac_signal=0
1155
1156# confdefs.h avoids OS command line length limits that DEFS can exceed.
1157rm -rf conftest* confdefs.h
1158# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1159echo >confdefs.h
1160
1161# Predefined preprocessor variables.
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_NAME "$PACKAGE_NAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_VERSION "$PACKAGE_VERSION"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_STRING "$PACKAGE_STRING"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185_ACEOF
1186
1187
1188# Let the site file select an alternate cache file if it wants to.
671aa708 1189# Prefer explicitly selected file to automatically selected ones.
bba5e0ca
EB
1190if test -z "$CONFIG_SITE"; then
1191 if test "x$prefix" != xNONE; then
1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193 else
1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
671aa708
NN
1195 fi
1196fi
1197for ac_site_file in $CONFIG_SITE; do
1198 if test -r "$ac_site_file"; then
0b0dc272
AM
1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200echo "$as_me: loading site script $ac_site_file" >&6;}
1201 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
1202 . "$ac_site_file"
1203 fi
1204done
1205
1206if test -r "$cache_file"; then
0b0dc272
AM
1207 # Some versions of bash will fail to source /dev/null (special
1208 # files actually), so we avoid doing that.
1209 if test -f "$cache_file"; then
1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211echo "$as_me: loading cache $cache_file" >&6;}
1212 case $cache_file in
1213 [\\/]* | ?:[\\/]* ) . $cache_file;;
1214 *) . ./$cache_file;;
1215 esac
1216 fi
671aa708 1217else
0b0dc272
AM
1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219echo "$as_me: creating cache $cache_file" >&6;}
1220 >$cache_file
1221fi
1222
1223# Check that the precious variables saved in the cache have kept the same
1224# value.
1225ac_cache_corrupted=false
1226for ac_var in `(set) 2>&1 |
1227 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229 eval ac_new_set=\$ac_env_${ac_var}_set
1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231 eval ac_new_val="\$ac_env_${ac_var}_value"
1232 case $ac_old_set,$ac_new_set in
1233 set,)
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1237 ,set)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,);;
1242 *)
1243 if test "x$ac_old_val" != "x$ac_new_val"; then
1244 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1247echo "$as_me: former value: $ac_old_val" >&2;}
1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1249echo "$as_me: current value: $ac_new_val" >&2;}
1250 ac_cache_corrupted=:
1251 fi;;
1252 esac
1253 # Pass precious variables to config.status.
1254 if test "$ac_new_set" = set; then
1255 case $ac_new_val in
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 *) ac_arg=$ac_var=$ac_new_val ;;
1259 esac
1260 case " $ac_configure_args " in
1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263 esac
1264 fi
1265done
1266if $ac_cache_corrupted; then
1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271 { (exit 1); exit 1; }; }
671aa708
NN
1272fi
1273
1274ac_ext=c
671aa708 1275ac_cpp='$CPP $CPPFLAGS'
0b0dc272
AM
1276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278ac_compiler_gnu=$ac_cv_c_compiler_gnu
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
671aa708
NN
1296
1297
d02c69be 1298
671aa708 1299ac_aux_dir=
4c4a5bbc 1300for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
671aa708
NN
1301 if test -f $ac_dir/install-sh; then
1302 ac_aux_dir=$ac_dir
1303 ac_install_sh="$ac_aux_dir/install-sh -c"
1304 break
1305 elif test -f $ac_dir/install.sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install.sh -c"
1308 break
0b0dc272
AM
1309 elif test -f $ac_dir/shtool; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/shtool install -c"
1312 break
671aa708
NN
1313 fi
1314done
1315if test -z "$ac_aux_dir"; then
0b0dc272
AM
1316 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1317echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1318 { (exit 1); exit 1; }; }
671aa708 1319fi
0b0dc272
AM
1320ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1321ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1322ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
671aa708 1323
0b0dc272
AM
1324# Make sure we can run config.sub.
1325$ac_config_sub sun4 >/dev/null 2>&1 ||
1326 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1327echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1328 { (exit 1); exit 1; }; }
1329
1330echo "$as_me:$LINENO: checking build system type" >&5
1331echo $ECHO_N "checking build system type... $ECHO_C" >&6
1332if test "${ac_cv_build+set}" = set; then
1333 echo $ECHO_N "(cached) $ECHO_C" >&6
1334else
1335 ac_cv_build_alias=$build_alias
1336test -z "$ac_cv_build_alias" &&
1337 ac_cv_build_alias=`$ac_config_guess`
1338test -z "$ac_cv_build_alias" &&
1339 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1340echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1341 { (exit 1); exit 1; }; }
1342ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1344echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1345 { (exit 1); exit 1; }; }
1346
1347fi
1348echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1349echo "${ECHO_T}$ac_cv_build" >&6
1350build=$ac_cv_build
1351build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1352build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1353build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1354
1355
1356echo "$as_me:$LINENO: checking host system type" >&5
1357echo $ECHO_N "checking host system type... $ECHO_C" >&6
1358if test "${ac_cv_host+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360else
1361 ac_cv_host_alias=$host_alias
1362test -z "$ac_cv_host_alias" &&
1363 ac_cv_host_alias=$ac_cv_build_alias
1364ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1366echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369fi
1370echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1371echo "${ECHO_T}$ac_cv_host" >&6
1372host=$ac_cv_host
1373host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378echo "$as_me:$LINENO: checking target system type" >&5
1379echo $ECHO_N "checking target system type... $ECHO_C" >&6
1380if test "${ac_cv_target+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 ac_cv_target_alias=$target_alias
1384test "x$ac_cv_target_alias" = "x" &&
1385 ac_cv_target_alias=$ac_cv_host_alias
1386ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1388echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1390
1391fi
1392echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1393echo "${ECHO_T}$ac_cv_target" >&6
1394target=$ac_cv_target
1395target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
671aa708 1398
671aa708
NN
1399
1400# The aliases save the names the user supplied, while $host etc.
1401# will get canonicalized.
0b0dc272 1402test -n "$target_alias" &&
671aa708
NN
1403 test "$program_prefix$program_suffix$program_transform_name" = \
1404 NONENONEs,x,x, &&
1405 program_prefix=${target_alias}-
671aa708 1406test "$program_prefix" != NONE &&
0b0dc272 1407 program_transform_name="s,^,$program_prefix,;$program_transform_name"
671aa708
NN
1408# Use a double $ so make ignores it.
1409test "$program_suffix" != NONE &&
0b0dc272
AM
1410 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1411# Double any \ or $. echo might interpret backslashes.
1412# By default was `s,x,x', remove it if useless.
1413cat <<\_ACEOF >conftest.sed
1414s/[\\$]/&&/g;s/;s,x,x,$//
1415_ACEOF
1416program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1417rm conftest.sed
671aa708
NN
1418
1419
775956d0
NN
1420# Get 'install' or 'install-sh' and its variants.
1421# Find a good install program. We prefer a C program (faster),
1422# so one script is as good as another. But avoid the broken or
1423# incompatible versions:
1424# SysV /etc/install, /usr/sbin/install
1425# SunOS /usr/etc/install
1426# IRIX /sbin/install
1427# AIX /bin/install
0b0dc272 1428# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
1429# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1430# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1431# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
0b0dc272 1432# OS/2's system install, which has a completely different semantic
775956d0 1433# ./install, which can be erroneously created by make from ./install.sh.
0b0dc272
AM
1434echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1435echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
775956d0 1436if test -z "$INSTALL"; then
0b0dc272
AM
1437if test "${ac_cv_path_install+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441for as_dir in $PATH
1442do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 # Account for people who put trailing slashes in PATH elements.
1446case $as_dir/ in
1447 ./ | .// | /cC/* | \
1448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1449 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1450 /usr/ucb/* ) ;;
1451 *)
1452 # OSF1 and SCO ODT 3.0 have their own names for install.
1453 # Don't use installbsd from OSF since it installs stuff as root
1454 # by default.
1455 for ac_prog in ginstall scoinst install; do
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 1458 if test $ac_prog = install &&
0b0dc272 1459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
1460 # AIX install. It has an incompatible calling convention.
1461 :
0b0dc272
AM
1462 elif test $ac_prog = install &&
1463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464 # program-specific install script used by HP pwplus--don't use.
1465 :
775956d0 1466 else
0b0dc272
AM
1467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1468 break 3
775956d0
NN
1469 fi
1470 fi
1471 done
0b0dc272
AM
1472 done
1473 ;;
1474esac
1475done
1476
775956d0
NN
1477
1478fi
1479 if test "${ac_cv_path_install+set}" = set; then
0b0dc272 1480 INSTALL=$ac_cv_path_install
775956d0
NN
1481 else
1482 # As a last resort, use the slow shell script. We don't cache a
1483 # path for INSTALL within a source directory, because that will
1484 # break other packages using the cache if that directory is
1485 # removed, or if the path is relative.
0b0dc272 1486 INSTALL=$ac_install_sh
775956d0
NN
1487 fi
1488fi
0b0dc272
AM
1489echo "$as_me:$LINENO: result: $INSTALL" >&5
1490echo "${ECHO_T}$INSTALL" >&6
775956d0
NN
1491
1492# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1493# It thinks the first close brace ends the variable substitution.
1494test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1495
0b0dc272 1496test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
1497
1498test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1499
0b0dc272
AM
1500echo "$as_me:$LINENO: checking whether ln works" >&5
1501echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1502if test "${acx_cv_prog_LN+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6717df
PB
1504else
1505 rm -f conftestdata_t
1506echo >conftestdata_f
1507if ln conftestdata_f conftestdata_t 2>/dev/null
1508then
1509 acx_cv_prog_LN=ln
1510else
1511 acx_cv_prog_LN=no
1512fi
1513rm -f conftestdata_f conftestdata_t
1514
1515fi
1516if test $acx_cv_prog_LN = no; then
1517 LN="cp"
0b0dc272
AM
1518 echo "$as_me:$LINENO: result: no, using $LN" >&5
1519echo "${ECHO_T}no, using $LN" >&6
ad6717df
PB
1520else
1521 LN="$acx_cv_prog_LN"
0b0dc272
AM
1522 echo "$as_me:$LINENO: result: yes" >&5
1523echo "${ECHO_T}yes" >&6
ad6717df
PB
1524fi
1525
0b0dc272
AM
1526echo "$as_me:$LINENO: checking whether ln -s works" >&5
1527echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1528LN_S=$as_ln_s
1529if test "$LN_S" = "ln -s"; then
1530 echo "$as_me:$LINENO: result: yes" >&5
1531echo "${ECHO_T}yes" >&6
fb0103e5 1532else
0b0dc272
AM
1533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1534echo "${ECHO_T}no, using $LN_S" >&6
148907ea
PB
1535fi
1536
775956d0 1537
79c06341 1538### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
1539### If we are on Windows, search for the shell. This will permit people
1540### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1541### without also having to set CONFIG_SHELL. This code will work when
1542### using bash, which sets OSTYPE.
1543case "${OSTYPE}" in
1544*win32*)
671aa708
NN
1545 if test x${CONFIG_SHELL} = x ; then
1546 if test ! -f /bin/sh ; then
1547 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
1548 CONFIG_SHELL=${SHELL}
1549 export CONFIG_SHELL
1550 else
1551 for prog in sh sh.exe bash bash.exe; do
1552 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1553 for dir in $PATH; do
1554 test -z "$dir" && dir=.
1555 if test -f $dir/$prog; then
1556 CONFIG_SHELL=$dir/$prog
1557 export CONFIG_SHELL
1558 break
1559 fi
1560 done
1561 IFS="$save_ifs"
1562 test -n "${CONFIG_SHELL}" && break
1563 done
1564 fi
1565 fi
1566 fi
1567 ;;
1568esac
1569
1570config_shell=${CONFIG_SHELL-/bin/sh}
1571
79c06341
JL
1572progname=$0
1573# if PWD already has a value, it is probably wrong.
671aa708 1574if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
79c06341 1575
b348267b 1576# Export original configure arguments for use by sub-configures. These
eeae7b41
DJ
1577# will be expanded by make, so quote '$'.
1578tmp="$progname $@"
1579sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1580$tmp
b348267b 1581EOF_SED
eeae7b41
DJ
1582TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1583rm -f conftestsed.out
3dfabf63 1584
cc1e60ea 1585
671aa708 1586moveifchange=${srcdir}/move-if-change
79c06341 1587
ee6a22df
L
1588srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1589
1590# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1591# a relative path.
1592if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1593 INSTALL="${srcpwd}/install-sh -c"
1594fi
1595
671aa708
NN
1596# Set srcdir to "." if that's what it is.
1597# This is important for multilib support.
1598pwd=`${PWDCMD-pwd}`
671aa708
NN
1599if test "${pwd}" = "${srcpwd}" ; then
1600 srcdir=.
79c06341
JL
1601fi
1602
671aa708 1603topsrcdir=$srcpwd
5d4a5ee6 1604
671aa708 1605extra_host_args=
afabd8e6 1606
671aa708
NN
1607### To add a new directory to the tree, first choose whether it is a target
1608### or a host dependent tool. Then put it into the appropriate list
1609### (library or tools, host or target), doing a dependency sort.
79c06341 1610
0b0dc272 1611# Subdirs will be configured in the order listed in build_configdirs,
671aa708 1612# configdirs, or target_configdirs; see the serialization section below.
79c06341 1613
0b0dc272
AM
1614# Dependency sorting is only needed when *configuration* must be done in
1615# a particular order. In all cases a dependency should be specified in
671aa708 1616# the Makefile, whether or not it's implicitly specified here.
79c06341 1617
671aa708
NN
1618# Double entries in build_configdirs, configdirs, or target_configdirs may
1619# cause circular dependencies and break everything horribly.
79c06341 1620
23f6b2f9
PB
1621# these library is used by various programs built for the build
1622# environment
1623#
1624build_libs="build-libiberty"
1625
1626# these tools are built for the build environment
71b5d516 1627build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 1628
671aa708
NN
1629# these libraries are used by various programs built for the host environment
1630#
a4b6c45a 1631host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber"
671aa708 1632
671aa708
NN
1633# these tools are built for the host environment
1634# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1635# know that we are building the simulator.
1636# binutils, gas and ld appear in that order because it makes sense to run
1637# "make check" in that particular order.
5395b47b 1638host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
1639
1640# libgcj represents the runtime libraries only used by gcj.
1641libgcj="target-libffi \
671aa708
NN
1642 target-zlib \
1643 target-qthreads \
1644 target-libjava"
1645
1646# these libraries are built for the target environment, and are built after
1647# the host libraries and the host tools (which may be a cross compiler)
1648#
4dbda6f0 1649target_libraries="target-libiberty \
671aa708
NN
1650 target-libgloss \
1651 target-newlib \
cb543528 1652 target-libstdc++-v3 \
6de9cd9a 1653 target-libmudflap \
77008252 1654 target-libssp \
6de9cd9a 1655 target-libgfortran \
7cd0cf9c 1656 target-boehm-gc \
77d187bc 1657 ${libgcj} \
d9cdb878 1658 target-libobjc \
953ff289
DN
1659 target-libada \
1660 target-libgomp"
671aa708 1661
4dbda6f0
NN
1662# these tools are built using the target libraries, and are intended to
1663# run only in the target environment
671aa708 1664#
4dbda6f0 1665# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
1666# list belongs in this list. those programs are also very likely
1667# candidates for the "native_only" list which follows
1668#
97286f7f 1669target_tools="target-examples target-groff target-gperf target-rda"
79c06341 1670
671aa708 1671################################################################################
79c06341 1672
671aa708
NN
1673## All tools belong in one of the four categories, and are assigned above
1674## We assign ${configdirs} this way to remove all embedded newlines. This
1675## is important because configure will choke if they ever get through.
1676## ${configdirs} is directories we build using the host tools.
1677## ${target_configdirs} is directories we build using the target tools.
671aa708 1678configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 1679target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 1680build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 1681
671aa708 1682################################################################################
79c06341 1683
671aa708 1684srcname="gnu development package"
79c06341 1685
671aa708
NN
1686# This gets set non-empty for some net releases of packages.
1687appdirs=""
79c06341 1688
671aa708
NN
1689# Define is_cross_compiler to save on calls to 'test'.
1690is_cross_compiler=
1691if test x"${host}" = x"${target}" ; then
1692 is_cross_compiler=no
79c06341 1693else
671aa708 1694 is_cross_compiler=yes
0b0dc272 1695fi
79c06341 1696
b4acb5ef 1697# Find the build and target subdir names.
8b87bb96
NN
1698 case ${build_alias} in
1699 "") build_noncanonical=${build} ;;
1700 *) build_noncanonical=${build_alias} ;;
1701esac
1702
1703 case ${host_alias} in
1704 "") host_noncanonical=${build_noncanonical} ;;
1705 *) host_noncanonical=${host_alias} ;;
1706esac
1707
1708 case ${target_alias} in
1709 "") target_noncanonical=${host_noncanonical} ;;
1710 *) target_noncanonical=${target_alias} ;;
1711esac
1712
0b0dc272 1713
2e9e6f68
DJ
1714# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1715# have matching libraries, they should use host libraries: Makefile.tpl
1716# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1717# However, they still use the build modules, because the corresponding
1718# host modules (e.g. bison) are only built for the host when bootstrap
1719# finishes. So:
1720# - build_subdir is where we find build modules, and never changes.
1721# - build_libsubdir is where we find build libraries, and can be overridden.
1722
1723# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 1724build_subdir="build-${build_noncanonical}"
0b0dc272 1725
2e9e6f68
DJ
1726# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1727if test "${with_build_libsubdir+set}" = set; then
1728 withval="$with_build_libsubdir"
1729 build_libsubdir="$withval"
1730else
1731 build_libsubdir="$build_subdir"
0b0dc272 1732fi;
215c351a
PB
1733# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1734if ( test $srcdir = . && test -d gcc ) \
1735 || test -d $srcdir/../host-${host_noncanonical}; then
1736 host_subdir="host-${host_noncanonical}"
1737else
1738 host_subdir=.
1739fi
8b87bb96
NN
1740# No prefix.
1741target_subdir=${target_noncanonical}
0b0dc272 1742
79c06341 1743
671aa708
NN
1744# Skipdirs are removed silently.
1745skipdirs=
1746# Noconfigdirs are removed loudly.
1747noconfigdirs=""
79c06341 1748
671aa708
NN
1749use_gnu_ld=
1750# Make sure we don't let GNU ld be added if we didn't want it.
1751if test x$with_gnu_ld = xno ; then
1752 use_gnu_ld=no
1753 noconfigdirs="$noconfigdirs ld"
79c06341
JL
1754fi
1755
671aa708
NN
1756use_gnu_as=
1757# Make sure we don't let GNU as be added if we didn't want it.
1758if test x$with_gnu_as = xno ; then
1759 use_gnu_as=no
1760 noconfigdirs="$noconfigdirs gas"
79c06341
JL
1761fi
1762
0b0dc272 1763# some tools are so dependent upon X11 that if we're not building with X,
671aa708 1764# it's not even worth trying to configure, much less build, that tool.
79c06341 1765
671aa708
NN
1766case ${with_x} in
1767 yes | "") ;; # the default value for this tree is that X11 is available
1768 no)
b4f96efe 1769 skipdirs="${skipdirs} tk itcl libgui"
671aa708 1770 # We won't be able to build gdbtk without X.
0b0dc272 1771 enable_gdbtk=no
671aa708
NN
1772 ;;
1773 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1774esac
79c06341 1775
671aa708 1776# Some tools are only suitable for building in a "native" situation.
0b0dc272 1777# Remove these if host!=target.
9e299237 1778native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 1779
671aa708
NN
1780# Similarly, some are only suitable for cross toolchains.
1781# Remove these if host=target.
1782cross_only="target-libgloss target-newlib target-opcodes"
1783
1784case $is_cross_compiler in
1785 no) skipdirs="${skipdirs} ${cross_only}" ;;
1786 yes) skipdirs="${skipdirs} ${native_only}" ;;
1787esac
79c06341 1788
671aa708
NN
1789# If both --with-headers and --with-libs are specified, default to
1790# --without-newlib.
ee6a22df
L
1791if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1792 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
1793 if test x"${with_newlib}" = x ; then
1794 with_newlib=no
1795 fi
79c06341
JL
1796fi
1797
671aa708
NN
1798# Recognize --with-newlib/--without-newlib.
1799case ${with_newlib} in
1800 no) skipdirs="${skipdirs} target-newlib" ;;
1801 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1802esac
79c06341 1803
671aa708 1804# Configure extra directories which are host specific
79c06341 1805
671aa708
NN
1806case "${host}" in
1807 *-cygwin*)
1808 configdirs="$configdirs libtermcap" ;;
1809esac
79c06341 1810
4fab7234
HPN
1811# A target can indicate whether a language isn't supported for some reason.
1812# Only spaces may be used in this macro; not newlines or tabs.
1813unsupported_languages=
1814
0b0dc272 1815# Remove more programs from consideration, based on the host or
671aa708
NN
1816# target this usually means that a port of the program doesn't
1817# exist yet.
ec8d6ddc 1818
671aa708
NN
1819case "${host}" in
1820 hppa*64*-*-*)
1821 noconfigdirs="$noconfigdirs byacc"
1822 ;;
f2a0e225 1823 i[3456789]86-*-vsta)
b4f96efe 1824 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 1825 ;;
f2a0e225 1826 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 1827 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 1828 ;;
f2a0e225 1829 i[3456789]86-*-mingw32*)
b4f96efe 1830 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 1831 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 1832 ;;
f2a0e225 1833 i[3456789]86-*-beos*)
b4f96efe 1834 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 1835 ;;
671aa708 1836 *-*-cygwin*)
a22c2d8d 1837 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
1838 ;;
1839 *-*-netbsd*)
a22c2d8d 1840 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
1841 ;;
1842 ppc*-*-pe)
b4f96efe 1843 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
1844 ;;
1845 powerpc-*-beos*)
b4f96efe 1846 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 1847 ;;
671aa708 1848esac
ec8d6ddc 1849
6de9cd9a 1850
d9cdb878
AC
1851# Check whether --enable-libada or --disable-libada was given.
1852if test "${enable_libada+set}" = set; then
1853 enableval="$enable_libada"
1854 ENABLE_LIBADA=$enableval
1855else
1856 ENABLE_LIBADA=yes
0b0dc272 1857fi;
d9cdb878 1858if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 1859 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
1860fi
1861
ef0087a7
KH
1862# Check whether --enable-libssp or --disable-libssp was given.
1863if test "${enable_libssp+set}" = set; then
1864 enableval="$enable_libssp"
1865 ENABLE_LIBSSP=$enableval
1866else
1867 ENABLE_LIBSSP=yes
0b0dc272 1868fi;
ef0087a7 1869
671aa708
NN
1870# Save it here so that, even in case of --enable-libgcj, if the Java
1871# front-end isn't enabled, we still get libgcj disabled.
1872libgcj_saved=$libgcj
1873case $enable_libgcj in
1874yes)
1875 # If we reset it here, it won't get added to noconfigdirs in the
1876 # target-specific build rules, so it will be forcibly enabled
1877 # (unless the Java language itself isn't enabled).
1878 libgcj=
1879 ;;
1880no)
1881 # Make sure we get it printed in the list of not supported target libs.
1882 noconfigdirs="$noconfigdirs ${libgcj}"
1883 ;;
1884esac
ec8d6ddc 1885
6de9cd9a 1886
27079765
AH
1887# Disable libmudflap on some systems.
1888if test x$enable_libmudflap = x ; then
dfcada9a 1889 case "${target}" in
670cbfcf 1890 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
98a5bb3b 1891 # Enable libmudflap by default in GNU and friends.
dfcada9a 1892 ;;
a3e8d8b4
LR
1893 *-*-freebsd*)
1894 # Enable libmudflap by default in FreeBSD.
1895 ;;
dfcada9a
MM
1896 *)
1897 # Disable it by default everywhere else.
1898 noconfigdirs="$noconfigdirs target-libmudflap"
1899 ;;
1900 esac
27079765 1901fi
6de9cd9a 1902
27079765
AH
1903# Disable libgomp on non POSIX hosted systems.
1904if test x$enable_libgomp = x ; then
953ff289
DN
1905 # Enable libgomp by default on hosted POSIX systems.
1906 case "${target}" in
670cbfcf 1907 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
953ff289
DN
1908 ;;
1909 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1910 ;;
04879af3 1911 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 1912 ;;
cac90078 1913 *-*-darwin* | *-*-aix*)
953ff289
DN
1914 ;;
1915 *)
1916 noconfigdirs="$noconfigdirs target-libgomp"
1917 ;;
1918 esac
27079765 1919fi
953ff289 1920
6de9cd9a 1921
671aa708
NN
1922case "${target}" in
1923 *-*-chorusos)
cb253473 1924 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 1925 ;;
42c1cd8a 1926 powerpc-*-darwin* | i[3456789]86-*-darwin*)
55eb837d 1927 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
9c8f9ec2 1928 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 1929 ;;
42c1cd8a
AT
1930 *-*-darwin*)
1931 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1932 noconfigdirs="$noconfigdirs sim target-rda"
1933 noconfigdirs="$noconfigdirs ${libgcj}"
1934 ;;
671aa708 1935 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 1936 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 1937 ;;
c3f84f61 1938 *-*-freebsd*)
6de9cd9a
DN
1939 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1940 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1941 && test -f /usr/local/include/gmp.h; then
1942 with_gmp=/usr/local
1943 fi
1944
1945 # Skip some stuff that's unsupported on some FreeBSD configurations.
1946 case "${target}" in
1947 i*86-*-*) ;;
1948 alpha*-*-*) ;;
1949 *)
cb253473 1950 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
1951 ;;
1952 esac
1953 ;;
ef4e7569
US
1954 *-*-kaos*)
1955 # Remove unsupported stuff on all kaOS configurations.
cb253473 1956 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
1957 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1958 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1959 noconfigdirs="$noconfigdirs target-libgloss"
1960 ;;
671aa708
NN
1961 *-*-netbsd*)
1962 # Skip some stuff on all NetBSD configurations.
1963 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1964
1965 # Skip some stuff that's unsupported on some NetBSD configurations.
1966 case "${target}" in
1967 i*86-*-netbsdelf*) ;;
0590b963 1968 arm*-*-netbsdelf*) ;;
671aa708 1969 *)
cb253473 1970 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
1971 ;;
1972 esac
1973 ;;
61fec9ff 1974 *-*-netware*)
cb253473 1975 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
1976 ;;
1977 *-*-rtems*)
cb253473 1978 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 1979 ;;
a8ba31f2
EC
1980 # The tpf target doesn't support gdb yet.
1981 *-*-tpf*)
cb253473 1982 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 1983 ;;
5785c0ed 1984 *-*-uclinux*)
cb253473 1985 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 1986 ;;
671aa708 1987 *-*-vxworks*)
cb253473 1988 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
1989 ;;
1990 alpha*-dec-osf*)
1991 # ld works, but does not support shared libraries.
1992 # newlib is not 64 bit ready. I'm not sure about fileutils.
1993 # gas doesn't generate exception information.
1994 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
1995 ;;
1996 alpha*-*-*vms*)
cb253473 1997 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
1998 ;;
1999 alpha*-*-linux*)
2000 # newlib is not 64 bit ready
2001 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2002 ;;
671aa708
NN
2003 alpha*-*-*)
2004 # newlib is not 64 bit ready
cb253473 2005 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2006 ;;
33952f6f 2007 am33_2.0-*-linux*)
cb253473 2008 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 2009 ;;
671aa708 2010 sh-*-linux*)
cb253473 2011 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
0b0dc272 2012 ;;
671aa708 2013 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 2014 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2015 noconfigdirs="$noconfigdirs target-examples"
2016 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 2017 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
2018 noconfigdirs="$noconfigdirs expect dejagnu"
2019 # the C++ libraries don't build on top of CE's C libraries
cb543528 2020 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
2021 noconfigdirs="$noconfigdirs target-newlib"
2022 case "${host}" in
2023 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 2024 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
2025 ;;
2026 esac
2027 ;;
2028 arc-*-*)
cb253473 2029 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2030 ;;
ee6a22df 2031 arm-semi-aof )
ee6a22df 2032 ;;
671aa708 2033 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 2034 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2035 ;;
b3f8d95d 2036 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708
NN
2037 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2038 ;;
077fc835
KH
2039 arm*-*-linux-gnueabi)
2040 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2041 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2042 ;;
972974fc 2043 arm*-*-symbianelf*)
cb253473 2044 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
972974fc 2045 ;;
671aa708 2046 arm-*-pe*)
cb253473 2047 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2048 ;;
671aa708 2049 thumb-*-coff)
cb253473 2050 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2051 ;;
2052 thumb-*-elf)
cb253473 2053 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2054 ;;
671aa708 2055 thumb-*-pe)
cb253473 2056 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2057 ;;
2058 arm-*-riscix*)
cb253473 2059 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
2060 ;;
2061 avr-*-*)
cb253473 2062 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2063 ;;
6b65a26d 2064 bfin-*-*)
8b3c6c5a 2065 noconfigdirs="$noconfigdirs gdb"
61efc800 2066 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
2067 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2068 fi
2069 ;;
671aa708 2070 c4x-*-* | tic4x-*-*)
cb253473 2071 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2072 ;;
2073 c54x*-*-* | tic54x-*-*)
cb253473 2074 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 2075 ;;
40d64b5a 2076 cris-*-* | crisv32-*-*)
4fab7234 2077 unsupported_languages="$unsupported_languages java"
40d64b5a 2078 case "${target}" in
c2e0d3a9 2079 *-*-aout)
7f26dfa3 2080 unsupported_languages="$unsupported_languages fortran"
4fab7234 2081 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 2082 *-*-elf)
7f26dfa3 2083 unsupported_languages="$unsupported_languages fortran"
789ec619 2084 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 2085 *-*-linux*)
789ec619 2086 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 2087 *)
7f26dfa3 2088 unsupported_languages="$unsupported_languages fortran"
cb253473 2089 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 2090 esac
671aa708 2091 ;;
25b656e7 2092 crx-*-*)
cb253473 2093 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 2094 ;;
671aa708 2095 d10v-*-*)
cb253473 2096 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
2097 ;;
2098 d30v-*-*)
cb253473 2099 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2100 ;;
2101 fr30-*-elf*)
cb253473 2102 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
2103 ;;
2104 frv-*-*)
cb253473 2105 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2106 ;;
2107 h8300*-*-*)
cb253473 2108 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2109 ;;
2110 h8500-*-*)
cb253473 2111 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2112 ;;
ee6a22df 2113 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 2114 ;;
671aa708
NN
2115 hppa*64*-*-linux* | parisc*64*-*-linux*)
2116 # In this case, it's because the hppa64-linux target is for
2117 # the kernel only at this point and has no libc, and thus no
2118 # headers, crt*.o, etc., all of which are needed by these.
2119 noconfigdirs="$noconfigdirs target-zlib"
2120 ;;
3e732ba0
JDA
2121 parisc*-*-linux* | hppa*-*-linux*)
2122 ;;
671aa708 2123 hppa*-*-*elf* | \
671aa708
NN
2124 hppa*-*-lites* | \
2125 hppa*-*-openbsd* | \
2126 hppa*64*-*-*)
cb253473 2127 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2128 ;;
2a332582
JDA
2129 hppa*-hp-hpux11*)
2130 noconfigdirs="$noconfigdirs ld shellutils"
2131 ;;
671aa708
NN
2132 hppa*-*-*)
2133 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2134 # build on HP-UX 10.20.
cb253473 2135 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 2136 ;;
fb87ad5d 2137 i960-*-*)
cb253473 2138 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 2139 ;;
671aa708
NN
2140 ia64*-*-elf*)
2141 # No gdb support yet.
b4f96efe 2142 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
2143 ;;
2144 ia64*-**-hpux*)
2145 # No gdb or ld support yet.
cb253473 2146 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 2147 ;;
ee6a22df 2148 i370-*-opened*)
ee6a22df 2149 ;;
f2a0e225 2150 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 2151 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2152 ;;
f2a0e225 2153 i[3456789]86-*-linux*)
671aa708
NN
2154 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2155 # not build java stuff by default.
2156 case "${target}" in
2157 *-*-*libc1*)
cb253473 2158 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
2159 esac
2160
2161 # This section makes it possible to build newlib natively on linux.
2162 # If we are using a cross compiler then don't configure newlib.
2163 if test x${is_cross_compiler} != xno ; then
3aa83176 2164 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
2165 fi
2166 noconfigdirs="$noconfigdirs target-libgloss"
2167 # If we are not using a cross compiler, do configure newlib.
2168 # Note however, that newlib will only be configured in this situation
2169 # if the --with-newlib option has been given, because otherwise
2170 # 'target-newlib' will appear in skipdirs.
2171 ;;
f2a0e225 2172 i[3456789]86-*-mingw32*)
b91f0a41
CV
2173 target_configdirs="$target_configdirs target-winsup"
2174 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
0b0dc272 2175 ;;
671aa708
NN
2176 *-*-cygwin*)
2177 target_configdirs="$target_configdirs target-libtermcap target-winsup"
cb253473 2178 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
801e2270 2179 # always build newlib if winsup directory is present.
b91f0a41 2180 if test -d "$srcdir/winsup/cygwin"; then
801e2270 2181 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 2182 elif test -d "$srcdir/newlib"; then
b91f0a41 2183 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 2184 fi
0b0dc272 2185 ;;
ee6a22df
L
2186 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2187 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 2188 ;;
f2a0e225 2189 i[3456789]86-*-pe)
cb253473 2190 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 2191 ;;
f2a0e225 2192 i[3456789]86-*-sco3.2v5*)
671aa708
NN
2193 # The linker does not yet know about weak symbols in COFF,
2194 # and is not configured to handle mixed ELF and COFF.
cb253473 2195 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 2196 ;;
f2a0e225 2197 i[3456789]86-*-sco*)
cb253473 2198 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2199 ;;
f2a0e225 2200 i[3456789]86-*-solaris2*)
671aa708
NN
2201 noconfigdirs="$noconfigdirs target-libgloss"
2202 ;;
f2a0e225 2203 i[3456789]86-*-sysv4*)
cb253473 2204 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2205 ;;
f2a0e225 2206 i[3456789]86-*-beos*)
cb253473 2207 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 2208 ;;
d1f8db0c
PB
2209 i[3456789]86-*-rdos*)
2210 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2211 ;;
fb87ad5d 2212 m32r-*-*)
cb253473 2213 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 2214 ;;
671aa708 2215 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 2216 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
2217 ;;
2218 m68k-*-elf*)
cb253473 2219 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2220 ;;
2221 m68k-*-coff*)
cb253473 2222 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2223 ;;
2224 mcore-*-pe*)
2225 # The EPOC C++ environment does not support exceptions or rtti,
2226 # and so building libstdc++-v3 tends not to always work.
2227 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2228 ;;
2229 mmix-*-*)
4fab7234 2230 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 2231 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
2232 ;;
2233 mn10200-*-*)
cb253473 2234 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2235 ;;
2236 mn10300-*-*)
cb253473 2237 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 2238 ;;
ab34901f 2239 mt-*-*)
79dd769c
AH
2240 noconfigdirs="$noconfigdirs sim"
2241 ;;
671aa708
NN
2242 powerpc-*-aix*)
2243 # copied from rs6000-*-* entry
cb253473 2244 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2245 ;;
2246 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2247 target_configdirs="$target_configdirs target-winsup"
cb253473 2248 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
2249 # always build newlib.
2250 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2251 ;;
2252 # This is temporary until we can link against shared libraries
2253 powerpcle-*-solaris*)
cb253473 2254 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
671aa708
NN
2255 ;;
2256 powerpc-*-beos*)
cb253473 2257 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 2258 ;;
671aa708 2259 powerpc-*-eabi)
cb253473 2260 noconfigdirs="$noconfigdirs ${libgcj}"
ee6a22df
L
2261 ;;
2262 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
671aa708 2263 ;;
671aa708 2264 rs6000-*-lynxos*)
cb253473 2265 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
2266 ;;
2267 rs6000-*-aix*)
cb253473 2268 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
671aa708
NN
2269 ;;
2270 rs6000-*-*)
cb253473 2271 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2272 ;;
2273 m68k-apollo-*)
cb253473 2274 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708
NN
2275 ;;
2276 mips*-*-irix5*)
cb253473 2277 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
2278 ;;
2279 mips*-*-irix6*)
671aa708
NN
2280 # Linking libjava exceeds command-line length limits on at least
2281 # IRIX 6.2, but not on IRIX 6.5.
2282 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2283 # <oldham@codesourcery.com>
cb253473 2284 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2285 ;;
671aa708 2286 mips*-*-bsd*)
cb253473 2287 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 2288 ;;
d0fe5ad3 2289 mips64*-*-linux*)
1ee4c5a0 2290 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
d0fe5ad3 2291 ;;
671aa708
NN
2292 mips*-*-linux*)
2293 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2294 ;;
2295 mips*-*-*)
cb253473 2296 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
2297 ;;
2298 romp-*-*)
cb253473 2299 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 2300 ;;
669f01d8 2301 sh-*-* | sh64-*-*)
671aa708 2302 case "${host}" in
f2a0e225
KC
2303 i[3456789]86-*-vsta) ;; # don't add gprof back in
2304 i[3456789]86-*-go32*) ;; # don't add gprof back in
2305 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
2306 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2307 esac
cb253473 2308 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 2309 ;;
671aa708 2310 sparc-*-elf*)
cb253473 2311 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2312 ;;
2313 sparc64-*-elf*)
cb253473 2314 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2315 ;;
2316 sparclite-*-*)
cb253473 2317 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2318 ;;
2319 sparc-*-sunos4*)
cb253473 2320 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2321 if test x${is_cross_compiler} != xno ; then
2322 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2323 else
2324 use_gnu_ld=no
2325 fi
2326 ;;
bba5e0ca 2327 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 2328 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 2329 ;;
671aa708
NN
2330 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2331 ;;
85d9c13c 2332 spu-*-*)
ea6f5c57 2333 skipdirs="target-libssp"
85d9c13c 2334 ;;
671aa708 2335 v810-*-*)
cb253473 2336 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
2337 ;;
2338 v850-*-*)
cb253473 2339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2340 ;;
2341 v850e-*-*)
cb253473 2342 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2343 ;;
2344 v850ea-*-*)
cb253473 2345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
2346 ;;
2347 vax-*-vms)
cb253473 2348 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
2349 ;;
2350 vax-*-*)
cb253473 2351 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 2352 ;;
0d4f1b4e 2353 xtensa-*-*)
cb253473 2354 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 2355 ;;
671aa708 2356 ip2k-*-*)
cb253473 2357 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 2358 ;;
c3f84f61 2359 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
671aa708
NN
2360 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2361 ;;
2362 *-*-lynxos*)
cb253473 2363 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
0b0dc272 2364 ;;
671aa708 2365 *-*-*)
cb253473 2366 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
2367 ;;
2368esac
79c06341 2369
671aa708
NN
2370# If we aren't building newlib, then don't build libgloss, since libgloss
2371# depends upon some newlib header files.
2372case "${noconfigdirs}" in
2373 *target-libgloss*) ;;
2374 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2375esac
2376
671aa708
NN
2377# Work in distributions that contain no compiler tools, like Autoconf.
2378tentative_cc=""
2379host_makefile_frag=/dev/null
2380if test -d ${srcdir}/config ; then
2381case "${host}" in
2382 m68k-hp-hpux*)
2383 # Avoid "too much defining" errors from HPUX compiler.
2384 tentative_cc="cc -Wp,-H256000"
2385 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2386 # If it's HP/UX ar, this should be harmless.
2387 RANLIB="ar ts"
2388 ;;
2389 m68k-apollo-sysv*)
2390 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2391 ;;
2392 m68k-apollo-bsd*)
2393 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2394 # chokes on bfd, the compiler won't let you assign integers to enums, and
2395 # other problems. Defining CC to gcc is a questionable way to say "don't use
2396 # the apollo compiler" (the preferred version of GCC could be called cc,
2397 # or whatever), but I'm not sure leaving CC as cc is any better...
2398 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2399 # Used to have BISON=yacc.
2400 tentative_cc=gcc
2401 ;;
2402 m88k-dg-dgux*)
2403 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
2404 ;;
2405 m88k-harris-cxux*)
2406 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2407 tentative_cc="cc -Xa"
2408 host_makefile_frag="config/mh-cxux"
2409 ;;
2410 m88k-motorola-sysv*)
2411 ;;
2412 mips*-dec-ultrix*)
2413 tentative_cc="cc -Wf,-XNg1000"
2414 host_makefile_frag="config/mh-decstation"
2415 ;;
2416 mips*-nec-sysv4*)
2417 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2418 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2419 host_makefile_frag="config/mh-necv4"
2420 ;;
2421 mips*-sgi-irix4*)
2422 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2423 # environment. Also bump switch table size so that cp-parse will
2424 # compile. Bump string length limit so linker builds.
2425 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2426 ;;
2427 mips*-*-sysv4*)
2428 host_makefile_frag="config/mh-sysv4"
2429 ;;
2430 mips*-*-sysv*)
2431 # This is for a MIPS running RISC/os 4.52C.
2432
2433 # This is needed for GDB, but needs to be in the top-level make because
2434 # if a library is compiled with the bsd headers and gets linked with the
2435 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2436 # a different size).
2437 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2438 # known except to select the sysv environment. Could we use /proc instead?
2439 # These "sysv environments" and "bsd environments" often end up being a pain.
2440 #
2441 # This is not part of CFLAGS because perhaps not all C compilers have this
2442 # option.
2443 tentative_cc="cc -systype sysv"
2444 ;;
2445 i370-ibm-opened*)
2446 tentative_cc="c89"
2447 ;;
f2a0e225 2448 i[3456789]86-*-sysv5*)
671aa708
NN
2449 host_makefile_frag="config/mh-sysv5"
2450 ;;
f2a0e225 2451 i[3456789]86-*-dgux*)
671aa708
NN
2452 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2453 host_makefile_frag="config/mh-dgux386"
2454 ;;
f2a0e225 2455 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
2456 # The MetaWare compiler will generate a copyright message unless you
2457 # turn it off by adding the -Hnocopyr flag.
2458 tentative_cc="cc -Hnocopyr"
2459 ;;
f2a0e225 2460 i[3456789]86-ncr-sysv4*)
671aa708
NN
2461 # for an NCR 3000 (i486/SVR4) system.
2462 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2463 # This compiler not only emits obnoxious copyright messages every time
2464 # you run it, but it chokes and dies on a whole bunch of GNU source
2465 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2466 tentative_cc="/usr/ccs/ATT/cc"
2467 host_makefile_frag="config/mh-ncr3000"
2468 ;;
f2a0e225 2469 i[3456789]86-*-sco3.2v5*)
671aa708 2470 ;;
f2a0e225 2471 i[3456789]86-*-sco*)
671aa708
NN
2472 # The native C compiler botches some simple uses of const. Unfortunately,
2473 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2474 tentative_cc="cc -Dconst="
2475 host_makefile_frag="config/mh-sco"
2476 ;;
f2a0e225 2477 i[3456789]86-*-udk*)
671aa708
NN
2478 host_makefile_frag="config/mh-sysv5"
2479 ;;
f2a0e225 2480 i[3456789]86-*-solaris2*)
671aa708
NN
2481 host_makefile_frag="config/mh-sysv4"
2482 ;;
f2a0e225 2483 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
2484 host_makefile_frag="config/mh-djgpp"
2485 ;;
2486 *-cygwin*)
2487 host_makefile_frag="config/mh-cygwin"
2488 ;;
2489 *-mingw32*)
671aa708
NN
2490 ;;
2491 *-interix*)
2492 host_makefile_frag="config/mh-interix"
2493 ;;
2494 vax-*-ultrix2*)
2495 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2496 tentative_cc=gcc
2497 ;;
2498 *-*-solaris2*)
2499 host_makefile_frag="config/mh-solaris"
2500 ;;
2501 m68k-sun-sunos*)
2502 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2503 # without overflowing the jump tables (-J says to use a 32 bit table)
2504 tentative_cc="cc -J"
2505 ;;
2506 *-hp-hpux*)
2507 tentative_cc="cc -Wp,-H256000"
2508 ;;
2509 *-*-hiux*)
2510 tentative_cc="cc -Wp,-H256000"
2511 ;;
2512 rs6000-*-lynxos*)
2513 # /bin/cc is less than useful for our purposes. Always use GCC
2514 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2515 host_makefile_frag="config/mh-lynxrs6k"
2516 ;;
45f366ab 2517 powerpc-*-darwin*)
be8fff81
RB
2518 host_makefile_frag="config/mh-ppc-darwin"
2519 ;;
d19bca38
PB
2520 powerpc-*-aix*)
2521 host_makefile_frag="config/mh-ppc-aix"
2522 ;;
2523 rs6000-*-aix*)
2524 host_makefile_frag="config/mh-ppc-aix"
2525 ;;
671aa708
NN
2526 *-*-lynxos*)
2527 # /bin/cc is less than useful for our purposes. Always use GCC
2528 tentative_cc="/bin/gcc"
2529 ;;
2530 *-*-sysv4*)
2531 host_makefile_frag="config/mh-sysv4"
2532 ;;
95c53c62
RS
2533 # This is placed last to prevent interfering with the cases above.
2534 i[3456789]86-*-*)
2535 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2536 host_makefile_frag="config/mh-x86omitfp"
2537 ;;
671aa708
NN
2538esac
2539fi
2540
55ffb5ed
NN
2541# If we aren't going to be using gcc, see if we can extract a definition
2542# of CC from the fragment.
2543# Actually, use the 'pre-extracted' version above.
2544if test -z "${CC}" && test "${build}" = "${host}" ; then
2545 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2546 found=
2547 for dir in $PATH; do
2548 test -z "$dir" && dir=.
2549 if test -f $dir/gcc; then
2550 found=yes
2551 break
2552 fi
2553 done
2554 IFS="$save_ifs"
2555 if test -z "${found}" && test -n "${tentative_cc}" ; then
2556 CC=$tentative_cc
2557 fi
2558fi
2559
2560if test "${build}" != "${host}" ; then
2561 # If we are doing a Canadian Cross, in which the host and build systems
2562 # are not the same, we set reasonable default values for the tools.
2563
55ffb5ed
NN
2564 CC=${CC-${host_alias}-gcc}
2565 CFLAGS=${CFLAGS-"-g -O2"}
2566 CXX=${CXX-${host_alias}-c++}
2567 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2568 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
55ffb5ed
NN
2569
2570else
fb0103e5
RG
2571 # Set reasonable default values for some tools even if not Canadian.
2572 # Of course, these are different reasonable default values, originally
2573 # specified directly in the Makefile.
2574 # We don't export, so that autoconf can do its job.
2575 # Note that all these settings are above the fragment inclusion point
2576 # in Makefile.in, so can still be overridden by fragments.
2577 # This is all going to change when we autoconfiscate...
a4b9e93e 2578
fb0103e5 2579 CC_FOR_BUILD="\$(CC)"
0b0dc272
AM
2580 ac_ext=c
2581ac_cpp='$CPP $CPPFLAGS'
2582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585if test -n "$ac_tool_prefix"; then
2586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2587set dummy ${ac_tool_prefix}gcc; ac_word=$2
2588echo "$as_me:$LINENO: checking for $ac_word" >&5
2589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2590if test "${ac_cv_prog_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593 if test -n "$CC"; then
2594 ac_cv_prog_CC="$CC" # Let the user override the test.
2595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607done
2608done
2609
2610fi
2611fi
2612CC=$ac_cv_prog_CC
2613if test -n "$CC"; then
2614 echo "$as_me:$LINENO: result: $CC" >&5
2615echo "${ECHO_T}$CC" >&6
2616else
2617 echo "$as_me:$LINENO: result: no" >&5
2618echo "${ECHO_T}no" >&6
2619fi
2620
2621fi
2622if test -z "$ac_cv_prog_CC"; then
2623 ac_ct_CC=$CC
fb0103e5
RG
2624 # Extract the first word of "gcc", so it can be a program name with args.
2625set dummy gcc; ac_word=$2
0b0dc272
AM
2626echo "$as_me:$LINENO: checking for $ac_word" >&5
2627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631 if test -n "$ac_ct_CC"; then
2632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633else
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_CC="gcc"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645done
2646done
2647
2648fi
2649fi
2650ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651if test -n "$ac_ct_CC"; then
2652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653echo "${ECHO_T}$ac_ct_CC" >&6
2654else
2655 echo "$as_me:$LINENO: result: no" >&5
2656echo "${ECHO_T}no" >&6
2657fi
2658
2659 CC=$ac_ct_CC
2660else
2661 CC="$ac_cv_prog_CC"
2662fi
2663
2664if test -z "$CC"; then
2665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2667set dummy ${ac_tool_prefix}cc; ac_word=$2
2668echo "$as_me:$LINENO: checking for $ac_word" >&5
2669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670if test "${ac_cv_prog_CC+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2672else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
0b0dc272
AM
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_CC="${ac_tool_prefix}cc"
2684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 break 2
2686 fi
2687done
2688done
2689
a4b9e93e
PT
2690fi
2691fi
0b0dc272 2692CC=$ac_cv_prog_CC
a4b9e93e 2693if test -n "$CC"; then
0b0dc272
AM
2694 echo "$as_me:$LINENO: result: $CC" >&5
2695echo "${ECHO_T}$CC" >&6
55ffb5ed 2696else
0b0dc272
AM
2697 echo "$as_me:$LINENO: result: no" >&5
2698echo "${ECHO_T}no" >&6
55ffb5ed
NN
2699fi
2700
0b0dc272
AM
2701fi
2702if test -z "$ac_cv_prog_CC"; then
2703 ac_ct_CC=$CC
2704 # Extract the first word of "cc", so it can be a program name with args.
2705set dummy cc; ac_word=$2
2706echo "$as_me:$LINENO: checking for $ac_word" >&5
2707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711 if test -n "$ac_ct_CC"; then
2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_CC="cc"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725done
2726done
2727
2728fi
2729fi
2730ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731if test -n "$ac_ct_CC"; then
2732 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733echo "${ECHO_T}$ac_ct_CC" >&6
2734else
2735 echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6
2737fi
2738
2739 CC=$ac_ct_CC
2740else
2741 CC="$ac_cv_prog_CC"
2742fi
2743
2744fi
55ffb5ed
NN
2745if test -z "$CC"; then
2746 # Extract the first word of "cc", so it can be a program name with args.
2747set dummy cc; ac_word=$2
0b0dc272
AM
2748echo "$as_me:$LINENO: checking for $ac_word" >&5
2749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2750if test "${ac_cv_prog_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2752else
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2755else
0b0dc272
AM
2756 ac_prog_rejected=no
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2765 ac_prog_rejected=yes
2766 continue
2767 fi
2768 ac_cv_prog_CC="cc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772done
2773done
2774
55ffb5ed
NN
2775if test $ac_prog_rejected = yes; then
2776 # We found a bogon in the path, so make sure we never use it.
2777 set dummy $ac_cv_prog_CC
2778 shift
0b0dc272 2779 if test $# != 0; then
55ffb5ed
NN
2780 # We chose a different compiler from the bogus one.
2781 # However, it has the same basename, so the bogon will be chosen
2782 # first if we set CC to just the basename; use the full file name.
2783 shift
0b0dc272 2784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
2785 fi
2786fi
2787fi
2788fi
0b0dc272 2789CC=$ac_cv_prog_CC
55ffb5ed 2790if test -n "$CC"; then
0b0dc272
AM
2791 echo "$as_me:$LINENO: result: $CC" >&5
2792echo "${ECHO_T}$CC" >&6
55ffb5ed 2793else
0b0dc272
AM
2794 echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6
55ffb5ed
NN
2796fi
2797
0b0dc272
AM
2798fi
2799if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in cl
2802 do
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2807if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
2809else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812else
0b0dc272
AM
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824done
2825done
2826
55ffb5ed
NN
2827fi
2828fi
0b0dc272 2829CC=$ac_cv_prog_CC
55ffb5ed 2830if test -n "$CC"; then
0b0dc272
AM
2831 echo "$as_me:$LINENO: result: $CC" >&5
2832echo "${ECHO_T}$CC" >&6
a4b9e93e 2833else
0b0dc272
AM
2834 echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6
55ffb5ed
NN
2836fi
2837
0b0dc272
AM
2838 test -n "$CC" && break
2839 done
fb0103e5 2840fi
0b0dc272
AM
2841if test -z "$CC"; then
2842 ac_ct_CC=$CC
2843 for ac_prog in cl
2844do
2845 # Extract the first word of "$ac_prog", so it can be a program name with args.
2846set dummy $ac_prog; ac_word=$2
2847echo "$as_me:$LINENO: checking for $ac_word" >&5
2848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
a4b9e93e 2851else
0b0dc272
AM
2852 if test -n "$ac_ct_CC"; then
2853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
72a7ab82 2854else
0b0dc272
AM
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_CC="$ac_prog"
2863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866done
2867done
2868
fb0103e5
RG
2869fi
2870fi
0b0dc272
AM
2871ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872if test -n "$ac_ct_CC"; then
2873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2874echo "${ECHO_T}$ac_ct_CC" >&6
55ffb5ed 2875else
0b0dc272
AM
2876 echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6
fb0103e5 2878fi
a4b9e93e 2879
0b0dc272
AM
2880 test -n "$ac_ct_CC" && break
2881done
2882
2883 CC=$ac_ct_CC
2884fi
2885
2886fi
2887
2888
2889test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: no acceptable C compiler found in \$PATH
2892See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2894
2895# Provide some information about the compiler.
2896echo "$as_me:$LINENO:" \
2897 "checking for C compiler version" >&5
2898ac_compiler=`set X $ac_compile; echo $2`
2899{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2900 (eval $ac_compiler --version </dev/null >&5) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }
2904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2905 (eval $ac_compiler -v </dev/null >&5) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2910 (eval $ac_compiler -V </dev/null >&5) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914
2915cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
2921
2922int
2923main ()
2924{
2925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930ac_clean_files_save=$ac_clean_files
2931ac_clean_files="$ac_clean_files a.out a.exe b.out"
2932# Try to create an executable without -o first, disregard a.out.
2933# It will help us diagnose broken compilers, and finding out an intuition
2934# of exeext.
2935echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2936echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2937ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2938if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2939 (eval $ac_link_default) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; then
2943 # Find the output, starting from the most likely. This scheme is
2944# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2945# resort.
2946
2947# Be careful to initialize this variable, since it used to be cached.
2948# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2949ac_cv_exeext=
2950# b.out is created by i960 compilers.
2951for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2952do
2953 test -f "$ac_file" || continue
2954 case $ac_file in
2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2956 ;;
2957 conftest.$ac_ext )
2958 # This is the source file.
2959 ;;
2960 [ab].out )
2961 # We found the default executable, but exeext='' is most
2962 # certainly right.
2963 break;;
2964 *.* )
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 # FIXME: I believe we export ac_cv_exeext for Libtool,
2967 # but it would be cool to find out if it's true. Does anybody
2968 # maintain Libtool? --akim.
2969 export ac_cv_exeext
2970 break;;
2971 * )
2972 break;;
2973 esac
2974done
2975else
2976 echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2980See \`config.log' for more details." >&5
2981echo "$as_me: error: C compiler cannot create executables
2982See \`config.log' for more details." >&2;}
2983 { (exit 77); exit 77; }; }
2984fi
2985
2986ac_exeext=$ac_cv_exeext
2987echo "$as_me:$LINENO: result: $ac_file" >&5
2988echo "${ECHO_T}$ac_file" >&6
2989
2990# Check the compiler produces executables we can run. If not, either
2991# the compiler is broken, or we cross compile.
2992echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2994# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995# If not cross compiling, check that we can run a simple program.
2996if test "$cross_compiling" != yes; then
2997 if { ac_try='./$ac_file'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 cross_compiling=no
3004 else
3005 if test "$cross_compiling" = maybe; then
3006 cross_compiling=yes
3007 else
3008 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3009If you meant to cross compile, use \`--host'.
3010See \`config.log' for more details." >&5
3011echo "$as_me: error: cannot run C compiled programs.
3012If you meant to cross compile, use \`--host'.
3013See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
3015 fi
3016 fi
3017fi
3018echo "$as_me:$LINENO: result: yes" >&5
3019echo "${ECHO_T}yes" >&6
3020
3021rm -f a.out a.exe conftest$ac_cv_exeext b.out
3022ac_clean_files=$ac_clean_files_save
3023# Check the compiler produces executables we can run. If not, either
3024# the compiler is broken, or we cross compile.
3025echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3026echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3027echo "$as_me:$LINENO: result: $cross_compiling" >&5
3028echo "${ECHO_T}$cross_compiling" >&6
3029
3030echo "$as_me:$LINENO: checking for suffix of executables" >&5
3031echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033 (eval $ac_link) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; then
3037 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3038# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3039# work properly (i.e., refer to `conftest.exe'), while it won't with
3040# `rm'.
3041for ac_file in conftest.exe conftest conftest.*; do
3042 test -f "$ac_file" || continue
3043 case $ac_file in
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3045 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046 export ac_cv_exeext
3047 break;;
3048 * ) break;;
3049 esac
3050done
3051else
3052 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3053See \`config.log' for more details." >&5
3054echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3055See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3057fi
3058
3059rm -f conftest$ac_cv_exeext
3060echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3061echo "${ECHO_T}$ac_cv_exeext" >&6
3062
3063rm -f conftest.$ac_ext
3064EXEEXT=$ac_cv_exeext
3065ac_exeext=$EXEEXT
3066echo "$as_me:$LINENO: checking for suffix of object files" >&5
3067echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3068if test "${ac_cv_objext+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.o conftest.obj
3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; then
3092 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096 break;;
3097 esac
3098done
fb0103e5 3099else
0b0dc272
AM
3100 echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3104See \`config.log' for more details." >&5
3105echo "$as_me: error: cannot compute suffix of object files: cannot compile
3106See \`config.log' for more details." >&2;}
3107 { (exit 1); exit 1; }; }
3108fi
3109
3110rm -f conftest.$ac_cv_objext conftest.$ac_ext
3111fi
3112echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3113echo "${ECHO_T}$ac_cv_objext" >&6
3114OBJEXT=$ac_cv_objext
3115ac_objext=$OBJEXT
3116echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3117echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3118if test "${ac_cv_c_compiler_gnu+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131#ifndef __GNUC__
3132 choke me
3133#endif
3134
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext
3140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_compiler_gnu=yes
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166ac_compiler_gnu=no
3167fi
3168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3169ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170
3171fi
3172echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3173echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3174GCC=`test $ac_compiler_gnu = yes && echo yes`
3175ac_test_CFLAGS=${CFLAGS+set}
3176ac_save_CFLAGS=$CFLAGS
3177CFLAGS="-g"
3178echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3179echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3180if test "${ac_cv_prog_cc_g+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183 cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
3189
3190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
3199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
55ffb5ed
NN
3220 ac_cv_prog_cc_g=yes
3221else
0b0dc272
AM
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
fb0103e5 3224
0b0dc272 3225ac_cv_prog_cc_g=no
a4b9e93e 3226fi
0b0dc272
AM
3227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228fi
3229echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3230echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
55ffb5ed 3231if test "$ac_test_CFLAGS" = set; then
0b0dc272 3232 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
3233elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3235 CFLAGS="-g -O2"
3236 else
3237 CFLAGS="-g"
3238 fi
3239else
3240 if test "$GCC" = yes; then
3241 CFLAGS="-O2"
3242 else
3243 CFLAGS=
3244 fi
3245fi
0b0dc272
AM
3246echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3247echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3248if test "${ac_cv_prog_cc_stdc+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251 ac_cv_prog_cc_stdc=no
3252ac_save_CC=$CC
3253cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259#include <stdarg.h>
3260#include <stdio.h>
3261#include <sys/types.h>
3262#include <sys/stat.h>
3263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264struct buf { int x; };
3265FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266static char *e (p, i)
3267 char **p;
3268 int i;
3269{
3270 return p[i];
3271}
3272static char *f (char * (*g) (char **, int), char **p, ...)
3273{
3274 char *s;
3275 va_list v;
3276 va_start (v,p);
3277 s = g (p, va_arg (v,int));
3278 va_end (v);
3279 return s;
3280}
3281
3282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std1 is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std1. */
3289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290
3291int test (int i, double x);
3292struct s1 {int (*f) (int a);};
3293struct s2 {int (*f) (double a);};
3294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295int argc;
3296char **argv;
3297int
3298main ()
3299{
3300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3301 ;
3302 return 0;
3303}
3304_ACEOF
3305# Don't try gcc -ansi; that turns off useful extensions and
3306# breaks some systems' header files.
3307# AIX -qlanglvl=ansi
3308# Ultrix and OSF/1 -std1
3309# HP-UX 10.20 and later -Ae
3310# HP-UX older versions -Aa -D_HPUX_SOURCE
3311# SVR4 -Xc -D__EXTENSIONS__
3312for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313do
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag"
3325 || test ! -s conftest.err'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 (eval $ac_try) 2>&5
3328 ac_status=$?
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; } &&
3331 { ac_try='test -s conftest.$ac_objext'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; }; then
3337 ac_cv_prog_cc_stdc=$ac_arg
3338break
3339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343fi
3344rm -f conftest.err conftest.$ac_objext
3345done
3346rm -f conftest.$ac_ext conftest.$ac_objext
3347CC=$ac_save_CC
3348
3349fi
3350
3351case "x$ac_cv_prog_cc_stdc" in
3352 x|xno)
3353 echo "$as_me:$LINENO: result: none needed" >&5
3354echo "${ECHO_T}none needed" >&6 ;;
3355 *)
3356 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3357echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3358 CC="$CC $ac_cv_prog_cc_stdc" ;;
3359esac
3360
3361# Some people use a C++ compiler to compile C. Since we use `exit',
3362# in C++ we need to declare it. In case someone uses the same compiler
3363# for both compiling C and C++ we need to have the C++ compiler decide
3364# the declaration of exit, since it's the most demanding environment.
3365cat >conftest.$ac_ext <<_ACEOF
3366#ifndef __cplusplus
3367 choke me
3368#endif
3369_ACEOF
3370rm -f conftest.$ac_objext
3371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 for ac_declaration in \
3393 '' \
3394 'extern "C" void std::exit (int) throw (); using std::exit;' \
3395 'extern "C" void std::exit (int); using std::exit;' \
3396 'extern "C" void exit (int) throw ();' \
3397 'extern "C" void exit (int);' \
3398 'void exit (int);'
3399do
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
3406$ac_declaration
3407#include <stdlib.h>
3408int
3409main ()
3410{
3411exit (42);
3412 ;
3413 return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 :
3439else
3440 echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443continue
3444fi
3445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446 cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
3452$ac_declaration
3453int
3454main ()
3455{
3456exit (42);
3457 ;
3458 return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext
3462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 break
3484else
3485 echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488fi
3489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490done
3491rm -f conftest*
3492if test -n "$ac_declaration"; then
3493 echo '#ifdef __cplusplus' >>confdefs.h
3494 echo $ac_declaration >>confdefs.h
3495 echo '#endif' >>confdefs.h
3496fi
3497
3498else
3499 echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502fi
3503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504ac_ext=c
3505ac_cpp='$CPP $CPPFLAGS'
3506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508ac_compiler_gnu=$ac_cv_c_compiler_gnu
55ffb5ed
NN
3509
3510
23f6b2f9
PB
3511 # We must set the default linker to the linker used by gcc for the correct
3512 # operation of libtool. If LD is not defined and we are using gcc, try to
3513 # set the LD default to the ld used by gcc.
3514 if test -z "$LD"; then
3515 if test "$GCC" = yes; then
3516 case $build in
3517 *-*-mingw*)
3518 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3519 *)
3520 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3521 esac
3522 case $gcc_prog_ld in
3523 # Accept absolute paths.
3524 [\\/]* | [A-Za-z]:[\\/]*)
3525 LD="$gcc_prog_ld" ;;
3526 esac
3527 fi
3528 fi
3529
3530 CXX=${CXX-"c++"}
3531 CFLAGS=${CFLAGS-"-g"}
3532 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3533fi
3534
23f6b2f9
PB
3535
3536
55ffb5ed 3537
0b0dc272
AM
3538if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 3540set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
0b0dc272
AM
3541echo "$as_me:$LINENO: checking for $ac_word" >&5
3542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543if test "${ac_cv_prog_GNATBIND+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3545else
3546 if test -n "$GNATBIND"; then
3547 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3548else
0b0dc272
AM
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560done
3561done
3562
55ffb5ed
NN
3563fi
3564fi
0b0dc272 3565GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 3566if test -n "$GNATBIND"; then
0b0dc272
AM
3567 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3568echo "${ECHO_T}$GNATBIND" >&6
55ffb5ed 3569else
0b0dc272
AM
3570 echo "$as_me:$LINENO: result: no" >&5
3571echo "${ECHO_T}no" >&6
55ffb5ed
NN
3572fi
3573
0b0dc272 3574fi
55ffb5ed 3575if test -z "$ac_cv_prog_GNATBIND"; then
0b0dc272 3576 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
3577 # Extract the first word of "gnatbind", so it can be a program name with args.
3578set dummy gnatbind; ac_word=$2
0b0dc272
AM
3579echo "$as_me:$LINENO: checking for $ac_word" >&5
3580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed 3583else
0b0dc272
AM
3584 if test -n "$ac_ct_GNATBIND"; then
3585 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 3586else
0b0dc272
AM
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598done
3599done
3600
3601 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
55ffb5ed
NN
3602fi
3603fi
0b0dc272
AM
3604ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3605if test -n "$ac_ct_GNATBIND"; then
3606 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3607echo "${ECHO_T}$ac_ct_GNATBIND" >&6
55ffb5ed 3608else
0b0dc272
AM
3609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
55ffb5ed
NN
3611fi
3612
0b0dc272 3613 GNATBIND=$ac_ct_GNATBIND
55ffb5ed 3614else
0b0dc272 3615 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
3616fi
3617
0b0dc272
AM
3618echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3619echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3620if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
55ffb5ed
NN
3622else
3623 cat >conftest.adb <<EOF
3624procedure conftest is begin null; end conftest;
3625EOF
3626acx_cv_cc_gcc_supports_ada=no
3627# There is a bug in old released versions of GCC which causes the
3628# driver to exit successfully when the appropriate language module
3629# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3630# Therefore we must check for the error message as well as an
3631# unsuccessful exit.
1db673ca
RO
3632# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3633# given a .adb file, but produce no object file. So we must check
3634# if an object file was really produced to guard against this.
55ffb5ed 3635errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 3636if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 3637 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
3638fi
3639rm -f conftest.*
3640fi
0b0dc272
AM
3641echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3642echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
55ffb5ed 3643
1db673ca 3644if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
3645 have_gnat=yes
3646else
3647 have_gnat=no
3648fi
3649
0b0dc272
AM
3650echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3651echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3652if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
a76494aa
PB
3654else
3655 echo abfoo >t1
3656 echo cdfoo >t2
3657 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
3658 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3659 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3660 :
3661 else
3662 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3663 fi
3664 fi
a76494aa
PB
3665 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3666 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 3667 :
a76494aa
PB
3668 else
3669 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3670 fi
3671 fi
3672 rm t1 t2
3673
3674fi
0b0dc272
AM
3675echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3676echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
a76494aa
PB
3677do_compare="$gcc_cv_prog_cmp_skip"
3678
3679
55ffb5ed 3680
bebf829d 3681# Check for GMP and MPFR
8a877c9c 3682gmplibs="-lmpfr"
6de9cd9a
DN
3683gmpinc=
3684have_gmp=yes
bebf829d
PB
3685# Specify a location for mpfr
3686# check for this first so it ends up on the link line before gmp.
0b0dc272 3687
bebf829d
PB
3688# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3689if test "${with_mpfr_dir+set}" = set; then
3690 withval="$with_mpfr_dir"
0b0dc272
AM
3691 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3692Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3693echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3694Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3695 { (exit 1); exit 1; }; }
3696fi;
bebf829d
PB
3697
3698
bebf829d
PB
3699# Check whether --with-mpfr or --without-mpfr was given.
3700if test "${with_mpfr+set}" = set; then
3701 withval="$with_mpfr"
0b0dc272
AM
3702
3703fi;
bebf829d 3704
8a877c9c
KG
3705# Check whether --with-mpfr_include or --without-mpfr_include was given.
3706if test "${with_mpfr_include+set}" = set; then
3707 withval="$with_mpfr_include"
0b0dc272
AM
3708
3709fi;
8a877c9c
KG
3710
3711# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3712if test "${with_mpfr_lib+set}" = set; then
3713 withval="$with_mpfr_lib"
8a877c9c 3714
0b0dc272 3715fi;
bebf829d
PB
3716
3717if test "x$with_mpfr" != x; then
3718 gmplibs="-L$with_mpfr/lib $gmplibs"
3719 gmpinc="-I$with_mpfr/include"
3720fi
8a877c9c
KG
3721if test "x$with_mpfr_include" != x; then
3722 gmpinc="-I$with_mpfr_include"
3723fi
3724if test "x$with_mpfr_lib" != x; then
3725 gmplibs="-L$with_mpfr_lib $gmplibs"
3726fi
bebf829d 3727
6de9cd9a 3728# Specify a location for gmp
0b0dc272 3729
6de9cd9a
DN
3730# Check whether --with-gmp-dir or --without-gmp-dir was given.
3731if test "${with_gmp_dir+set}" = set; then
3732 withval="$with_gmp_dir"
0b0dc272
AM
3733 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3734Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3735echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3736Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3737 { (exit 1); exit 1; }; }
3738fi;
6de9cd9a 3739
8a877c9c 3740gmplibs="$gmplibs -lgmp"
6de9cd9a 3741
0b0dc272 3742
6de9cd9a
DN
3743# Check whether --with-gmp or --without-gmp was given.
3744if test "${with_gmp+set}" = set; then
3745 withval="$with_gmp"
0b0dc272
AM
3746
3747fi;
6de9cd9a 3748
8a877c9c
KG
3749# Check whether --with-gmp_include or --without-gmp_include was given.
3750if test "${with_gmp_include+set}" = set; then
3751 withval="$with_gmp_include"
0b0dc272
AM
3752
3753fi;
8a877c9c
KG
3754
3755# Check whether --with-gmp_lib or --without-gmp_lib was given.
3756if test "${with_gmp_lib+set}" = set; then
3757 withval="$with_gmp_lib"
8a877c9c 3758
0b0dc272 3759fi;
8a877c9c 3760
6de9cd9a 3761
bebf829d
PB
3762if test "x$with_gmp" != x; then
3763 gmplibs="-L$with_gmp/lib $gmplibs"
3764 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 3765fi
8a877c9c
KG
3766if test "x$with_gmp_include" != x; then
3767 gmpinc="-I$with_gmp_include $gmpinc"
3768fi
3769if test "x$with_gmp_lib" != x; then
3770 gmplibs="-L$with_gmp_lib $gmplibs"
3771fi
6de9cd9a
DN
3772
3773saved_CFLAGS="$CFLAGS"
3774CFLAGS="$CFLAGS $gmpinc"
3775# Check GMP actually works
0b0dc272
AM
3776echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3777echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3778
3779cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h. */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h. */
6de9cd9a 3785#include "gmp.h"
0b0dc272
AM
3786int
3787main ()
3788{
6de9cd9a 3789
e48d66a9 3790#if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
6de9cd9a
DN
3791choke me
3792#endif
3793
0b0dc272
AM
3794 ;
3795 return 0;
3796}
3797_ACEOF
3798rm -f conftest.$ac_objext
3799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3800 (eval $ac_compile) 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag"
3808 || test ! -s conftest.err'
3809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 (eval $ac_try) 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 (eval $ac_try) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; }; then
3820 echo "$as_me:$LINENO: result: yes" >&5
3821echo "${ECHO_T}yes" >&6
3822else
3823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826echo "$as_me:$LINENO: result: no" >&5
3827echo "${ECHO_T}no" >&6; have_gmp=no
3828fi
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
3830
3831if test x"$have_gmp" = xyes; then
70ec446f
KG
3832 saved_LIBS="$LIBS"
3833 LIBS="$LIBS $gmplibs"
0b0dc272
AM
3834 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3835echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h. */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h. */
70ec446f 3842#include <gmp.h>
e48d66a9 3843#include <mpfr.h>
0b0dc272
AM
3844int
3845main ()
3846{
e48d66a9
SK
3847
3848#if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
3849 choke me
3850#endif
70ec446f 3851 mpfr_t n; mpfr_init(n);
e48d66a9 3852
0b0dc272
AM
3853 ;
3854 return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext conftest$ac_exeext
3858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } &&
3866 { ac_try='test -z "$ac_c_werror_flag"
3867 || test ! -s conftest.err'
3868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869 (eval $ac_try) 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875 (eval $ac_try) 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 echo "$as_me:$LINENO: result: yes" >&5
3880echo "${ECHO_T}yes" >&6
3881else
3882 echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6; have_gmp=no
3887fi
3888rm -f conftest.err conftest.$ac_objext \
3889 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 3890 LIBS="$saved_LIBS"
6de9cd9a 3891fi
ed606bc0 3892CFLAGS="$saved_CFLAGS"
6de9cd9a 3893
dffb147d 3894if test -d ${srcdir}/gcc && test x$have_gmp != xyes; then
0b0dc272
AM
3895 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
3896Try the --with-gmp and/or --with-mpfr options to specify their locations.
3897Copies of these libraries' source code can be found at their respective
3898hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
3899See also http://gcc.gnu.org/install/prerequisites.html for additional info.
3900If you obtained GMP and/or MPFR from a vendor distribution package, make
3901sure that you have installed both the libraries and the header files.
3902They may be located in separate packages." >&5
3903echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
ca558912
KG
3904Try the --with-gmp and/or --with-mpfr options to specify their locations.
3905Copies of these libraries' source code can be found at their respective
3906hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
3907See also http://gcc.gnu.org/install/prerequisites.html for additional info.
3908If you obtained GMP and/or MPFR from a vendor distribution package, make
3909sure that you have installed both the libraries and the header files.
0b0dc272
AM
3910They may be located in separate packages." >&2;}
3911 { (exit 1); exit 1; }; }
70ec446f
KG
3912fi
3913
bebf829d 3914# Flags needed for both GMP and/or MPFR
6de9cd9a
DN
3915
3916
3917
1e0f07d3 3918# By default, C is the only stage 1 language.
2805b53a
NN
3919stage1_languages=c
3920
3921
55ffb5ed
NN
3922# Figure out what language subdirectories are present.
3923# Look if the user specified --enable-languages="..."; if not, use
3924# the environment variable $LANGUAGES if defined. $LANGUAGES might
3925# go away some day.
3926# NB: embedded tabs in this IF block -- do not untabify
3927if test -d ${srcdir}/gcc; then
3928 if test x"${enable_languages+set}" != xset; then
3929 if test x"${LANGUAGES+set}" = xset; then
3930 enable_languages="${LANGUAGES}"
3931 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
3932 else
3933 enable_languages=all
3934 fi
3935 else
3936 if test x"${enable_languages}" = x ||
3937 test x"${enable_languages}" = xyes;
3938 then
3939 echo configure.in: --enable-languages needs at least one language argument 1>&2
3940 exit 1
3941 fi
3942 fi
3943 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
3944
7f26dfa3
FXC
3945 # 'f95' is the old name for the 'fortran' language. We issue a warning
3946 # and make the substitution.
3947 case ,${enable_languages}, in
3948 *,f95,*)
3949 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
3950 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
3951 ;;
3952 esac
3953
55ffb5ed
NN
3954 # First scan to see if an enabled language requires some other language.
3955 # We assume that a given config-lang.in will list all the language
3956 # front ends it requires, even if some are required indirectly.
3957 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3958 case ${lang_frag} in
3959 ..) ;;
3960 # The odd quoting in the next line works around
3961 # an apparent bug in bash 1.12 on linux.
3962 ${srcdir}/gcc/[*]/config-lang.in) ;;
3963 *)
3964 # From the config-lang.in, get $language, $lang_requires
3965 language=
3966 lang_requires=
3967 . ${lang_frag}
3968 for other in ${lang_requires} ; do
3969 case ,${enable_languages}, in
3970 *,$other,*) ;;
3971 *,all,*) ;;
3972 *,$language,*)
3973 echo " \`$other' language required by \`$language'; enabling" 1>&2
3974 enable_languages="${enable_languages},${other}"
3975 ;;
3976 esac
3977 done
3978 ;;
3979 esac
3980 done
3981
3982 new_enable_languages=c
3983 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c71a529 3984 potential_languages=c
55ffb5ed
NN
3985
3986 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
3987 case ${lang_frag} in
3988 ..) ;;
3989 # The odd quoting in the next line works around
3990 # an apparent bug in bash 1.12 on linux.
3991 ${srcdir}/gcc/[*]/config-lang.in) ;;
3992 *)
0b0dc272 3993 # From the config-lang.in, get $language, $target_libs,
2805b53a 3994 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
3995 language=
3996 target_libs=
3997 lang_dirs=
1546bb64 3998 subdir_requires=
2805b53a 3999 boot_language=
55ffb5ed
NN
4000 build_by_default=
4001 . ${lang_frag}
9c71a529 4002 potential_languages="${potential_languages},${language}"
55ffb5ed
NN
4003 # This is quite sensitive to the ordering of the case statement arms.
4004 case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in
4005 *::*:*)
4006 echo "${lang_frag} doesn't set \$language." 1>&2
4007 exit 1
9c71a529 4008 ;;
55ffb5ed
NN
4009 *:ada:no:*)
4010 # Ada was requested with no preexisting GNAT. Disable unconditionally.
4011 add_this_lang=no
4012 ;;
4013 *,${language},*:*:*:*)
4014 # Language was explicitly selected; include it.
4015 add_this_lang=yes
4016 ;;
4017 *,all,*:*:*:no)
4018 # 'all' was selected, but this is not a default language
9c71a529 4019 # so do not include it.
55ffb5ed 4020 add_this_lang=no
9c71a529 4021 ;;
55ffb5ed
NN
4022 *,all,*:*:*:*)
4023 # 'all' was selected and this is a default language; include it.
4024 add_this_lang=yes
4025 ;;
4026 *)
4027 add_this_lang=no
4028 ;;
4029 esac
6de9cd9a 4030
1546bb64 4031 # Disable languages that need other directories if these aren't available.
95695ad3 4032 for i in $subdir_requires; do
b6348cb3 4033 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
4034 case ,${enable_languages}, in
4035 *,${language},*)
4036 # Specifically requested language; tell them.
0b0dc272
AM
4037 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4038echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4039 { (exit 1); exit 1; }; }
1546bb64
PB
4040 ;;
4041 *)
4042 # Silently disable.
4043 add_this_lang=no
4044 ;;
4045 esac
4046 done
4047
4fab7234
HPN
4048 # Disable a language that is unsupported by the target.
4049 case " $unsupported_languages " in
4050 *" $language "*)
4051 add_this_lang=no
4052 ;;
4053 esac
4054
6de9cd9a 4055 case $add_this_lang in
55ffb5ed
NN
4056 no)
4057 # Remove language-dependent dirs.
2805b53a
NN
4058 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4059 ;;
55ffb5ed
NN
4060 *)
4061 new_enable_languages="$new_enable_languages,$language"
2805b53a
NN
4062 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4063 case ${boot_language} in
4064 yes)
340de83f
NN
4065 # Add to (comma-separated) list of stage 1 languages.
4066 stage1_languages="${stage1_languages},${language}"
2805b53a
NN
4067 ;;
4068 esac
4069 ;;
55ffb5ed
NN
4070 esac
4071 ;;
4072 esac
4073 done
4074
79b4b7d2 4075 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
55ffb5ed 4076 if test "x$missing_languages" != x; then
0b0dc272
AM
4077 { { echo "$as_me:$LINENO: error:
4078The following requested languages could not be built: ${missing_languages}
4079Recognised languages are: ${potential_languages}" >&5
4080echo "$as_me: error:
0cf085e4 4081The following requested languages could not be built: ${missing_languages}
0b0dc272
AM
4082Recognised languages are: ${potential_languages}" >&2;}
4083 { (exit 1); exit 1; }; }
55ffb5ed
NN
4084 fi
4085
4086 if test "x$new_enable_languages" != "x$enable_languages"; then
4087 echo The following languages will be built: ${new_enable_languages}
4088 fi
4089 enable_languages="$new_enable_languages"
6bbec498 4090 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
55ffb5ed
NN
4091fi
4092
27079765
AH
4093# Handle --disable-<component> generically.
4094for dir in $configdirs $build_configdirs $target_configdirs ; do
4095 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4096 if eval test x\${enable_${dirname}} "=" xno ; then
4097 noconfigdirs="$noconfigdirs $dir"
4098 fi
4099done
4100
7cd0cf9c
DA
4101# Check for Boehm's garbage collector
4102# Check whether --enable-objc-gc or --disable-objc-gc was given.
4103if test "${enable_objc_gc+set}" = set; then
4104 enableval="$enable_objc_gc"
4105 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4106 *,objc,*:*:yes:*target-boehm-gc*)
0b0dc272
AM
4107 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4108echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4109 { (exit 1); exit 1; }; }
7cd0cf9c
DA
4110 ;;
4111esac
0b0dc272 4112fi;
7cd0cf9c
DA
4113
4114# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
4115case ,${enable_languages},:${enable_objc_gc} in
4116 *,objc,*:yes)
7cd0cf9c
DA
4117 # Keep target-boehm-gc if requested for Objective-C.
4118 ;;
7cd0cf9c 4119 *)
2a79fd67
DA
4120 # Otherwise remove target-boehm-gc depending on target-libjava.
4121 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4122 noconfigdirs="$noconfigdirs target-boehm-gc"
4123 fi
7cd0cf9c
DA
4124 ;;
4125esac
4126
ee6a22df
L
4127# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4128# $build_configdirs and $target_configdirs.
55ffb5ed
NN
4129# If we have the source for $noconfigdirs entries, add them to $notsupp.
4130
4131notsupp=""
4132for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 4133 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
4134 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4135 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4136 if test -r $srcdir/$dirname/configure ; then
4137 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4138 true
4139 else
4140 notsupp="$notsupp $dir"
4141 fi
4142 fi
4143 fi
ee6a22df
L
4144 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4145 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4146 if test -r $srcdir/$dirname/configure ; then
4147 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4148 true
4149 else
4150 notsupp="$notsupp $dir"
4151 fi
4152 fi
4153 fi
55ffb5ed
NN
4154 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4155 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4156 if test -r $srcdir/$dirname/configure ; then
4157 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4158 true
4159 else
4160 notsupp="$notsupp $dir"
4161 fi
4162 fi
4163 fi
4164done
4165
4166# Sometimes the tools are distributed with libiberty but with no other
4167# libraries. In that case, we don't want to build target-libiberty.
4168if test -n "${target_configdirs}" ; then
4169 others=
4170 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4171 if test "$i" != "libiberty" ; then
4172 if test -r $srcdir/$i/configure ; then
4173 others=yes;
4174 break;
4175 fi
4176 fi
4177 done
4178 if test -z "${others}" ; then
4179 target_configdirs=
4180 fi
4181fi
4182
4183# Quietly strip out all directories which aren't configurable in this tree.
4184# This relies on all configurable subdirectories being autoconfiscated, which
4185# is now the case.
23f6b2f9
PB
4186build_configdirs_all="$build_configdirs"
4187build_configdirs=
4188for i in ${build_configdirs_all} ; do
0b0dc272 4189 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
4190 if test -f ${srcdir}/$j/configure ; then
4191 build_configdirs="${build_configdirs} $i"
4192 fi
4193done
4194
55ffb5ed
NN
4195configdirs_all="$configdirs"
4196configdirs=
4197for i in ${configdirs_all} ; do
4198 if test -f ${srcdir}/$i/configure ; then
4199 configdirs="${configdirs} $i"
4200 fi
4201done
23f6b2f9 4202
55ffb5ed
NN
4203target_configdirs_all="$target_configdirs"
4204target_configdirs=
4205for i in ${target_configdirs_all} ; do
0b0dc272 4206 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
4207 if test -f ${srcdir}/$j/configure ; then
4208 target_configdirs="${target_configdirs} $i"
4209 fi
4210done
4211
4212# Produce a warning message for the subdirs we can't configure.
4213# This isn't especially interesting in the Cygnus tree, but in the individual
4214# FSF releases, it's important to let people know when their machine isn't
4215# supported by the one or two programs in a package.
4216
4217if test -n "${notsupp}" && test -z "${norecursion}" ; then
4218 # If $appdirs is non-empty, at least one of those directories must still
4219 # be configured, or we error out. (E.g., if the gas release supports a
4220 # specified target in some subdirs but not the gas subdir, we shouldn't
4221 # pretend that all is well.)
4222 if test -n "$appdirs" ; then
4223 for dir in $appdirs ; do
4224 if test -r $dir/Makefile.in ; then
4225 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4226 appdirs=""
4227 break
4228 fi
23f6b2f9 4229 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
4230 appdirs=""
4231 break
4232 fi
4233 fi
4234 done
4235 if test -n "$appdirs" ; then
4236 echo "*** This configuration is not supported by this package." 1>&2
4237 exit 1
4238 fi
4239 fi
4240 # Okay, some application will build, or we don't care to check. Still
4241 # notify of subdirs not getting built.
4242 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4243 echo " ${notsupp}" 1>&2
4244 echo " (Any other directories should still work fine.)" 1>&2
4245fi
4246
4247case "$host" in
4248 *msdosdjgpp*)
4249 enable_gdbtk=no ;;
4250esac
4251
4252copy_dirs=
4253
0b0dc272 4254
526635cb
MM
4255# Check whether --with-build-sysroot or --without-build-sysroot was given.
4256if test "${with_build_sysroot+set}" = set; then
4257 withval="$with_build_sysroot"
4258 if test x"$withval" != x ; then
4259 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4260 fi
4261else
4262 SYSROOT_CFLAGS_FOR_TARGET=
0b0dc272 4263fi;
526635cb
MM
4264
4265
55ffb5ed
NN
4266# Handle --with-headers=XXX. If the value is not "yes", the contents of
4267# the named directory are copied to $(tooldir)/sys-include.
4268if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4269 if test x${is_cross_compiler} = xno ; then
4270 echo 1>&2 '***' --with-headers is only supported when cross compiling
4271 exit 1
4272 fi
4273 if test x"${with_headers}" != xyes ; then
4274 case "${exec_prefixoption}" in
4275 "") x=${prefix} ;;
4276 *) x=${exec_prefix} ;;
4277 esac
4278 copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
4279 fi
4280fi
4281
4282# Handle --with-libs=XXX. If the value is not "yes", the contents of
4283# the name directories are copied to $(tooldir)/lib. Multiple directories
4284# are permitted.
4285if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4286 if test x${is_cross_compiler} = xno ; then
4287 echo 1>&2 '***' --with-libs is only supported when cross compiling
4288 exit 1
4289 fi
4290 if test x"${with_libs}" != xyes ; then
4291 # Copy the libraries in reverse order, so that files in the first named
4292 # library override files in subsequent libraries.
4293 case "${exec_prefixoption}" in
4294 "") x=${prefix} ;;
4295 *) x=${exec_prefix} ;;
4296 esac
4297 for l in ${with_libs}; do
4298 copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
4299 done
4300 fi
4301fi
4302
e8b05380
PB
4303# Set with_gnu_as and with_gnu_ld as appropriate.
4304#
4305# This is done by determining whether or not the appropriate directory
4306# is available, and by checking whether or not specific configurations
4307# have requested that this magic not happen.
0b0dc272
AM
4308#
4309# The command line options always override the explicit settings in
e8b05380
PB
4310# configure.in, and the settings in configure.in override this magic.
4311#
0b0dc272 4312# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380
PB
4313# want to do that, then you should use the --without-gnu-as and
4314# --without-gnu-ld options for the configure script.
4315
4316if test x${use_gnu_as} = x &&
4317 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4318 with_gnu_as=yes
4319 extra_host_args="$extra_host_args --with-gnu-as"
4320fi
4321
4322if test x${use_gnu_ld} = x &&
4323 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4324 with_gnu_ld=yes
4325 extra_host_args="$extra_host_args --with-gnu-ld"
4326fi
4327
4328# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4329# can detect this case.
4330
4331if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4332 with_newlib=yes
4333 extra_host_args="$extra_host_args --with-newlib"
4334fi
4335
55ffb5ed
NN
4336# Handle ${copy_dirs}
4337set fnord ${copy_dirs}
4338shift
4339while test $# != 0 ; do
4340 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4341 :
4342 else
4343 echo Copying $1 to $2
4344
4345 # Use the install script to create the directory and all required
4346 # parent directories.
4347 if test -d $2 ; then
4348 :
4349 else
4350 echo >config.temp
4351 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4352 fi
4353
4354 # Copy the directory, assuming we have tar.
4355 # FIXME: Should we use B in the second tar? Not all systems support it.
4356 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4357
4358 # It is the responsibility of the user to correctly adjust all
4359 # symlinks. If somebody can figure out how to handle them correctly
4360 # here, feel free to add the code.
4361
4362 echo $1 > $2/COPIED
4363 fi
4364 shift; shift
4365done
4366
e8b05380
PB
4367# Determine a target-dependent exec_prefix that the installed
4368# gcc will search in. Keep this list sorted by triplet, with
4369# the *-*-osname triplets last.
4370md_exec_prefix=
4371case "${target}" in
4372 alpha*-*-*vms*)
4373 md_exec_prefix=/gnu/lib/gcc-lib
4374 ;;
4375 i3456786-pc-msdosdjgpp*)
4376 md_exec_prefix=/dev/env/DJDIR/bin
4377 ;;
4378 i3456786-*-sco3.2v5*)
4379 if test $with_gnu_as = yes; then
4380 md_exec_prefix=/usr/gnu/bin
4381 else
4382 md_exec_prefix=/usr/ccs/bin/elf
4383 fi
4384 ;;
4385
4386 mn10300-*-* | \
4387 powerpc-*-chorusos* | \
4388 powerpc*-*-eabi* | \
4389 powerpc*-*-sysv* | \
4390 powerpc*-*-kaos* | \
4391 s390x-ibm-tpf*)
4392 md_exec_prefix=/usr/ccs/bin
4393 ;;
4394 sparc64-*-elf*)
4395 ;;
4396 v850*-*-*)
4397 md_exec_prefix=/usr/ccs/bin
4398 ;;
4399 xtensa-*-elf*)
4400 ;;
4401
4402 *-*-beos* | \
4403 *-*-elf* | \
4404 *-*-hpux* | \
4405 *-*-netware* | \
4406 *-*-nto-qnx* | \
4407 *-*-rtems* | \
4408 *-*-solaris2* | \
4409 *-*-sysv45* | \
4410 *-*-vxworks* | \
4411 *-wrs-windiss)
4412 md_exec_prefix=/usr/ccs/bin
4413 ;;
4414esac
4415
671aa708
NN
4416extra_arflags_for_target=
4417extra_nmflags_for_target=
4418extra_ranlibflags_for_target=
4419target_makefile_frag=/dev/null
4420case "${target}" in
58e24147
AM
4421 spu-*-*)
4422 target_makefile_frag="config/mt-spu"
4423 ;;
61fec9ff 4424 *-*-netware*)
671aa708
NN
4425 target_makefile_frag="config/mt-netware"
4426 ;;
98a5bb3b
RM
4427 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4428 target_makefile_frag="config/mt-gnu"
671aa708
NN
4429 ;;
4430 *-*-aix4.[3456789]* | *-*-aix[56789].*)
0b0dc272 4431 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
4432 # commands to handle both 32-bit and 64-bit objects. These flags are
4433 # harmless if we're using GNU nm or ar.
4434 extra_arflags_for_target=" -X32_64"
4435 extra_nmflags_for_target=" -B -X32_64"
4436 ;;
4437 *-*-darwin*)
4438 # ranlib from Darwin requires the -c flag to look at common symbols.
4439 extra_ranlibflags_for_target=" -c"
4440 ;;
4441 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4442 target_makefile_frag="config/mt-wince"
4443 ;;
4444esac
4445
4446alphaieee_frag=/dev/null
4447case $target in
4448 alpha*-*-*)
4449 # This just makes sure to use the -mieee option to build target libs.
4450 # This should probably be set individually by each library.
4451 alphaieee_frag="config/mt-alphaieee"
4452 ;;
4453esac
4454
4455# If --enable-target-optspace always use -Os instead of -O2 to build
4456# the target libraries, similarly if it is not specified, use -Os
4457# on selected platforms.
4458ospace_frag=/dev/null
4459case "${enable_target_optspace}:${target}" in
4460 yes:*)
4461 ospace_frag="config/mt-ospace"
4462 ;;
4463 :d30v-*)
4464 ospace_frag="config/mt-d30v"
4465 ;;
4466 :m32r-* | :d10v-* | :fr30-*)
4467 ospace_frag="config/mt-ospace"
4468 ;;
4469 no:* | :*)
4470 ;;
4471 *)
4472 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4473 ;;
4474esac
4475
671aa708
NN
4476# Default to using --with-stabs for certain targets.
4477if test x${with_stabs} = x ; then
4478 case "${target}" in
89a95129 4479 mips*-*-irix[56]*)
671aa708
NN
4480 ;;
4481 mips*-*-* | alpha*-*-osf*)
4482 with_stabs=yes;
4483 extra_host_args="${extra_host_args} --with-stabs"
4484 ;;
4485 esac
4486fi
4487
4488# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4489# them automatically.
4490case "${host}" in
0b0dc272 4491 hppa*64*-*-hpux11*)
671aa708
NN
4492 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4493 ;;
4494esac
4495
671aa708
NN
4496# Some systems (e.g., one of the i386-aix systems the gas testers are
4497# using) don't handle "\$" correctly, so don't use it here.
df445104 4498tooldir='${exec_prefix}'/${target_alias}
671aa708
NN
4499build_tooldir=${tooldir}
4500
671aa708
NN
4501# Create a .gdbinit file which runs the one in srcdir
4502# and tells GDB to look there for source files.
4503
4504if test -r ${srcdir}/.gdbinit ; then
4505 case ${srcdir} in
4506 .) ;;
4507 *) cat > ./.gdbinit <<EOF
4508# ${NO_EDIT}
4509dir ${srcdir}
4510dir .
4511source ${srcdir}/.gdbinit
4512EOF
4513 ;;
4514 esac
4515fi
4516
671aa708
NN
4517# Make sure that the compiler is able to generate an executable. If it
4518# can't, we are probably in trouble. We don't care whether we can run the
4519# executable--we might be using a cross compiler--we only care whether it
4520# can be created. At this point the main configure script has set CC.
4521we_are_ok=no
4522echo "int main () { return 0; }" > conftest.c
4523${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4524if test $? = 0 ; then
4525 if test -s conftest || test -s conftest.exe ; then
4526 we_are_ok=yes
4527 fi
0b0dc272 4528fi
671aa708
NN
4529case $we_are_ok in
4530 no)
4531 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4532 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4533 rm -f conftest*
4534 exit 1
4535 ;;
4536esac
4537rm -f conftest*
4538
4539# The Solaris /usr/ucb/cc compiler does not appear to work.
4540case "${host}" in
4541 sparc-sun-solaris2*)
4542 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4543 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4544 could_use=
4545 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4546 if test -d /opt/cygnus/bin ; then
4547 if test "$could_use" = "" ; then
4548 could_use="/opt/cygnus/bin"
4549 else
4550 could_use="$could_use or /opt/cygnus/bin"
4551 fi
4552 fi
4553 if test "$could_use" = "" ; then
4554 echo "Warning: compilation may fail because you're using"
4555 echo "/usr/ucb/cc. You should change your PATH or CC "
4556 echo "variable and rerun configure."
4557 else
4558 echo "Warning: compilation may fail because you're using"
4559 echo "/usr/ucb/cc, when you should use the C compiler from"
4560 echo "$could_use. You should change your"
4561 echo "PATH or CC variable and rerun configure."
4562 fi
4563 fi
4564 ;;
4565esac
4566
671aa708
NN
4567case "${host}" in
4568 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 4569 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
671aa708
NN
4570 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4571esac
4572
4573# Record target_configdirs and the configure arguments for target and
4574# build configuration in Makefile.
4575target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 4576build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 4577
671aa708
NN
4578# Determine whether gdb needs tk/tcl or not.
4579# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4580# and in that case we want gdb to be built without tk. Ugh!
4581# In fact I believe gdb is the *only* package directly dependent on tk,
4582# so we should be able to put the 'maybe's in unconditionally and
4583# leave out the maybe dependencies when enable_gdbtk is false. I'm not
4584# 100% sure that that's safe though.
e914a571 4585
b4f96efe 4586gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
4587case "$enable_gdbtk" in
4588 no)
4589 GDB_TK="" ;;
e914a571
AC
4590 yes)
4591 GDB_TK="${gdb_tk}" ;;
671aa708 4592 *)
e914a571
AC
4593 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4594 # distro. Eventually someone will fix this and move Insight, nee
4595 # gdbtk to a separate directory.
4596 if test -d ${srcdir}/gdb/gdbtk ; then
4597 GDB_TK="${gdb_tk}"
4598 else
4599 GDB_TK=""
4600 fi
4601 ;;
671aa708 4602esac
ef9db8d5
DJ
4603CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4604INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 4605
60975492 4606# Strip out unwanted targets.
8b87bb96
NN
4607
4608# While at that, we remove Makefiles if we were started for recursive
4609# configuration, so that the top-level Makefile reconfigures them,
4610# like we used to do when configure itself was recursive.
8b87bb96 4611
60975492
PB
4612# Loop over modules. $extrasub must be used with care, limiting as
4613# much as possible the usage of range addresses. That's because autoconf
4614# splits the sed script to overcome limits in the number of commands,
4615# and relying on carefully-timed sed passes may turn out to be very hard
4616# to maintain later. In this particular case, you just have to be careful
4617# not to nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 4618
f516a7da
PB
4619# Check whether --enable-bootstrap or --disable-bootstrap was given.
4620if test "${enable_bootstrap+set}" = set; then
4621 enableval="$enable_bootstrap"
0b0dc272 4622
f516a7da 4623else
ce521a9c 4624 enable_bootstrap=default
0b0dc272 4625fi;
f516a7da 4626
ce521a9c
PB
4627# Issue errors and warnings for invalid/strange bootstrap combinations.
4628case "$configdirs" in
4629 *gcc*) have_compiler=yes ;;
4630 *) have_compiler=no ;;
4631esac
4632
4633case "$have_compiler:$host:$target:$enable_bootstrap" in
4634 *:*:*:no) ;;
4635
1ca26cd2 4636 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
4637 # and we are in a native configuration.
4638 yes:$build:$build:default)
1ca26cd2 4639 enable_bootstrap=yes ;;
ce521a9c
PB
4640
4641 *:*:*:default)
4642 enable_bootstrap=no ;;
4643
4644 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 4645 yes:$build:$build:yes)
ce521a9c
PB
4646 ;;
4647
4648 # Other configurations, but we have a compiler. Assume the user knows
4649 # what he's doing.
2d309510 4650 yes:*:*:yes)
0b0dc272
AM
4651 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4652echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
4653 ;;
4654
4655 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 4656 no:*:*:yes)
0b0dc272
AM
4657 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4658echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4659 { (exit 1); exit 1; }; } ;;
ce521a9c
PB
4660
4661 # Fail if wrong command line
4662 *)
0b0dc272
AM
4663 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4664echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4665 { (exit 1); exit 1; }; }
ce521a9c
PB
4666 ;;
4667esac
4668
4669# Adjust the toplevel makefile according to whether bootstrap was selected.
f516a7da
PB
4670case "$enable_bootstrap" in
4671 yes)
5607edfd 4672 bootstrap_suffix=bootstrap ;;
f516a7da 4673 no)
5607edfd 4674 bootstrap_suffix=no-bootstrap ;;
f516a7da
PB
4675esac
4676
23f6b2f9 4677for module in ${build_configdirs} ; do
5607edfd
PB
4678 if test -z "${no_recursion}" \
4679 && test -f ${build_subdir}/${module}/Makefile; then
4680 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4681 rm -f ${build_subdir}/${module}/Makefile
4682 fi
4683 extrasub="$extrasub
4684/^@if build-$module\$/d
4685/^@endif build-$module\$/d
4686/^@if build-$module-$bootstrap_suffix\$/d
4687/^@endif build-$module-$bootstrap_suffix\$/d"
4688done
4689for module in ${configdirs} ; do
a6fbc1e2
AS
4690 if test -z "${no_recursion}"; then
4691 for file in stage*-${module}/Makefile ${module}/Makefile; do
4692 if test -f ${file}; then
4693 echo 1>&2 "*** removing ${file} to force reconfigure"
4694 rm -f ${file}
4695 fi
4696 done
5607edfd
PB
4697 fi
4698 extrasub="$extrasub
4699/^@if $module\$/d
4700/^@endif $module\$/d
4701/^@if $module-$bootstrap_suffix\$/d
4702/^@endif $module-$bootstrap_suffix\$/d"
4703done
4704for module in ${target_configdirs} ; do
4705 if test -z "${no_recursion}" \
4706 && test -f ${target_subdir}/${module}/Makefile; then
4707 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4708 rm -f ${target_subdir}/${module}/Makefile
4709 fi
4710 extrasub="$extrasub
4711/^@if target-$module\$/d
4712/^@endif target-$module\$/d
4713/^@if target-$module-$bootstrap_suffix\$/d
4714/^@endif target-$module-$bootstrap_suffix\$/d"
4715done
4716
60975492
PB
4717extrasub="$extrasub
4718/^@if /,/^@endif /d"
671aa708
NN
4719
4720# Create the serialization dependencies. This uses a temporary file.
4721
ade82b16
AO
4722# Check whether --enable-serial-configure or --disable-serial-configure was given.
4723if test "${enable_serial_configure+set}" = set; then
4724 enableval="$enable_serial_configure"
ade82b16 4725
0b0dc272 4726fi;
ade82b16 4727
bf1d3e81
NN
4728case ${enable_serial_configure} in
4729 yes)
4730 enable_serial_build_configure=yes
4731 enable_serial_host_configure=yes
4732 enable_serial_target_configure=yes
4733 ;;
4734esac
4735
671aa708
NN
4736# These force 'configure's to be done one at a time, to avoid problems
4737# with contention over a shared config.cache.
4738rm -f serdep.tmp
ade82b16 4739echo '# serdep.tmp' > serdep.tmp
671aa708 4740olditem=
bf1d3e81 4741test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
4742for item in ${build_configdirs} ; do
4743 case ${olditem} in
4744 "") ;;
ade82b16 4745 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
4746 esac
4747 olditem=${item}
4748done
4749olditem=
bf1d3e81 4750test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
4751for item in ${configdirs} ; do
4752 case ${olditem} in
4753 "") ;;
ade82b16 4754 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
4755 esac
4756 olditem=${item}
4757done
4758olditem=
bf1d3e81 4759test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
4760for item in ${target_configdirs} ; do
4761 case ${olditem} in
4762 "") ;;
ade82b16 4763 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
4764 esac
4765 olditem=${item}
4766done
4767serialization_dependencies=serdep.tmp
4768
4769
ade82b16
AO
4770# Base args. Strip norecursion, cache-file, srcdir, host, build,
4771# target and nonopt. These are the ones we might not want to pass
43bb47c2
DJ
4772# down to subconfigures. Also strip program-prefix, program-suffix,
4773# and program-transform-name, so that we can pass down a consistent
4774# program-transform-name. If autoconf has put single quotes around
4775# any of these arguments (because they contain shell metacharacters)
4776# then this will fail; in practice this only happens for
4777# --program-transform-name, so be sure to override --program-transform-name
4778# at the end of the argument list.
4779# These will be expanded by make, so quote '$'.
b348267b 4780cat <<\EOF_SED > conftestsed
9104315a
NN
4781s/ --no[^ ]*/ /g
4782s/ --c[a-z-]*[= ][^ ]*//g
4783s/ --sr[a-z-]*[= ][^ ]*//g
4784s/ --ho[a-z-]*[= ][^ ]*//g
4785s/ --bu[a-z-]*[= ][^ ]*//g
4786s/ --t[a-z-]*[= ][^ ]*//g
4787s/ --program-[pst][a-z-]*[= ][^ ]*//g
4788s/ -cache-file[= ][^ ]*//g
4789s/ -srcdir[= ][^ ]*//g
4790s/ -host[= ][^ ]*//g
4791s/ -build[= ][^ ]*//g
4792s/ -target[= ][^ ]*//g
4793s/ -program-prefix[= ][^ ]*//g
4794s/ -program-suffix[= ][^ ]*//g
4795s/ -program-transform-name[= ][^ ]*//g
b348267b
GK
4796s/ [^' -][^ ]* / /
4797s/^ *//;s/ *$//
eeae7b41
DJ
4798s,\$,$$,g
4799EOF_SED
4800sed -f conftestsed <<EOF_SED > conftestsed.out
0b0dc272 4801 ${ac_configure_args}
b348267b 4802EOF_SED
eeae7b41
DJ
4803baseargs=`cat conftestsed.out`
4804rm -f conftestsed conftestsed.out
671aa708 4805
43bb47c2
DJ
4806# Add in --program-transform-name, after --program-prefix and
4807# --program-suffix have been applied to it. Autoconf has already
4808# doubled dollar signs and backslashes in program_transform_name; we want
4809# the backslashes un-doubled, and then the entire thing wrapped in single
0b0dc272 4810# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
4811# Also, because we want to override the logic in subdir configure scripts to
4812# choose program_transform_name, replace any s,x,x, with s,y,y,.
4813sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
4814${program_transform_name}
4815EOF_SED
4816gcc_transform_name=`cat conftestsed.out`
4817rm -f conftestsed.out
4818baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
4819
671aa708
NN
4820# For the build-side libraries, we just need to pretend we're native,
4821# and not use the same cache file. Multilibs are neither needed nor
4822# desired.
556f03c4 4823build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} --target=${target_alias} ${baseargs}"
671aa708
NN
4824
4825# For host modules, accept cache file option, or specification as blank.
4826case "${cache_file}" in
4827"") # empty
4828 cache_file_option="" ;;
4829/* | [A-Za-z]:[\\/]* ) # absolute path
4830 cache_file_option="--cache-file=${cache_file}" ;;
4831*) # relative path
4832 cache_file_option="--cache-file=../${cache_file}" ;;
4833esac
4834
09438bde
NN
4835# Host dirs don't like to share a cache file either, horribly enough.
4836# This seems to be due to autoconf 2.5x stupidity.
2b6c260d 4837host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}"
671aa708
NN
4838
4839target_configargs=${baseargs}
4840
4841# Passing a --with-cross-host argument lets the target libraries know
4842# whether they are being built with a cross-compiler or being built
4843# native. However, it would be better to use other mechanisms to make the
4844# sorts of decisions they want to make on this basis. Please consider
4845# this option to be deprecated. FIXME.
4846if test x${is_cross_compiler} = xyes ; then
4847 target_configargs="--with-cross-host=${host_alias} ${target_configargs}"
4848fi
4849
4850# Default to --enable-multilib.
4851if test x${enable_multilib} = x ; then
4852 target_configargs="--enable-multilib ${target_configargs}"
4853fi
4854
4855# Pass --with-newlib if appropriate. Note that target_configdirs has
4856# changed from the earlier setting of with_newlib.
4857if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
4858 target_configargs="--with-newlib ${target_configargs}"
4859fi
4860
6b9eb62c
NN
4861# Different target subdirs use different values of certain variables
4862# (notably CXX). Worse, multilibs use *lots* of different values.
4863# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
4864# it doesn't automatically accept command-line overrides of them.
4865# This means it's not safe for target subdirs to share a cache file,
4866# which is disgusting, but there you have it. Hopefully this can be
4867# fixed in future. It's still worthwhile to use a cache file for each
4868# directory. I think.
4869
bebcd931
MS
4870# Pass the appropriate --build, --host, --target and --cache-file arguments.
4871# We need to pass --target, as newer autoconf's requires consistency
4872# for target_alias and gcc doesn't manage it consistently.
4873target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}"
671aa708 4874
671aa708
NN
4875FLAGS_FOR_TARGET=
4876case " $target_configdirs " in
4877 *" newlib "*)
4878 case " $target_configargs " in
4879 *" --with-newlib "*)
4880 case "$target" in
4881 *-cygwin*)
aa8f1f57 4882 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
671aa708
NN
4883 esac
4884
4885 # If we're not building GCC, don't discard standard headers.
4886 if test -d ${srcdir}/gcc; then
4887 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
4888
4889 if test "${build}" != "${host}"; then
4890 # On Canadian crosses, CC_FOR_TARGET will have already been set
4891 # by `configure', so we won't have an opportunity to add -Bgcc/
4892 # to it. This is right: we don't want to search that directory
4893 # for binaries, but we want the header files in there, so add
4894 # them explicitly.
215c351a 4895 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
4896
4897 # Someone might think of using the pre-installed headers on
4898 # Canadian crosses, in case the installed compiler is not fully
4899 # compatible with the compiler being built. In this case, it
4900 # would be better to flag an error than risking having
4901 # incompatible object files being constructed. We can't
4902 # guarantee that an error will be flagged, but let's hope the
4903 # compiler will do it, when presented with incompatible header
4904 # files.
4905 fi
4906 fi
4907
4908 case "${target}-${is_cross_compiler}" in
f2a0e225 4909 i[3456789]86-*-linux*-no)
671aa708
NN
4910 # Here host == target, so we don't need to build gcc,
4911 # so we don't want to discard standard headers.
4912 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
4913 ;;
4914 *)
4915 # If we're building newlib, use its generic headers last, but search
4916 # for any libc-related directories first (so make it the last -B
4917 # switch).
4918 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
4919 ;;
4920 esac
4921 ;;
4922 esac
4923 ;;
4924esac
b91f0a41
CV
4925case "$target" in
4926*-mingw*)
4927 # Can't be handled as Cygwin above since Mingw does not use newlib.
4928 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' ;;
4929esac
671aa708 4930
6691a79e
ME
4931# Allow the user to override the flags for
4932# our build compiler if desired.
4933CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
4934
671aa708
NN
4935# On Canadian crosses, we'll be searching the right directories for
4936# the previously-installed cross compiler, so don't bother to add
4937# flags for directories within the install tree of the compiler
4938# being built; programs in there won't even run.
4939if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
4940 # Search for pre-installed headers if nothing else fits.
9124bc53 4941 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
4942fi
4943
4944if test "x${use_gnu_ld}" = x &&
4945 echo " ${configdirs} " | grep " ld " > /dev/null ; then
4946 # Arrange for us to find uninstalled linker scripts.
215c351a 4947 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
4948fi
4949
e88a2c09
DD
4950# Search for other target-specific linker scripts and such.
4951case "${target}" in
4952 m32c-*-* )
4953 if test -d ${srcdir}/libgloss/m32c; then
4954 # This is for crt0.o
4955 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
4956 # This is for r8c.ld
4957 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
4958 # This is for libnosys.a
4959 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
4960 fi
4961 ;;
4962esac
4963
671aa708 4964# Makefile fragments.
7b61653a
PE
4965for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
4966do
4967 eval fragval=\$$frag
4968 if test $fragval != /dev/null; then
4969 eval $frag=${srcdir}/$fragval
4970 fi
4971done
671aa708
NN
4972
4973
4974
4975
4976
4977# Miscellanea: directories, flags, etc.
4978
4979
4980
4981
4982
4983
4984
23f6b2f9 4985# Build module lists & subconfigure args.
671aa708
NN
4986
4987
4988
2abefe3d
PB
4989# Host module lists & subconfigure args.
4990
4991
4992
4993# Target module lists & subconfigure args.
4994
4995
4996
4997# Build tools.
4998
4999
5000
5001# Generate default definitions for YACC, M4, LEX and other programs that run
5002# on the build machine. These are used if the Makefile can't locate these
5003# programs in objdir.
5004MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5005
5006for ac_prog in 'bison -y' byacc yacc
5007do
0b0dc272 5008 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5009set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5010echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012if test "${ac_cv_prog_YACC+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5014else
5015 if test -n "$YACC"; then
5016 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5017else
0b0dc272
AM
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025 ac_cv_prog_YACC="$ac_prog"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030done
5031
2abefe3d
PB
5032fi
5033fi
0b0dc272 5034YACC=$ac_cv_prog_YACC
2abefe3d 5035if test -n "$YACC"; then
0b0dc272
AM
5036 echo "$as_me:$LINENO: result: $YACC" >&5
5037echo "${ECHO_T}$YACC" >&6
2abefe3d 5038else
0b0dc272
AM
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
2abefe3d
PB
5041fi
5042
0b0dc272 5043 test -n "$YACC" && break
2abefe3d
PB
5044done
5045test -n "$YACC" || YACC="$MISSING bison -y"
5046
5047case " $build_configdirs " in
5048 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5049 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5050esac
5051
5052for ac_prog in bison
5053do
0b0dc272 5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5055set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5056echo "$as_me:$LINENO: checking for $ac_word" >&5
5057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058if test "${ac_cv_prog_BISON+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5060else
5061 if test -n "$BISON"; then
5062 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5063else
0b0dc272
AM
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_BISON="$ac_prog"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075done
5076done
5077
2abefe3d
PB
5078fi
5079fi
0b0dc272 5080BISON=$ac_cv_prog_BISON
2abefe3d 5081if test -n "$BISON"; then
0b0dc272
AM
5082 echo "$as_me:$LINENO: result: $BISON" >&5
5083echo "${ECHO_T}$BISON" >&6
2abefe3d 5084else
0b0dc272
AM
5085 echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
2abefe3d
PB
5087fi
5088
0b0dc272 5089 test -n "$BISON" && break
2abefe3d
PB
5090done
5091test -n "$BISON" || BISON="$MISSING bison"
5092
5093case " $build_configdirs " in
5094 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5095esac
5096
5097for ac_prog in gm4 gnum4 m4
5098do
0b0dc272 5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5100set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_prog_M4+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5105else
5106 if test -n "$M4"; then
5107 ac_cv_prog_M4="$M4" # Let the user override the test.
5108else
0b0dc272
AM
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_M4="$ac_prog"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120done
5121done
5122
2abefe3d
PB
5123fi
5124fi
0b0dc272 5125M4=$ac_cv_prog_M4
2abefe3d 5126if test -n "$M4"; then
0b0dc272
AM
5127 echo "$as_me:$LINENO: result: $M4" >&5
5128echo "${ECHO_T}$M4" >&6
2abefe3d 5129else
0b0dc272
AM
5130 echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6
2abefe3d
PB
5132fi
5133
0b0dc272 5134 test -n "$M4" && break
2abefe3d
PB
5135done
5136test -n "$M4" || M4="$MISSING m4"
5137
5138case " $build_configdirs " in
5139 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5140esac
5141
5142for ac_prog in flex lex
5143do
0b0dc272 5144 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5145set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5146echo "$as_me:$LINENO: checking for $ac_word" >&5
5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148if test "${ac_cv_prog_LEX+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5150else
5151 if test -n "$LEX"; then
5152 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5153else
0b0dc272
AM
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_LEX="$ac_prog"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165done
5166done
5167
2abefe3d
PB
5168fi
5169fi
0b0dc272 5170LEX=$ac_cv_prog_LEX
2abefe3d 5171if test -n "$LEX"; then
0b0dc272
AM
5172 echo "$as_me:$LINENO: result: $LEX" >&5
5173echo "${ECHO_T}$LEX" >&6
2abefe3d 5174else
0b0dc272
AM
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
2abefe3d
PB
5177fi
5178
0b0dc272 5179 test -n "$LEX" && break
2abefe3d
PB
5180done
5181test -n "$LEX" || LEX="$MISSING flex"
5182
5183case " $build_configdirs " in
5184 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5185 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5186esac
5187
5188for ac_prog in flex
5189do
0b0dc272 5190 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5191set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5192echo "$as_me:$LINENO: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194if test "${ac_cv_prog_FLEX+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5196else
5197 if test -n "$FLEX"; then
5198 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5199else
0b0dc272
AM
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_FLEX="$ac_prog"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211done
5212done
5213
2abefe3d
PB
5214fi
5215fi
0b0dc272 5216FLEX=$ac_cv_prog_FLEX
2abefe3d 5217if test -n "$FLEX"; then
0b0dc272
AM
5218 echo "$as_me:$LINENO: result: $FLEX" >&5
5219echo "${ECHO_T}$FLEX" >&6
2abefe3d 5220else
0b0dc272
AM
5221 echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
2abefe3d
PB
5223fi
5224
0b0dc272 5225 test -n "$FLEX" && break
2abefe3d
PB
5226done
5227test -n "$FLEX" || FLEX="$MISSING flex"
5228
5229case " $build_configdirs " in
5230 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5231esac
5232
5233for ac_prog in makeinfo
5234do
0b0dc272 5235 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5236set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5241else
5242 if test -n "$MAKEINFO"; then
5243 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5244else
0b0dc272
AM
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_MAKEINFO="$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256done
5257done
5258
2abefe3d
PB
5259fi
5260fi
0b0dc272 5261MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 5262if test -n "$MAKEINFO"; then
0b0dc272
AM
5263 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5264echo "${ECHO_T}$MAKEINFO" >&6
2abefe3d 5265else
0b0dc272
AM
5266 echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
2abefe3d
PB
5268fi
5269
0b0dc272 5270 test -n "$MAKEINFO" && break
2abefe3d
PB
5271done
5272test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5273
5274case " $build_configdirs " in
5275 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5276 *)
5277
27b6c940 5278 # For an installed makeinfo, we require it to be from texinfo 4.4 or
2abefe3d
PB
5279 # higher, else we use the "missing" dummy.
5280 if ${MAKEINFO} --version \
27b6c940 5281 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
2abefe3d
PB
5282 :
5283 else
5284 MAKEINFO="$MISSING makeinfo"
5285 fi
5286 ;;
5287
5288esac
671aa708 5289
2abefe3d 5290# FIXME: expect and dejagnu may become build tools?
671aa708 5291
2abefe3d
PB
5292for ac_prog in expect
5293do
0b0dc272 5294 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5295set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5296echo "$as_me:$LINENO: checking for $ac_word" >&5
5297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298if test "${ac_cv_prog_EXPECT+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5300else
5301 if test -n "$EXPECT"; then
5302 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5303else
0b0dc272
AM
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_EXPECT="$ac_prog"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315done
5316done
5317
2abefe3d
PB
5318fi
5319fi
0b0dc272 5320EXPECT=$ac_cv_prog_EXPECT
2abefe3d 5321if test -n "$EXPECT"; then
0b0dc272
AM
5322 echo "$as_me:$LINENO: result: $EXPECT" >&5
5323echo "${ECHO_T}$EXPECT" >&6
2abefe3d 5324else
0b0dc272
AM
5325 echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6
2abefe3d 5327fi
671aa708 5328
0b0dc272 5329 test -n "$EXPECT" && break
2abefe3d
PB
5330done
5331test -n "$EXPECT" || EXPECT="expect"
671aa708 5332
2abefe3d
PB
5333case " $configdirs " in
5334 *" expect "*)
5335 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5336 ;;
5337esac
671aa708 5338
2abefe3d
PB
5339for ac_prog in runtest
5340do
0b0dc272 5341 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 5342set dummy $ac_prog; ac_word=$2
0b0dc272
AM
5343echo "$as_me:$LINENO: checking for $ac_word" >&5
5344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345if test "${ac_cv_prog_RUNTEST+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5347else
5348 if test -n "$RUNTEST"; then
5349 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 5350else
0b0dc272
AM
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_RUNTEST="$ac_prog"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362done
5363done
5364
2abefe3d
PB
5365fi
5366fi
0b0dc272 5367RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 5368if test -n "$RUNTEST"; then
0b0dc272
AM
5369 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5370echo "${ECHO_T}$RUNTEST" >&6
2abefe3d 5371else
0b0dc272
AM
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
2abefe3d 5374fi
671aa708 5375
0b0dc272 5376 test -n "$RUNTEST" && break
2abefe3d
PB
5377done
5378test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 5379
2abefe3d
PB
5380case " $configdirs " in
5381 *" dejagnu "*)
c394e891 5382 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
5383 ;;
5384esac
671aa708
NN
5385
5386
671aa708 5387# Host tools.
ca9f4b81
AO
5388ncn_tool_prefix=
5389test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5390ncn_target_tool_prefix=
5391test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5392
2693c0b0
PB
5393 for ncn_progname in ar; do
5394 if test -n "$ncn_tool_prefix"; then
5395 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5396set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
5397echo "$as_me:$LINENO: checking for $ac_word" >&5
5398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399if test "${ac_cv_prog_AR+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5401else
5402 if test -n "$AR"; then
5403 ac_cv_prog_AR="$AR" # Let the user override the test.
5404else
0b0dc272
AM
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416done
5417done
5418
ca9f4b81
AO
5419fi
5420fi
0b0dc272 5421AR=$ac_cv_prog_AR
ca9f4b81 5422if test -n "$AR"; then
0b0dc272
AM
5423 echo "$as_me:$LINENO: result: $AR" >&5
5424echo "${ECHO_T}$AR" >&6
ca9f4b81 5425else
0b0dc272
AM
5426 echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
ca9f4b81
AO
5428fi
5429
2693c0b0
PB
5430 fi
5431 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5433set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
5434echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436if test "${ac_cv_prog_AR+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5438else
2693c0b0
PB
5439 if test -n "$AR"; then
5440 ac_cv_prog_AR="$AR" # Let the user override the test.
ca9f4b81 5441else
0b0dc272
AM
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_AR="${ncn_progname}"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454done
5455
ca9f4b81
AO
5456fi
5457fi
0b0dc272 5458AR=$ac_cv_prog_AR
2693c0b0 5459if test -n "$AR"; then
0b0dc272
AM
5460 echo "$as_me:$LINENO: result: $AR" >&5
5461echo "${ECHO_T}$AR" >&6
ca9f4b81 5462else
0b0dc272
AM
5463 echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
ca9f4b81 5465fi
0b0dc272 5466
2693c0b0
PB
5467 fi
5468 test -n "$ac_cv_prog_AR" && break
5469done
5470
5471if test -z "$ac_cv_prog_AR" ; then
5472 set dummy ar
5473 if test $build = $host ; then
5474 AR="$2"
ca9f4b81 5475 else
2693c0b0 5476 AR="${ncn_tool_prefix}$2"
ca9f4b81 5477 fi
ca9f4b81
AO
5478fi
5479
2693c0b0
PB
5480 for ncn_progname in as; do
5481 if test -n "$ncn_tool_prefix"; then
5482 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5483set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
5484echo "$as_me:$LINENO: checking for $ac_word" >&5
5485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486if test "${ac_cv_prog_AS+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5488else
5489 if test -n "$AS"; then
5490 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272
AM
5491else
5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503done
5504done
5505
ca9f4b81
AO
5506fi
5507fi
0b0dc272 5508AS=$ac_cv_prog_AS
ca9f4b81 5509if test -n "$AS"; then
0b0dc272
AM
5510 echo "$as_me:$LINENO: result: $AS" >&5
5511echo "${ECHO_T}$AS" >&6
ca9f4b81 5512else
0b0dc272
AM
5513 echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
ca9f4b81
AO
5515fi
5516
2693c0b0
PB
5517 fi
5518 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5520set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
5521echo "$as_me:$LINENO: checking for $ac_word" >&5
5522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523if test "${ac_cv_prog_AS+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5525else
2693c0b0
PB
5526 if test -n "$AS"; then
5527 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 5528else
0b0dc272
AM
5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_AS="${ncn_progname}"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
5541done
5542
ca9f4b81
AO
5543fi
5544fi
0b0dc272 5545AS=$ac_cv_prog_AS
2693c0b0 5546if test -n "$AS"; then
0b0dc272
AM
5547 echo "$as_me:$LINENO: result: $AS" >&5
5548echo "${ECHO_T}$AS" >&6
ca9f4b81 5549else
0b0dc272
AM
5550 echo "$as_me:$LINENO: result: no" >&5
5551echo "${ECHO_T}no" >&6
ca9f4b81 5552fi
0b0dc272 5553
2693c0b0
PB
5554 fi
5555 test -n "$ac_cv_prog_AS" && break
5556done
5557
5558if test -z "$ac_cv_prog_AS" ; then
5559 set dummy as
5560 if test $build = $host ; then
5561 AS="$2"
ca9f4b81 5562 else
2693c0b0 5563 AS="${ncn_tool_prefix}$2"
ca9f4b81 5564 fi
ca9f4b81
AO
5565fi
5566
2693c0b0
PB
5567 for ncn_progname in dlltool; do
5568 if test -n "$ncn_tool_prefix"; then
5569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5570set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
5571echo "$as_me:$LINENO: checking for $ac_word" >&5
5572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5575else
5576 if test -n "$DLLTOOL"; then
5577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5578else
0b0dc272
AM
5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH
5581do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590done
5591done
5592
ca9f4b81
AO
5593fi
5594fi
0b0dc272 5595DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 5596if test -n "$DLLTOOL"; then
0b0dc272
AM
5597 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5598echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 5599else
0b0dc272
AM
5600 echo "$as_me:$LINENO: result: no" >&5
5601echo "${ECHO_T}no" >&6
ca9f4b81
AO
5602fi
5603
2693c0b0
PB
5604 fi
5605 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5607set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
5608echo "$as_me:$LINENO: checking for $ac_word" >&5
5609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5612else
2693c0b0
PB
5613 if test -n "$DLLTOOL"; then
5614 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 5615else
0b0dc272
AM
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_DLLTOOL="${ncn_progname}"
5624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5626 fi
5627done
5628done
5629
ca9f4b81
AO
5630fi
5631fi
0b0dc272 5632DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 5633if test -n "$DLLTOOL"; then
0b0dc272
AM
5634 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5635echo "${ECHO_T}$DLLTOOL" >&6
ca9f4b81 5636else
0b0dc272
AM
5637 echo "$as_me:$LINENO: result: no" >&5
5638echo "${ECHO_T}no" >&6
ca9f4b81 5639fi
0b0dc272 5640
2693c0b0
PB
5641 fi
5642 test -n "$ac_cv_prog_DLLTOOL" && break
5643done
5644
5645if test -z "$ac_cv_prog_DLLTOOL" ; then
5646 set dummy dlltool
5647 if test $build = $host ; then
5648 DLLTOOL="$2"
ca9f4b81 5649 else
2693c0b0 5650 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 5651 fi
ca9f4b81
AO
5652fi
5653
2693c0b0
PB
5654 for ncn_progname in ld; do
5655 if test -n "$ncn_tool_prefix"; then
5656 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5657set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
5658echo "$as_me:$LINENO: checking for $ac_word" >&5
5659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5660if test "${ac_cv_prog_LD+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5662else
5663 if test -n "$LD"; then
5664 ac_cv_prog_LD="$LD" # Let the user override the test.
5665else
0b0dc272
AM
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5676 fi
5677done
5678done
5679
ca9f4b81
AO
5680fi
5681fi
0b0dc272 5682LD=$ac_cv_prog_LD
ca9f4b81 5683if test -n "$LD"; then
0b0dc272
AM
5684 echo "$as_me:$LINENO: result: $LD" >&5
5685echo "${ECHO_T}$LD" >&6
ca9f4b81 5686else
0b0dc272
AM
5687 echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
ca9f4b81
AO
5689fi
5690
2693c0b0
PB
5691 fi
5692 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5694set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
5695echo "$as_me:$LINENO: checking for $ac_word" >&5
5696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5697if test "${ac_cv_prog_LD+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5699else
2693c0b0
PB
5700 if test -n "$LD"; then
5701 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 5702else
0b0dc272
AM
5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_LD="${ncn_progname}"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714done
5715done
5716
ca9f4b81
AO
5717fi
5718fi
0b0dc272 5719LD=$ac_cv_prog_LD
2693c0b0 5720if test -n "$LD"; then
0b0dc272
AM
5721 echo "$as_me:$LINENO: result: $LD" >&5
5722echo "${ECHO_T}$LD" >&6
ca9f4b81 5723else
0b0dc272
AM
5724 echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
ca9f4b81 5726fi
0b0dc272 5727
2693c0b0
PB
5728 fi
5729 test -n "$ac_cv_prog_LD" && break
5730done
5731
5732if test -z "$ac_cv_prog_LD" ; then
5733 set dummy ld
5734 if test $build = $host ; then
5735 LD="$2"
ca9f4b81 5736 else
2693c0b0 5737 LD="${ncn_tool_prefix}$2"
ca9f4b81 5738 fi
ca9f4b81
AO
5739fi
5740
2abefe3d
PB
5741 for ncn_progname in lipo; do
5742 if test -n "$ncn_tool_prefix"; then
5743 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5744set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
5745echo "$as_me:$LINENO: checking for $ac_word" >&5
5746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5747if test "${ac_cv_prog_LIPO+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5749else
5750 if test -n "$LIPO"; then
5751 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5752else
0b0dc272
AM
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764done
5765done
5766
2abefe3d
PB
5767fi
5768fi
0b0dc272 5769LIPO=$ac_cv_prog_LIPO
2abefe3d 5770if test -n "$LIPO"; then
0b0dc272
AM
5771 echo "$as_me:$LINENO: result: $LIPO" >&5
5772echo "${ECHO_T}$LIPO" >&6
2abefe3d 5773else
0b0dc272
AM
5774 echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
2abefe3d
PB
5776fi
5777
5778 fi
5779 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
5780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5781set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
5782echo "$as_me:$LINENO: checking for $ac_word" >&5
5783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5784if test "${ac_cv_prog_LIPO+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
5786else
5787 if test -n "$LIPO"; then
5788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5789else
0b0dc272
AM
5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_LIPO="${ncn_progname}"
5798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5800 fi
5801done
5802done
5803
2abefe3d
PB
5804fi
5805fi
0b0dc272 5806LIPO=$ac_cv_prog_LIPO
2abefe3d 5807if test -n "$LIPO"; then
0b0dc272
AM
5808 echo "$as_me:$LINENO: result: $LIPO" >&5
5809echo "${ECHO_T}$LIPO" >&6
2abefe3d 5810else
0b0dc272
AM
5811 echo "$as_me:$LINENO: result: no" >&5
5812echo "${ECHO_T}no" >&6
2abefe3d 5813fi
0b0dc272 5814
2abefe3d
PB
5815 fi
5816 test -n "$ac_cv_prog_LIPO" && break
5817done
5818
5819if test -z "$ac_cv_prog_LIPO" ; then
5820 set dummy lipo
5821 if test $build = $host ; then
5822 LIPO="$2"
5823 else
5824 LIPO="${ncn_tool_prefix}$2"
5825 fi
5826fi
5827
2693c0b0
PB
5828 for ncn_progname in nm; do
5829 if test -n "$ncn_tool_prefix"; then
5830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5831set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
5832echo "$as_me:$LINENO: checking for $ac_word" >&5
5833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834if test "${ac_cv_prog_NM+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5836else
5837 if test -n "$NM"; then
5838 ac_cv_prog_NM="$NM" # Let the user override the test.
5839else
0b0dc272
AM
5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852done
5853
ca9f4b81
AO
5854fi
5855fi
0b0dc272 5856NM=$ac_cv_prog_NM
ca9f4b81 5857if test -n "$NM"; then
0b0dc272
AM
5858 echo "$as_me:$LINENO: result: $NM" >&5
5859echo "${ECHO_T}$NM" >&6
ca9f4b81 5860else
0b0dc272
AM
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
ca9f4b81
AO
5863fi
5864
2693c0b0
PB
5865 fi
5866 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
5867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5868set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
5869echo "$as_me:$LINENO: checking for $ac_word" >&5
5870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871if test "${ac_cv_prog_NM+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5873else
2693c0b0
PB
5874 if test -n "$NM"; then
5875 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 5876else
0b0dc272
AM
5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_NM="${ncn_progname}"
5885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888done
5889done
5890
ca9f4b81
AO
5891fi
5892fi
0b0dc272 5893NM=$ac_cv_prog_NM
2693c0b0 5894if test -n "$NM"; then
0b0dc272
AM
5895 echo "$as_me:$LINENO: result: $NM" >&5
5896echo "${ECHO_T}$NM" >&6
ca9f4b81 5897else
0b0dc272
AM
5898 echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
ca9f4b81 5900fi
0b0dc272 5901
2693c0b0
PB
5902 fi
5903 test -n "$ac_cv_prog_NM" && break
5904done
5905
5906if test -z "$ac_cv_prog_NM" ; then
5907 set dummy nm
5908 if test $build = $host ; then
5909 NM="$2"
ca9f4b81 5910 else
2693c0b0 5911 NM="${ncn_tool_prefix}$2"
ca9f4b81 5912 fi
ca9f4b81
AO
5913fi
5914
2693c0b0
PB
5915 for ncn_progname in ranlib; do
5916 if test -n "$ncn_tool_prefix"; then
5917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5918set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
5919echo "$as_me:$LINENO: checking for $ac_word" >&5
5920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921if test "${ac_cv_prog_RANLIB+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
5923else
5924 if test -n "$RANLIB"; then
5925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5926else
0b0dc272
AM
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939done
5940
ca9f4b81
AO
5941fi
5942fi
0b0dc272 5943RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 5944if test -n "$RANLIB"; then
0b0dc272
AM
5945 echo "$as_me:$LINENO: result: $RANLIB" >&5
5946echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 5947else
0b0dc272
AM
5948 echo "$as_me:$LINENO: result: no" >&5
5949echo "${ECHO_T}no" >&6
ca9f4b81
AO
5950fi
5951
2693c0b0
PB
5952 fi
5953 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
5954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5955set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
5956echo "$as_me:$LINENO: checking for $ac_word" >&5
5957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958if test "${ac_cv_prog_RANLIB+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 5960else
2693c0b0
PB
5961 if test -n "$RANLIB"; then
5962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 5963else
0b0dc272
AM
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_RANLIB="${ncn_progname}"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975done
5976done
5977
ca9f4b81
AO
5978fi
5979fi
0b0dc272 5980RANLIB=$ac_cv_prog_RANLIB
2693c0b0 5981if test -n "$RANLIB"; then
0b0dc272
AM
5982 echo "$as_me:$LINENO: result: $RANLIB" >&5
5983echo "${ECHO_T}$RANLIB" >&6
ca9f4b81 5984else
0b0dc272
AM
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
ca9f4b81 5987fi
0b0dc272 5988
ca9f4b81 5989 fi
2693c0b0
PB
5990 test -n "$ac_cv_prog_RANLIB" && break
5991done
5992
5993if test -z "$ac_cv_prog_RANLIB" ; then
5994 RANLIB=":"
ca9f4b81
AO
5995fi
5996
2abefe3d
PB
5997 for ncn_progname in strip; do
5998 if test -n "$ncn_tool_prefix"; then
5999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6000set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6001echo "$as_me:$LINENO: checking for $ac_word" >&5
6002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003if test "${ac_cv_prog_STRIP+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6005else
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008else
0b0dc272
AM
6009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6019 fi
6020done
6021done
6022
2abefe3d
PB
6023fi
6024fi
0b0dc272 6025STRIP=$ac_cv_prog_STRIP
2abefe3d 6026if test -n "$STRIP"; then
0b0dc272
AM
6027 echo "$as_me:$LINENO: result: $STRIP" >&5
6028echo "${ECHO_T}$STRIP" >&6
2abefe3d 6029else
0b0dc272
AM
6030 echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6
2abefe3d
PB
6032fi
6033
6034 fi
6035 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6037set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6038echo "$as_me:$LINENO: checking for $ac_word" >&5
6039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6040if test "${ac_cv_prog_STRIP+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
2abefe3d
PB
6042else
6043 if test -n "$STRIP"; then
6044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6045else
0b0dc272
AM
6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH
6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053 ac_cv_prog_STRIP="${ncn_progname}"
6054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057done
6058done
6059
2abefe3d
PB
6060fi
6061fi
0b0dc272 6062STRIP=$ac_cv_prog_STRIP
2abefe3d 6063if test -n "$STRIP"; then
0b0dc272
AM
6064 echo "$as_me:$LINENO: result: $STRIP" >&5
6065echo "${ECHO_T}$STRIP" >&6
2abefe3d 6066else
0b0dc272
AM
6067 echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6
2abefe3d 6069fi
0b0dc272 6070
2abefe3d
PB
6071 fi
6072 test -n "$ac_cv_prog_STRIP" && break
6073done
6074
6075if test -z "$ac_cv_prog_STRIP" ; then
6076 STRIP=":"
6077fi
6078
2693c0b0
PB
6079 for ncn_progname in windres; do
6080 if test -n "$ncn_tool_prefix"; then
6081 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6082set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6083echo "$as_me:$LINENO: checking for $ac_word" >&5
6084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6085if test "${ac_cv_prog_WINDRES+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6087else
6088 if test -n "$WINDRES"; then
6089 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6090else
0b0dc272
AM
6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092for as_dir in $PATH
6093do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6098 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6101 fi
6102done
6103done
6104
ca9f4b81
AO
6105fi
6106fi
0b0dc272 6107WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 6108if test -n "$WINDRES"; then
0b0dc272
AM
6109 echo "$as_me:$LINENO: result: $WINDRES" >&5
6110echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 6111else
0b0dc272
AM
6112 echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6
ca9f4b81
AO
6114fi
6115
2693c0b0
PB
6116 fi
6117 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6119set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6120echo "$as_me:$LINENO: checking for $ac_word" >&5
6121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6122if test "${ac_cv_prog_WINDRES+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6124else
2693c0b0
PB
6125 if test -n "$WINDRES"; then
6126 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 6127else
0b0dc272
AM
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_WINDRES="${ncn_progname}"
6136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139done
6140done
6141
ca9f4b81
AO
6142fi
6143fi
0b0dc272 6144WINDRES=$ac_cv_prog_WINDRES
2693c0b0 6145if test -n "$WINDRES"; then
0b0dc272
AM
6146 echo "$as_me:$LINENO: result: $WINDRES" >&5
6147echo "${ECHO_T}$WINDRES" >&6
ca9f4b81 6148else
0b0dc272
AM
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
ca9f4b81 6151fi
0b0dc272 6152
2693c0b0
PB
6153 fi
6154 test -n "$ac_cv_prog_WINDRES" && break
6155done
6156
6157if test -z "$ac_cv_prog_WINDRES" ; then
6158 set dummy windres
6159 if test $build = $host ; then
6160 WINDRES="$2"
ca9f4b81 6161 else
2693c0b0 6162 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 6163 fi
ca9f4b81
AO
6164fi
6165
2693c0b0
PB
6166 for ncn_progname in objcopy; do
6167 if test -n "$ncn_tool_prefix"; then
6168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6169set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6170echo "$as_me:$LINENO: checking for $ac_word" >&5
6171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6174else
6175 if test -n "$OBJCOPY"; then
6176 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6177else
0b0dc272
AM
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189done
6190done
6191
ca9f4b81
AO
6192fi
6193fi
0b0dc272 6194OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 6195if test -n "$OBJCOPY"; then
0b0dc272
AM
6196 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6197echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 6198else
0b0dc272
AM
6199 echo "$as_me:$LINENO: result: no" >&5
6200echo "${ECHO_T}no" >&6
ca9f4b81
AO
6201fi
6202
2693c0b0
PB
6203 fi
6204 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6206set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6207echo "$as_me:$LINENO: checking for $ac_word" >&5
6208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6209if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6211else
2693c0b0
PB
6212 if test -n "$OBJCOPY"; then
6213 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 6214else
0b0dc272
AM
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222 ac_cv_prog_OBJCOPY="${ncn_progname}"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226done
6227done
6228
ca9f4b81
AO
6229fi
6230fi
0b0dc272 6231OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 6232if test -n "$OBJCOPY"; then
0b0dc272
AM
6233 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6234echo "${ECHO_T}$OBJCOPY" >&6
ca9f4b81 6235else
0b0dc272
AM
6236 echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6
ca9f4b81 6238fi
0b0dc272 6239
2693c0b0
PB
6240 fi
6241 test -n "$ac_cv_prog_OBJCOPY" && break
6242done
6243
6244if test -z "$ac_cv_prog_OBJCOPY" ; then
6245 set dummy objcopy
6246 if test $build = $host ; then
6247 OBJCOPY="$2"
ca9f4b81 6248 else
2693c0b0 6249 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 6250 fi
ca9f4b81
AO
6251fi
6252
2693c0b0
PB
6253 for ncn_progname in objdump; do
6254 if test -n "$ncn_tool_prefix"; then
6255 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6256set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6257echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6259if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81
AO
6261else
6262 if test -n "$OBJDUMP"; then
6263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6264else
0b0dc272
AM
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6272 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6275 fi
6276done
6277done
6278
ca9f4b81
AO
6279fi
6280fi
0b0dc272 6281OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 6282if test -n "$OBJDUMP"; then
0b0dc272
AM
6283 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6284echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 6285else
0b0dc272
AM
6286 echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
ca9f4b81
AO
6288fi
6289
2693c0b0
PB
6290 fi
6291 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6293set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6294echo "$as_me:$LINENO: checking for $ac_word" >&5
6295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6296if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6298else
2693c0b0
PB
6299 if test -n "$OBJDUMP"; then
6300 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 6301else
0b0dc272
AM
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_OBJDUMP="${ncn_progname}"
6310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313done
6314done
6315
ca9f4b81
AO
6316fi
6317fi
0b0dc272 6318OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 6319if test -n "$OBJDUMP"; then
0b0dc272
AM
6320 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6321echo "${ECHO_T}$OBJDUMP" >&6
ca9f4b81 6322else
0b0dc272
AM
6323 echo "$as_me:$LINENO: result: no" >&5
6324echo "${ECHO_T}no" >&6
ca9f4b81 6325fi
0b0dc272 6326
2693c0b0
PB
6327 fi
6328 test -n "$ac_cv_prog_OBJDUMP" && break
6329done
6330
6331if test -z "$ac_cv_prog_OBJDUMP" ; then
6332 set dummy objdump
6333 if test $build = $host ; then
6334 OBJDUMP="$2"
ca9f4b81 6335 else
2693c0b0 6336 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 6337 fi
ca9f4b81
AO
6338fi
6339
671aa708
NN
6340
6341
6342
6343
6344
6345
2abefe3d 6346# Target tools.
0b0dc272 6347
e8b05380
PB
6348# Check whether --with-build-time-tools or --without-build-time-tools was given.
6349if test "${with_build_time_tools+set}" = set; then
6350 withval="$with_build_time_tools"
6351 case x"$withval" in
6352 x/*) ;;
6353 *)
6354 with_build_time_tools=
0b0dc272
AM
6355 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6356echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
6357 ;;
6358 esac
ca9f4b81 6359else
e8b05380 6360 with_build_time_tools=
0b0dc272 6361fi;
ca9f4b81 6362
e8b05380
PB
6363 if test -n "$with_build_time_tools"; then
6364 for ncn_progname in cc gcc; do
0b0dc272
AM
6365 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6366echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6367 if test -x $with_build_time_tools/${ncn_progname}; then
6368 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
6369 echo "$as_me:$LINENO: result: yes" >&5
6370echo "${ECHO_T}yes" >&6
72a7ab82 6371 break
e8b05380 6372 else
0b0dc272
AM
6373 echo "$as_me:$LINENO: result: no" >&5
6374echo "${ECHO_T}no" >&6
72a7ab82
AP
6375 fi
6376 done
4de997d1
PB
6377fi
6378
e8b05380
PB
6379if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6380 for ncn_progname in cc gcc; do
6381 if test -n "$ncn_target_tool_prefix"; then
6382 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 6383set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6384echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6386if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6388else
6389 if test -n "$CC_FOR_TARGET"; then
6390 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6391else
0b0dc272
AM
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403done
6404done
6405
4de997d1
PB
6406fi
6407fi
0b0dc272 6408CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 6409if test -n "$CC_FOR_TARGET"; then
0b0dc272
AM
6410 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6411echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 6412else
0b0dc272
AM
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
4de997d1
PB
6415fi
6416
e8b05380
PB
6417 fi
6418 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 6420set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6421echo "$as_me:$LINENO: checking for $ac_word" >&5
6422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6425else
2693c0b0
PB
6426 if test -n "$CC_FOR_TARGET"; then
6427 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 6428else
0b0dc272
AM
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440done
6441done
6442
4de997d1
PB
6443fi
6444fi
0b0dc272 6445CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 6446if test -n "$CC_FOR_TARGET"; then
0b0dc272
AM
6447 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6448echo "${ECHO_T}$CC_FOR_TARGET" >&6
4de997d1 6449else
0b0dc272
AM
6450 echo "$as_me:$LINENO: result: no" >&5
6451echo "${ECHO_T}no" >&6
4de997d1 6452fi
0b0dc272 6453
e8b05380
PB
6454 fi
6455 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6456 done
6457fi
0b0dc272 6458
2693c0b0
PB
6459if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6460 set dummy cc gcc
6461 if test $build = $target ; then
6462 CC_FOR_TARGET="$2"
4de997d1 6463 else
2693c0b0 6464 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6465 fi
4de997d1
PB
6466fi
6467
e8b05380
PB
6468 if test -n "$with_build_time_tools"; then
6469 for ncn_progname in c++ g++ cxx gxx; do
0b0dc272
AM
6470 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6471echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6472 if test -x $with_build_time_tools/${ncn_progname}; then
6473 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
6474 echo "$as_me:$LINENO: result: yes" >&5
6475echo "${ECHO_T}yes" >&6
e8b05380
PB
6476 break
6477 else
0b0dc272
AM
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
e8b05380
PB
6480 fi
6481 done
6482fi
6483
6484if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6485 for ncn_progname in c++ g++ cxx gxx; do
6486 if test -n "$ncn_target_tool_prefix"; then
6487 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 6488set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6489echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1
PB
6493else
6494 if test -n "$CXX_FOR_TARGET"; then
6495 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6496else
0b0dc272
AM
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508done
6509done
6510
4de997d1
PB
6511fi
6512fi
0b0dc272 6513CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 6514if test -n "$CXX_FOR_TARGET"; then
0b0dc272
AM
6515 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6516echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 6517else
0b0dc272
AM
6518 echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6
4de997d1
PB
6520fi
6521
e8b05380
PB
6522 fi
6523 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 6525set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6526echo "$as_me:$LINENO: checking for $ac_word" >&5
6527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6528if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 6530else
2693c0b0
PB
6531 if test -n "$CXX_FOR_TARGET"; then
6532 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 6533else
0b0dc272
AM
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547
4de997d1
PB
6548fi
6549fi
0b0dc272 6550CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 6551if test -n "$CXX_FOR_TARGET"; then
0b0dc272
AM
6552 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6553echo "${ECHO_T}$CXX_FOR_TARGET" >&6
4de997d1 6554else
0b0dc272
AM
6555 echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
4de997d1 6557fi
0b0dc272 6558
e8b05380
PB
6559 fi
6560 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6561 done
6562fi
0b0dc272 6563
2693c0b0
PB
6564if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6565 set dummy c++ g++ cxx gxx
6566 if test $build = $target ; then
6567 CXX_FOR_TARGET="$2"
4de997d1 6568 else
2693c0b0 6569 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 6570 fi
ca9f4b81
AO
6571fi
6572
e8b05380
PB
6573 if test -n "$with_build_time_tools"; then
6574 for ncn_progname in gcc; do
0b0dc272
AM
6575 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6576echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6577 if test -x $with_build_time_tools/${ncn_progname}; then
6578 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
6579 echo "$as_me:$LINENO: result: yes" >&5
6580echo "${ECHO_T}yes" >&6
e8b05380
PB
6581 break
6582 else
0b0dc272
AM
6583 echo "$as_me:$LINENO: result: no" >&5
6584echo "${ECHO_T}no" >&6
e8b05380
PB
6585 fi
6586 done
6587fi
6588
6589if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6590 for ncn_progname in gcc; do
6591 if test -n "$ncn_target_tool_prefix"; then
6592 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 6593set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6594echo "$as_me:$LINENO: checking for $ac_word" >&5
6595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6596if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6598else
e8b05380
PB
6599 if test -n "$GCC_FOR_TARGET"; then
6600 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 6601else
0b0dc272
AM
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6609 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 break 2
6612 fi
6613done
6614done
6615
ca9f4b81
AO
6616fi
6617fi
0b0dc272 6618GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 6619if test -n "$GCC_FOR_TARGET"; then
0b0dc272
AM
6620 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6621echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 6622else
0b0dc272
AM
6623 echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
ca9f4b81
AO
6625fi
6626
e8b05380
PB
6627 fi
6628 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 6630set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6631echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6633if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 6635else
e8b05380
PB
6636 if test -n "$GCC_FOR_TARGET"; then
6637 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 6638else
0b0dc272
AM
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650done
6651done
6652
ca9f4b81
AO
6653fi
6654fi
0b0dc272 6655GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 6656if test -n "$GCC_FOR_TARGET"; then
0b0dc272
AM
6657 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6658echo "${ECHO_T}$GCC_FOR_TARGET" >&6
ca9f4b81 6659else
0b0dc272
AM
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
ca9f4b81 6662fi
0b0dc272 6663
e8b05380
PB
6664 fi
6665 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6666 done
6667fi
0b0dc272 6668
e8b05380
PB
6669if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6670 GCC_FOR_TARGET="${CC_FOR_TARGET}"
6671fi
6672
6673 if test -n "$with_build_time_tools"; then
6674 for ncn_progname in gcj; do
0b0dc272
AM
6675 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6676echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6677 if test -x $with_build_time_tools/${ncn_progname}; then
6678 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
6679 echo "$as_me:$LINENO: result: yes" >&5
6680echo "${ECHO_T}yes" >&6
e8b05380
PB
6681 break
6682 else
0b0dc272
AM
6683 echo "$as_me:$LINENO: result: no" >&5
6684echo "${ECHO_T}no" >&6
e8b05380
PB
6685 fi
6686 done
6687fi
6688
6689if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6690 for ncn_progname in gcj; do
6691 if test -n "$ncn_target_tool_prefix"; then
6692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6693set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6694echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6696if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 6698else
fb0103e5
RG
6699 if test -n "$GCJ_FOR_TARGET"; then
6700 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6701else
0b0dc272
AM
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714done
6715
e8b05380
PB
6716fi
6717fi
0b0dc272 6718GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
e8b05380 6719if test -n "$GCJ_FOR_TARGET"; then
0b0dc272
AM
6720 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6721echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
e8b05380 6722else
0b0dc272
AM
6723 echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6
e8b05380
PB
6725fi
6726
6727 fi
6728 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
6729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6730set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6731echo "$as_me:$LINENO: checking for $ac_word" >&5
6732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6733if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
6735else
6736 if test -n "$GCJ_FOR_TARGET"; then
6737 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6738else
0b0dc272
AM
6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751done
6752
e8b05380
PB
6753fi
6754fi
0b0dc272 6755GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
e8b05380 6756if test -n "$GCJ_FOR_TARGET"; then
0b0dc272
AM
6757 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
6758echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
e8b05380 6759else
0b0dc272
AM
6760 echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
e8b05380 6762fi
0b0dc272 6763
e8b05380
PB
6764 fi
6765 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
6766 done
6767fi
0b0dc272 6768
e8b05380
PB
6769if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
6770 set dummy gcj
6771 if test $build = $target ; then
6772 GCJ_FOR_TARGET="$2"
6773 else
6774 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 6775 fi
e8b05380 6776fi
2693c0b0 6777
e8b05380
PB
6778 if test -n "$with_build_time_tools"; then
6779 for ncn_progname in gfortran; do
0b0dc272
AM
6780 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6781echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6782 if test -x $with_build_time_tools/${ncn_progname}; then
6783 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
6784 echo "$as_me:$LINENO: result: yes" >&5
6785echo "${ECHO_T}yes" >&6
e8b05380
PB
6786 break
6787 else
0b0dc272
AM
6788 echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6
e8b05380
PB
6790 fi
6791 done
6792fi
6793
6794if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
6795 for ncn_progname in gfortran; do
6796 if test -n "$ncn_target_tool_prefix"; then
6797 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
6798set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
6799echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6801if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
6803else
6804 if test -n "$GFORTRAN_FOR_TARGET"; then
6805 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6806else
0b0dc272
AM
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818done
6819done
6820
e8b05380
PB
6821fi
6822fi
0b0dc272 6823GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 6824if test -n "$GFORTRAN_FOR_TARGET"; then
0b0dc272
AM
6825 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6826echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 6827else
0b0dc272
AM
6828 echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6
e8b05380
PB
6830fi
6831
6832 fi
6833 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
6834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6835set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
6836echo "$as_me:$LINENO: checking for $ac_word" >&5
6837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6838if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
6840else
6841 if test -n "$GFORTRAN_FOR_TARGET"; then
6842 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
6843else
0b0dc272
AM
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855done
6856done
6857
e8b05380
PB
6858fi
6859fi
0b0dc272 6860GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 6861if test -n "$GFORTRAN_FOR_TARGET"; then
0b0dc272
AM
6862 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
6863echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
e8b05380 6864else
0b0dc272
AM
6865 echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6
e8b05380 6867fi
0b0dc272 6868
e8b05380
PB
6869 fi
6870 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
6871 done
6872fi
0b0dc272 6873
e8b05380
PB
6874if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
6875 set dummy gfortran
2693c0b0 6876 if test $build = $target ; then
e8b05380 6877 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 6878 else
e8b05380
PB
6879 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
6880 fi
6881fi
6882
6883
6884
6885# The user is always right.
6886if test "${PATH_SEPARATOR+set}" != set; then
6887 echo "#! /bin/sh" >conf$$.sh
6888 echo "exit 0" >>conf$$.sh
6889 chmod +x conf$$.sh
6890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6891 PATH_SEPARATOR=';'
6892 else
0b0dc272 6893 PATH_SEPARATOR=:
ca9f4b81 6894 fi
e8b05380
PB
6895 rm -f conf$$.sh
6896fi
6897
6898
6899
6900if test "x$exec_prefix" = xNONE; then
6901 if test "x$prefix" = xNONE; then
6902 gcc_cv_tool_prefix=$ac_default_prefix
6903 else
6904 gcc_cv_tool_prefix=$prefix
6905 fi
6906else
6907 gcc_cv_tool_prefix=$exec_prefix
6908fi
6909
6910# If there is no compiler in the tree, use the PATH only. In any
6911# case, if there is no compiler in the tree nobody should use
6912# AS_FOR_TARGET and LD_FOR_TARGET.
6913if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6914 gcc_version=`cat $srcdir/gcc/BASE-VER`
6915 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6916 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6917 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6918 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6919 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6920 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6921else
6922 gcc_cv_tool_dirs=
6923fi
6924
6925if test x$build = x$target && test -n "$md_exec_prefix"; then
6926 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6927fi
6928
6929
6930
6931cat > conftest.c << \EOF
6932#ifdef __GNUC__
6933 gcc_yay;
6934#endif
6935EOF
6936if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
6937 have_gcc_for_target=yes
6938else
6939 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
6940 have_gcc_for_target=no
6941fi
6942rm conftest.c
6943
6944
6945
6946
6947if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6948 if test -n "$with_build_time_tools"; then
0b0dc272
AM
6949 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
6950echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
6951 if test -x $with_build_time_tools/ar; then
6952 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
6953 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
0b0dc272
AM
6954 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
6955echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
d1f8db0c 6956 else
0b0dc272
AM
6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
d1f8db0c 6959 fi
e8b05380
PB
6960 elif test $build != $host && test $have_gcc_for_target = yes; then
6961 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
6962 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
6963 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
6964 fi
6965fi
6966if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
6967 # Extract the first word of "ar", so it can be a program name with args.
6968set dummy ar; ac_word=$2
0b0dc272
AM
6969echo "$as_me:$LINENO: checking for $ac_word" >&5
6970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6971if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 6973else
0b0dc272
AM
6974 case $AR_FOR_TARGET in
6975 [\\/]* | ?:[\\/]*)
e8b05380
PB
6976 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
6977 ;;
e8b05380 6978 *)
0b0dc272
AM
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $gcc_cv_tool_dirs
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990done
6991done
6992
e8b05380
PB
6993 ;;
6994esac
6995fi
0b0dc272
AM
6996AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
6997
e8b05380 6998if test -n "$AR_FOR_TARGET"; then
0b0dc272
AM
6999 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7000echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 7001else
0b0dc272
AM
7002 echo "$as_me:$LINENO: result: no" >&5
7003echo "${ECHO_T}no" >&6
4de997d1
PB
7004fi
7005
e8b05380
PB
7006fi
7007if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7008 if test -n "$with_build_time_tools"; then
7009 for ncn_progname in ar; do
0b0dc272
AM
7010 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7011echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7012 if test -x $with_build_time_tools/${ncn_progname}; then
7013 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
7014 echo "$as_me:$LINENO: result: yes" >&5
7015echo "${ECHO_T}yes" >&6
e8b05380
PB
7016 break
7017 else
0b0dc272
AM
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
e8b05380
PB
7020 fi
7021 done
7022fi
7023
7024if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7025 for ncn_progname in ar; do
7026 if test -n "$ncn_target_tool_prefix"; then
7027 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7028set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
7029echo "$as_me:$LINENO: checking for $ac_word" >&5
7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7031if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7033else
e8b05380
PB
7034 if test -n "$AR_FOR_TARGET"; then
7035 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 7036else
0b0dc272
AM
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048done
7049done
7050
4de997d1
PB
7051fi
7052fi
0b0dc272 7053AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 7054if test -n "$AR_FOR_TARGET"; then
0b0dc272
AM
7055 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7056echo "${ECHO_T}$AR_FOR_TARGET" >&6
4de997d1 7057else
0b0dc272
AM
7058 echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6
4de997d1
PB
7060fi
7061
e8b05380
PB
7062 fi
7063 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7065set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
7066echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7070else
7071 if test -n "$AR_FOR_TARGET"; then
7072 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7073else
0b0dc272
AM
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086done
7087
e8b05380
PB
7088fi
7089fi
0b0dc272 7090AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 7091if test -n "$AR_FOR_TARGET"; then
0b0dc272
AM
7092 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7093echo "${ECHO_T}$AR_FOR_TARGET" >&6
e8b05380 7094else
0b0dc272
AM
7095 echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6
e8b05380 7097fi
0b0dc272 7098
e8b05380
PB
7099 fi
7100 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7101 done
7102fi
0b0dc272 7103
e8b05380
PB
7104if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7105 set dummy ar
7106 if test $build = $target ; then
7107 AR_FOR_TARGET="$2"
7108 else
7109 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 7110 fi
e8b05380
PB
7111fi
7112
d1f8db0c
PB
7113else
7114 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
7115fi
7116
7117
7118
7119
7120if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7121 if test -n "$with_build_time_tools"; then
0b0dc272
AM
7122 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7123echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7124 if test -x $with_build_time_tools/as; then
7125 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7126 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
0b0dc272
AM
7127 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7128echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
d1f8db0c 7129 else
0b0dc272
AM
7130 echo "$as_me:$LINENO: result: no" >&5
7131echo "${ECHO_T}no" >&6
d1f8db0c 7132 fi
e8b05380
PB
7133 elif test $build != $host && test $have_gcc_for_target = yes; then
7134 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7135 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7136 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7137 fi
7138fi
7139if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7140 # Extract the first word of "as", so it can be a program name with args.
7141set dummy as; ac_word=$2
0b0dc272
AM
7142echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7144if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7146else
0b0dc272
AM
7147 case $AS_FOR_TARGET in
7148 [\\/]* | ?:[\\/]*)
e8b05380
PB
7149 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7150 ;;
e8b05380 7151 *)
0b0dc272
AM
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $gcc_cv_tool_dirs
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7162 fi
7163done
7164done
7165
e8b05380
PB
7166 ;;
7167esac
7168fi
0b0dc272
AM
7169AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7170
e8b05380 7171if test -n "$AS_FOR_TARGET"; then
0b0dc272
AM
7172 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7173echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 7174else
0b0dc272
AM
7175 echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6
e8b05380
PB
7177fi
7178
7179fi
7180if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7181 if test -n "$with_build_time_tools"; then
7182 for ncn_progname in as; do
0b0dc272
AM
7183 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7184echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7185 if test -x $with_build_time_tools/${ncn_progname}; then
7186 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
7187 echo "$as_me:$LINENO: result: yes" >&5
7188echo "${ECHO_T}yes" >&6
e8b05380
PB
7189 break
7190 else
0b0dc272
AM
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
e8b05380
PB
7193 fi
7194 done
7195fi
7196
7197if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7198 for ncn_progname in as; do
7199 if test -n "$ncn_target_tool_prefix"; then
7200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7201set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
7202echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380
PB
7206else
7207 if test -n "$AS_FOR_TARGET"; then
7208 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7209else
0b0dc272
AM
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221done
7222done
7223
e8b05380
PB
7224fi
7225fi
0b0dc272 7226AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 7227if test -n "$AS_FOR_TARGET"; then
0b0dc272
AM
7228 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7229echo "${ECHO_T}$AS_FOR_TARGET" >&6
e8b05380 7230else
0b0dc272
AM
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
e8b05380
PB
7233fi
7234
7235 fi
7236 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7238set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
7239echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7243else
e8b05380
PB
7244 if test -n "$AS_FOR_TARGET"; then
7245 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 7246else
0b0dc272
AM
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258done
7259done
7260
4de997d1
PB
7261fi
7262fi
0b0dc272 7263AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 7264if test -n "$AS_FOR_TARGET"; then
0b0dc272
AM
7265 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7266echo "${ECHO_T}$AS_FOR_TARGET" >&6
4de997d1 7267else
0b0dc272
AM
7268 echo "$as_me:$LINENO: result: no" >&5
7269echo "${ECHO_T}no" >&6
4de997d1 7270fi
0b0dc272 7271
e8b05380
PB
7272 fi
7273 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7274 done
7275fi
0b0dc272 7276
e8b05380
PB
7277if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7278 set dummy as
7279 if test $build = $target ; then
7280 AS_FOR_TARGET="$2"
7281 else
7282 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 7283 fi
e8b05380 7284fi
2693c0b0 7285
d1f8db0c
PB
7286else
7287 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
7288fi
7289
e8b05380
PB
7290
7291
7292
7293if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7294 if test -n "$with_build_time_tools"; then
0b0dc272
AM
7295 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7296echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7297 if test -x $with_build_time_tools/dlltool; then
7298 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7299 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
0b0dc272
AM
7300 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7301echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
d1f8db0c 7302 else
0b0dc272
AM
7303 echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6
d1f8db0c 7305 fi
e8b05380
PB
7306 elif test $build != $host && test $have_gcc_for_target = yes; then
7307 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7308 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7309 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7310 fi
7311fi
7312if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7313 # Extract the first word of "dlltool", so it can be a program name with args.
7314set dummy dlltool; ac_word=$2
0b0dc272
AM
7315echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7319else
0b0dc272
AM
7320 case $DLLTOOL_FOR_TARGET in
7321 [\\/]* | ?:[\\/]*)
e8b05380
PB
7322 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7323 ;;
e8b05380 7324 *)
0b0dc272
AM
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $gcc_cv_tool_dirs
7327do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336done
7337done
7338
e8b05380
PB
7339 ;;
7340esac
4de997d1 7341fi
0b0dc272
AM
7342DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7343
e8b05380 7344if test -n "$DLLTOOL_FOR_TARGET"; then
0b0dc272
AM
7345 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7346echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 7347else
0b0dc272
AM
7348 echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
4de997d1
PB
7350fi
7351
e8b05380
PB
7352fi
7353if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7354 if test -n "$with_build_time_tools"; then
7355 for ncn_progname in dlltool; do
0b0dc272
AM
7356 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7357echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7358 if test -x $with_build_time_tools/${ncn_progname}; then
7359 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
7360 echo "$as_me:$LINENO: result: yes" >&5
7361echo "${ECHO_T}yes" >&6
e8b05380
PB
7362 break
7363 else
0b0dc272
AM
7364 echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
e8b05380
PB
7366 fi
7367 done
7368fi
7369
7370if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7371 for ncn_progname in dlltool; do
7372 if test -n "$ncn_target_tool_prefix"; then
7373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7374set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
7375echo "$as_me:$LINENO: checking for $ac_word" >&5
7376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7377if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7379else
e8b05380
PB
7380 if test -n "$DLLTOOL_FOR_TARGET"; then
7381 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 7382else
0b0dc272
AM
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394done
7395done
7396
4de997d1
PB
7397fi
7398fi
0b0dc272 7399DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 7400if test -n "$DLLTOOL_FOR_TARGET"; then
0b0dc272
AM
7401 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7402echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 7403else
0b0dc272
AM
7404 echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6
4de997d1 7406fi
4de997d1 7407
e8b05380
PB
7408 fi
7409 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7411set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
7412echo "$as_me:$LINENO: checking for $ac_word" >&5
7413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7414if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7416else
e8b05380
PB
7417 if test -n "$DLLTOOL_FOR_TARGET"; then
7418 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 7419else
0b0dc272
AM
7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421for as_dir in $PATH
7422do
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7430 fi
7431done
7432done
7433
4de997d1
PB
7434fi
7435fi
0b0dc272 7436DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 7437if test -n "$DLLTOOL_FOR_TARGET"; then
0b0dc272
AM
7438 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7439echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
4de997d1 7440else
0b0dc272
AM
7441 echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6
4de997d1 7443fi
0b0dc272 7444
e8b05380
PB
7445 fi
7446 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7447 done
7448fi
0b0dc272 7449
e8b05380
PB
7450if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7451 set dummy dlltool
7452 if test $build = $target ; then
7453 DLLTOOL_FOR_TARGET="$2"
7454 else
7455 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7456 fi
7457fi
7458
d1f8db0c
PB
7459else
7460 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
7461fi
7462
4de997d1 7463
e8b05380
PB
7464
7465
7466if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7467 if test -n "$with_build_time_tools"; then
0b0dc272
AM
7468 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7469echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7470 if test -x $with_build_time_tools/ld; then
7471 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7472 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
0b0dc272
AM
7473 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7474echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
d1f8db0c 7475 else
0b0dc272
AM
7476 echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6
d1f8db0c 7478 fi
e8b05380
PB
7479 elif test $build != $host && test $have_gcc_for_target = yes; then
7480 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7481 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7482 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 7483 fi
e8b05380
PB
7484fi
7485if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7486 # Extract the first word of "ld", so it can be a program name with args.
7487set dummy ld; ac_word=$2
0b0dc272
AM
7488echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
4de997d1 7492else
0b0dc272
AM
7493 case $LD_FOR_TARGET in
7494 [\\/]* | ?:[\\/]*)
e8b05380
PB
7495 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7496 ;;
e8b05380 7497 *)
0b0dc272
AM
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $gcc_cv_tool_dirs
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511
e8b05380
PB
7512 ;;
7513esac
4de997d1 7514fi
0b0dc272
AM
7515LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7516
e8b05380 7517if test -n "$LD_FOR_TARGET"; then
0b0dc272
AM
7518 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7519echo "${ECHO_T}$LD_FOR_TARGET" >&6
4de997d1 7520else
0b0dc272
AM
7521 echo "$as_me:$LINENO: result: no" >&5
7522echo "${ECHO_T}no" >&6
4de997d1 7523fi
2693c0b0 7524
e8b05380
PB
7525fi
7526if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7527 if test -n "$with_build_time_tools"; then
7528 for ncn_progname in ld; do
0b0dc272
AM
7529 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7530echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7531 if test -x $with_build_time_tools/${ncn_progname}; then
7532 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
7533 echo "$as_me:$LINENO: result: yes" >&5
7534echo "${ECHO_T}yes" >&6
e8b05380
PB
7535 break
7536 else
0b0dc272
AM
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
e8b05380
PB
7539 fi
7540 done
ca9f4b81
AO
7541fi
7542
e8b05380
PB
7543if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7544 for ncn_progname in ld; do
7545 if test -n "$ncn_target_tool_prefix"; then
7546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7547set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
7548echo "$as_me:$LINENO: checking for $ac_word" >&5
7549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7550if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7552else
4de997d1
PB
7553 if test -n "$LD_FOR_TARGET"; then
7554 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 7555else
0b0dc272
AM
7556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569
ca9f4b81
AO
7570fi
7571fi
0b0dc272 7572LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 7573if test -n "$LD_FOR_TARGET"; then
0b0dc272
AM
7574 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7575echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 7576else
0b0dc272
AM
7577 echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6
ca9f4b81
AO
7579fi
7580
e8b05380
PB
7581 fi
7582 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7584set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
7585echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7587if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7589else
2693c0b0
PB
7590 if test -n "$LD_FOR_TARGET"; then
7591 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 7592else
0b0dc272
AM
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605done
7606
ca9f4b81
AO
7607fi
7608fi
0b0dc272 7609LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 7610if test -n "$LD_FOR_TARGET"; then
0b0dc272
AM
7611 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7612echo "${ECHO_T}$LD_FOR_TARGET" >&6
ca9f4b81 7613else
0b0dc272
AM
7614 echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6
ca9f4b81 7616fi
0b0dc272 7617
e8b05380
PB
7618 fi
7619 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7620 done
7621fi
0b0dc272 7622
2693c0b0
PB
7623if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7624 set dummy ld
7625 if test $build = $target ; then
7626 LD_FOR_TARGET="$2"
ca9f4b81 7627 else
2693c0b0 7628 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 7629 fi
ca9f4b81
AO
7630fi
7631
d1f8db0c
PB
7632else
7633 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
7634fi
7635
7636
7637
7638
7639if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7640 if test -n "$with_build_time_tools"; then
0b0dc272
AM
7641 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7642echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7643 if test -x $with_build_time_tools/lipo; then
7644 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7645 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
0b0dc272
AM
7646 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7647echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
d1f8db0c 7648 else
0b0dc272
AM
7649 echo "$as_me:$LINENO: result: no" >&5
7650echo "${ECHO_T}no" >&6
d1f8db0c 7651 fi
e8b05380
PB
7652 elif test $build != $host && test $have_gcc_for_target = yes; then
7653 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7654 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7655 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7656 fi
7657fi
7658if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7659 # Extract the first word of "lipo", so it can be a program name with args.
7660set dummy lipo; ac_word=$2
0b0dc272
AM
7661echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7665else
0b0dc272
AM
7666 case $LIPO_FOR_TARGET in
7667 [\\/]* | ?:[\\/]*)
e8b05380
PB
7668 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7669 ;;
e8b05380 7670 *)
0b0dc272
AM
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $gcc_cv_tool_dirs
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682done
7683done
7684
e8b05380
PB
7685 ;;
7686esac
7687fi
0b0dc272
AM
7688LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7689
e8b05380 7690if test -n "$LIPO_FOR_TARGET"; then
0b0dc272
AM
7691 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7692echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
e8b05380 7693else
0b0dc272
AM
7694 echo "$as_me:$LINENO: result: no" >&5
7695echo "${ECHO_T}no" >&6
e8b05380
PB
7696fi
7697
7698fi
7699if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7700 if test -n "$with_build_time_tools"; then
7701 for ncn_progname in lipo; do
0b0dc272
AM
7702 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7703echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7704 if test -x $with_build_time_tools/${ncn_progname}; then
7705 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
7706 echo "$as_me:$LINENO: result: yes" >&5
7707echo "${ECHO_T}yes" >&6
e8b05380
PB
7708 break
7709 else
0b0dc272
AM
7710 echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
e8b05380
PB
7712 fi
7713 done
7714fi
7715
7716if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
7717 for ncn_progname in lipo; do
7718 if test -n "$ncn_target_tool_prefix"; then
7719 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 7720set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
7721echo "$as_me:$LINENO: checking for $ac_word" >&5
7722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7723if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
7725else
7726 if test -n "$LIPO_FOR_TARGET"; then
7727 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7728else
0b0dc272
AM
7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730for as_dir in $PATH
7731do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7739 fi
7740done
7741done
7742
040b1c5a
GK
7743fi
7744fi
0b0dc272 7745LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 7746if test -n "$LIPO_FOR_TARGET"; then
0b0dc272
AM
7747 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7748echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 7749else
0b0dc272
AM
7750 echo "$as_me:$LINENO: result: no" >&5
7751echo "${ECHO_T}no" >&6
040b1c5a
GK
7752fi
7753
e8b05380
PB
7754 fi
7755 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
7756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 7757set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
7758echo "$as_me:$LINENO: checking for $ac_word" >&5
7759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
7762else
7763 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
7764 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
7765else
0b0dc272
AM
7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777done
7778done
7779
040b1c5a
GK
7780fi
7781fi
0b0dc272 7782LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 7783if test -n "$LIPO_FOR_TARGET"; then
0b0dc272
AM
7784 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7785echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
040b1c5a 7786else
0b0dc272
AM
7787 echo "$as_me:$LINENO: result: no" >&5
7788echo "${ECHO_T}no" >&6
040b1c5a 7789fi
0b0dc272 7790
e8b05380
PB
7791 fi
7792 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
7793 done
7794fi
0b0dc272 7795
040b1c5a
GK
7796if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
7797 set dummy lipo
7798 if test $build = $target ; then
7799 LIPO_FOR_TARGET="$2"
7800 else
7801 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
7802 fi
7803fi
7804
d1f8db0c
PB
7805else
7806 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
7807fi
7808
7809
7810
7811
7812if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7813 if test -n "$with_build_time_tools"; then
0b0dc272
AM
7814 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
7815echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7816 if test -x $with_build_time_tools/nm; then
7817 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
7818 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
0b0dc272
AM
7819 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
7820echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
d1f8db0c 7821 else
0b0dc272
AM
7822 echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
d1f8db0c 7824 fi
e8b05380
PB
7825 elif test $build != $host && test $have_gcc_for_target = yes; then
7826 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
7827 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
7828 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
7829 fi
7830fi
7831if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7832 # Extract the first word of "nm", so it can be a program name with args.
7833set dummy nm; ac_word=$2
0b0dc272
AM
7834echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 7838else
0b0dc272
AM
7839 case $NM_FOR_TARGET in
7840 [\\/]* | ?:[\\/]*)
e8b05380
PB
7841 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
7842 ;;
e8b05380 7843 *)
0b0dc272
AM
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $gcc_cv_tool_dirs
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856done
7857
e8b05380
PB
7858 ;;
7859esac
7860fi
0b0dc272
AM
7861NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
7862
e8b05380 7863if test -n "$NM_FOR_TARGET"; then
0b0dc272
AM
7864 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7865echo "${ECHO_T}$NM_FOR_TARGET" >&6
e8b05380 7866else
0b0dc272
AM
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
e8b05380
PB
7869fi
7870
7871fi
7872if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
7873 if test -n "$with_build_time_tools"; then
7874 for ncn_progname in nm; do
0b0dc272
AM
7875 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7876echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7877 if test -x $with_build_time_tools/${ncn_progname}; then
7878 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
e8b05380
PB
7881 break
7882 else
0b0dc272
AM
7883 echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6
e8b05380
PB
7885 fi
7886 done
7887fi
7888
7889if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
7890 for ncn_progname in nm; do
7891 if test -n "$ncn_target_tool_prefix"; then
7892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 7893set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
7894echo "$as_me:$LINENO: checking for $ac_word" >&5
7895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7896if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7898else
4de997d1
PB
7899 if test -n "$NM_FOR_TARGET"; then
7900 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 7901else
0b0dc272
AM
7902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903for as_dir in $PATH
7904do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913done
7914done
7915
ca9f4b81
AO
7916fi
7917fi
0b0dc272 7918NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 7919if test -n "$NM_FOR_TARGET"; then
0b0dc272
AM
7920 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7921echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 7922else
0b0dc272
AM
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
ca9f4b81
AO
7925fi
7926
e8b05380
PB
7927 fi
7928 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
7929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 7930set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
7931echo "$as_me:$LINENO: checking for $ac_word" >&5
7932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7933if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 7935else
2693c0b0
PB
7936 if test -n "$NM_FOR_TARGET"; then
7937 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 7938else
0b0dc272
AM
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7946 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950done
7951done
7952
ca9f4b81
AO
7953fi
7954fi
0b0dc272 7955NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 7956if test -n "$NM_FOR_TARGET"; then
0b0dc272
AM
7957 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
7958echo "${ECHO_T}$NM_FOR_TARGET" >&6
ca9f4b81 7959else
0b0dc272
AM
7960 echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6
ca9f4b81 7962fi
0b0dc272 7963
e8b05380
PB
7964 fi
7965 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
7966 done
7967fi
0b0dc272 7968
2693c0b0
PB
7969if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
7970 set dummy nm
7971 if test $build = $target ; then
7972 NM_FOR_TARGET="$2"
ca9f4b81 7973 else
2693c0b0 7974 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 7975 fi
ca9f4b81
AO
7976fi
7977
d1f8db0c
PB
7978else
7979 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
7980fi
7981
7982
7983
7984
7985if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
7986 if test -n "$with_build_time_tools"; then
0b0dc272
AM
7987 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
7988echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
7989 if test -x $with_build_time_tools/objdump; then
7990 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
7991 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
0b0dc272
AM
7992 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
7993echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
d1f8db0c 7994 else
0b0dc272
AM
7995 echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6
d1f8db0c 7997 fi
e8b05380
PB
7998 elif test $build != $host && test $have_gcc_for_target = yes; then
7999 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8000 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8001 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8002 fi
8003fi
8004if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8005 # Extract the first word of "objdump", so it can be a program name with args.
8006set dummy objdump; ac_word=$2
0b0dc272
AM
8007echo "$as_me:$LINENO: checking for $ac_word" >&5
8008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8009if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8011else
0b0dc272
AM
8012 case $OBJDUMP_FOR_TARGET in
8013 [\\/]* | ?:[\\/]*)
e8b05380
PB
8014 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8015 ;;
e8b05380 8016 *)
0b0dc272
AM
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $gcc_cv_tool_dirs
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029done
8030
e8b05380
PB
8031 ;;
8032esac
8033fi
0b0dc272
AM
8034OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8035
e8b05380 8036if test -n "$OBJDUMP_FOR_TARGET"; then
0b0dc272
AM
8037 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8038echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
e8b05380 8039else
0b0dc272
AM
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
e8b05380
PB
8042fi
8043
8044fi
8045if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8046 if test -n "$with_build_time_tools"; then
8047 for ncn_progname in objdump; do
0b0dc272
AM
8048 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8049echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8050 if test -x $with_build_time_tools/${ncn_progname}; then
8051 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
8052 echo "$as_me:$LINENO: result: yes" >&5
8053echo "${ECHO_T}yes" >&6
e8b05380
PB
8054 break
8055 else
0b0dc272
AM
8056 echo "$as_me:$LINENO: result: no" >&5
8057echo "${ECHO_T}no" >&6
e8b05380
PB
8058 fi
8059 done
8060fi
8061
8062if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8063 for ncn_progname in objdump; do
8064 if test -n "$ncn_target_tool_prefix"; then
8065 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8066set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
8067echo "$as_me:$LINENO: checking for $ac_word" >&5
8068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8069if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
8071else
8072 if test -n "$OBJDUMP_FOR_TARGET"; then
8073 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8074else
0b0dc272
AM
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086done
8087done
8088
d739199a
DJ
8089fi
8090fi
0b0dc272 8091OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 8092if test -n "$OBJDUMP_FOR_TARGET"; then
0b0dc272
AM
8093 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8094echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 8095else
0b0dc272
AM
8096 echo "$as_me:$LINENO: result: no" >&5
8097echo "${ECHO_T}no" >&6
d739199a
DJ
8098fi
8099
e8b05380
PB
8100 fi
8101 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 8103set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
8104echo "$as_me:$LINENO: checking for $ac_word" >&5
8105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8106if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
d739199a
DJ
8108else
8109 if test -n "$OBJDUMP_FOR_TARGET"; then
8110 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8111else
0b0dc272
AM
8112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113for as_dir in $PATH
8114do
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8122 fi
8123done
8124done
8125
d739199a
DJ
8126fi
8127fi
0b0dc272 8128OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 8129if test -n "$OBJDUMP_FOR_TARGET"; then
0b0dc272
AM
8130 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8131echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
d739199a 8132else
0b0dc272
AM
8133 echo "$as_me:$LINENO: result: no" >&5
8134echo "${ECHO_T}no" >&6
d739199a 8135fi
0b0dc272 8136
e8b05380
PB
8137 fi
8138 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8139 done
8140fi
0b0dc272 8141
d739199a
DJ
8142if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8143 set dummy objdump
8144 if test $build = $target ; then
8145 OBJDUMP_FOR_TARGET="$2"
8146 else
8147 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8148 fi
8149fi
8150
d1f8db0c
PB
8151else
8152 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
8153fi
8154
8155
8156
8157
8158if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8159 if test -n "$with_build_time_tools"; then
0b0dc272
AM
8160 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8161echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8162 if test -x $with_build_time_tools/ranlib; then
8163 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8164 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
0b0dc272
AM
8165 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8166echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
d1f8db0c 8167 else
0b0dc272
AM
8168 echo "$as_me:$LINENO: result: no" >&5
8169echo "${ECHO_T}no" >&6
d1f8db0c 8170 fi
e8b05380
PB
8171 elif test $build != $host && test $have_gcc_for_target = yes; then
8172 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8173 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8174 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8175 fi
8176fi
8177if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8178 # Extract the first word of "ranlib", so it can be a program name with args.
8179set dummy ranlib; ac_word=$2
0b0dc272
AM
8180echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8182if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8184else
0b0dc272
AM
8185 case $RANLIB_FOR_TARGET in
8186 [\\/]* | ?:[\\/]*)
e8b05380
PB
8187 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8188 ;;
e8b05380 8189 *)
0b0dc272
AM
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $gcc_cv_tool_dirs
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201done
8202done
8203
e8b05380
PB
8204 ;;
8205esac
8206fi
0b0dc272
AM
8207RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8208
e8b05380 8209if test -n "$RANLIB_FOR_TARGET"; then
0b0dc272
AM
8210 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8211echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
e8b05380 8212else
0b0dc272
AM
8213 echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6
e8b05380
PB
8215fi
8216
8217fi
8218if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8219 if test -n "$with_build_time_tools"; then
8220 for ncn_progname in ranlib; do
0b0dc272
AM
8221 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8222echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8223 if test -x $with_build_time_tools/${ncn_progname}; then
8224 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
8225 echo "$as_me:$LINENO: result: yes" >&5
8226echo "${ECHO_T}yes" >&6
e8b05380
PB
8227 break
8228 else
0b0dc272
AM
8229 echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6
e8b05380
PB
8231 fi
8232 done
8233fi
8234
8235if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8236 for ncn_progname in ranlib; do
8237 if test -n "$ncn_target_tool_prefix"; then
8238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 8239set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
8240echo "$as_me:$LINENO: checking for $ac_word" >&5
8241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8242if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8244else
4de997d1
PB
8245 if test -n "$RANLIB_FOR_TARGET"; then
8246 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 8247else
0b0dc272
AM
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8258 fi
8259done
8260done
8261
ca9f4b81
AO
8262fi
8263fi
0b0dc272 8264RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 8265if test -n "$RANLIB_FOR_TARGET"; then
0b0dc272
AM
8266 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8267echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 8268else
0b0dc272
AM
8269 echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6
ca9f4b81
AO
8271fi
8272
e8b05380
PB
8273 fi
8274 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8276set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
8277echo "$as_me:$LINENO: checking for $ac_word" >&5
8278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8279if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8281else
2693c0b0
PB
8282 if test -n "$RANLIB_FOR_TARGET"; then
8283 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 8284else
0b0dc272
AM
8285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286for as_dir in $PATH
8287do
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8295 fi
8296done
8297done
8298
ca9f4b81
AO
8299fi
8300fi
0b0dc272 8301RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 8302if test -n "$RANLIB_FOR_TARGET"; then
0b0dc272
AM
8303 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8304echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
ca9f4b81 8305else
0b0dc272
AM
8306 echo "$as_me:$LINENO: result: no" >&5
8307echo "${ECHO_T}no" >&6
ca9f4b81 8308fi
0b0dc272 8309
e8b05380
PB
8310 fi
8311 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8312 done
8313fi
0b0dc272 8314
e8b05380
PB
8315if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8316 set dummy ranlib
8317 if test $build = $target ; then
8318 RANLIB_FOR_TARGET="$2"
8319 else
8320 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8321 fi
e8b05380 8322fi
2693c0b0 8323
d1f8db0c
PB
8324else
8325 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
8326fi
8327
e8b05380
PB
8328
8329
8330
8331if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8332 if test -n "$with_build_time_tools"; then
0b0dc272
AM
8333 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8334echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8335 if test -x $with_build_time_tools/strip; then
8336 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8337 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
0b0dc272
AM
8338 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8339echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
d1f8db0c 8340 else
0b0dc272
AM
8341 echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6
d1f8db0c 8343 fi
e8b05380
PB
8344 elif test $build != $host && test $have_gcc_for_target = yes; then
8345 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8346 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8347 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8348 fi
8349fi
8350if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8351 # Extract the first word of "strip", so it can be a program name with args.
8352set dummy strip; ac_word=$2
0b0dc272
AM
8353echo "$as_me:$LINENO: checking for $ac_word" >&5
8354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8355if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8357else
0b0dc272
AM
8358 case $STRIP_FOR_TARGET in
8359 [\\/]* | ?:[\\/]*)
e8b05380
PB
8360 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8361 ;;
e8b05380 8362 *)
0b0dc272
AM
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $gcc_cv_tool_dirs
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374done
8375done
8376
e8b05380
PB
8377 ;;
8378esac
8379fi
0b0dc272
AM
8380STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8381
e8b05380 8382if test -n "$STRIP_FOR_TARGET"; then
0b0dc272
AM
8383 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8384echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
e8b05380 8385else
0b0dc272
AM
8386 echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6
e8b05380
PB
8388fi
8389
8390fi
8391if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8392 if test -n "$with_build_time_tools"; then
8393 for ncn_progname in strip; do
0b0dc272
AM
8394 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8395echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8396 if test -x $with_build_time_tools/${ncn_progname}; then
8397 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
e8b05380
PB
8400 break
8401 else
0b0dc272
AM
8402 echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6
e8b05380
PB
8404 fi
8405 done
8406fi
8407
8408if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8409 for ncn_progname in strip; do
8410 if test -n "$ncn_target_tool_prefix"; then
8411 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 8412set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
8413echo "$as_me:$LINENO: checking for $ac_word" >&5
8414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8415if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
8417else
8418 if test -n "$STRIP_FOR_TARGET"; then
8419 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8420else
0b0dc272
AM
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 break 2
8431 fi
8432done
8433done
8434
040b1c5a
GK
8435fi
8436fi
0b0dc272 8437STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 8438if test -n "$STRIP_FOR_TARGET"; then
0b0dc272
AM
8439 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8440echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 8441else
0b0dc272
AM
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
040b1c5a
GK
8444fi
8445
e8b05380
PB
8446 fi
8447 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 8449set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
8450echo "$as_me:$LINENO: checking for $ac_word" >&5
8451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8452if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8453 echo $ECHO_N "(cached) $ECHO_C" >&6
040b1c5a
GK
8454else
8455 if test -n "$STRIP_FOR_TARGET"; then
8456 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8457else
0b0dc272
AM
8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459for as_dir in $PATH
8460do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469done
8470done
8471
040b1c5a
GK
8472fi
8473fi
0b0dc272 8474STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 8475if test -n "$STRIP_FOR_TARGET"; then
0b0dc272
AM
8476 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8477echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
040b1c5a 8478else
0b0dc272
AM
8479 echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6
040b1c5a 8481fi
0b0dc272 8482
e8b05380
PB
8483 fi
8484 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8485 done
8486fi
0b0dc272 8487
040b1c5a
GK
8488if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8489 set dummy strip
8490 if test $build = $target ; then
8491 STRIP_FOR_TARGET="$2"
8492 else
8493 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8494 fi
8495fi
8496
d1f8db0c
PB
8497else
8498 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
8499fi
8500
8501
8502
8503
8504if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8505 if test -n "$with_build_time_tools"; then
0b0dc272
AM
8506 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8507echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8508 if test -x $with_build_time_tools/windres; then
8509 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8510 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
0b0dc272
AM
8511 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8512echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
d1f8db0c 8513 else
0b0dc272
AM
8514 echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6
d1f8db0c 8516 fi
e8b05380
PB
8517 elif test $build != $host && test $have_gcc_for_target = yes; then
8518 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8519 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8520 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8521 fi
8522fi
8523if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8524 # Extract the first word of "windres", so it can be a program name with args.
8525set dummy windres; ac_word=$2
0b0dc272
AM
8526echo "$as_me:$LINENO: checking for $ac_word" >&5
8527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8528if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
e8b05380 8530else
0b0dc272
AM
8531 case $WINDRES_FOR_TARGET in
8532 [\\/]* | ?:[\\/]*)
e8b05380
PB
8533 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8534 ;;
e8b05380 8535 *)
0b0dc272
AM
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $gcc_cv_tool_dirs
8538do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8543 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547done
8548done
8549
e8b05380
PB
8550 ;;
8551esac
8552fi
0b0dc272
AM
8553WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8554
e8b05380 8555if test -n "$WINDRES_FOR_TARGET"; then
0b0dc272
AM
8556 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8557echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
e8b05380 8558else
0b0dc272
AM
8559 echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6
e8b05380
PB
8561fi
8562
8563fi
8564if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8565 if test -n "$with_build_time_tools"; then
8566 for ncn_progname in windres; do
0b0dc272
AM
8567 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8568echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
d1f8db0c
PB
8569 if test -x $with_build_time_tools/${ncn_progname}; then
8570 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
0b0dc272
AM
8571 echo "$as_me:$LINENO: result: yes" >&5
8572echo "${ECHO_T}yes" >&6
e8b05380
PB
8573 break
8574 else
0b0dc272
AM
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
e8b05380
PB
8577 fi
8578 done
8579fi
8580
8581if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8582 for ncn_progname in windres; do
8583 if test -n "$ncn_target_tool_prefix"; then
8584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 8585set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
0b0dc272
AM
8586echo "$as_me:$LINENO: checking for $ac_word" >&5
8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8588if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8590else
4de997d1
PB
8591 if test -n "$WINDRES_FOR_TARGET"; then
8592 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 8593else
0b0dc272
AM
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605done
8606done
8607
ca9f4b81
AO
8608fi
8609fi
0b0dc272 8610WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 8611if test -n "$WINDRES_FOR_TARGET"; then
0b0dc272
AM
8612 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8613echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 8614else
0b0dc272
AM
8615 echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6
ca9f4b81
AO
8617fi
8618
e8b05380
PB
8619 fi
8620 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 8622set dummy ${ncn_progname}; ac_word=$2
0b0dc272
AM
8623echo "$as_me:$LINENO: checking for $ac_word" >&5
8624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
ca9f4b81 8627else
2693c0b0
PB
8628 if test -n "$WINDRES_FOR_TARGET"; then
8629 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 8630else
0b0dc272
AM
8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632for as_dir in $PATH
8633do
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8638 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8641 fi
8642done
8643done
8644
ca9f4b81
AO
8645fi
8646fi
0b0dc272 8647WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 8648if test -n "$WINDRES_FOR_TARGET"; then
0b0dc272
AM
8649 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8650echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
ca9f4b81 8651else
0b0dc272
AM
8652 echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6
ca9f4b81 8654fi
0b0dc272 8655
e8b05380
PB
8656 fi
8657 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8658 done
8659fi
0b0dc272 8660
2693c0b0
PB
8661if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8662 set dummy windres
8663 if test $build = $target ; then
8664 WINDRES_FOR_TARGET="$2"
ca9f4b81 8665 else
2693c0b0 8666 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 8667 fi
ca9f4b81
AO
8668fi
8669
d1f8db0c
PB
8670else
8671 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
8672fi
8673
4977bab6 8674
2abefe3d
PB
8675RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8676
0b0dc272
AM
8677echo "$as_me:$LINENO: checking where to find the target ar" >&5
8678echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
2abefe3d 8679if test "x${build}" != "x${host}" ; then
e8b05380
PB
8680 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8681 # We already found the complete path
0b0dc272
AM
8682 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8683echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
e8b05380
PB
8684 else
8685 # Canadian cross, just use what we found
0b0dc272
AM
8686 echo "$as_me:$LINENO: result: pre-installed" >&5
8687echo "${ECHO_T}pre-installed" >&6
e8b05380 8688 fi
2abefe3d
PB
8689else
8690 ok=yes
8691 case " ${configdirs} " in
8692 *" binutils "*) ;;
8693 *) ok=no ;;
8694 esac
0b0dc272 8695
2abefe3d
PB
8696 if test $ok = yes; then
8697 # An in-tree tool is available and we can use it
8698 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
0b0dc272
AM
8699 echo "$as_me:$LINENO: result: just compiled" >&5
8700echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8701 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8702 # We already found the complete path
0b0dc272
AM
8703 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8704echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2abefe3d
PB
8705 elif test "x$target" = "x$host"; then
8706 # We can use an host tool
8707 AR_FOR_TARGET='$(AR)'
0b0dc272
AM
8708 echo "$as_me:$LINENO: result: host tool" >&5
8709echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8710 else
8711 # We need a cross tool
0b0dc272
AM
8712 echo "$as_me:$LINENO: result: pre-installed" >&5
8713echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
8714 fi
8715fi
0b0dc272
AM
8716
8717echo "$as_me:$LINENO: checking where to find the target as" >&5
8718echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
2abefe3d 8719if test "x${build}" != "x${host}" ; then
e8b05380
PB
8720 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8721 # We already found the complete path
0b0dc272
AM
8722 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8723echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
e8b05380
PB
8724 else
8725 # Canadian cross, just use what we found
0b0dc272
AM
8726 echo "$as_me:$LINENO: result: pre-installed" >&5
8727echo "${ECHO_T}pre-installed" >&6
e8b05380 8728 fi
2abefe3d
PB
8729else
8730 ok=yes
8731 case " ${configdirs} " in
8732 *" gas "*) ;;
8733 *) ok=no ;;
8734 esac
0b0dc272 8735
2abefe3d
PB
8736 if test $ok = yes; then
8737 # An in-tree tool is available and we can use it
8738 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
0b0dc272
AM
8739 echo "$as_me:$LINENO: result: just compiled" >&5
8740echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8741 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
8742 # We already found the complete path
0b0dc272
AM
8743 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
8744echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2abefe3d
PB
8745 elif test "x$target" = "x$host"; then
8746 # We can use an host tool
8747 AS_FOR_TARGET='$(AS)'
0b0dc272
AM
8748 echo "$as_me:$LINENO: result: host tool" >&5
8749echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8750 else
8751 # We need a cross tool
0b0dc272
AM
8752 echo "$as_me:$LINENO: result: pre-installed" >&5
8753echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
8754 fi
8755fi
0b0dc272
AM
8756
8757echo "$as_me:$LINENO: checking where to find the target cc" >&5
8758echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
2abefe3d 8759if test "x${build}" != "x${host}" ; then
e8b05380
PB
8760 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8761 # We already found the complete path
0b0dc272
AM
8762 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8763echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
e8b05380
PB
8764 else
8765 # Canadian cross, just use what we found
0b0dc272
AM
8766 echo "$as_me:$LINENO: result: pre-installed" >&5
8767echo "${ECHO_T}pre-installed" >&6
e8b05380 8768 fi
2abefe3d
PB
8769else
8770 ok=yes
8771 case " ${configdirs} " in
8772 *" gcc "*) ;;
8773 *) ok=no ;;
8774 esac
0b0dc272 8775
2abefe3d
PB
8776 if test $ok = yes; then
8777 # An in-tree tool is available and we can use it
8778 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
0b0dc272
AM
8779 echo "$as_me:$LINENO: result: just compiled" >&5
8780echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8781 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
8782 # We already found the complete path
0b0dc272
AM
8783 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
8784echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2abefe3d
PB
8785 elif test "x$target" = "x$host"; then
8786 # We can use an host tool
8787 CC_FOR_TARGET='$(CC)'
0b0dc272
AM
8788 echo "$as_me:$LINENO: result: host tool" >&5
8789echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8790 else
8791 # We need a cross tool
0b0dc272
AM
8792 echo "$as_me:$LINENO: result: pre-installed" >&5
8793echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
8794 fi
8795fi
0b0dc272
AM
8796
8797echo "$as_me:$LINENO: checking where to find the target c++" >&5
8798echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
2abefe3d 8799if test "x${build}" != "x${host}" ; then
e8b05380
PB
8800 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8801 # We already found the complete path
0b0dc272
AM
8802 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8803echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
e8b05380
PB
8804 else
8805 # Canadian cross, just use what we found
0b0dc272
AM
8806 echo "$as_me:$LINENO: result: pre-installed" >&5
8807echo "${ECHO_T}pre-installed" >&6
e8b05380 8808 fi
2abefe3d
PB
8809else
8810 ok=yes
8811 case " ${configdirs} " in
8812 *" gcc "*) ;;
8813 *) ok=no ;;
8814 esac
8815 case ,${enable_languages}, in
8816 *,c++,*) ;;
8817 *) ok=no ;;
8818 esac
8819 if test $ok = yes; then
8820 # An in-tree tool is available and we can use it
8821 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'
0b0dc272
AM
8822 echo "$as_me:$LINENO: result: just compiled" >&5
8823echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8824 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
8825 # We already found the complete path
0b0dc272
AM
8826 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
8827echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2abefe3d
PB
8828 elif test "x$target" = "x$host"; then
8829 # We can use an host tool
8830 CXX_FOR_TARGET='$(CXX)'
0b0dc272
AM
8831 echo "$as_me:$LINENO: result: host tool" >&5
8832echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8833 else
8834 # We need a cross tool
0b0dc272
AM
8835 echo "$as_me:$LINENO: result: pre-installed" >&5
8836echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
8837 fi
8838fi
0b0dc272
AM
8839
8840echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
8841echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
2abefe3d 8842if test "x${build}" != "x${host}" ; then
e8b05380
PB
8843 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8844 # We already found the complete path
0b0dc272
AM
8845 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8846echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
e8b05380
PB
8847 else
8848 # Canadian cross, just use what we found
0b0dc272
AM
8849 echo "$as_me:$LINENO: result: pre-installed" >&5
8850echo "${ECHO_T}pre-installed" >&6
e8b05380 8851 fi
2abefe3d
PB
8852else
8853 ok=yes
8854 case " ${configdirs} " in
8855 *" gcc "*) ;;
8856 *) ok=no ;;
8857 esac
8858 case ,${enable_languages}, in
8859 *,c++,*) ;;
8860 *) ok=no ;;
8861 esac
8862 if test $ok = yes; then
8863 # An in-tree tool is available and we can use it
8864 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'
0b0dc272
AM
8865 echo "$as_me:$LINENO: result: just compiled" >&5
8866echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8867 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
8868 # We already found the complete path
0b0dc272
AM
8869 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
8870echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2abefe3d
PB
8871 elif test "x$target" = "x$host"; then
8872 # We can use an host tool
8873 RAW_CXX_FOR_TARGET='$(CXX)'
0b0dc272
AM
8874 echo "$as_me:$LINENO: result: host tool" >&5
8875echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8876 else
8877 # We need a cross tool
0b0dc272
AM
8878 echo "$as_me:$LINENO: result: pre-installed" >&5
8879echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
8880 fi
8881fi
0b0dc272
AM
8882
8883echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
8884echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
2abefe3d 8885if test "x${build}" != "x${host}" ; then
e8b05380
PB
8886 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8887 # We already found the complete path
0b0dc272
AM
8888 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8889echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
e8b05380
PB
8890 else
8891 # Canadian cross, just use what we found
0b0dc272
AM
8892 echo "$as_me:$LINENO: result: pre-installed" >&5
8893echo "${ECHO_T}pre-installed" >&6
e8b05380 8894 fi
2abefe3d
PB
8895else
8896 ok=yes
8897 case " ${configdirs} " in
8898 *" binutils "*) ;;
8899 *) ok=no ;;
8900 esac
0b0dc272 8901
2abefe3d
PB
8902 if test $ok = yes; then
8903 # An in-tree tool is available and we can use it
8904 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
0b0dc272
AM
8905 echo "$as_me:$LINENO: result: just compiled" >&5
8906echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8907 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
8908 # We already found the complete path
0b0dc272
AM
8909 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
8910echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2abefe3d
PB
8911 elif test "x$target" = "x$host"; then
8912 # We can use an host tool
8913 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
0b0dc272
AM
8914 echo "$as_me:$LINENO: result: host tool" >&5
8915echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8916 else
8917 # We need a cross tool
0b0dc272
AM
8918 echo "$as_me:$LINENO: result: pre-installed" >&5
8919echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
8920 fi
8921fi
0b0dc272
AM
8922
8923echo "$as_me:$LINENO: checking where to find the target gcc" >&5
8924echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
2abefe3d 8925if test "x${build}" != "x${host}" ; then
e8b05380
PB
8926 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8927 # We already found the complete path
0b0dc272
AM
8928 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8929echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
e8b05380
PB
8930 else
8931 # Canadian cross, just use what we found
0b0dc272
AM
8932 echo "$as_me:$LINENO: result: pre-installed" >&5
8933echo "${ECHO_T}pre-installed" >&6
e8b05380 8934 fi
2abefe3d
PB
8935else
8936 ok=yes
8937 case " ${configdirs} " in
8938 *" gcc "*) ;;
8939 *) ok=no ;;
8940 esac
0b0dc272 8941
2abefe3d
PB
8942 if test $ok = yes; then
8943 # An in-tree tool is available and we can use it
8944 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
0b0dc272
AM
8945 echo "$as_me:$LINENO: result: just compiled" >&5
8946echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8947 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
8948 # We already found the complete path
0b0dc272
AM
8949 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
8950echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2abefe3d
PB
8951 elif test "x$target" = "x$host"; then
8952 # We can use an host tool
8953 GCC_FOR_TARGET='$()'
0b0dc272
AM
8954 echo "$as_me:$LINENO: result: host tool" >&5
8955echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8956 else
8957 # We need a cross tool
0b0dc272
AM
8958 echo "$as_me:$LINENO: result: pre-installed" >&5
8959echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
8960 fi
8961fi
0b0dc272
AM
8962
8963echo "$as_me:$LINENO: checking where to find the target gcj" >&5
8964echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
2abefe3d 8965if test "x${build}" != "x${host}" ; then
e8b05380
PB
8966 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8967 # We already found the complete path
0b0dc272
AM
8968 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8969echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
e8b05380
PB
8970 else
8971 # Canadian cross, just use what we found
0b0dc272
AM
8972 echo "$as_me:$LINENO: result: pre-installed" >&5
8973echo "${ECHO_T}pre-installed" >&6
e8b05380 8974 fi
2abefe3d
PB
8975else
8976 ok=yes
8977 case " ${configdirs} " in
8978 *" gcc "*) ;;
8979 *) ok=no ;;
8980 esac
8981 case ,${enable_languages}, in
8982 *,java,*) ;;
8983 *) ok=no ;;
8984 esac
8985 if test $ok = yes; then
8986 # An in-tree tool is available and we can use it
8987 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
0b0dc272
AM
8988 echo "$as_me:$LINENO: result: just compiled" >&5
8989echo "${ECHO_T}just compiled" >&6
e8b05380
PB
8990 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
8991 # We already found the complete path
0b0dc272
AM
8992 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
8993echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2abefe3d
PB
8994 elif test "x$target" = "x$host"; then
8995 # We can use an host tool
8996 GCJ_FOR_TARGET='$(GCJ)'
0b0dc272
AM
8997 echo "$as_me:$LINENO: result: host tool" >&5
8998echo "${ECHO_T}host tool" >&6
2abefe3d
PB
8999 else
9000 # We need a cross tool
0b0dc272
AM
9001 echo "$as_me:$LINENO: result: pre-installed" >&5
9002echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9003 fi
9004fi
0b0dc272
AM
9005
9006echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9007echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
2abefe3d 9008if test "x${build}" != "x${host}" ; then
e8b05380
PB
9009 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9010 # We already found the complete path
0b0dc272
AM
9011 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9012echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
e8b05380
PB
9013 else
9014 # Canadian cross, just use what we found
0b0dc272
AM
9015 echo "$as_me:$LINENO: result: pre-installed" >&5
9016echo "${ECHO_T}pre-installed" >&6
e8b05380 9017 fi
2abefe3d
PB
9018else
9019 ok=yes
9020 case " ${configdirs} " in
9021 *" gcc "*) ;;
9022 *) ok=no ;;
9023 esac
9024 case ,${enable_languages}, in
9025 *,fortran,*) ;;
9026 *) ok=no ;;
9027 esac
9028 if test $ok = yes; then
9029 # An in-tree tool is available and we can use it
9030 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
0b0dc272
AM
9031 echo "$as_me:$LINENO: result: just compiled" >&5
9032echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9033 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9034 # We already found the complete path
0b0dc272
AM
9035 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9036echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2abefe3d
PB
9037 elif test "x$target" = "x$host"; then
9038 # We can use an host tool
9039 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
0b0dc272
AM
9040 echo "$as_me:$LINENO: result: host tool" >&5
9041echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9042 else
9043 # We need a cross tool
0b0dc272
AM
9044 echo "$as_me:$LINENO: result: pre-installed" >&5
9045echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9046 fi
9047fi
0b0dc272
AM
9048
9049echo "$as_me:$LINENO: checking where to find the target ld" >&5
9050echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
2abefe3d 9051if test "x${build}" != "x${host}" ; then
e8b05380
PB
9052 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9053 # We already found the complete path
0b0dc272
AM
9054 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9055echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
e8b05380
PB
9056 else
9057 # Canadian cross, just use what we found
0b0dc272
AM
9058 echo "$as_me:$LINENO: result: pre-installed" >&5
9059echo "${ECHO_T}pre-installed" >&6
e8b05380 9060 fi
2abefe3d
PB
9061else
9062 ok=yes
9063 case " ${configdirs} " in
9064 *" ld "*) ;;
9065 *) ok=no ;;
9066 esac
0b0dc272 9067
2abefe3d
PB
9068 if test $ok = yes; then
9069 # An in-tree tool is available and we can use it
9070 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
0b0dc272
AM
9071 echo "$as_me:$LINENO: result: just compiled" >&5
9072echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9073 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9074 # We already found the complete path
0b0dc272
AM
9075 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9076echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2abefe3d
PB
9077 elif test "x$target" = "x$host"; then
9078 # We can use an host tool
9079 LD_FOR_TARGET='$(LD)'
0b0dc272
AM
9080 echo "$as_me:$LINENO: result: host tool" >&5
9081echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9082 else
9083 # We need a cross tool
0b0dc272
AM
9084 echo "$as_me:$LINENO: result: pre-installed" >&5
9085echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9086 fi
9087fi
0b0dc272
AM
9088
9089echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9090echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
2abefe3d 9091if test "x${build}" != "x${host}" ; then
e8b05380
PB
9092 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9093 # We already found the complete path
0b0dc272
AM
9094 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9095echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380
PB
9096 else
9097 # Canadian cross, just use what we found
0b0dc272
AM
9098 echo "$as_me:$LINENO: result: pre-installed" >&5
9099echo "${ECHO_T}pre-installed" >&6
e8b05380 9100 fi
2abefe3d 9101else
e8b05380
PB
9102 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9103 # We already found the complete path
0b0dc272
AM
9104 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9105echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
e8b05380 9106 elif test "x$target" = "x$host"; then
2abefe3d
PB
9107 # We can use an host tool
9108 LIPO_FOR_TARGET='$(LIPO)'
0b0dc272
AM
9109 echo "$as_me:$LINENO: result: host tool" >&5
9110echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9111 else
9112 # We need a cross tool
0b0dc272
AM
9113 echo "$as_me:$LINENO: result: pre-installed" >&5
9114echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9115 fi
9116fi
0b0dc272
AM
9117
9118echo "$as_me:$LINENO: checking where to find the target nm" >&5
9119echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
2abefe3d 9120if test "x${build}" != "x${host}" ; then
e8b05380
PB
9121 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9122 # We already found the complete path
0b0dc272
AM
9123 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9124echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
e8b05380
PB
9125 else
9126 # Canadian cross, just use what we found
0b0dc272
AM
9127 echo "$as_me:$LINENO: result: pre-installed" >&5
9128echo "${ECHO_T}pre-installed" >&6
e8b05380 9129 fi
2abefe3d
PB
9130else
9131 ok=yes
9132 case " ${configdirs} " in
9133 *" binutils "*) ;;
9134 *) ok=no ;;
9135 esac
0b0dc272 9136
2abefe3d
PB
9137 if test $ok = yes; then
9138 # An in-tree tool is available and we can use it
9139 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
0b0dc272
AM
9140 echo "$as_me:$LINENO: result: just compiled" >&5
9141echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9142 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9143 # We already found the complete path
0b0dc272
AM
9144 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9145echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2abefe3d
PB
9146 elif test "x$target" = "x$host"; then
9147 # We can use an host tool
9148 NM_FOR_TARGET='$(NM)'
0b0dc272
AM
9149 echo "$as_me:$LINENO: result: host tool" >&5
9150echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9151 else
9152 # We need a cross tool
0b0dc272
AM
9153 echo "$as_me:$LINENO: result: pre-installed" >&5
9154echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9155 fi
9156fi
0b0dc272
AM
9157
9158echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9159echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
2abefe3d 9160if test "x${build}" != "x${host}" ; then
e8b05380
PB
9161 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9162 # We already found the complete path
0b0dc272
AM
9163 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9164echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
e8b05380
PB
9165 else
9166 # Canadian cross, just use what we found
0b0dc272
AM
9167 echo "$as_me:$LINENO: result: pre-installed" >&5
9168echo "${ECHO_T}pre-installed" >&6
e8b05380 9169 fi
2abefe3d
PB
9170else
9171 ok=yes
9172 case " ${configdirs} " in
9173 *" binutils "*) ;;
9174 *) ok=no ;;
9175 esac
0b0dc272 9176
2abefe3d
PB
9177 if test $ok = yes; then
9178 # An in-tree tool is available and we can use it
9179 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
0b0dc272
AM
9180 echo "$as_me:$LINENO: result: just compiled" >&5
9181echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9182 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9183 # We already found the complete path
0b0dc272
AM
9184 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9185echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2abefe3d
PB
9186 elif test "x$target" = "x$host"; then
9187 # We can use an host tool
9188 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
0b0dc272
AM
9189 echo "$as_me:$LINENO: result: host tool" >&5
9190echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9191 else
9192 # We need a cross tool
0b0dc272
AM
9193 echo "$as_me:$LINENO: result: pre-installed" >&5
9194echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9195 fi
9196fi
0b0dc272
AM
9197
9198echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9199echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
2abefe3d 9200if test "x${build}" != "x${host}" ; then
e8b05380
PB
9201 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9202 # We already found the complete path
0b0dc272
AM
9203 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9204echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
e8b05380
PB
9205 else
9206 # Canadian cross, just use what we found
0b0dc272
AM
9207 echo "$as_me:$LINENO: result: pre-installed" >&5
9208echo "${ECHO_T}pre-installed" >&6
e8b05380 9209 fi
2abefe3d
PB
9210else
9211 ok=yes
9212 case " ${configdirs} " in
9213 *" binutils "*) ;;
9214 *) ok=no ;;
9215 esac
0b0dc272 9216
2abefe3d
PB
9217 if test $ok = yes; then
9218 # An in-tree tool is available and we can use it
9219 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
0b0dc272
AM
9220 echo "$as_me:$LINENO: result: just compiled" >&5
9221echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9222 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9223 # We already found the complete path
0b0dc272
AM
9224 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9225echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2abefe3d
PB
9226 elif test "x$target" = "x$host"; then
9227 # We can use an host tool
9228 RANLIB_FOR_TARGET='$(RANLIB)'
0b0dc272
AM
9229 echo "$as_me:$LINENO: result: host tool" >&5
9230echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9231 else
9232 # We need a cross tool
0b0dc272
AM
9233 echo "$as_me:$LINENO: result: pre-installed" >&5
9234echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9235 fi
9236fi
0b0dc272
AM
9237
9238echo "$as_me:$LINENO: checking where to find the target strip" >&5
9239echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
2abefe3d 9240if test "x${build}" != "x${host}" ; then
e8b05380
PB
9241 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9242 # We already found the complete path
0b0dc272
AM
9243 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9244echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
e8b05380
PB
9245 else
9246 # Canadian cross, just use what we found
0b0dc272
AM
9247 echo "$as_me:$LINENO: result: pre-installed" >&5
9248echo "${ECHO_T}pre-installed" >&6
e8b05380 9249 fi
2abefe3d
PB
9250else
9251 ok=yes
9252 case " ${configdirs} " in
9253 *" binutils "*) ;;
9254 *) ok=no ;;
9255 esac
0b0dc272 9256
2abefe3d
PB
9257 if test $ok = yes; then
9258 # An in-tree tool is available and we can use it
9259 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
0b0dc272
AM
9260 echo "$as_me:$LINENO: result: just compiled" >&5
9261echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9262 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9263 # We already found the complete path
0b0dc272
AM
9264 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9265echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2abefe3d
PB
9266 elif test "x$target" = "x$host"; then
9267 # We can use an host tool
9268 STRIP_FOR_TARGET='$(STRIP)'
0b0dc272
AM
9269 echo "$as_me:$LINENO: result: host tool" >&5
9270echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9271 else
9272 # We need a cross tool
0b0dc272
AM
9273 echo "$as_me:$LINENO: result: pre-installed" >&5
9274echo "${ECHO_T}pre-installed" >&6
2abefe3d
PB
9275 fi
9276fi
0b0dc272
AM
9277
9278echo "$as_me:$LINENO: checking where to find the target windres" >&5
9279echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
2abefe3d 9280if test "x${build}" != "x${host}" ; then
e8b05380
PB
9281 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9282 # We already found the complete path
0b0dc272
AM
9283 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9284echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
e8b05380
PB
9285 else
9286 # Canadian cross, just use what we found
0b0dc272
AM
9287 echo "$as_me:$LINENO: result: pre-installed" >&5
9288echo "${ECHO_T}pre-installed" >&6
e8b05380 9289 fi
2abefe3d
PB
9290else
9291 ok=yes
9292 case " ${configdirs} " in
9293 *" binutils "*) ;;
9294 *) ok=no ;;
9295 esac
0b0dc272 9296
2abefe3d
PB
9297 if test $ok = yes; then
9298 # An in-tree tool is available and we can use it
9299 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
0b0dc272
AM
9300 echo "$as_me:$LINENO: result: just compiled" >&5
9301echo "${ECHO_T}just compiled" >&6
e8b05380
PB
9302 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9303 # We already found the complete path
0b0dc272
AM
9304 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9305echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2abefe3d
PB
9306 elif test "x$target" = "x$host"; then
9307 # We can use an host tool
9308 WINDRES_FOR_TARGET='$(WINDRES)'
0b0dc272
AM
9309 echo "$as_me:$LINENO: result: host tool" >&5
9310echo "${ECHO_T}host tool" >&6
2abefe3d
PB
9311 else
9312 # We need a cross tool
0b0dc272
AM
9313 echo "$as_me:$LINENO: result: pre-installed" >&5
9314echo "${ECHO_T}pre-installed" >&6
2abefe3d 9315 fi
671aa708 9316fi
be912515
NN
9317
9318
9319
2abefe3d 9320
0b0dc272 9321
671aa708
NN
9322# Certain tools may need extra flags.
9323AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9324RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9325NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9326
2abefe3d
PB
9327# When building target libraries, except in a Canadian cross, we use
9328# the same toolchain as the compiler we just built.
9329COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9330COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9331COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9332if test $host = $build; then
9333 case " $configdirs " in
9334 *" gcc "*)
9335 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9336 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9337 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9338 ;;
9339 esac
9340fi
9341
9342
9343
9344
9345
0b0dc272
AM
9346echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9347echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
ee03dc5e
AO
9348# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9349if test "${enable_maintainer_mode+set}" = set; then
9350 enableval="$enable_maintainer_mode"
9351 USE_MAINTAINER_MODE=$enableval
9352else
9353 USE_MAINTAINER_MODE=no
0b0dc272
AM
9354fi;
9355echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9356echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee03dc5e
AO
9357
9358
9359if test "$USE_MAINTAINER_MODE" = yes; then
9360 MAINTAINER_MODE_TRUE=
9361 MAINTAINER_MODE_FALSE='#'
9362else
9363 MAINTAINER_MODE_TRUE='#'
9364 MAINTAINER_MODE_FALSE=
0b0dc272 9365fi
ee03dc5e
AO
9366MAINT=$MAINTAINER_MODE_TRUE
9367
2805b53a
NN
9368# ---------------------
9369# GCC bootstrap support
9370# ---------------------
9371
9372# Stage specific cflags for build.
9373stage1_cflags="-g"
9374case $build in
9375 vax-*-*)
9376 case ${GCC} in
9377 yes) stage1_cflags="-g -Wa,-J" ;;
9378 *) stage1_cflags="-g -J" ;;
9379 esac ;;
2805b53a
NN
9380esac
9381
0b50988a
EB
9382# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9383if test "$GCC" = yes; then
9384 saved_CFLAGS="$CFLAGS"
9385
9386 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9387 CFLAGS="$CFLAGS -fkeep-inline-functions"
0b0dc272
AM
9388 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9389echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h. */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h. */
9396
9397int
9398main ()
9399{
9400
9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext
9406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 echo "$as_me:$LINENO: result: yes" >&5
9428echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9429else
9430 echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433echo "$as_me:$LINENO: result: no" >&5
9434echo "${ECHO_T}no" >&6
9435fi
9436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
9437
9438 CFLAGS="$saved_CFLAGS"
9439fi
9440
9441
2805b53a 9442
8efea775
PB
9443# Enable --enable-checking in stage1 of the compiler.
9444# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9445if test "${enable_stage1_checking+set}" = set; then
9446 enableval="$enable_stage1_checking"
9447 stage1_checking=--enable-checking=${enable_stage1_checking}
9448else
9449 if test "x$enable_checking" = xno; then
9450 stage1_checking=--enable-checking
9451else
9452 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9453fi
0b0dc272 9454fi;
8efea775
PB
9455
9456
2805b53a
NN
9457# Enable -Werror in bootstrap stage2 and later.
9458# Change the default to "no" on release branches.
9459# Check whether --enable-werror or --disable-werror was given.
9460if test "${enable_werror+set}" = set; then
9461 enableval="$enable_werror"
0b0dc272 9462
2805b53a
NN
9463else
9464 enable_werror=yes
0b0dc272 9465fi;
09a9c095
NN
9466case ${enable_werror} in
9467 yes) stage2_werror_flag="--enable-werror-always" ;;
9468 *) stage2_werror_flag="" ;;
2805b53a
NN
9469esac
9470
9471
32845532 9472# Flags needed to enable html installing and building
0b0dc272 9473
32845532
CD
9474# Check whether --with-datarootdir or --without-datarootdir was given.
9475if test "${with_datarootdir+set}" = set; then
9476 withval="$with_datarootdir"
9477 datarootdir="\${prefix}/${withval}"
9478else
9479 datarootdir="\${prefix}/share"
0b0dc272 9480fi;
32845532
CD
9481
9482
9483# Check whether --with-docdir or --without-docdir was given.
9484if test "${with_docdir+set}" = set; then
9485 withval="$with_docdir"
9486 docdir="\${prefix}/${withval}"
9487else
9488 docdir="\${datarootdir}/doc"
0b0dc272 9489fi;
32845532
CD
9490
9491
9492# Check whether --with-htmldir or --without-htmldir was given.
9493if test "${with_htmldir+set}" = set; then
9494 withval="$with_htmldir"
9495 htmldir="\${prefix}/${withval}"
9496else
9497 htmldir="\${docdir}"
0b0dc272 9498fi;
32845532
CD
9499
9500
9501
9502
9503
0b0dc272
AM
9504 ac_config_files="$ac_config_files Makefile"
9505cat >confcache <<\_ACEOF
671aa708
NN
9506# This file is a shell script that caches the results of configure
9507# tests run on this system so they can be shared between configure
0b0dc272
AM
9508# scripts and configure runs, see configure's option --config-cache.
9509# It is not useful on other systems. If it contains results you don't
9510# want to keep, you may remove or edit it.
671aa708 9511#
0b0dc272
AM
9512# config.status only pays attention to the cache file if you give it
9513# the --recheck option to rerun configure.
671aa708 9514#
0b0dc272
AM
9515# `ac_cv_env_foo' variables (set or unset) will be overridden when
9516# loading this file, other *unset* `ac_cv_foo' will be assigned the
9517# following values.
9518
9519_ACEOF
9520
671aa708
NN
9521# The following way of writing the cache mishandles newlines in values,
9522# but we know of no workaround that is simple, portable, and efficient.
9523# So, don't put newlines in cache variables' values.
9524# Ultrix sh set writes to stderr and can't be redirected directly,
9525# and sets the high bit in the cache file unless we assign to the vars.
0b0dc272
AM
9526{
9527 (set) 2>&1 |
9528 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9529 *ac_space=\ *)
9530 # `set' does not quote correctly, so add quotes (double-quote
9531 # substitution turns \\\\ into \\, and sed turns \\ into \).
9532 sed -n \
9533 "s/'/'\\\\''/g;
9534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9535 ;;
9536 *)
9537 # `set' quotes correctly as required by POSIX, so do not add quotes.
9538 sed -n \
9539 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9540 ;;
9541 esac;
9542} |
9543 sed '
9544 t clear
9545 : clear
9546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9547 t end
9548 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9549 : end' >>confcache
9550if diff $cache_file confcache >/dev/null 2>&1; then :; else
671aa708 9551 if test -w $cache_file; then
0b0dc272
AM
9552 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9553 cat confcache >$cache_file
671aa708
NN
9554 else
9555 echo "not updating unwritable cache $cache_file"
9556 fi
4977bab6 9557fi
671aa708 9558rm -f confcache
79c06341 9559
671aa708
NN
9560test "x$prefix" = xNONE && prefix=$ac_default_prefix
9561# Let make expand exec_prefix.
9562test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 9563
0b0dc272
AM
9564# VPATH may cause trouble with some makes, so we remove $(srcdir),
9565# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9566# trailing colons and then remove the whole line if VPATH becomes empty
9567# (actually we leave an empty line to preserve line numbers).
671aa708 9568if test "x$srcdir" = x.; then
0b0dc272
AM
9569 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9570s/:*\$(srcdir):*/:/;
9571s/:*\${srcdir}:*/:/;
9572s/:*@srcdir@:*/:/;
9573s/^\([^=]*=[ ]*\):*/\1/;
9574s/:*$//;
9575s/^[^=]*=[ ]*$//;
9576}'
671aa708 9577fi
79c06341 9578
671aa708
NN
9579# Transform confdefs.h into DEFS.
9580# Protect against shell expansion while executing Makefile rules.
9581# Protect against Makefile macro expansion.
0b0dc272
AM
9582#
9583# If the first sed substitution is executed (which looks for macros that
9584# take arguments), then we branch to the quote section. Otherwise,
9585# look for a macro that doesn't take arguments.
9586cat >confdef2opt.sed <<\_ACEOF
9587t clear
9588: clear
9589s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9590t quote
9591s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9592t quote
9593d
9594: quote
9595s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9596s,\[,\\&,g
9597s,\],\\&,g
9598s,\$,$$,g
9599p
9600_ACEOF
9601# We use echo to avoid assuming a particular line-breaking character.
9602# The extra dot is to prevent the shell from consuming trailing
9603# line-breaks from the sub-command output. A line-break within
9604# single-quotes doesn't work because, if this script is created in a
9605# platform that uses two characters for line-breaks (e.g., DOS), tr
9606# would break.
9607ac_LF_and_DOT=`echo; echo .`
9608DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9609rm -f confdef2opt.sed
9610
9611
9612ac_libobjs=
9613ac_ltlibobjs=
9614for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9615 # 1. Remove the extension, and $U if already installed.
9616 ac_i=`echo "$ac_i" |
9617 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9618 # 2. Add them.
9619 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9620 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9621done
9622LIBOBJS=$ac_libobjs
a4b9e93e 9623
0b0dc272 9624LTLIBOBJS=$ac_ltlibobjs
a4b9e93e 9625
fb0103e5 9626
0b0dc272
AM
9627
9628: ${CONFIG_STATUS=./config.status}
9629ac_clean_files_save=$ac_clean_files
9630ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9631{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9632echo "$as_me: creating $CONFIG_STATUS" >&6;}
9633cat >$CONFIG_STATUS <<_ACEOF
9634#! $SHELL
9635# Generated by $as_me.
671aa708 9636# Run this file to recreate the current configuration.
671aa708 9637# Compiler output produced by configure, useful for debugging
0b0dc272 9638# configure, is in config.log if it exists.
a4b9e93e 9639
0b0dc272
AM
9640debug=false
9641ac_cs_recheck=false
9642ac_cs_silent=false
9643SHELL=\${CONFIG_SHELL-$SHELL}
9644_ACEOF
9645
9646cat >>$CONFIG_STATUS <<\_ACEOF
9647## --------------------- ##
9648## M4sh Initialization. ##
9649## --------------------- ##
9650
9651# Be Bourne compatible
9652if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9653 emulate sh
9654 NULLCMD=:
9655 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9656 # is contrary to our usage. Disable this feature.
9657 alias -g '${1+"$@"}'='"$@"'
9658elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9659 set -o posix
9660fi
9661DUALCASE=1; export DUALCASE # for MKS sh
9662
9663# Support unset when possible.
9664if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9665 as_unset=unset
9666else
9667 as_unset=false
9668fi
9669
9670
9671# Work around bugs in pre-3.0 UWIN ksh.
9672$as_unset ENV MAIL MAILPATH
9673PS1='$ '
9674PS2='> '
9675PS4='+ '
9676
9677# NLS nuisances.
9678for as_var in \
9679 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9680 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9681 LC_TELEPHONE LC_TIME
9682do
9683 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9684 eval $as_var=C; export $as_var
9685 else
9686 $as_unset $as_var
9687 fi
9688done
9689
9690# Required to use basename.
9691if expr a : '\(a\)' >/dev/null 2>&1; then
9692 as_expr=expr
9693else
9694 as_expr=false
9695fi
9696
9697if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9698 as_basename=basename
9699else
9700 as_basename=false
9701fi
9702
9703
9704# Name of the executable.
9705as_me=`$as_basename "$0" ||
9706$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9707 X"$0" : 'X\(//\)$' \| \
9708 X"$0" : 'X\(/\)$' \| \
9709 . : '\(.\)' 2>/dev/null ||
9710echo X/"$0" |
9711 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9712 /^X\/\(\/\/\)$/{ s//\1/; q; }
9713 /^X\/\(\/\).*/{ s//\1/; q; }
9714 s/.*/./; q'`
9715
9716
9717# PATH needs CR, and LINENO needs CR and PATH.
9718# Avoid depending upon Character Ranges.
9719as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9720as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9721as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9722as_cr_digits='0123456789'
9723as_cr_alnum=$as_cr_Letters$as_cr_digits
9724
9725# The user is always right.
9726if test "${PATH_SEPARATOR+set}" != set; then
9727 echo "#! /bin/sh" >conf$$.sh
9728 echo "exit 0" >>conf$$.sh
9729 chmod +x conf$$.sh
9730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9731 PATH_SEPARATOR=';'
9732 else
9733 PATH_SEPARATOR=:
9734 fi
9735 rm -f conf$$.sh
9736fi
9737
9738
9739 as_lineno_1=$LINENO
9740 as_lineno_2=$LINENO
9741 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9742 test "x$as_lineno_1" != "x$as_lineno_2" &&
9743 test "x$as_lineno_3" = "x$as_lineno_2" || {
9744 # Find who we are. Look in the path if we contain no path at all
9745 # relative or not.
9746 case $0 in
9747 *[\\/]* ) as_myself=$0 ;;
9748 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749for as_dir in $PATH
9750do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
9753 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9754done
9755
9756 ;;
9757 esac
9758 # We did not find ourselves, most probably we were run as `sh COMMAND'
9759 # in which case we are not to be found in the path.
9760 if test "x$as_myself" = x; then
9761 as_myself=$0
9762 fi
9763 if test ! -f "$as_myself"; then
9764 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9765echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9766 { (exit 1); exit 1; }; }
9767 fi
9768 case $CONFIG_SHELL in
9769 '')
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9772do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for as_base in sh bash ksh sh5; do
9776 case $as_dir in
9777 /*)
9778 if ("$as_dir/$as_base" -c '
9779 as_lineno_1=$LINENO
9780 as_lineno_2=$LINENO
9781 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9782 test "x$as_lineno_1" != "x$as_lineno_2" &&
9783 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9784 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9785 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9786 CONFIG_SHELL=$as_dir/$as_base
9787 export CONFIG_SHELL
9788 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9789 fi;;
9790 esac
9791 done
9792done
9793;;
9794 esac
9795
9796 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9797 # uniformly replaced by the line number. The first 'sed' inserts a
9798 # line-number line before each line; the second 'sed' does the real
9799 # work. The second script uses 'N' to pair each line-number line
9800 # with the numbered line, and appends trailing '-' during
9801 # substitution so that $LINENO is not a special case at line end.
9802 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9803 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9804 sed '=' <$as_myself |
9805 sed '
9806 N
9807 s,$,-,
9808 : loop
9809 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9810 t loop
9811 s,-$,,
9812 s,^['$as_cr_digits']*\n,,
9813 ' >$as_me.lineno &&
9814 chmod +x $as_me.lineno ||
9815 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9816echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9817 { (exit 1); exit 1; }; }
9818
9819 # Don't try to exec as it changes $[0], causing all sort of problems
9820 # (the dirname of $[0] is not the place where we might find the
9821 # original and so on. Autoconf is especially sensible to this).
9822 . ./$as_me.lineno
9823 # Exit status is that of the last command.
9824 exit
9825}
9826
9827
9828case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9829 *c*,-n*) ECHO_N= ECHO_C='
9830' ECHO_T=' ' ;;
9831 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9832 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9833esac
9834
9835if expr a : '\(a\)' >/dev/null 2>&1; then
9836 as_expr=expr
9837else
9838 as_expr=false
9839fi
9840
9841rm -f conf$$ conf$$.exe conf$$.file
9842echo >conf$$.file
9843if ln -s conf$$.file conf$$ 2>/dev/null; then
9844 # We could just check for DJGPP; but this test a) works b) is more generic
9845 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9846 if test -f conf$$.exe; then
9847 # Don't use ln at all; we don't have any links
9848 as_ln_s='cp -p'
9849 else
9850 as_ln_s='ln -s'
9851 fi
9852elif ln conf$$.file conf$$ 2>/dev/null; then
9853 as_ln_s=ln
9854else
9855 as_ln_s='cp -p'
9856fi
9857rm -f conf$$ conf$$.exe conf$$.file
9858
9859if mkdir -p . 2>/dev/null; then
9860 as_mkdir_p=:
9861else
9862 test -d ./-p && rmdir ./-p
9863 as_mkdir_p=false
9864fi
9865
9866as_executable_p="test -f"
9867
9868# Sed expression to map a string onto a valid CPP name.
9869as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9870
9871# Sed expression to map a string onto a valid variable name.
9872as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9873
9874
9875# IFS
9876# We need space, tab and new line, in precisely that order.
9877as_nl='
9878'
9879IFS=" $as_nl"
9880
9881# CDPATH.
9882$as_unset CDPATH
9883
9884exec 6>&1
9885
9886# Open the log real soon, to keep \$[0] and so on meaningful, and to
9887# report actual input values of CONFIG_FILES etc. instead of their
9888# values after options handling. Logging --version etc. is OK.
9889exec 5>>config.log
9890{
9891 echo
9892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9893## Running $as_me. ##
9894_ASBOX
9895} >&5
9896cat >&5 <<_CSEOF
9897
9898This file was extended by $as_me, which was
9899generated by GNU Autoconf 2.59. Invocation command line was
9900
9901 CONFIG_FILES = $CONFIG_FILES
9902 CONFIG_HEADERS = $CONFIG_HEADERS
9903 CONFIG_LINKS = $CONFIG_LINKS
9904 CONFIG_COMMANDS = $CONFIG_COMMANDS
9905 $ $0 $@
9906
9907_CSEOF
9908echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9909echo >&5
9910_ACEOF
9911
9912# Files that config.status was made for.
9913if test -n "$ac_config_files"; then
9914 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9915fi
9916
9917if test -n "$ac_config_headers"; then
9918 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9919fi
9920
9921if test -n "$ac_config_links"; then
9922 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9923fi
9924
9925if test -n "$ac_config_commands"; then
9926 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9927fi
9928
9929cat >>$CONFIG_STATUS <<\_ACEOF
9930
9931ac_cs_usage="\
9932\`$as_me' instantiates files from templates according to the
9933current configuration.
9934
9935Usage: $0 [OPTIONS] [FILE]...
9936
9937 -h, --help print this help, then exit
9938 -V, --version print version number, then exit
9939 -q, --quiet do not print progress messages
9940 -d, --debug don't remove temporary files
9941 --recheck update $as_me by reconfiguring in the same conditions
9942 --file=FILE[:TEMPLATE]
9943 instantiate the configuration file FILE
9944
9945Configuration files:
9946$config_files
9947
9948Report bugs to <bug-autoconf@gnu.org>."
9949_ACEOF
9950
9951cat >>$CONFIG_STATUS <<_ACEOF
9952ac_cs_version="\\
9953config.status
9954configured by $0, generated by GNU Autoconf 2.59,
9955 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9956
9957Copyright (C) 2003 Free Software Foundation, Inc.
9958This config.status script is free software; the Free Software Foundation
9959gives unlimited permission to copy, distribute and modify it."
9960srcdir=$srcdir
9961INSTALL="$INSTALL"
9962_ACEOF
9963
9964cat >>$CONFIG_STATUS <<\_ACEOF
9965# If no file are specified by the user, then we need to provide default
9966# value. By we need to know if files were specified by the user.
9967ac_need_defaults=:
9968while test $# != 0
a4b9e93e 9969do
0b0dc272
AM
9970 case $1 in
9971 --*=*)
9972 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9973 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9974 ac_shift=:
9975 ;;
9976 -*)
9977 ac_option=$1
9978 ac_optarg=$2
9979 ac_shift=shift
9980 ;;
9981 *) # This is not an option, so the user has probably given explicit
9982 # arguments.
9983 ac_option=$1
9984 ac_need_defaults=false;;
9985 esac
9986
9987 case $ac_option in
9988 # Handling of the options.
9989_ACEOF
9990cat >>$CONFIG_STATUS <<\_ACEOF
671aa708 9991 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
0b0dc272
AM
9992 ac_cs_recheck=: ;;
9993 --version | --vers* | -V )
9994 echo "$ac_cs_version"; exit 0 ;;
9995 --he | --h)
9996 # Conflict between --help and --header
9997 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9998Try \`$0 --help' for more information." >&5
9999echo "$as_me: error: ambiguous option: $1
10000Try \`$0 --help' for more information." >&2;}
10001 { (exit 1); exit 1; }; };;
10002 --help | --hel | -h )
10003 echo "$ac_cs_usage"; exit 0 ;;
10004 --debug | --d* | -d )
10005 debug=: ;;
10006 --file | --fil | --fi | --f )
10007 $ac_shift
10008 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10009 ac_need_defaults=false;;
10010 --header | --heade | --head | --hea )
10011 $ac_shift
10012 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10013 ac_need_defaults=false;;
10014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10016 ac_cs_silent=: ;;
10017
10018 # This is an error.
10019 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10020Try \`$0 --help' for more information." >&5
10021echo "$as_me: error: unrecognized option: $1
10022Try \`$0 --help' for more information." >&2;}
10023 { (exit 1); exit 1; }; } ;;
10024
10025 *) ac_config_targets="$ac_config_targets $1" ;;
10026
a4b9e93e 10027 esac
0b0dc272 10028 shift
a4b9e93e
PT
10029done
10030
0b0dc272 10031ac_configure_extra_args=
a4b9e93e 10032
0b0dc272
AM
10033if $ac_cs_silent; then
10034 exec 6>/dev/null
10035 ac_configure_extra_args="$ac_configure_extra_args --silent"
10036fi
a4b9e93e 10037
0b0dc272
AM
10038_ACEOF
10039cat >>$CONFIG_STATUS <<_ACEOF
10040if \$ac_cs_recheck; then
10041 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10042 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10043fi
10044
10045_ACEOF
10046
10047
10048
10049
10050
10051cat >>$CONFIG_STATUS <<\_ACEOF
10052for ac_config_target in $ac_config_targets
10053do
10054 case "$ac_config_target" in
10055 # Handling of arguments.
10056 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10057 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10058echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10059 { (exit 1); exit 1; }; };;
10060 esac
10061done
10062
10063# If the user did not use the arguments to specify the items to instantiate,
10064# then the envvar interface is used. Set only those that are not.
10065# We use the long form for the default assignment because of an extremely
10066# bizarre bug on SunOS 4.1.3.
10067if $ac_need_defaults; then
10068 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10069fi
10070
10071# Have a temporary directory for convenience. Make it in the build tree
10072# simply because there is no reason to put it here, and in addition,
10073# creating and moving files from /tmp can sometimes cause problems.
10074# Create a temporary directory, and hook for its removal unless debugging.
10075$debug ||
10076{
10077 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10078 trap '{ (exit 1); exit 1; }' 1 2 13 15
10079}
10080
10081# Create a (secure) tmp directory for tmp files.
10082
10083{
10084 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10085 test -n "$tmp" && test -d "$tmp"
10086} ||
10087{
10088 tmp=./confstat$$-$RANDOM
10089 (umask 077 && mkdir $tmp)
10090} ||
10091{
10092 echo "$me: cannot create a temporary directory in ." >&2
10093 { (exit 1); exit 1; }
10094}
10095
10096_ACEOF
10097
10098cat >>$CONFIG_STATUS <<_ACEOF
10099
10100#
10101# CONFIG_FILES section.
10102#
10103
10104# No need to generate the scripts if there are no CONFIG_FILES.
10105# This happens for instance when ./config.status config.h
10106if test -n "\$CONFIG_FILES"; then
10107 # Protect against being on the right side of a sed subst in config.status.
10108 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10109 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10110s,@SHELL@,$SHELL,;t t
10111s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10112s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10113s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10114s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10115s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10116s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10117s,@exec_prefix@,$exec_prefix,;t t
10118s,@prefix@,$prefix,;t t
10119s,@program_transform_name@,$program_transform_name,;t t
10120s,@bindir@,$bindir,;t t
10121s,@sbindir@,$sbindir,;t t
10122s,@libexecdir@,$libexecdir,;t t
10123s,@datadir@,$datadir,;t t
10124s,@sysconfdir@,$sysconfdir,;t t
10125s,@sharedstatedir@,$sharedstatedir,;t t
10126s,@localstatedir@,$localstatedir,;t t
10127s,@libdir@,$libdir,;t t
10128s,@includedir@,$includedir,;t t
10129s,@oldincludedir@,$oldincludedir,;t t
10130s,@infodir@,$infodir,;t t
10131s,@mandir@,$mandir,;t t
10132s,@build_alias@,$build_alias,;t t
10133s,@host_alias@,$host_alias,;t t
10134s,@target_alias@,$target_alias,;t t
10135s,@DEFS@,$DEFS,;t t
10136s,@ECHO_C@,$ECHO_C,;t t
10137s,@ECHO_N@,$ECHO_N,;t t
10138s,@ECHO_T@,$ECHO_T,;t t
10139s,@LIBS@,$LIBS,;t t
10140s,@build@,$build,;t t
10141s,@build_cpu@,$build_cpu,;t t
10142s,@build_vendor@,$build_vendor,;t t
10143s,@build_os@,$build_os,;t t
10144s,@host@,$host,;t t
10145s,@host_cpu@,$host_cpu,;t t
10146s,@host_vendor@,$host_vendor,;t t
10147s,@host_os@,$host_os,;t t
10148s,@target@,$target,;t t
10149s,@target_cpu@,$target_cpu,;t t
10150s,@target_vendor@,$target_vendor,;t t
10151s,@target_os@,$target_os,;t t
10152s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10153s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10154s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10155s,@LN@,$LN,;t t
10156s,@LN_S@,$LN_S,;t t
10157s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10158s,@build_libsubdir@,$build_libsubdir,;t t
10159s,@build_subdir@,$build_subdir,;t t
10160s,@host_subdir@,$host_subdir,;t t
10161s,@target_subdir@,$target_subdir,;t t
10162s,@CC@,$CC,;t t
10163s,@CFLAGS@,$CFLAGS,;t t
10164s,@LDFLAGS@,$LDFLAGS,;t t
10165s,@CPPFLAGS@,$CPPFLAGS,;t t
10166s,@ac_ct_CC@,$ac_ct_CC,;t t
10167s,@EXEEXT@,$EXEEXT,;t t
10168s,@OBJEXT@,$OBJEXT,;t t
10169s,@GNATBIND@,$GNATBIND,;t t
10170s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10171s,@do_compare@,$do_compare,;t t
10172s,@gmplibs@,$gmplibs,;t t
10173s,@gmpinc@,$gmpinc,;t t
10174s,@stage1_languages@,$stage1_languages,;t t
10175s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10176s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10177s,@tooldir@,$tooldir,;t t
10178s,@build_tooldir@,$build_tooldir,;t t
10179s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10180s,@GDB_TK@,$GDB_TK,;t t
10181s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10182s,@build_configargs@,$build_configargs,;t t
10183s,@build_configdirs@,$build_configdirs,;t t
10184s,@host_configargs@,$host_configargs,;t t
10185s,@configdirs@,$configdirs,;t t
10186s,@target_configargs@,$target_configargs,;t t
10187s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10188s,@config_shell@,$config_shell,;t t
10189s,@YACC@,$YACC,;t t
10190s,@BISON@,$BISON,;t t
10191s,@M4@,$M4,;t t
10192s,@LEX@,$LEX,;t t
10193s,@FLEX@,$FLEX,;t t
10194s,@MAKEINFO@,$MAKEINFO,;t t
10195s,@EXPECT@,$EXPECT,;t t
10196s,@RUNTEST@,$RUNTEST,;t t
10197s,@AR@,$AR,;t t
10198s,@AS@,$AS,;t t
10199s,@DLLTOOL@,$DLLTOOL,;t t
10200s,@LD@,$LD,;t t
10201s,@LIPO@,$LIPO,;t t
10202s,@NM@,$NM,;t t
10203s,@RANLIB@,$RANLIB,;t t
10204s,@STRIP@,$STRIP,;t t
10205s,@WINDRES@,$WINDRES,;t t
10206s,@OBJCOPY@,$OBJCOPY,;t t
10207s,@OBJDUMP@,$OBJDUMP,;t t
10208s,@CXX@,$CXX,;t t
10209s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10210s,@CXXFLAGS@,$CXXFLAGS,;t t
10211s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10212s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10213s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10214s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10215s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10216s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10217s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10218s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10219s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10220s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10221s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10222s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10223s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10224s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10225s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10226s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10227s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10228s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10229s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10230s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10231s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10232s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10233s,@MAINT@,$MAINT,;t t
10234s,@stage1_cflags@,$stage1_cflags,;t t
10235s,@stage1_checking@,$stage1_checking,;t t
10236s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10237s,@datarootdir@,$datarootdir,;t t
10238s,@docdir@,$docdir,;t t
10239s,@htmldir@,$htmldir,;t t
10240s,@LIBOBJS@,$LIBOBJS,;t t
10241s,@LTLIBOBJS@,$LTLIBOBJS,;t t
671aa708 10242/@serialization_dependencies@/r $serialization_dependencies
0b0dc272 10243s,@serialization_dependencies@,,;t t
671aa708 10244/@host_makefile_frag@/r $host_makefile_frag
0b0dc272 10245s,@host_makefile_frag@,,;t t
671aa708 10246/@target_makefile_frag@/r $target_makefile_frag
0b0dc272 10247s,@target_makefile_frag@,,;t t
671aa708 10248/@alphaieee_frag@/r $alphaieee_frag
0b0dc272 10249s,@alphaieee_frag@,,;t t
671aa708 10250/@ospace_frag@/r $ospace_frag
0b0dc272 10251s,@ospace_frag@,,;t t
671aa708 10252CEOF
79c06341 10253
0b0dc272
AM
10254_ACEOF
10255
10256 cat >>$CONFIG_STATUS <<\_ACEOF
10257 # Split the substitutions into bite-sized pieces for seds with
10258 # small command number limits, like on Digital OSF/1 and HP-UX.
10259 ac_max_sed_lines=48
10260 ac_sed_frag=1 # Number of current file.
10261 ac_beg=1 # First line for current file.
10262 ac_end=$ac_max_sed_lines # Line after last line for current file.
10263 ac_more_lines=:
10264 ac_sed_cmds=
10265 while $ac_more_lines; do
10266 if test $ac_beg -gt 1; then
10267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10268 else
10269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10270 fi
10271 if test ! -s $tmp/subs.frag; then
10272 ac_more_lines=false
671aa708 10273 else
0b0dc272
AM
10274 # The purpose of the label and of the branching condition is to
10275 # speed up the sed processing (if there are no `@' at all, there
10276 # is no need to browse any of the substitutions).
10277 # These are the two extra sed commands mentioned above.
10278 (echo ':t
10279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10280 if test -z "$ac_sed_cmds"; then
10281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10282 else
10283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10284 fi
10285 ac_sed_frag=`expr $ac_sed_frag + 1`
10286 ac_beg=$ac_end
10287 ac_end=`expr $ac_end + $ac_max_sed_lines`
671aa708 10288 fi
0b0dc272
AM
10289 done
10290 if test -z "$ac_sed_cmds"; then
10291 ac_sed_cmds=cat
4977bab6 10292 fi
0b0dc272 10293fi # test -n "$CONFIG_FILES"
79c06341 10294
0b0dc272
AM
10295_ACEOF
10296cat >>$CONFIG_STATUS <<\_ACEOF
10297for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
671aa708 10298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
0b0dc272
AM
10299 case $ac_file in
10300 - | *:- | *:-:* ) # input from stdin
10301 cat >$tmp/stdin
10302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10306 * ) ac_file_in=$ac_file.in ;;
671aa708 10307 esac
79c06341 10308
0b0dc272
AM
10309 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10310 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10312 X"$ac_file" : 'X\(//\)[^/]' \| \
10313 X"$ac_file" : 'X\(//\)$' \| \
10314 X"$ac_file" : 'X\(/\)' \| \
10315 . : '\(.\)' 2>/dev/null ||
10316echo X"$ac_file" |
10317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10319 /^X\(\/\/\)$/{ s//\1/; q; }
10320 /^X\(\/\).*/{ s//\1/; q; }
10321 s/.*/./; q'`
10322 { if $as_mkdir_p; then
10323 mkdir -p "$ac_dir"
fb0103e5 10324 else
0b0dc272
AM
10325 as_dir="$ac_dir"
10326 as_dirs=
10327 while test ! -d "$as_dir"; do
10328 as_dirs="$as_dir $as_dirs"
10329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10331 X"$as_dir" : 'X\(//\)[^/]' \| \
10332 X"$as_dir" : 'X\(//\)$' \| \
10333 X"$as_dir" : 'X\(/\)' \| \
10334 . : '\(.\)' 2>/dev/null ||
10335echo X"$as_dir" |
10336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10338 /^X\(\/\/\)$/{ s//\1/; q; }
10339 /^X\(\/\).*/{ s//\1/; q; }
10340 s/.*/./; q'`
10341 done
10342 test ! -n "$as_dirs" || mkdir $as_dirs
10343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10344echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10345 { (exit 1); exit 1; }; }; }
10346
10347 ac_builddir=.
a4b9e93e 10348
0b0dc272
AM
10349if test "$ac_dir" != .; then
10350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10351 # A "../" for each directory in $ac_dir_suffix.
10352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10353else
10354 ac_dir_suffix= ac_top_builddir=
10355fi
10356
10357case $srcdir in
10358 .) # No --srcdir option. We are building in place.
10359 ac_srcdir=.
10360 if test -z "$ac_top_builddir"; then
10361 ac_top_srcdir=.
10362 else
10363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10364 fi ;;
10365 [\\/]* | ?:[\\/]* ) # Absolute path.
10366 ac_srcdir=$srcdir$ac_dir_suffix;
10367 ac_top_srcdir=$srcdir ;;
671aa708 10368 *) # Relative path.
0b0dc272
AM
10369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10371esac
79c06341 10372
0b0dc272
AM
10373# Do not use `cd foo && pwd` to compute absolute paths, because
10374# the directories may not exist.
10375case `pwd` in
10376.) ac_abs_builddir="$ac_dir";;
10377*)
10378 case "$ac_dir" in
10379 .) ac_abs_builddir=`pwd`;;
10380 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10381 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10382 esac;;
10383esac
10384case $ac_abs_builddir in
10385.) ac_abs_top_builddir=${ac_top_builddir}.;;
10386*)
10387 case ${ac_top_builddir}. in
10388 .) ac_abs_top_builddir=$ac_abs_builddir;;
10389 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10390 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10391 esac;;
10392esac
10393case $ac_abs_builddir in
10394.) ac_abs_srcdir=$ac_srcdir;;
10395*)
10396 case $ac_srcdir in
10397 .) ac_abs_srcdir=$ac_abs_builddir;;
10398 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10399 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10400 esac;;
10401esac
10402case $ac_abs_builddir in
10403.) ac_abs_top_srcdir=$ac_top_srcdir;;
10404*)
10405 case $ac_top_srcdir in
10406 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10407 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10408 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10409 esac;;
10410esac
a4b9e93e 10411
0b0dc272
AM
10412
10413 case $INSTALL in
10414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10415 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
671aa708 10416 esac
79c06341 10417
0b0dc272
AM
10418 if test x"$ac_file" != x-; then
10419 { echo "$as_me:$LINENO: creating $ac_file" >&5
10420echo "$as_me: creating $ac_file" >&6;}
10421 rm -f "$ac_file"
10422 fi
10423 # Let's still pretend it is `configure' which instantiates (i.e., don't
10424 # use $as_me), people would be surprised to read:
10425 # /* config.h. Generated by config.status. */
10426 if test x"$ac_file" = x-; then
10427 configure_input=
10428 else
10429 configure_input="$ac_file. "
10430 fi
10431 configure_input=$configure_input"Generated from `echo $ac_file_in |
10432 sed 's,.*/,,'` by configure."
10433
10434 # First look for the input files in the build tree, otherwise in the
10435 # src tree.
10436 ac_file_inputs=`IFS=:
10437 for f in $ac_file_in; do
10438 case $f in
10439 -) echo $tmp/stdin ;;
10440 [\\/$]*)
10441 # Absolute (can't be DOS-style, as IFS=:)
10442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10443echo "$as_me: error: cannot find input file: $f" >&2;}
10444 { (exit 1); exit 1; }; }
10445 echo "$f";;
10446 *) # Relative
10447 if test -f "$f"; then
10448 # Build tree
10449 echo "$f"
10450 elif test -f "$srcdir/$f"; then
10451 # Source tree
10452 echo "$srcdir/$f"
10453 else
10454 # /dev/null tree
10455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10456echo "$as_me: error: cannot find input file: $f" >&2;}
10457 { (exit 1); exit 1; }; }
10458 fi;;
10459 esac
10460 done` || { (exit 1); exit 1; }
10461_ACEOF
10462cat >>$CONFIG_STATUS <<_ACEOF
10463 sed "$ac_vpsub
10464$extrasub
10465_ACEOF
10466cat >>$CONFIG_STATUS <<\_ACEOF
10467:t
10468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10469s,@configure_input@,$configure_input,;t t
10470s,@srcdir@,$ac_srcdir,;t t
10471s,@abs_srcdir@,$ac_abs_srcdir,;t t
10472s,@top_srcdir@,$ac_top_srcdir,;t t
10473s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10474s,@builddir@,$ac_builddir,;t t
10475s,@abs_builddir@,$ac_abs_builddir,;t t
10476s,@top_builddir@,$ac_top_builddir,;t t
10477s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10478s,@INSTALL@,$ac_INSTALL,;t t
10479" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10480 rm -f $tmp/stdin
10481 if test x"$ac_file" != x-; then
10482 mv $tmp/out $ac_file
10483 else
10484 cat $tmp/out
10485 rm -f $tmp/out
10486 fi
79c06341 10487
0b0dc272
AM
10488done
10489_ACEOF
79c06341 10490
0b0dc272 10491cat >>$CONFIG_STATUS <<\_ACEOF
79c06341 10492
0b0dc272
AM
10493{ (exit 0); exit 0; }
10494_ACEOF
671aa708 10495chmod +x $CONFIG_STATUS
0b0dc272
AM
10496ac_clean_files=$ac_clean_files_save
10497
10498
10499# configure is writing to config.log, and then calls config.status.
10500# config.status does its own redirection, appending to config.log.
10501# Unfortunately, on DOS this fails, as config.log is still kept open
10502# by configure, so config.status won't be able to write to it; its
10503# output is simply discarded. So we exec the FD to /dev/null,
10504# effectively closing config.log, so it can be properly (re)opened and
10505# appended to by config.status. When coming back to configure, we
10506# need to make the FD available again.
10507if test "$no_create" != yes; then
10508 ac_cs_success=:
10509 ac_config_status_args=
10510 test "$silent" = yes &&
10511 ac_config_status_args="$ac_config_status_args --quiet"
10512 exec 5>/dev/null
10513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10514 exec 5>>config.log
10515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10516 # would make configure fail if this is the last instruction.
10517 $ac_cs_success || { (exit 1); exit 1; }
10518fi
79c06341 10519
This page took 2.18493 seconds and 5 git commands to generate.