2007-02-13 Denis Pilat <denis.pilat@st.com>
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
c6b750e1 3# Generated by GNU Autoconf 2.59.
a0da8069 4#
c6b750e1 5# Copyright (C) 2003 Free Software Foundation, Inc.
a0da8069
NN
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
c6b750e1
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
a0da8069 243
c6b750e1
DJ
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
a0da8069 254ac_default_prefix=/usr/local
c6b750e1
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="move-if-change"
7df2cd5d 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE 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'
c6b750e1 276ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
a0da8069
NN
277
278# Initialize some variables set by options.
c6b750e1
DJ
279ac_init_help=
280ac_init_version=false
a0da8069
NN
281# The variables have the same names as the options, with
282# dashes changed to underlines.
c6b750e1 283cache_file=/dev/null
a0da8069 284exec_prefix=NONE
a0da8069 285no_create=
a0da8069
NN
286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
a0da8069
NN
294verbose=
295x_includes=NONE
296x_libraries=NONE
c6b750e1
DJ
297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
a0da8069
NN
303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
252b5132 315
a0da8069
NN
316ac_prev=
317for ac_option
318do
a0da8069
NN
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
252b5132 325
c6b750e1 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
a0da8069
NN
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
c6b750e1 330 case $ac_option in
a0da8069
NN
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 335 bindir=$ac_optarg ;;
a0da8069
NN
336
337 -build | --build | --buil | --bui | --bu)
c6b750e1 338 ac_prev=build_alias ;;
a0da8069 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 340 build_alias=$ac_optarg ;;
a0da8069
NN
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
a0da8069
NN
351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
c6b750e1 356 datadir=$ac_optarg ;;
a0da8069
NN
357
358 -disable-* | --disable-*)
c6b750e1 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 360 # Reject names that are not valid shell variable names.
c6b750e1
DJ
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
a0da8069
NN
366
367 -enable-* | --enable-*)
c6b750e1 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 369 # Reject names that are not valid shell variable names.
c6b750e1
DJ
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
376 *) ac_optarg=yes ;;
377 esac
c6b750e1 378 eval "enable_$ac_feature='$ac_optarg'" ;;
a0da8069
NN
379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
c6b750e1 387 exec_prefix=$ac_optarg ;;
a0da8069
NN
388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
c6b750e1
DJ
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
a0da8069
NN
399
400 -host | --host | --hos | --ho)
c6b750e1 401 ac_prev=host_alias ;;
a0da8069 402 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 403 host_alias=$ac_optarg ;;
a0da8069
NN
404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 410 includedir=$ac_optarg ;;
a0da8069
NN
411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 415 infodir=$ac_optarg ;;
a0da8069
NN
416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 420 libdir=$ac_optarg ;;
a0da8069
NN
421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
c6b750e1 427 libexecdir=$ac_optarg ;;
a0da8069
NN
428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
c6b750e1 436 localstatedir=$ac_optarg ;;
a0da8069
NN
437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 441 mandir=$ac_optarg ;;
a0da8069
NN
442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 448 | --no-cr | --no-c | -n)
a0da8069
NN
449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 462 oldincludedir=$ac_optarg ;;
a0da8069
NN
463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 467 prefix=$ac_optarg ;;
a0da8069
NN
468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 474 program_prefix=$ac_optarg ;;
a0da8069
NN
475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 481 program_suffix=$ac_optarg ;;
a0da8069
NN
482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 498 program_transform_name=$ac_optarg ;;
a0da8069
NN
499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
c6b750e1 508 sbindir=$ac_optarg ;;
a0da8069
NN
509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
c6b750e1 519 sharedstatedir=$ac_optarg ;;
a0da8069
NN
520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
c6b750e1 524 site=$ac_optarg ;;
a0da8069
NN
525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 529 srcdir=$ac_optarg ;;
a0da8069
NN
530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 536 sysconfdir=$ac_optarg ;;
a0da8069
NN
537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 539 ac_prev=target_alias ;;
a0da8069 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 541 target_alias=$ac_optarg ;;
a0da8069
NN
542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
c6b750e1
DJ
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
a0da8069
NN
548
549 -with-* | --with-*)
c6b750e1 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 551 # Reject names that are not valid shell variable names.
c6b750e1
DJ
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
a0da8069 555 ac_package=`echo $ac_package| sed 's/-/_/g'`
c6b750e1
DJ
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
a0da8069
NN
558 *) ac_optarg=yes ;;
559 esac
c6b750e1 560 eval "with_$ac_package='$ac_optarg'" ;;
a0da8069
NN
561
562 -without-* | --without-*)
c6b750e1 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 564 # Reject names that are not valid shell variable names.
c6b750e1
DJ
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
a0da8069
NN
570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 580 x_includes=$ac_optarg ;;
a0da8069
NN
581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 587 x_libraries=$ac_optarg ;;
a0da8069 588
c6b750e1
DJ
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
a0da8069
NN
592 ;;
593
c6b750e1
DJ
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
a0da8069 604 *)
c6b750e1
DJ
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
c6b750e1
DJ
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
a0da8069 619fi
a0da8069 620
c6b750e1
DJ
621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
623do
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630done
a0da8069 631
c6b750e1
DJ
632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
a0da8069 635do
c6b750e1
DJ
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
a0da8069
NN
641 esac
642done
643
c6b750e1
DJ
644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
376a0e54 650
c6b750e1
DJ
651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
a0da8069 666
a0da8069
NN
667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
c6b750e1
DJ
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
a0da8069
NN
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
c6b750e1
DJ
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
a0da8069 695 else
c6b750e1
DJ
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
698 fi
699fi
700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
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
a0da8069 803fi
a0da8069 804
c6b750e1
DJ
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-stage1-languages=all choose additional languages to build during
815 stage1. Mostly useful for compiler development.
816 --enable-objc-gc enable the use of Boehm's garbage collector with
817 the GNU Objective-C runtime.
818 --enable-bootstrap Enable bootstrapping yes if native build
819 --enable-serial-{host,target,build}-configure
820 Force sequential configuration of
821 sub-packages for the host, target or build
822 machine, or all sub-packages
823 --enable-maintainer-mode enable make rules and dependencies not useful
824 (and sometimes confusing) to the casual installer
825 --enable-stage1-checking=all choose additional checking for stage1
826 of the compiler.
827 --enable-werror enable -Werror in bootstrap stage2 and later
828
829Optional Packages:
830 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
831 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
832 --with-build-libsubdir=DIR Directory where to find libraries for build system
833 --with-mpfr-dir=PATH This option has been REMOVED
834 --with-mpfr=PATH Specify prefix directory for installed MPFR package
835 Equivalent to --with-mpfr-include=PATH/include
836 plus --with-mpfr-lib=PATH/lib
837 --with-mpfr-include=PATH
838 Specify directory for installed MPFR include files
839 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
840 --with-gmp-dir=PATH This option has been REMOVED
841 --with-gmp=PATH Specify prefix directory for the installed GMP package
842 Equivalent to --with-gmp-include=PATH/include
843 plus --with-gmp-lib=PATH/lib
844 --with-gmp-include=PATH Specify directory for installed GMP include files
845 --with-gmp-lib=PATH Specify the directory for the installed GMP library
846 --with-build-sysroot=sysroot
847 use sysroot as the system root during the build
848 --with-build-time-tools=path
849 use given path to find target tools during the build
850 --with-datarootdir Use datarootdir as the data root directory.
851 --with-docdir Install documentation in this directory.
852 --with-htmldir Install html in this directory.
853
854Some influential environment variables:
855 CC C compiler command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
858 nonstandard directory <lib dir>
859 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
860 headers in a nonstandard directory <include dir>
861
862Use these variables to override the choices made by `configure' or to help
863it to find libraries and programs with nonstandard names/locations.
864
865_ACEOF
866fi
867
868if test "$ac_init_help" = "recursive"; then
869 # If there are subdirs, report their specific --help.
870 ac_popdir=`pwd`
871 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872 test -d $ac_dir || continue
873 ac_builddir=.
874
875if test "$ac_dir" != .; then
876 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877 # A "../" for each directory in $ac_dir_suffix.
878 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879else
880 ac_dir_suffix= ac_top_builddir=
881fi
882
883case $srcdir in
884 .) # No --srcdir option. We are building in place.
885 ac_srcdir=.
886 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=.
888 else
889 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890 fi ;;
891 [\\/]* | ?:[\\/]* ) # Absolute path.
892 ac_srcdir=$srcdir$ac_dir_suffix;
893 ac_top_srcdir=$srcdir ;;
894 *) # Relative path.
895 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897esac
898
899# Do not use `cd foo && pwd` to compute absolute paths, because
900# the directories may not exist.
901case `pwd` in
902.) ac_abs_builddir="$ac_dir";;
903*)
904 case "$ac_dir" in
905 .) ac_abs_builddir=`pwd`;;
906 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 esac;;
909esac
910case $ac_abs_builddir in
911.) ac_abs_top_builddir=${ac_top_builddir}.;;
912*)
913 case ${ac_top_builddir}. in
914 .) ac_abs_top_builddir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_srcdir=$ac_srcdir;;
921*)
922 case $ac_srcdir in
923 .) ac_abs_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_top_srcdir=$ac_top_srcdir;;
930*)
931 case $ac_top_srcdir in
932 .) ac_abs_top_srcdir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935 esac;;
936esac
937
938 cd $ac_dir
939 # Check for guested configure; otherwise get Cygnus style configure.
940 if test -f $ac_srcdir/configure.gnu; then
941 echo
942 $SHELL $ac_srcdir/configure.gnu --help=recursive
943 elif test -f $ac_srcdir/configure; then
944 echo
945 $SHELL $ac_srcdir/configure --help=recursive
946 elif test -f $ac_srcdir/configure.ac ||
947 test -f $ac_srcdir/configure.in; then
948 echo
949 $ac_configure --help
950 else
951 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 fi
953 cd $ac_popdir
954 done
955fi
956
957test -n "$ac_init_help" && exit 0
958if $ac_init_version; then
959 cat <<\_ACEOF
960
961Copyright (C) 2003 Free Software Foundation, Inc.
962This configure script is free software; the Free Software Foundation
963gives unlimited permission to copy, distribute and modify it.
964_ACEOF
965 exit 0
966fi
967exec 5>config.log
968cat >&5 <<_ACEOF
969This file contains any messages produced by compilers while
970running configure, to aid debugging if configure makes a mistake.
971
972It was created by $as_me, which was
973generated by GNU Autoconf 2.59. Invocation command line was
974
975 $ $0 $@
976
977_ACEOF
978{
979cat <<_ASUNAME
980## --------- ##
981## Platform. ##
982## --------- ##
983
984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985uname -m = `(uname -m) 2>/dev/null || echo unknown`
986uname -r = `(uname -r) 2>/dev/null || echo unknown`
987uname -s = `(uname -s) 2>/dev/null || echo unknown`
988uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992
993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000
1001_ASUNAME
1002
1003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004for as_dir in $PATH
1005do
1006 IFS=$as_save_IFS
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1009done
1010
1011} >&5
1012
1013cat >&5 <<_ACEOF
1014
1015
1016## ----------- ##
1017## Core tests. ##
1018## ----------- ##
1019
1020_ACEOF
1021
1022
1023# Keep a trace of the command line.
1024# Strip out --no-create and --no-recursion so they do not pile up.
1025# Strip out --silent because we don't want to record it for future runs.
1026# Also quote any args containing shell meta-characters.
1027# Make two passes to allow for proper duplicate-argument suppression.
1028ac_configure_args=
1029ac_configure_args0=
1030ac_configure_args1=
1031ac_sep=
1032ac_must_keep_next=false
1033for ac_pass in 1 2
1034do
1035 for ac_arg
1036 do
1037 case $ac_arg in
1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1041 continue ;;
1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044 esac
1045 case $ac_pass in
1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047 2)
1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049 if test $ac_must_keep_next = true; then
1050 ac_must_keep_next=false # Got value, back to normal.
1051 else
1052 case $ac_arg in
1053 *=* | --config-cache | -C | -disable-* | --disable-* \
1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056 | -with-* | --with-* | -without-* | --without-* | --x)
1057 case "$ac_configure_args0 " in
1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 esac
1060 ;;
1061 -* ) ac_must_keep_next=true ;;
1062 esac
1063 fi
1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065 # Get rid of the leading space.
1066 ac_sep=" "
1067 ;;
1068 esac
1069 done
1070done
1071$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074# When interrupted or exit'd, cleanup temporary files, and complete
1075# config.log. We remove comments because anyway the quotes in there
1076# would cause problems or look ugly.
1077# WARNING: Be sure not to use single quotes in there, as some shells,
1078# such as our DU 5.0 friend, will then `close' the trap.
1079trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1081 {
1082 echo
1083
1084 cat <<\_ASBOX
1085## ---------------- ##
1086## Cache variables. ##
1087## ---------------- ##
1088_ASBOX
1089 echo
1090 # The following way of writing the cache mishandles newlines in values,
1091{
1092 (set) 2>&1 |
1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 *ac_space=\ *)
1095 sed -n \
1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 ;;
1099 *)
1100 sed -n \
1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ;;
1103 esac;
1104}
1105 echo
1106
1107 cat <<\_ASBOX
1108## ----------------- ##
1109## Output variables. ##
1110## ----------------- ##
1111_ASBOX
1112 echo
1113 for ac_var in $ac_subst_vars
1114 do
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1119
1120 if test -n "$ac_subst_files"; then
1121 cat <<\_ASBOX
1122## ------------- ##
1123## Output files. ##
1124## ------------- ##
1125_ASBOX
1126 echo
1127 for ac_var in $ac_subst_files
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133 fi
1134
1135 if test -s confdefs.h; then
1136 cat <<\_ASBOX
1137## ----------- ##
1138## confdefs.h. ##
1139## ----------- ##
1140_ASBOX
1141 echo
1142 sed "/^$/d" confdefs.h | sort
1143 echo
1144 fi
1145 test "$ac_signal" != 0 &&
1146 echo "$as_me: caught signal $ac_signal"
1147 echo "$as_me: exit $exit_status"
1148 } >&5
1149 rm -f core *.core &&
1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151 exit $exit_status
1152 ' 0
1153for ac_signal in 1 2 13 15; do
1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155done
1156ac_signal=0
1157
1158# confdefs.h avoids OS command line length limits that DEFS can exceed.
1159rm -rf conftest* confdefs.h
1160# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161echo >confdefs.h
1162
1163# Predefined preprocessor variables.
1164
1165cat >>confdefs.h <<_ACEOF
1166#define PACKAGE_NAME "$PACKAGE_NAME"
1167_ACEOF
1168
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_VERSION "$PACKAGE_VERSION"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_STRING "$PACKAGE_STRING"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187_ACEOF
1188
1189
1190# Let the site file select an alternate cache file if it wants to.
a0da8069 1191# Prefer explicitly selected file to automatically selected ones.
e3c770b1
EB
1192if test -z "$CONFIG_SITE"; then
1193 if test "x$prefix" != xNONE; then
1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195 else
1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
a0da8069
NN
1197 fi
1198fi
1199for ac_site_file in $CONFIG_SITE; do
1200 if test -r "$ac_site_file"; then
c6b750e1
DJ
1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202echo "$as_me: loading site script $ac_site_file" >&6;}
1203 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
1204 . "$ac_site_file"
1205 fi
1206done
1207
1208if test -r "$cache_file"; then
c6b750e1
DJ
1209 # Some versions of bash will fail to source /dev/null (special
1210 # files actually), so we avoid doing that.
1211 if test -f "$cache_file"; then
1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213echo "$as_me: loading cache $cache_file" >&6;}
1214 case $cache_file in
1215 [\\/]* | ?:[\\/]* ) . $cache_file;;
1216 *) . ./$cache_file;;
1217 esac
1218 fi
a0da8069 1219else
c6b750e1
DJ
1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221echo "$as_me: creating cache $cache_file" >&6;}
1222 >$cache_file
1223fi
1224
1225# Check that the precious variables saved in the cache have kept the same
1226# value.
1227ac_cache_corrupted=false
1228for ac_var in `(set) 2>&1 |
1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231 eval ac_new_set=\$ac_env_${ac_var}_set
1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233 eval ac_new_val="\$ac_env_${ac_var}_value"
1234 case $ac_old_set,$ac_new_set in
1235 set,)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,set)
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242 ac_cache_corrupted=: ;;
1243 ,);;
1244 *)
1245 if test "x$ac_old_val" != "x$ac_new_val"; then
1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1249echo "$as_me: former value: $ac_old_val" >&2;}
1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1251echo "$as_me: current value: $ac_new_val" >&2;}
1252 ac_cache_corrupted=:
1253 fi;;
1254 esac
1255 # Pass precious variables to config.status.
1256 if test "$ac_new_set" = set; then
1257 case $ac_new_val in
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 *) ac_arg=$ac_var=$ac_new_val ;;
1261 esac
1262 case " $ac_configure_args " in
1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 esac
1266 fi
1267done
1268if $ac_cache_corrupted; then
1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273 { (exit 1); exit 1; }; }
a0da8069
NN
1274fi
1275
1276ac_ext=c
a0da8069 1277ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
1278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
a0da8069
NN
1294
1295
75778ec4 1296
c6b750e1
DJ
1297
1298
1299
1300
1301
1302# Find the build, host, and target systems.
a0da8069 1303ac_aux_dir=
315b3b02 1304for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
a0da8069
NN
1305 if 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
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
c6b750e1
DJ
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
a0da8069
NN
1317 fi
1318done
1319if test -z "$ac_aux_dir"; then
c6b750e1
DJ
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1321echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1322 { (exit 1); exit 1; }; }
a0da8069 1323fi
c6b750e1
DJ
1324ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
a0da8069 1327
c6b750e1
DJ
1328# Make sure we can run config.sub.
1329$ac_config_sub sun4 >/dev/null 2>&1 ||
1330 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1331echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1332 { (exit 1); exit 1; }; }
1333
1334echo "$as_me:$LINENO: checking build system type" >&5
1335echo $ECHO_N "checking build system type... $ECHO_C" >&6
1336if test "${ac_cv_build+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else
1339 ac_cv_build_alias=$build_alias
1340test -z "$ac_cv_build_alias" &&
1341 ac_cv_build_alias=`$ac_config_guess`
1342test -z "$ac_cv_build_alias" &&
1343 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1344echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1345 { (exit 1); exit 1; }; }
1346ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1347 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1348echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1349 { (exit 1); exit 1; }; }
1350
1351fi
1352echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1353echo "${ECHO_T}$ac_cv_build" >&6
1354build=$ac_cv_build
1355build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
a0da8069 1358
a0da8069 1359
c6b750e1
DJ
1360 case ${build_alias} in
1361 "") build_noncanonical=${build} ;;
1362 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
1363esac
1364
1365
cac3d6c4 1366
c6b750e1
DJ
1367 case ${host_alias} in
1368 "") host_noncanonical=${build_noncanonical} ;;
1369 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
1370esac
1371
cac3d6c4 1372
c6b750e1
DJ
1373
1374 case ${target_alias} in
1375 "") target_noncanonical=${host_noncanonical} ;;
1376 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
1377esac
1378
cac3d6c4 1379
c6b750e1
DJ
1380
1381
1382test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1384 NONENONEs,x,x, &&
c6b750e1 1385 program_transform_name=s,y,y,
cac3d6c4 1386
c6b750e1
DJ
1387echo "$as_me:$LINENO: checking host system type" >&5
1388echo $ECHO_N "checking host system type... $ECHO_C" >&6
1389if test "${ac_cv_host+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 1391else
c6b750e1
DJ
1392 ac_cv_host_alias=$host_alias
1393test -z "$ac_cv_host_alias" &&
1394 ac_cv_host_alias=$ac_cv_build_alias
1395ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1396 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1397echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1398 { (exit 1); exit 1; }; }
1399
1400fi
1401echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1402echo "${ECHO_T}$ac_cv_host" >&6
1403host=$ac_cv_host
1404host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407
1408
1409echo "$as_me:$LINENO: checking target system type" >&5
1410echo $ECHO_N "checking target system type... $ECHO_C" >&6
1411if test "${ac_cv_target+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_target_alias=$target_alias
1415test "x$ac_cv_target_alias" = "x" &&
1416 ac_cv_target_alias=$ac_cv_host_alias
1417ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1419echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1421
cac3d6c4 1422fi
c6b750e1
DJ
1423echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1424echo "${ECHO_T}$ac_cv_target" >&6
1425target=$ac_cv_target
1426target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429
1430
1431# The aliases save the names the user supplied, while $host etc.
1432# will get canonicalized.
1433test -n "$target_alias" &&
1434 test "$program_prefix$program_suffix$program_transform_name" = \
1435 NONENONEs,x,x, &&
1436 program_prefix=${target_alias}-
a0da8069 1437test "$program_prefix" != NONE &&
c6b750e1 1438 program_transform_name="s,^,$program_prefix,;$program_transform_name"
a0da8069
NN
1439# Use a double $ so make ignores it.
1440test "$program_suffix" != NONE &&
c6b750e1
DJ
1441 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1442# Double any \ or $. echo might interpret backslashes.
1443# By default was `s,x,x', remove it if useless.
1444cat <<\_ACEOF >conftest.sed
1445s/[\\$]/&&/g;s/;s,x,x,$//
1446_ACEOF
1447program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1448rm conftest.sed
cac3d6c4 1449
a0da8069
NN
1450
1451
e5c3f801
NN
1452# Get 'install' or 'install-sh' and its variants.
1453# Find a good install program. We prefer a C program (faster),
1454# so one script is as good as another. But avoid the broken or
1455# incompatible versions:
1456# SysV /etc/install, /usr/sbin/install
1457# SunOS /usr/etc/install
1458# IRIX /sbin/install
1459# AIX /bin/install
c6b750e1 1460# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
1461# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1462# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1463# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 1464# OS/2's system install, which has a completely different semantic
e5c3f801 1465# ./install, which can be erroneously created by make from ./install.sh.
c6b750e1
DJ
1466echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1467echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
e5c3f801 1468if test -z "$INSTALL"; then
c6b750e1
DJ
1469if test "${ac_cv_path_install+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 # Account for people who put trailing slashes in PATH elements.
1478case $as_dir/ in
1479 ./ | .// | /cC/* | \
1480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1481 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1482 /usr/ucb/* ) ;;
1483 *)
1484 # OSF1 and SCO ODT 3.0 have their own names for install.
1485 # Don't use installbsd from OSF since it installs stuff as root
1486 # by default.
1487 for ac_prog in ginstall scoinst install; do
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 1490 if test $ac_prog = install &&
c6b750e1 1491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
1492 # AIX install. It has an incompatible calling convention.
1493 :
c6b750e1
DJ
1494 elif test $ac_prog = install &&
1495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1496 # program-specific install script used by HP pwplus--don't use.
1497 :
e5c3f801 1498 else
c6b750e1
DJ
1499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1500 break 3
e5c3f801
NN
1501 fi
1502 fi
1503 done
c6b750e1
DJ
1504 done
1505 ;;
1506esac
1507done
1508
e5c3f801
NN
1509
1510fi
1511 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 1512 INSTALL=$ac_cv_path_install
e5c3f801
NN
1513 else
1514 # As a last resort, use the slow shell script. We don't cache a
1515 # path for INSTALL within a source directory, because that will
1516 # break other packages using the cache if that directory is
1517 # removed, or if the path is relative.
c6b750e1 1518 INSTALL=$ac_install_sh
e5c3f801
NN
1519 fi
1520fi
c6b750e1
DJ
1521echo "$as_me:$LINENO: result: $INSTALL" >&5
1522echo "${ECHO_T}$INSTALL" >&6
e5c3f801
NN
1523
1524# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1525# It thinks the first close brace ends the variable substitution.
1526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1527
c6b750e1 1528test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
1529
1530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1531
c6b750e1
DJ
1532echo "$as_me:$LINENO: checking whether ln works" >&5
1533echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1534if test "${acx_cv_prog_LN+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
656fdd47
PB
1536else
1537 rm -f conftestdata_t
1538echo >conftestdata_f
1539if ln conftestdata_f conftestdata_t 2>/dev/null
1540then
1541 acx_cv_prog_LN=ln
1542else
1543 acx_cv_prog_LN=no
1544fi
1545rm -f conftestdata_f conftestdata_t
1546
1547fi
1548if test $acx_cv_prog_LN = no; then
1549 LN="cp"
c6b750e1
DJ
1550 echo "$as_me:$LINENO: result: no, using $LN" >&5
1551echo "${ECHO_T}no, using $LN" >&6
656fdd47
PB
1552else
1553 LN="$acx_cv_prog_LN"
c6b750e1
DJ
1554 echo "$as_me:$LINENO: result: yes" >&5
1555echo "${ECHO_T}yes" >&6
656fdd47
PB
1556fi
1557
c6b750e1
DJ
1558echo "$as_me:$LINENO: checking whether ln -s works" >&5
1559echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1560LN_S=$as_ln_s
1561if test "$LN_S" = "ln -s"; then
1562 echo "$as_me:$LINENO: result: yes" >&5
1563echo "${ECHO_T}yes" >&6
cac3d6c4 1564else
c6b750e1
DJ
1565 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1566echo "${ECHO_T}no, using $LN_S" >&6
dfdffa2c
PB
1567fi
1568
e5c3f801 1569
252b5132 1570### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
1571### If we are on Windows, search for the shell. This will permit people
1572### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1573### without also having to set CONFIG_SHELL. This code will work when
1574### using bash, which sets OSTYPE.
1575case "${OSTYPE}" in
1576*win32*)
a0da8069
NN
1577 if test x${CONFIG_SHELL} = x ; then
1578 if test ! -f /bin/sh ; then
1579 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
1580 CONFIG_SHELL=${SHELL}
1581 export CONFIG_SHELL
1582 else
1583 for prog in sh sh.exe bash bash.exe; do
1584 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1585 for dir in $PATH; do
1586 test -z "$dir" && dir=.
1587 if test -f $dir/$prog; then
1588 CONFIG_SHELL=$dir/$prog
1589 export CONFIG_SHELL
1590 break
1591 fi
1592 done
1593 IFS="$save_ifs"
1594 test -n "${CONFIG_SHELL}" && break
1595 done
1596 fi
1597 fi
1598 fi
1599 ;;
1600esac
1601
1602config_shell=${CONFIG_SHELL-/bin/sh}
1603
252b5132
RH
1604progname=$0
1605# if PWD already has a value, it is probably wrong.
a0da8069 1606if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
252b5132 1607
d2cc0e0d 1608# Export original configure arguments for use by sub-configures. These
8ff944f6
DJ
1609# will be expanded by make, so quote '$'.
1610tmp="$progname $@"
1611sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
1612$tmp
d2cc0e0d 1613EOF_SED
8ff944f6
DJ
1614TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out`
1615rm -f conftestsed.out
586c0873 1616
75205f78 1617
a0da8069 1618moveifchange=${srcdir}/move-if-change
252b5132 1619
0fdbe983
DJ
1620srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1621
1622# We pass INSTALL explicitly to sub-makes. Make sure that it is not
1623# a relative path.
1624if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1625 INSTALL="${srcpwd}/install-sh -c"
1626fi
1627
a0da8069
NN
1628# Set srcdir to "." if that's what it is.
1629# This is important for multilib support.
1630pwd=`${PWDCMD-pwd}`
a0da8069
NN
1631if test "${pwd}" = "${srcpwd}" ; then
1632 srcdir=.
252b5132
RH
1633fi
1634
a0da8069 1635topsrcdir=$srcpwd
252b5132 1636
a0da8069 1637extra_host_args=
afefada0 1638
a0da8069
NN
1639### To add a new directory to the tree, first choose whether it is a target
1640### or a host dependent tool. Then put it into the appropriate list
1641### (library or tools, host or target), doing a dependency sort.
252b5132 1642
c6b750e1 1643# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 1644# configdirs, or target_configdirs; see the serialization section below.
252b5132 1645
c6b750e1
DJ
1646# Dependency sorting is only needed when *configuration* must be done in
1647# a particular order. In all cases a dependency should be specified in
a0da8069 1648# the Makefile, whether or not it's implicitly specified here.
252b5132 1649
a0da8069
NN
1650# Double entries in build_configdirs, configdirs, or target_configdirs may
1651# cause circular dependencies and break everything horribly.
252b5132 1652
6a9cf61e
PB
1653# these library is used by various programs built for the build
1654# environment
1655#
1656build_libs="build-libiberty"
1657
1658# these tools are built for the build environment
ee025550 1659build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 1660
a0da8069
NN
1661# these libraries are used by various programs built for the host environment
1662#
4b900473 1663host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
a0da8069 1664
a0da8069
NN
1665# these tools are built for the host environment
1666# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1667# know that we are building the simulator.
1668# binutils, gas and ld appear in that order because it makes sense to run
1669# "make check" in that particular order.
b00612cc 1670host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
1671
1672# libgcj represents the runtime libraries only used by gcj.
1673libgcj="target-libffi \
a0da8069
NN
1674 target-zlib \
1675 target-qthreads \
1676 target-libjava"
1677
1678# these libraries are built for the target environment, and are built after
1679# the host libraries and the host tools (which may be a cross compiler)
1680#
9c14acb8 1681target_libraries="target-libiberty \
6aa8ef82 1682 target-libgcc \
a0da8069
NN
1683 target-libgloss \
1684 target-newlib \
b9459e83 1685 target-libstdc++-v3 \
4b1cb4fe 1686 target-libmudflap \
bb780410 1687 target-libssp \
4b1cb4fe 1688 target-libgfortran \
4f0ef2d8 1689 target-boehm-gc \
83326456 1690 ${libgcj} \
a2592b1b 1691 target-libobjc \
b3ded179
PB
1692 target-libada \
1693 target-libgomp"
a0da8069 1694
9c14acb8
NN
1695# these tools are built using the target libraries, and are intended to
1696# run only in the target environment
a0da8069 1697#
9c14acb8 1698# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
1699# list belongs in this list. those programs are also very likely
1700# candidates for the "native_only" list which follows
1701#
a3dd767d 1702target_tools="target-examples target-groff target-gperf target-rda"
252b5132 1703
a0da8069 1704################################################################################
252b5132 1705
a0da8069
NN
1706## All tools belong in one of the four categories, and are assigned above
1707## We assign ${configdirs} this way to remove all embedded newlines. This
1708## is important because configure will choke if they ever get through.
1709## ${configdirs} is directories we build using the host tools.
1710## ${target_configdirs} is directories we build using the target tools.
a0da8069 1711configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 1712target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 1713build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 1714
a0da8069 1715################################################################################
252b5132 1716
a0da8069 1717srcname="gnu development package"
252b5132 1718
a0da8069
NN
1719# This gets set non-empty for some net releases of packages.
1720appdirs=""
252b5132 1721
a0da8069
NN
1722# Define is_cross_compiler to save on calls to 'test'.
1723is_cross_compiler=
1724if test x"${host}" = x"${target}" ; then
1725 is_cross_compiler=no
252b5132 1726else
a0da8069 1727 is_cross_compiler=yes
c6b750e1 1728fi
252b5132 1729
9175bfc0 1730# Find the build and target subdir names.
dd12c3a8 1731
66a79c16
DJ
1732# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1733# have matching libraries, they should use host libraries: Makefile.tpl
1734# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1735# However, they still use the build modules, because the corresponding
1736# host modules (e.g. bison) are only built for the host when bootstrap
1737# finishes. So:
1738# - build_subdir is where we find build modules, and never changes.
1739# - build_libsubdir is where we find build libraries, and can be overridden.
1740
1741# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 1742build_subdir="build-${build_noncanonical}"
c6b750e1 1743
66a79c16
DJ
1744# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1745if test "${with_build_libsubdir+set}" = set; then
1746 withval="$with_build_libsubdir"
1747 build_libsubdir="$withval"
1748else
1749 build_libsubdir="$build_subdir"
c6b750e1 1750fi;
b00612cc
PB
1751# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1752if ( test $srcdir = . && test -d gcc ) \
1753 || test -d $srcdir/../host-${host_noncanonical}; then
1754 host_subdir="host-${host_noncanonical}"
1755else
1756 host_subdir=.
1757fi
dd12c3a8
NN
1758# No prefix.
1759target_subdir=${target_noncanonical}
c6b750e1 1760
252b5132 1761
a0da8069
NN
1762# Skipdirs are removed silently.
1763skipdirs=
1764# Noconfigdirs are removed loudly.
1765noconfigdirs=""
252b5132 1766
a0da8069
NN
1767use_gnu_ld=
1768# Make sure we don't let GNU ld be added if we didn't want it.
1769if test x$with_gnu_ld = xno ; then
1770 use_gnu_ld=no
1771 noconfigdirs="$noconfigdirs ld"
252b5132
RH
1772fi
1773
a0da8069
NN
1774use_gnu_as=
1775# Make sure we don't let GNU as be added if we didn't want it.
1776if test x$with_gnu_as = xno ; then
1777 use_gnu_as=no
1778 noconfigdirs="$noconfigdirs gas"
252b5132
RH
1779fi
1780
c6b750e1 1781# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 1782# it's not even worth trying to configure, much less build, that tool.
252b5132 1783
a0da8069
NN
1784case ${with_x} in
1785 yes | "") ;; # the default value for this tree is that X11 is available
1786 no)
675c6968 1787 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 1788 # We won't be able to build gdbtk without X.
c6b750e1 1789 enable_gdbtk=no
a0da8069
NN
1790 ;;
1791 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1792esac
252b5132 1793
a0da8069 1794# Some tools are only suitable for building in a "native" situation.
c6b750e1 1795# Remove these if host!=target.
701628f5 1796native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 1797
a0da8069
NN
1798# Similarly, some are only suitable for cross toolchains.
1799# Remove these if host=target.
1800cross_only="target-libgloss target-newlib target-opcodes"
1801
1802case $is_cross_compiler in
1803 no) skipdirs="${skipdirs} ${cross_only}" ;;
1804 yes) skipdirs="${skipdirs} ${native_only}" ;;
1805esac
252b5132 1806
a0da8069
NN
1807# If both --with-headers and --with-libs are specified, default to
1808# --without-newlib.
32be62b5
RS
1809if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
1811 if test x"${with_newlib}" = x ; then
1812 with_newlib=no
1813 fi
252b5132
RH
1814fi
1815
a0da8069
NN
1816# Recognize --with-newlib/--without-newlib.
1817case ${with_newlib} in
1818 no) skipdirs="${skipdirs} target-newlib" ;;
1819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1820esac
252b5132 1821
a0da8069 1822# Configure extra directories which are host specific
252b5132 1823
a0da8069
NN
1824case "${host}" in
1825 *-cygwin*)
1826 configdirs="$configdirs libtermcap" ;;
1827esac
252b5132 1828
59f7ec45
HPN
1829# A target can indicate whether a language isn't supported for some reason.
1830# Only spaces may be used in this macro; not newlines or tabs.
1831unsupported_languages=
1832
c6b750e1 1833# Remove more programs from consideration, based on the host or
a0da8069
NN
1834# target this usually means that a port of the program doesn't
1835# exist yet.
252b5132 1836
a0da8069
NN
1837case "${host}" in
1838 hppa*64*-*-*)
1839 noconfigdirs="$noconfigdirs byacc"
1840 ;;
ec11bdc6 1841 i[3456789]86-*-vsta)
675c6968 1842 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 1843 ;;
ec11bdc6 1844 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 1845 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 1846 ;;
2d1e8239
NC
1847 x86_64-*-mingw*)
1848 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1849 ;;
ec11bdc6 1850 i[3456789]86-*-mingw32*)
675c6968 1851 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 1852 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 1853 ;;
ec11bdc6 1854 i[3456789]86-*-beos*)
675c6968 1855 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 1856 ;;
a0da8069 1857 *-*-cygwin*)
a92834c8 1858 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
1859 ;;
1860 *-*-netbsd*)
a92834c8 1861 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
1862 ;;
1863 ppc*-*-pe)
675c6968 1864 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
1865 ;;
1866 powerpc-*-beos*)
675c6968 1867 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 1868 ;;
a0da8069 1869esac
252b5132 1870
4b1cb4fe 1871
a2592b1b
DD
1872# Check whether --enable-libada or --disable-libada was given.
1873if test "${enable_libada+set}" = set; then
1874 enableval="$enable_libada"
1875 ENABLE_LIBADA=$enableval
1876else
1877 ENABLE_LIBADA=yes
c6b750e1 1878fi;
a2592b1b 1879if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 1880 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
1881fi
1882
5f128533
KH
1883# Check whether --enable-libssp or --disable-libssp was given.
1884if test "${enable_libssp+set}" = set; then
1885 enableval="$enable_libssp"
1886 ENABLE_LIBSSP=$enableval
1887else
1888 ENABLE_LIBSSP=yes
c6b750e1 1889fi;
5f128533 1890
a0da8069
NN
1891# Save it here so that, even in case of --enable-libgcj, if the Java
1892# front-end isn't enabled, we still get libgcj disabled.
1893libgcj_saved=$libgcj
1894case $enable_libgcj in
1895yes)
1896 # If we reset it here, it won't get added to noconfigdirs in the
1897 # target-specific build rules, so it will be forcibly enabled
1898 # (unless the Java language itself isn't enabled).
1899 libgcj=
1900 ;;
1901no)
1902 # Make sure we get it printed in the list of not supported target libs.
1903 noconfigdirs="$noconfigdirs ${libgcj}"
1904 ;;
1905esac
252b5132 1906
4b1cb4fe 1907
a6df5a19
PB
1908# Disable libmudflap on some systems.
1909if test x$enable_libmudflap = x ; then
3e707e94 1910 case "${target}" in
b3ded179 1911 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
3d6dfe0f 1912 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
1913 ;;
1914 *-*-freebsd*)
1915 # Enable libmudflap by default in FreeBSD.
1916 ;;
1917 *)
1918 # Disable it by default everywhere else.
1919 noconfigdirs="$noconfigdirs target-libmudflap"
1920 ;;
1921 esac
a6df5a19 1922fi
4b1cb4fe 1923
a6df5a19
PB
1924# Disable libgomp on non POSIX hosted systems.
1925if test x$enable_libgomp = x ; then
b3ded179
PB
1926 # Enable libgomp by default on hosted POSIX systems.
1927 case "${target}" in
1928 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1929 ;;
1930 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1931 ;;
64ce424c 1932 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
1933 ;;
1934 *-*-darwin* | *-*-aix*)
1935 ;;
1936 *)
1937 noconfigdirs="$noconfigdirs target-libgomp"
1938 ;;
1939 esac
a6df5a19 1940fi
b3ded179 1941
4b1cb4fe 1942
a0da8069
NN
1943case "${target}" in
1944 *-*-chorusos)
54d1c879 1945 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1946 ;;
790c0838 1947 powerpc-*-darwin* | i[3456789]86-*-darwin*)
b3f16a9b 1948 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
4e3fc8e5 1949 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 1950 ;;
04d1ab34 1951 *-*-darwin*)
d320aacb 1952 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 1953 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 1954 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 1955 ;;
a0da8069 1956 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 1957 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 1958 ;;
de0b4a87 1959 *-*-freebsd*)
4b1cb4fe
DD
1960 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1961 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1962 && test -f /usr/local/include/gmp.h; then
1963 with_gmp=/usr/local
1964 fi
1965
1966 # Skip some stuff that's unsupported on some FreeBSD configurations.
1967 case "${target}" in
1968 i*86-*-*) ;;
1969 alpha*-*-*) ;;
1970 *)
54d1c879 1971 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
1972 ;;
1973 esac
1974 ;;
f8a495c8
NC
1975 *-*-kaos*)
1976 # Remove unsupported stuff on all kaOS configurations.
54d1c879 1977 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
1978 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1979 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
1980 noconfigdirs="$noconfigdirs target-libgloss"
1981 ;;
a0da8069
NN
1982 *-*-netbsd*)
1983 # Skip some stuff on all NetBSD configurations.
1984 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
1985
1986 # Skip some stuff that's unsupported on some NetBSD configurations.
1987 case "${target}" in
1988 i*86-*-netbsdelf*) ;;
5b474aa8 1989 arm*-*-netbsdelf*) ;;
a0da8069 1990 *)
54d1c879 1991 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
1992 ;;
1993 esac
1994 ;;
2a3124ca 1995 *-*-netware*)
54d1c879 1996 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
1997 ;;
1998 *-*-rtems*)
54d1c879 1999 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2000 ;;
1587117a
EC
2001 # The tpf target doesn't support gdb yet.
2002 *-*-tpf*)
54d1c879 2003 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2004 ;;
c1968181 2005 *-*-uclinux*)
54d1c879 2006 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2007 ;;
a0da8069 2008 *-*-vxworks*)
54d1c879 2009 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2010 ;;
2011 alpha*-dec-osf*)
2012 # ld works, but does not support shared libraries.
2013 # newlib is not 64 bit ready. I'm not sure about fileutils.
2014 # gas doesn't generate exception information.
2015 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2016 ;;
2017 alpha*-*-*vms*)
54d1c879 2018 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2019 ;;
2020 alpha*-*-linux*)
2021 # newlib is not 64 bit ready
2022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2023 ;;
a0da8069
NN
2024 alpha*-*-*)
2025 # newlib is not 64 bit ready
54d1c879 2026 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2027 ;;
4a18bd6b 2028 am33_2.0-*-linux*)
54d1c879 2029 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2030 ;;
a0da8069 2031 sh-*-linux*)
54d1c879 2032 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2033 ;;
a0da8069 2034 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2035 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2036 noconfigdirs="$noconfigdirs target-examples"
2037 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2038 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2039 noconfigdirs="$noconfigdirs expect dejagnu"
2040 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2041 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2042 noconfigdirs="$noconfigdirs target-newlib"
2043 case "${host}" in
2044 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2045 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2046 ;;
2047 esac
2048 ;;
2049 arc-*-*)
54d1c879 2050 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2051 ;;
caeba88f 2052 arm-semi-aof )
caeba88f 2053 ;;
a0da8069 2054 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2055 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2056 ;;
11b04d1f 2057 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069
NN
2058 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2059 ;;
bd70a46f
KH
2060 arm*-*-linux-gnueabi)
2061 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2062 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2063 ;;
df4a6958 2064 arm*-*-symbianelf*)
54d1c879 2065 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
df4a6958 2066 ;;
a0da8069 2067 arm-*-pe*)
54d1c879 2068 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2069 ;;
a0da8069 2070 thumb-*-coff)
54d1c879 2071 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2072 ;;
2073 thumb-*-elf)
54d1c879 2074 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2075 ;;
a0da8069 2076 thumb-*-pe)
54d1c879 2077 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2078 ;;
2079 arm-*-riscix*)
54d1c879 2080 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
2081 ;;
2082 avr-*-*)
54d1c879 2083 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2084 ;;
376a0e54 2085 bfin-*-*)
00d89675 2086 noconfigdirs="$noconfigdirs gdb"
3cf3372e 2087 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
2088 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2089 fi
2090 ;;
a0da8069 2091 c4x-*-* | tic4x-*-*)
54d1c879 2092 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2093 ;;
2094 c54x*-*-* | tic54x-*-*)
54d1c879 2095 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 2096 ;;
c7e66c6d 2097 cris-*-* | crisv32-*-*)
59f7ec45 2098 unsupported_languages="$unsupported_languages java"
c7e66c6d 2099 case "${target}" in
2faa2958 2100 *-*-aout)
096f7d00 2101 unsupported_languages="$unsupported_languages fortran"
59f7ec45 2102 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 2103 *-*-elf)
096f7d00 2104 unsupported_languages="$unsupported_languages fortran"
5e818318 2105 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 2106 *-*-linux*)
5e818318 2107 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 2108 *)
096f7d00 2109 unsupported_languages="$unsupported_languages fortran"
54d1c879 2110 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 2111 esac
a0da8069 2112 ;;
3e707e94 2113 crx-*-*)
54d1c879 2114 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 2115 ;;
a0da8069 2116 d10v-*-*)
54d1c879 2117 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
2118 ;;
2119 d30v-*-*)
54d1c879 2120 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2121 ;;
2122 fr30-*-elf*)
54d1c879 2123 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
2124 ;;
2125 frv-*-*)
54d1c879 2126 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2127 ;;
2128 h8300*-*-*)
54d1c879 2129 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2130 ;;
2131 h8500-*-*)
54d1c879 2132 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2133 ;;
caeba88f 2134 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 2135 ;;
a0da8069
NN
2136 hppa*64*-*-linux* | parisc*64*-*-linux*)
2137 # In this case, it's because the hppa64-linux target is for
2138 # the kernel only at this point and has no libc, and thus no
2139 # headers, crt*.o, etc., all of which are needed by these.
2140 noconfigdirs="$noconfigdirs target-zlib"
2141 ;;
5dcac624
DA
2142 parisc*-*-linux* | hppa*-*-linux*)
2143 ;;
a0da8069 2144 hppa*-*-*elf* | \
a0da8069
NN
2145 hppa*-*-lites* | \
2146 hppa*-*-openbsd* | \
2147 hppa*64*-*-*)
54d1c879 2148 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
2149 ;;
2150 hppa*-hp-hpux11*)
2151 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069
NN
2152 ;;
2153 hppa*-*-*)
2154 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2155 # build on HP-UX 10.20.
54d1c879 2156 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 2157 ;;
b07c2aad 2158 i960-*-*)
54d1c879 2159 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 2160 ;;
a0da8069
NN
2161 ia64*-*-elf*)
2162 # No gdb support yet.
675c6968 2163 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
2164 ;;
2165 ia64*-**-hpux*)
2166 # No gdb or ld support yet.
54d1c879 2167 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 2168 ;;
caeba88f 2169 i370-*-opened*)
caeba88f 2170 ;;
ec11bdc6 2171 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 2172 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2173 ;;
ec11bdc6 2174 i[3456789]86-*-linux*)
a0da8069
NN
2175 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2176 # not build java stuff by default.
2177 case "${target}" in
2178 *-*-*libc1*)
54d1c879 2179 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
2180 esac
2181
2182 # This section makes it possible to build newlib natively on linux.
2183 # If we are using a cross compiler then don't configure newlib.
2184 if test x${is_cross_compiler} != xno ; then
bba45b8b 2185 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
2186 fi
2187 noconfigdirs="$noconfigdirs target-libgloss"
2188 # If we are not using a cross compiler, do configure newlib.
2189 # Note however, that newlib will only be configured in this situation
2190 # if the --with-newlib option has been given, because otherwise
2191 # 'target-newlib' will appear in skipdirs.
2192 ;;
ec11bdc6 2193 i[3456789]86-*-mingw32*)
45055374
CV
2194 target_configdirs="$target_configdirs target-winsup"
2195 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2196 ;;
2d1e8239
NC
2197 x86_64-*-mingw*)
2198 target_configdirs="$target_configdirs target-winsup"
2199 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 2200 ;;
a0da8069
NN
2201 *-*-cygwin*)
2202 target_configdirs="$target_configdirs target-libtermcap target-winsup"
54d1c879 2203 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
b76d7de0 2204 # always build newlib if winsup directory is present.
45055374 2205 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 2206 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 2207 elif test -d "$srcdir/newlib"; then
45055374 2208 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 2209 fi
c6b750e1 2210 ;;
caeba88f
AL
2211 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2212 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 2213 ;;
ec11bdc6 2214 i[3456789]86-*-pe)
54d1c879 2215 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 2216 ;;
ec11bdc6 2217 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
2218 # The linker does not yet know about weak symbols in COFF,
2219 # and is not configured to handle mixed ELF and COFF.
54d1c879 2220 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 2221 ;;
ec11bdc6 2222 i[3456789]86-*-sco*)
54d1c879 2223 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2224 ;;
ec11bdc6 2225 i[3456789]86-*-solaris2*)
a0da8069
NN
2226 noconfigdirs="$noconfigdirs target-libgloss"
2227 ;;
ec11bdc6 2228 i[3456789]86-*-sysv4*)
54d1c879 2229 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2230 ;;
ec11bdc6 2231 i[3456789]86-*-beos*)
54d1c879 2232 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 2233 ;;
b59bea8a 2234 i[3456789]86-*-rdos*)
2429c060
PB
2235 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2236 ;;
b07c2aad 2237 m32r-*-*)
54d1c879 2238 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 2239 ;;
a0da8069 2240 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 2241 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2242 ;;
2243 m68k-*-elf*)
54d1c879 2244 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2245 ;;
2246 m68k-*-coff*)
54d1c879 2247 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2248 ;;
2249 mcore-*-pe*)
2250 # The EPOC C++ environment does not support exceptions or rtti,
2251 # and so building libstdc++-v3 tends not to always work.
2252 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2253 ;;
2254 mmix-*-*)
59f7ec45 2255 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 2256 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
2257 ;;
2258 mn10200-*-*)
54d1c879 2259 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2260 ;;
2261 mn10300-*-*)
54d1c879 2262 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 2263 ;;
4970f871 2264 mt-*-*)
cdb9b172
AH
2265 noconfigdirs="$noconfigdirs sim"
2266 ;;
a0da8069
NN
2267 powerpc-*-aix*)
2268 # copied from rs6000-*-* entry
54d1c879 2269 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2270 ;;
2271 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2272 target_configdirs="$target_configdirs target-winsup"
54d1c879 2273 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
2274 # always build newlib.
2275 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2276 ;;
2277 # This is temporary until we can link against shared libraries
2278 powerpcle-*-solaris*)
54d1c879 2279 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
a0da8069
NN
2280 ;;
2281 powerpc-*-beos*)
54d1c879 2282 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 2283 ;;
a0da8069 2284 powerpc-*-eabi)
54d1c879 2285 noconfigdirs="$noconfigdirs ${libgcj}"
caeba88f
AL
2286 ;;
2287 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
a0da8069 2288 ;;
a0da8069 2289 rs6000-*-lynxos*)
54d1c879 2290 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
2291 ;;
2292 rs6000-*-aix*)
54d1c879 2293 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
a0da8069
NN
2294 ;;
2295 rs6000-*-*)
54d1c879 2296 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2297 ;;
2298 m68k-apollo-*)
54d1c879 2299 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069
NN
2300 ;;
2301 mips*-*-irix5*)
54d1c879 2302 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
2303 ;;
2304 mips*-*-irix6*)
a0da8069
NN
2305 # Linking libjava exceeds command-line length limits on at least
2306 # IRIX 6.2, but not on IRIX 6.5.
2307 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2308 # <oldham@codesourcery.com>
54d1c879 2309 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2310 ;;
a0da8069 2311 mips*-*-bsd*)
54d1c879 2312 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 2313 ;;
1712ab83 2314 mips64*-*-linux*)
f3529cf1 2315 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1712ab83 2316 ;;
a0da8069
NN
2317 mips*-*-linux*)
2318 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2319 ;;
2320 mips*-*-*)
54d1c879 2321 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
2322 ;;
2323 romp-*-*)
54d1c879 2324 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 2325 ;;
dbf85af7 2326 sh-*-* | sh64-*-*)
a0da8069 2327 case "${host}" in
ec11bdc6
DD
2328 i[3456789]86-*-vsta) ;; # don't add gprof back in
2329 i[3456789]86-*-go32*) ;; # don't add gprof back in
2330 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
2331 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2332 esac
54d1c879 2333 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2334 ;;
a0da8069 2335 sparc-*-elf*)
54d1c879 2336 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2337 ;;
2338 sparc64-*-elf*)
54d1c879 2339 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2340 ;;
2341 sparclite-*-*)
54d1c879 2342 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2343 ;;
2344 sparc-*-sunos4*)
54d1c879 2345 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2346 if test x${is_cross_compiler} != xno ; then
2347 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2348 else
2349 use_gnu_ld=no
2350 fi
2351 ;;
e3c770b1 2352 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 2353 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 2354 ;;
a0da8069
NN
2355 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2356 ;;
2839fe5d
BE
2357 spu-*-*)
2358 skipdirs="target-libssp"
2359 ;;
a0da8069 2360 v810-*-*)
54d1c879 2361 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
2362 ;;
2363 v850-*-*)
54d1c879 2364 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2365 ;;
2366 v850e-*-*)
54d1c879 2367 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2368 ;;
2369 v850ea-*-*)
54d1c879 2370 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2371 ;;
2372 vax-*-vms)
54d1c879 2373 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
2374 ;;
2375 vax-*-*)
54d1c879 2376 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2377 ;;
fbd1054d 2378 xtensa-*-*)
54d1c879 2379 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 2380 ;;
a0da8069 2381 ip2k-*-*)
54d1c879 2382 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 2383 ;;
de0b4a87 2384 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
a0da8069
NN
2385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2386 ;;
2387 *-*-lynxos*)
54d1c879 2388 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 2389 ;;
a0da8069 2390 *-*-*)
54d1c879 2391 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2392 ;;
2393esac
252b5132 2394
a0da8069
NN
2395# If we aren't building newlib, then don't build libgloss, since libgloss
2396# depends upon some newlib header files.
2397case "${noconfigdirs}" in
2398 *target-libgloss*) ;;
2399 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2400esac
2401
a0da8069
NN
2402# Work in distributions that contain no compiler tools, like Autoconf.
2403tentative_cc=""
2404host_makefile_frag=/dev/null
2405if test -d ${srcdir}/config ; then
2406case "${host}" in
2407 m68k-hp-hpux*)
2408 # Avoid "too much defining" errors from HPUX compiler.
2409 tentative_cc="cc -Wp,-H256000"
2410 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2411 # If it's HP/UX ar, this should be harmless.
2412 RANLIB="ar ts"
2413 ;;
2414 m68k-apollo-sysv*)
2415 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2416 ;;
2417 m68k-apollo-bsd*)
2418 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2419 # chokes on bfd, the compiler won't let you assign integers to enums, and
2420 # other problems. Defining CC to gcc is a questionable way to say "don't use
2421 # the apollo compiler" (the preferred version of GCC could be called cc,
2422 # or whatever), but I'm not sure leaving CC as cc is any better...
2423 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2424 # Used to have BISON=yacc.
2425 tentative_cc=gcc
2426 ;;
2427 m88k-dg-dgux*)
2428 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
2429 ;;
2430 m88k-harris-cxux*)
2431 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2432 tentative_cc="cc -Xa"
2433 host_makefile_frag="config/mh-cxux"
2434 ;;
2435 m88k-motorola-sysv*)
2436 ;;
2437 mips*-dec-ultrix*)
2438 tentative_cc="cc -Wf,-XNg1000"
2439 host_makefile_frag="config/mh-decstation"
2440 ;;
2441 mips*-nec-sysv4*)
2442 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2443 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2444 host_makefile_frag="config/mh-necv4"
2445 ;;
2446 mips*-sgi-irix4*)
2447 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2448 # environment. Also bump switch table size so that cp-parse will
2449 # compile. Bump string length limit so linker builds.
2450 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2451 ;;
2452 mips*-*-sysv4*)
2453 host_makefile_frag="config/mh-sysv4"
2454 ;;
2455 mips*-*-sysv*)
2456 # This is for a MIPS running RISC/os 4.52C.
2457
2458 # This is needed for GDB, but needs to be in the top-level make because
2459 # if a library is compiled with the bsd headers and gets linked with the
2460 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2461 # a different size).
2462 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2463 # known except to select the sysv environment. Could we use /proc instead?
2464 # These "sysv environments" and "bsd environments" often end up being a pain.
2465 #
2466 # This is not part of CFLAGS because perhaps not all C compilers have this
2467 # option.
2468 tentative_cc="cc -systype sysv"
2469 ;;
2470 i370-ibm-opened*)
2471 tentative_cc="c89"
2472 ;;
ec11bdc6 2473 i[3456789]86-*-sysv5*)
a0da8069
NN
2474 host_makefile_frag="config/mh-sysv5"
2475 ;;
ec11bdc6 2476 i[3456789]86-*-dgux*)
a0da8069
NN
2477 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2478 host_makefile_frag="config/mh-dgux386"
2479 ;;
ec11bdc6 2480 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
2481 # The MetaWare compiler will generate a copyright message unless you
2482 # turn it off by adding the -Hnocopyr flag.
2483 tentative_cc="cc -Hnocopyr"
2484 ;;
ec11bdc6 2485 i[3456789]86-ncr-sysv4*)
a0da8069
NN
2486 # for an NCR 3000 (i486/SVR4) system.
2487 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2488 # This compiler not only emits obnoxious copyright messages every time
2489 # you run it, but it chokes and dies on a whole bunch of GNU source
2490 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2491 tentative_cc="/usr/ccs/ATT/cc"
2492 host_makefile_frag="config/mh-ncr3000"
2493 ;;
ec11bdc6 2494 i[3456789]86-*-sco3.2v5*)
a0da8069 2495 ;;
ec11bdc6 2496 i[3456789]86-*-sco*)
a0da8069
NN
2497 # The native C compiler botches some simple uses of const. Unfortunately,
2498 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2499 tentative_cc="cc -Dconst="
2500 host_makefile_frag="config/mh-sco"
2501 ;;
ec11bdc6 2502 i[3456789]86-*-udk*)
a0da8069
NN
2503 host_makefile_frag="config/mh-sysv5"
2504 ;;
ec11bdc6 2505 i[3456789]86-*-solaris2*)
a0da8069
NN
2506 host_makefile_frag="config/mh-sysv4"
2507 ;;
ec11bdc6 2508 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
2509 host_makefile_frag="config/mh-djgpp"
2510 ;;
2511 *-cygwin*)
2512 host_makefile_frag="config/mh-cygwin"
2513 ;;
2514 *-mingw32*)
a0da8069 2515 ;;
2d1e8239
NC
2516 *-mingw64*)
2517 ;;
a0da8069
NN
2518 *-interix*)
2519 host_makefile_frag="config/mh-interix"
2520 ;;
2521 vax-*-ultrix2*)
2522 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2523 tentative_cc=gcc
2524 ;;
2525 *-*-solaris2*)
2526 host_makefile_frag="config/mh-solaris"
2527 ;;
2528 m68k-sun-sunos*)
2529 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2530 # without overflowing the jump tables (-J says to use a 32 bit table)
2531 tentative_cc="cc -J"
2532 ;;
2533 *-hp-hpux*)
2534 tentative_cc="cc -Wp,-H256000"
2535 ;;
2536 *-*-hiux*)
2537 tentative_cc="cc -Wp,-H256000"
2538 ;;
2539 rs6000-*-lynxos*)
2540 # /bin/cc is less than useful for our purposes. Always use GCC
2541 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2542 host_makefile_frag="config/mh-lynxrs6k"
2543 ;;
0df3d27f
PB
2544 powerpc-*-darwin*)
2545 host_makefile_frag="config/mh-ppc-darwin"
2546 ;;
f6d183c0
PB
2547 powerpc-*-aix*)
2548 host_makefile_frag="config/mh-ppc-aix"
2549 ;;
2550 rs6000-*-aix*)
2551 host_makefile_frag="config/mh-ppc-aix"
2552 ;;
a0da8069
NN
2553 *-*-lynxos*)
2554 # /bin/cc is less than useful for our purposes. Always use GCC
2555 tentative_cc="/bin/gcc"
2556 ;;
2557 *-*-sysv4*)
2558 host_makefile_frag="config/mh-sysv4"
2559 ;;
fe69863c
DD
2560 # This is placed last to prevent interfering with the cases above.
2561 i[3456789]86-*-*)
2562 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2563 host_makefile_frag="config/mh-x86omitfp"
2564 ;;
a0da8069
NN
2565esac
2566fi
2567
9e07f89d
NN
2568# If we aren't going to be using gcc, see if we can extract a definition
2569# of CC from the fragment.
2570# Actually, use the 'pre-extracted' version above.
2571if test -z "${CC}" && test "${build}" = "${host}" ; then
2572 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2573 found=
2574 for dir in $PATH; do
2575 test -z "$dir" && dir=.
2576 if test -f $dir/gcc; then
2577 found=yes
2578 break
2579 fi
2580 done
2581 IFS="$save_ifs"
2582 if test -z "${found}" && test -n "${tentative_cc}" ; then
2583 CC=$tentative_cc
2584 fi
2585fi
2586
2587if test "${build}" != "${host}" ; then
2588 # If we are doing a Canadian Cross, in which the host and build systems
2589 # are not the same, we set reasonable default values for the tools.
2590
c6b750e1 2591 CC=${CC-${host_noncanonical}-gcc}
9e07f89d 2592 CFLAGS=${CFLAGS-"-g -O2"}
c6b750e1 2593 CXX=${CXX-${host_noncanonical}-c++}
9e07f89d
NN
2594 CXXFLAGS=${CXXFLAGS-"-g -O2"}
2595 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
9e07f89d
NN
2596
2597else
2598 # Set reasonable default values for some tools even if not Canadian.
2599 # Of course, these are different reasonable default values, originally
2600 # specified directly in the Makefile.
2601 # We don't export, so that autoconf can do its job.
2602 # Note that all these settings are above the fragment inclusion point
2603 # in Makefile.in, so can still be overridden by fragments.
2604 # This is all going to change when we autoconfiscate...
2605
9e07f89d 2606 CC_FOR_BUILD="\$(CC)"
c6b750e1
DJ
2607 ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617if test "${ac_cv_prog_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
2636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
2641 echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6
2643else
2644 echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6
2646fi
2647
2648fi
2649if test -z "$ac_cv_prog_CC"; then
2650 ac_ct_CC=$CC
6a9cf61e 2651 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 2652set dummy gcc; ac_word=$2
c6b750e1
DJ
2653echo "$as_me:$LINENO: checking for $ac_word" >&5
2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_CC="gcc"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672done
2673done
2674
2675fi
2676fi
2677ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678if test -n "$ac_ct_CC"; then
2679 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680echo "${ECHO_T}$ac_ct_CC" >&6
2681else
2682 echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6
2684fi
2685
2686 CC=$ac_ct_CC
2687else
2688 CC="$ac_cv_prog_CC"
2689fi
2690
2691if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694set dummy ${ac_tool_prefix}cc; ac_word=$2
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2699else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
c6b750e1
DJ
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CC="${ac_tool_prefix}cc"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714done
2715done
2716
9e07f89d
NN
2717fi
2718fi
c6b750e1 2719CC=$ac_cv_prog_CC
9e07f89d 2720if test -n "$CC"; then
c6b750e1
DJ
2721 echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6
9e07f89d 2723else
c6b750e1
DJ
2724 echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
9e07f89d
NN
2726fi
2727
c6b750e1
DJ
2728fi
2729if test -z "$ac_cv_prog_CC"; then
2730 ac_ct_CC=$CC
2731 # Extract the first word of "cc", so it can be a program name with args.
2732set dummy cc; ac_word=$2
2733echo "$as_me:$LINENO: checking for $ac_word" >&5
2734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738 if test -n "$ac_ct_CC"; then
2739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_CC="cc"
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752done
2753done
2754
2755fi
2756fi
2757ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758if test -n "$ac_ct_CC"; then
2759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2760echo "${ECHO_T}$ac_ct_CC" >&6
2761else
2762 echo "$as_me:$LINENO: result: no" >&5
2763echo "${ECHO_T}no" >&6
2764fi
2765
2766 CC=$ac_ct_CC
2767else
2768 CC="$ac_cv_prog_CC"
2769fi
2770
2771fi
9e07f89d
NN
2772if test -z "$CC"; then
2773 # Extract the first word of "cc", so it can be a program name with args.
2774set dummy cc; ac_word=$2
c6b750e1
DJ
2775echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777if test "${ac_cv_prog_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2779else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
9e07f89d 2783 ac_prog_rejected=no
c6b750e1
DJ
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792 ac_prog_rejected=yes
2793 continue
2794 fi
2795 ac_cv_prog_CC="cc"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799done
2800done
2801
9e07f89d
NN
2802if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy $ac_cv_prog_CC
2805 shift
c6b750e1 2806 if test $# != 0; then
9e07f89d
NN
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2810 shift
c6b750e1 2811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
2812 fi
2813fi
2814fi
2815fi
c6b750e1 2816CC=$ac_cv_prog_CC
9e07f89d 2817if test -n "$CC"; then
c6b750e1
DJ
2818 echo "$as_me:$LINENO: result: $CC" >&5
2819echo "${ECHO_T}$CC" >&6
9e07f89d 2820else
c6b750e1
DJ
2821 echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6
9e07f89d
NN
2823fi
2824
c6b750e1
DJ
2825fi
2826if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl
2829 do
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
2836else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
c6b750e1
DJ
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
376a0e54 2850 fi
c6b750e1
DJ
2851done
2852done
cac3d6c4 2853
c6b750e1
DJ
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858 echo "$as_me:$LINENO: result: $CC" >&5
2859echo "${ECHO_T}$CC" >&6
cac3d6c4 2860else
c6b750e1
DJ
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
9e07f89d 2863fi
cac3d6c4 2864
c6b750e1
DJ
2865 test -n "$CC" && break
2866 done
cac3d6c4 2867fi
c6b750e1
DJ
2868if test -z "$CC"; then
2869 ac_ct_CC=$CC
2870 for ac_prog in cl
2871do
2872 # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874echo "$as_me:$LINENO: checking for $ac_word" >&5
2875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
cac3d6c4 2878else
c6b750e1
DJ
2879 if test -n "$ac_ct_CC"; then
2880 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 2881else
c6b750e1
DJ
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_ac_ct_CC="$ac_prog"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893done
2894done
2895
cac3d6c4
CM
2896fi
2897fi
c6b750e1
DJ
2898ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899if test -n "$ac_ct_CC"; then
2900 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2901echo "${ECHO_T}$ac_ct_CC" >&6
9e07f89d 2902else
c6b750e1
DJ
2903 echo "$as_me:$LINENO: result: no" >&5
2904echo "${ECHO_T}no" >&6
cac3d6c4 2905fi
376a0e54 2906
c6b750e1
DJ
2907 test -n "$ac_ct_CC" && break
2908done
2909
2910 CC=$ac_ct_CC
2911fi
2912
2913fi
2914
2915
2916test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2917See \`config.log' for more details." >&5
2918echo "$as_me: error: no acceptable C compiler found in \$PATH
2919See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2921
2922# Provide some information about the compiler.
2923echo "$as_me:$LINENO:" \
2924 "checking for C compiler version" >&5
2925ac_compiler=`set X $ac_compile; echo $2`
2926{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927 (eval $ac_compiler --version </dev/null >&5) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }
2931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932 (eval $ac_compiler -v </dev/null >&5) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937 (eval $ac_compiler -V </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941
2942cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948
2949int
2950main ()
2951{
2952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957ac_clean_files_save=$ac_clean_files
2958ac_clean_files="$ac_clean_files a.out a.exe b.out"
2959# Try to create an executable without -o first, disregard a.out.
2960# It will help us diagnose broken compilers, and finding out an intuition
2961# of exeext.
2962echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2963echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2964ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2965if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2966 (eval $ac_link_default) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # Find the output, starting from the most likely. This scheme is
2971# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2972# resort.
2973
2974# Be careful to initialize this variable, since it used to be cached.
2975# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2976ac_cv_exeext=
2977# b.out is created by i960 compilers.
2978for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2979do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2983 ;;
2984 conftest.$ac_ext )
2985 # This is the source file.
2986 ;;
2987 [ab].out )
2988 # We found the default executable, but exeext='' is most
2989 # certainly right.
2990 break;;
2991 *.* )
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2993 # FIXME: I believe we export ac_cv_exeext for Libtool,
2994 # but it would be cool to find out if it's true. Does anybody
2995 # maintain Libtool? --akim.
2996 export ac_cv_exeext
2997 break;;
2998 * )
2999 break;;
3000 esac
3001done
3002else
3003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: C compiler cannot create executables
3009See \`config.log' for more details." >&2;}
3010 { (exit 77); exit 77; }; }
3011fi
3012
3013ac_exeext=$ac_cv_exeext
3014echo "$as_me:$LINENO: result: $ac_file" >&5
3015echo "${ECHO_T}$ac_file" >&6
3016
3017# Check the compiler produces executables we can run. If not, either
3018# the compiler is broken, or we cross compile.
3019echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3020echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3021# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3022# If not cross compiling, check that we can run a simple program.
3023if test "$cross_compiling" != yes; then
3024 if { ac_try='./$ac_file'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 cross_compiling=no
3031 else
3032 if test "$cross_compiling" = maybe; then
3033 cross_compiling=yes
3034 else
3035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036If you meant to cross compile, use \`--host'.
3037See \`config.log' for more details." >&5
3038echo "$as_me: error: cannot run C compiled programs.
3039If you meant to cross compile, use \`--host'.
3040See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043 fi
3044fi
3045echo "$as_me:$LINENO: result: yes" >&5
3046echo "${ECHO_T}yes" >&6
3047
3048rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049ac_clean_files=$ac_clean_files_save
3050# Check the compiler produces executables we can run. If not, either
3051# the compiler is broken, or we cross compile.
3052echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3054echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055echo "${ECHO_T}$cross_compiling" >&6
3056
3057echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; then
3064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3066# work properly (i.e., refer to `conftest.exe'), while it won't with
3067# `rm'.
3068for ac_file in conftest.exe conftest conftest.*; do
3069 test -f "$ac_file" || continue
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3073 export ac_cv_exeext
3074 break;;
3075 * ) break;;
3076 esac
3077done
3078else
3079 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080See \`config.log' for more details." >&5
3081echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082See \`config.log' for more details." >&2;}
3083 { (exit 1); exit 1; }; }
3084fi
3085
3086rm -f conftest$ac_cv_exeext
3087echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088echo "${ECHO_T}$ac_cv_exeext" >&6
3089
3090rm -f conftest.$ac_ext
3091EXEEXT=$ac_cv_exeext
3092ac_exeext=$EXEEXT
3093echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3095if test "${ac_cv_objext+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098 cat >conftest.$ac_ext <<_ACEOF
3099/* confdefs.h. */
3100_ACEOF
3101cat confdefs.h >>conftest.$ac_ext
3102cat >>conftest.$ac_ext <<_ACEOF
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113rm -f conftest.o conftest.obj
3114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115 (eval $ac_compile) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3123 break;;
3124 esac
3125done
cac3d6c4 3126else
c6b750e1
DJ
3127 echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131See \`config.log' for more details." >&5
3132echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3135fi
3136
3137rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138fi
3139echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140echo "${ECHO_T}$ac_cv_objext" >&6
3141OBJEXT=$ac_cv_objext
3142ac_objext=$OBJEXT
3143echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3145if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158#ifndef __GNUC__
3159 choke me
3160#endif
3161
3162 ;
3163 return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext
3167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168 (eval $ac_compile) 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_c_werror_flag"
3176 || test ! -s conftest.err'
3177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 (eval $ac_try) 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; } &&
3182 { ac_try='test -s conftest.$ac_objext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 ac_compiler_gnu=yes
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193ac_compiler_gnu=no
3194fi
3195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3196ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197
3198fi
3199echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3201GCC=`test $ac_compiler_gnu = yes && echo yes`
3202ac_test_CFLAGS=${CFLAGS+set}
3203ac_save_CFLAGS=$CFLAGS
3204CFLAGS="-g"
3205echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3206echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3207if test "${ac_cv_prog_cc_g+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3227 (eval $ac_compile) 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } &&
3234 { ac_try='test -z "$ac_c_werror_flag"
3235 || test ! -s conftest.err'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; }; then
9e07f89d
NN
3247 ac_cv_prog_cc_g=yes
3248else
c6b750e1
DJ
3249 echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
cac3d6c4 3251
c6b750e1 3252ac_cv_prog_cc_g=no
376a0e54 3253fi
c6b750e1
DJ
3254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255fi
3256echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
9e07f89d 3258if test "$ac_test_CFLAGS" = set; then
c6b750e1 3259 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
3260elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
3263 else
3264 CFLAGS="-g"
3265 fi
3266else
3267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
3269 else
3270 CFLAGS=
3271 fi
3272fi
c6b750e1
DJ
3273echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3274echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3275if test "${ac_cv_prog_cc_stdc+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 ac_cv_prog_cc_stdc=no
3279ac_save_CC=$CC
3280cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286#include <stdarg.h>
3287#include <stdio.h>
3288#include <sys/types.h>
3289#include <sys/stat.h>
3290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291struct buf { int x; };
3292FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293static char *e (p, i)
3294 char **p;
3295 int i;
3296{
3297 return p[i];
3298}
3299static char *f (char * (*g) (char **, int), char **p, ...)
3300{
3301 char *s;
3302 va_list v;
3303 va_start (v,p);
3304 s = g (p, va_arg (v,int));
3305 va_end (v);
3306 return s;
3307}
3308
3309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3310 function prototypes and stuff, but not '\xHH' hex character constants.
3311 These don't provoke an error unfortunately, instead are silently treated
3312 as 'x'. The following induces an error, until -std1 is added to get
3313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3314 array size at least. It's necessary to write '\x00'==0 to get something
3315 that's true only with -std1. */
3316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317
3318int test (int i, double x);
3319struct s1 {int (*f) (int a);};
3320struct s2 {int (*f) (double a);};
3321int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322int argc;
3323char **argv;
3324int
3325main ()
3326{
3327return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332# Don't try gcc -ansi; that turns off useful extensions and
3333# breaks some systems' header files.
3334# AIX -qlanglvl=ansi
3335# Ultrix and OSF/1 -std1
3336# HP-UX 10.20 and later -Ae
3337# HP-UX older versions -Aa -D_HPUX_SOURCE
3338# SVR4 -Xc -D__EXTENSIONS__
3339for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3340do
3341 CC="$ac_save_CC $ac_arg"
3342 rm -f conftest.$ac_objext
3343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354 (eval $ac_try) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 ac_cv_prog_cc_stdc=$ac_arg
3365break
3366else
3367 echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370fi
3371rm -f conftest.err conftest.$ac_objext
3372done
3373rm -f conftest.$ac_ext conftest.$ac_objext
3374CC=$ac_save_CC
3375
3376fi
3377
3378case "x$ac_cv_prog_cc_stdc" in
3379 x|xno)
3380 echo "$as_me:$LINENO: result: none needed" >&5
3381echo "${ECHO_T}none needed" >&6 ;;
3382 *)
3383 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3384echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3385 CC="$CC $ac_cv_prog_cc_stdc" ;;
3386esac
3387
3388# Some people use a C++ compiler to compile C. Since we use `exit',
3389# in C++ we need to declare it. In case someone uses the same compiler
3390# for both compiling C and C++ we need to have the C++ compiler decide
3391# the declaration of exit, since it's the most demanding environment.
3392cat >conftest.$ac_ext <<_ACEOF
3393#ifndef __cplusplus
3394 choke me
3395#endif
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 for ac_declaration in \
3420 '' \
3421 'extern "C" void std::exit (int) throw (); using std::exit;' \
3422 'extern "C" void std::exit (int); using std::exit;' \
3423 'extern "C" void exit (int) throw ();' \
3424 'extern "C" void exit (int);' \
3425 'void exit (int);'
3426do
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433$ac_declaration
3434#include <stdlib.h>
3435int
3436main ()
3437{
3438exit (42);
3439 ;
3440 return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 :
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470continue
3471fi
3472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473 cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
3479$ac_declaration
3480int
3481main ()
3482{
3483exit (42);
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext
3489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>conftest.er1
3491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -z "$ac_c_werror_flag"
3498 || test ! -s conftest.err'
3499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 (eval $ac_try) 2>&5
3501 ac_status=$?
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); }; } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 break
3511else
3512 echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515fi
3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517done
3518rm -f conftest*
3519if test -n "$ac_declaration"; then
3520 echo '#ifdef __cplusplus' >>confdefs.h
3521 echo $ac_declaration >>confdefs.h
3522 echo '#endif' >>confdefs.h
3523fi
3524
3525else
3526 echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529fi
3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d
NN
3536
3537
6a9cf61e
PB
3538 # We must set the default linker to the linker used by gcc for the correct
3539 # operation of libtool. If LD is not defined and we are using gcc, try to
3540 # set the LD default to the ld used by gcc.
3541 if test -z "$LD"; then
3542 if test "$GCC" = yes; then
3543 case $build in
3544 *-*-mingw*)
3545 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3546 *)
3547 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3548 esac
3549 case $gcc_prog_ld in
3550 # Accept absolute paths.
3551 [\\/]* | [A-Za-z]:[\\/]*)
3552 LD="$gcc_prog_ld" ;;
3553 esac
3554 fi
3555 fi
3556
3557 CXX=${CXX-"c++"}
3558 CFLAGS=${CFLAGS-"-g"}
3559 CXXFLAGS=${CXXFLAGS-"-g -O2"}
3560fi
3561
6a9cf61e
PB
3562
3563
9e07f89d 3564
c6b750e1
DJ
3565if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
9e07f89d 3567set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
c6b750e1
DJ
3568echo "$as_me:$LINENO: checking for $ac_word" >&5
3569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570if test "${ac_cv_prog_GNATBIND+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3572else
3573 if test -n "$GNATBIND"; then
3574 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3575else
c6b750e1
DJ
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587done
3588done
3589
9e07f89d
NN
3590fi
3591fi
c6b750e1 3592GNATBIND=$ac_cv_prog_GNATBIND
9e07f89d 3593if test -n "$GNATBIND"; then
c6b750e1
DJ
3594 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3595echo "${ECHO_T}$GNATBIND" >&6
9e07f89d 3596else
c6b750e1
DJ
3597 echo "$as_me:$LINENO: result: no" >&5
3598echo "${ECHO_T}no" >&6
9e07f89d
NN
3599fi
3600
c6b750e1 3601fi
9e07f89d 3602if test -z "$ac_cv_prog_GNATBIND"; then
c6b750e1 3603 ac_ct_GNATBIND=$GNATBIND
9e07f89d
NN
3604 # Extract the first word of "gnatbind", so it can be a program name with args.
3605set dummy gnatbind; ac_word=$2
c6b750e1
DJ
3606echo "$as_me:$LINENO: checking for $ac_word" >&5
3607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d 3610else
c6b750e1
DJ
3611 if test -n "$ac_ct_GNATBIND"; then
3612 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 3613else
c6b750e1
DJ
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3624 fi
3625done
3626done
3627
3628 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
9e07f89d
NN
3629fi
3630fi
c6b750e1
DJ
3631ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3632if test -n "$ac_ct_GNATBIND"; then
3633 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3634echo "${ECHO_T}$ac_ct_GNATBIND" >&6
9e07f89d 3635else
c6b750e1
DJ
3636 echo "$as_me:$LINENO: result: no" >&5
3637echo "${ECHO_T}no" >&6
9e07f89d
NN
3638fi
3639
c6b750e1 3640 GNATBIND=$ac_ct_GNATBIND
9e07f89d 3641else
c6b750e1 3642 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
3643fi
3644
7df2cd5d
PB
3645if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3647set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3648echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653 if test -n "$GNATMAKE"; then
3654 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667done
3668done
3669
3670fi
3671fi
3672GNATMAKE=$ac_cv_prog_GNATMAKE
3673if test -n "$GNATMAKE"; then
3674 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3675echo "${ECHO_T}$GNATMAKE" >&6
3676else
3677 echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
3679fi
3680
3681fi
3682if test -z "$ac_cv_prog_GNATMAKE"; then
3683 ac_ct_GNATMAKE=$GNATMAKE
3684 # Extract the first word of "gnatmake", so it can be a program name with args.
3685set dummy gnatmake; ac_word=$2
3686echo "$as_me:$LINENO: checking for $ac_word" >&5
3687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 if test -n "$ac_ct_GNATMAKE"; then
3692 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706done
3707
3708 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3709fi
3710fi
3711ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3712if test -n "$ac_ct_GNATMAKE"; then
3713 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3714echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3715else
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718fi
3719
3720 GNATMAKE=$ac_ct_GNATMAKE
3721else
3722 GNATMAKE="$ac_cv_prog_GNATMAKE"
3723fi
3724
c6b750e1
DJ
3725echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3726echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3727if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
9e07f89d
NN
3729else
3730 cat >conftest.adb <<EOF
3731procedure conftest is begin null; end conftest;
3732EOF
3733acx_cv_cc_gcc_supports_ada=no
3734# There is a bug in old released versions of GCC which causes the
3735# driver to exit successfully when the appropriate language module
3736# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3737# Therefore we must check for the error message as well as an
3738# unsuccessful exit.
b8908782
DD
3739# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3740# given a .adb file, but produce no object file. So we must check
3741# if an object file was really produced to guard against this.
9e07f89d 3742errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 3743if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 3744 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
3745fi
3746rm -f conftest.*
3747fi
c6b750e1
DJ
3748echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3749echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
9e07f89d 3750
7df2cd5d 3751if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
3752 have_gnat=yes
3753else
3754 have_gnat=no
3755fi
3756
c6b750e1
DJ
3757echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
3758echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
3759if test "${gcc_cv_prog_cmp_skip+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
b8908782
DD
3761else
3762 echo abfoo >t1
3763 echo cdfoo >t2
3764 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
3765 if cmp t1 t2 2 2 > /dev/null 2>&1; then
3766 if cmp t1 t2 1 1 > /dev/null 2>&1; then
3767 :
3768 else
3769 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
3770 fi
3771 fi
b8908782
DD
3772 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
3773 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 3774 :
b8908782
DD
3775 else
3776 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
3777 fi
3778 fi
3779 rm t1 t2
3780
3781fi
c6b750e1
DJ
3782echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
3783echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
b8908782
DD
3784do_compare="$gcc_cv_prog_cmp_skip"
3785
3786
9e07f89d 3787
11b04d1f 3788# Check for GMP and MPFR
4b900473 3789gmplibs="-lmpfr -lgmp"
4b1cb4fe 3790gmpinc=
4b900473
PB
3791have_gmp=no
3792
11b04d1f
DD
3793# Specify a location for mpfr
3794# check for this first so it ends up on the link line before gmp.
c6b750e1 3795
11b04d1f
DD
3796# Check whether --with-mpfr-dir or --without-mpfr-dir was given.
3797if test "${with_mpfr_dir+set}" = set; then
3798 withval="$with_mpfr_dir"
c6b750e1
DJ
3799 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
3800Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
3801echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
3802Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
3803 { (exit 1); exit 1; }; }
3804fi;
11b04d1f
DD
3805
3806
11b04d1f
DD
3807# Check whether --with-mpfr or --without-mpfr was given.
3808if test "${with_mpfr+set}" = set; then
3809 withval="$with_mpfr"
c6b750e1
DJ
3810
3811fi;
11b04d1f 3812
8a0d8a5c
PB
3813# Check whether --with-mpfr_include or --without-mpfr_include was given.
3814if test "${with_mpfr_include+set}" = set; then
3815 withval="$with_mpfr_include"
c6b750e1
DJ
3816
3817fi;
8a0d8a5c
PB
3818
3819# Check whether --with-mpfr_lib or --without-mpfr_lib was given.
3820if test "${with_mpfr_lib+set}" = set; then
3821 withval="$with_mpfr_lib"
8a0d8a5c 3822
c6b750e1 3823fi;
11b04d1f
DD
3824
3825if test "x$with_mpfr" != x; then
3826 gmplibs="-L$with_mpfr/lib $gmplibs"
3827 gmpinc="-I$with_mpfr/include"
3828fi
8a0d8a5c
PB
3829if test "x$with_mpfr_include" != x; then
3830 gmpinc="-I$with_mpfr_include"
3831fi
3832if test "x$with_mpfr_lib" != x; then
3833 gmplibs="-L$with_mpfr_lib $gmplibs"
3834fi
4b900473
PB
3835if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
3836 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
3837 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
3838 # Do not test the mpfr version. Assume that it is sufficient, since
3839 # it is in the source tree, and the library has not been built yet
3840 # but it would be included on the link line in the version check below
3841 # hence making the test fail.
3842 have_gmp=yes
3843fi
11b04d1f 3844
4b1cb4fe 3845# Specify a location for gmp
c6b750e1 3846
4b1cb4fe
DD
3847# Check whether --with-gmp-dir or --without-gmp-dir was given.
3848if test "${with_gmp_dir+set}" = set; then
3849 withval="$with_gmp_dir"
c6b750e1
DJ
3850 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
3851Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
3852echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
3853Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
3854 { (exit 1); exit 1; }; }
3855fi;
4b1cb4fe
DD
3856
3857
4b1cb4fe
DD
3858# Check whether --with-gmp or --without-gmp was given.
3859if test "${with_gmp+set}" = set; then
3860 withval="$with_gmp"
c6b750e1
DJ
3861
3862fi;
4b1cb4fe 3863
8a0d8a5c
PB
3864# Check whether --with-gmp_include or --without-gmp_include was given.
3865if test "${with_gmp_include+set}" = set; then
3866 withval="$with_gmp_include"
c6b750e1
DJ
3867
3868fi;
8a0d8a5c
PB
3869
3870# Check whether --with-gmp_lib or --without-gmp_lib was given.
3871if test "${with_gmp_lib+set}" = set; then
3872 withval="$with_gmp_lib"
8a0d8a5c 3873
c6b750e1 3874fi;
8a0d8a5c 3875
4b1cb4fe 3876
11b04d1f
DD
3877if test "x$with_gmp" != x; then
3878 gmplibs="-L$with_gmp/lib $gmplibs"
3879 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 3880fi
8a0d8a5c
PB
3881if test "x$with_gmp_include" != x; then
3882 gmpinc="-I$with_gmp_include $gmpinc"
3883fi
3884if test "x$with_gmp_lib" != x; then
3885 gmplibs="-L$with_gmp_lib $gmplibs"
3886fi
4b900473
PB
3887if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
3888 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
3889 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
3890 # Do not test the gmp version. Assume that it is sufficient, since
3891 # it is in the source tree, and the library has not been built yet
3892 # but it would be included on the link line in the version check below
3893 # hence making the test fail.
3894 have_gmp=yes
3895fi
4b1cb4fe 3896
ceb92e78 3897if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
3898 have_gmp=yes
3899 saved_CFLAGS="$CFLAGS"
3900 CFLAGS="$CFLAGS $gmpinc"
3901 # Check GMP actually works
c6b750e1
DJ
3902 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
3903echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
3904
3905cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
4b1cb4fe 3911#include "gmp.h"
c6b750e1
DJ
3912int
3913main ()
3914{
4b1cb4fe 3915
4b900473
PB
3916 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
3917 choke me
3918 #endif
c6b750e1
DJ
3919
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924rm -f conftest.$ac_objext
3925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3926 (eval $ac_compile) 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -z "$ac_c_werror_flag"
3934 || test ! -s conftest.err'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 echo "$as_me:$LINENO: result: yes" >&5
3947echo "${ECHO_T}yes" >&6
3948else
3949 echo "$as_me: failed program was:" >&5
3950sed 's/^/| /' conftest.$ac_ext >&5
3951
3952echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6; have_gmp=no
3954fi
3955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 3956
4b900473
PB
3957 if test x"$have_gmp" = xyes; then
3958 saved_LIBS="$LIBS"
3959 LIBS="$LIBS $gmplibs"
c6b750e1
DJ
3960 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
3961echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
3962 cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h. */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h. */
9b134994 3968#include <gmp.h>
4b900473 3969 #include <mpfr.h>
c6b750e1
DJ
3970int
3971main ()
3972{
9b134994 3973
4b900473
PB
3974 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
3975 choke me
3976 #endif
3977 mpfr_t n; mpfr_init(n);
3978 mpfr_t x; mpfr_init(x);
3979 int t;
3980 mpfr_atan2 (n, n, x, GMP_RNDN);
3981 mpfr_erfc (n, x, GMP_RNDN);
3982 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
3983
3984 ;
3985 return 0;
3986}
3987_ACEOF
3988rm -f conftest.$ac_objext conftest$ac_exeext
3989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3990 (eval $ac_link) 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag"
3998 || test ! -s conftest.err'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; } &&
4004 { ac_try='test -s conftest$ac_exeext'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 cat >conftest.$ac_ext <<_ACEOF
4011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
4b1cb4fe 4016#include <gmp.h>
4b900473 4017 #include <mpfr.h>
c6b750e1
DJ
4018int
4019main ()
4020{
9dbaa842 4021
4b900473
PB
4022 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4023 choke me
4024 #endif
4025 mpfr_t n; mpfr_init(n);
c6b750e1
DJ
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext conftest$ac_exeext
4032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033 (eval $ac_link) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try='test -s conftest$ac_exeext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 (eval $ac_try) 2>&5
4050 ac_status=$?
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055else
4056 echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4060echo "${ECHO_T}buggy but acceptable" >&6
4061fi
4062rm -f conftest.err conftest.$ac_objext \
4063 conftest$ac_exeext conftest.$ac_ext
4064else
4065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6; have_gmp=no
4070fi
4071rm -f conftest.err conftest.$ac_objext \
4072 conftest$ac_exeext conftest.$ac_ext
4b900473
PB
4073 LIBS="$saved_LIBS"
4074 fi
4075 CFLAGS="$saved_CFLAGS"
4b1cb4fe 4076
4b900473 4077 if test x$have_gmp != xyes; then
c6b750e1
DJ
4078 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4079Try the --with-gmp and/or --with-mpfr options to specify their locations.
4080Copies of these libraries' source code can be found at their respective
4081hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4082See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4083If you obtained GMP and/or MPFR from a vendor distribution package, make
4084sure that you have installed both the libraries and the header files.
4085They may be located in separate packages." >&5
4086echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
9dbaa842
DD
4087Try the --with-gmp and/or --with-mpfr options to specify their locations.
4088Copies of these libraries' source code can be found at their respective
4089hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
4090See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4091If you obtained GMP and/or MPFR from a vendor distribution package, make
4092sure that you have installed both the libraries and the header files.
c6b750e1
DJ
4093They may be located in separate packages." >&2;}
4094 { (exit 1); exit 1; }; }
4b900473 4095 fi
9dbaa842
DD
4096fi
4097
11b04d1f 4098# Flags needed for both GMP and/or MPFR
4b1cb4fe
DD
4099
4100
4101
947f426e 4102# By default, C is the only stage 1 language.
9b134994 4103stage1_languages=,c,
1d39f329 4104
9e07f89d
NN
4105# Figure out what language subdirectories are present.
4106# Look if the user specified --enable-languages="..."; if not, use
4107# the environment variable $LANGUAGES if defined. $LANGUAGES might
4108# go away some day.
4109# NB: embedded tabs in this IF block -- do not untabify
4110if test -d ${srcdir}/gcc; then
4111 if test x"${enable_languages+set}" != xset; then
4112 if test x"${LANGUAGES+set}" = xset; then
4113 enable_languages="${LANGUAGES}"
4114 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4115 else
4116 enable_languages=all
4117 fi
4118 else
4119 if test x"${enable_languages}" = x ||
4120 test x"${enable_languages}" = xyes;
4121 then
4122 echo configure.in: --enable-languages needs at least one language argument 1>&2
4123 exit 1
4124 fi
4125 fi
4126 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4127
096f7d00
DE
4128 # 'f95' is the old name for the 'fortran' language. We issue a warning
4129 # and make the substitution.
4130 case ,${enable_languages}, in
4131 *,f95,*)
4132 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4133 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4134 ;;
4135 esac
4136
9e07f89d
NN
4137 # First scan to see if an enabled language requires some other language.
4138 # We assume that a given config-lang.in will list all the language
4139 # front ends it requires, even if some are required indirectly.
4140 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4141 case ${lang_frag} in
4142 ..) ;;
4143 # The odd quoting in the next line works around
4144 # an apparent bug in bash 1.12 on linux.
4145 ${srcdir}/gcc/[*]/config-lang.in) ;;
4146 *)
4147 # From the config-lang.in, get $language, $lang_requires
4148 language=
4149 lang_requires=
4150 . ${lang_frag}
4151 for other in ${lang_requires} ; do
4152 case ,${enable_languages}, in
4153 *,$other,*) ;;
4154 *,all,*) ;;
4155 *,$language,*)
4156 echo " \`$other' language required by \`$language'; enabling" 1>&2
4157 enable_languages="${enable_languages},${other}"
4158 ;;
4159 esac
4160 done
4161 ;;
4162 esac
4163 done
4164
9b134994 4165 new_enable_languages=,c,
9e07f89d 4166 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 4167 potential_languages=,c,
9e07f89d
NN
4168
4169 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4170 case ${lang_frag} in
4171 ..) ;;
4172 # The odd quoting in the next line works around
4173 # an apparent bug in bash 1.12 on linux.
4174 ${srcdir}/gcc/[*]/config-lang.in) ;;
4175 *)
c6b750e1 4176 # From the config-lang.in, get $language, $target_libs,
1d39f329 4177 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
4178 language=
4179 target_libs=
4180 lang_dirs=
64ce424c 4181 subdir_requires=
9b134994
PB
4182 boot_language=no
4183 build_by_default=yes
9e07f89d 4184 . ${lang_frag}
9b134994
PB
4185 if test x${language} = x; then
4186 echo "${lang_frag} doesn't set \$language." 1>&2
4187 exit 1
4188 fi
4189
4190 case ,${enable_languages}, in
4191 *,${language},*)
9e07f89d
NN
4192 # Language was explicitly selected; include it.
4193 add_this_lang=yes
4194 ;;
9b134994
PB
4195 *,all,*)
4196 # 'all' was selected, select it if it is a default language
4197 add_this_lang=${build_by_default}
9e07f89d
NN
4198 ;;
4199 *)
4200 add_this_lang=no
4201 ;;
4202 esac
4b1cb4fe 4203
64ce424c 4204 # Disable languages that need other directories if these aren't available.
1f3f1bbf 4205 for i in $subdir_requires; do
3d3adb43 4206 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
4207 case ,${enable_languages}, in
4208 *,${language},*)
4209 # Specifically requested language; tell them.
c6b750e1
DJ
4210 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4211echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4212 { (exit 1); exit 1; }; }
64ce424c
PB
4213 ;;
4214 *)
4215 # Silently disable.
9b134994 4216 add_this_lang=unsupported
64ce424c
PB
4217 ;;
4218 esac
4219 done
4220
9b134994
PB
4221 # Disable Ada if no preexisting GNAT is available.
4222 case ,${enable_languages},:${language}:${have_gnat} in
4223 *,${language},*:ada:no)
4224 # Specifically requested language; tell them.
c6b750e1
DJ
4225 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4226echo "$as_me: error: GNAT is required to build $language" >&2;}
4227 { (exit 1); exit 1; }; }
9b134994
PB
4228 ;;
4229 *:ada:no)
4230 # Silently disable.
4231 add_this_lang=unsupported
4232 ;;
4233 esac
4234
59f7ec45
HPN
4235 # Disable a language that is unsupported by the target.
4236 case " $unsupported_languages " in
4237 *" $language "*)
9b134994 4238 add_this_lang=unsupported
59f7ec45
HPN
4239 ;;
4240 esac
4241
4b1cb4fe 4242 case $add_this_lang in
9b134994 4243 unsupported)
9e07f89d 4244 # Remove language-dependent dirs.
1d39f329
NN
4245 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4246 ;;
9b134994
PB
4247 no)
4248 # Remove language-dependent dirs; still show language as supported.
4249 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4250 potential_languages="${potential_languages}${language},"
4251 ;;
4252 yes)
4253 new_enable_languages="${new_enable_languages}${language},"
4254 potential_languages="${potential_languages}${language},"
1d39f329
NN
4255 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4256 case ${boot_language} in
4257 yes)
4fa63067 4258 # Add to (comma-separated) list of stage 1 languages.
9b134994 4259 stage1_languages="${stage1_languages}${language},"
1d39f329
NN
4260 ;;
4261 esac
4262 ;;
9e07f89d
NN
4263 esac
4264 ;;
4265 esac
4266 done
4267
9b134994
PB
4268 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4269if test "${enable_stage1_languages+set}" = set; then
4270 enableval="$enable_stage1_languages"
4271 case ,${enable_stage1_languages}, in
4272 ,no,|,,)
4273 # Set it to something that will have no effect in the loop below
4274 enable_stage1_languages=c ;;
4275 ,yes,)
4276 enable_stage1_languages=`echo $new_enable_languages | \
4277 sed -e "s/^,//" -e "s/,$//" ` ;;
4278 *,all,*)
4279 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4280 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4281 esac
4282
4283 # Add "good" languages from enable_stage1_languages to stage1_languages,
4284 # while "bad" languages go in missing_languages. Leave no duplicates.
4285 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4286 case $potential_languages in
4287 *,$i,*)
4288 case $stage1_languages in
4289 *,$i,*) ;;
4290 *) stage1_languages="$stage1_languages$i," ;;
4291 esac ;;
4292 *)
4293 case $missing_languages in
4294 *,$i,*) ;;
4295 *) missing_languages="$missing_languages$i," ;;
4296 esac ;;
4297 esac
4298 done
c6b750e1 4299fi;
9b134994
PB
4300
4301 # Remove leading/trailing commas that were added for simplicity
4302 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 4303 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
4304 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4305 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4306
9e07f89d 4307 if test "x$missing_languages" != x; then
c6b750e1 4308 { { echo "$as_me:$LINENO: error:
27258dd4 4309The following requested languages could not be built: ${missing_languages}
c6b750e1
DJ
4310Supported languages are: ${potential_languages}" >&5
4311echo "$as_me: error:
4312The following requested languages could not be built: ${missing_languages}
4313Supported languages are: ${potential_languages}" >&2;}
4314 { (exit 1); exit 1; }; }
9e07f89d 4315 fi
9e07f89d
NN
4316 if test "x$new_enable_languages" != "x$enable_languages"; then
4317 echo The following languages will be built: ${new_enable_languages}
9b134994 4318 enable_languages="$new_enable_languages"
9e07f89d 4319 fi
9b134994 4320
c6b750e1 4321
2e70b094 4322 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
9e07f89d
NN
4323fi
4324
a6df5a19
PB
4325# Handle --disable-<component> generically.
4326for dir in $configdirs $build_configdirs $target_configdirs ; do
4327 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4328 if eval test x\${enable_${dirname}} "=" xno ; then
4329 noconfigdirs="$noconfigdirs $dir"
4330 fi
4331done
4332
4f0ef2d8
CD
4333# Check for Boehm's garbage collector
4334# Check whether --enable-objc-gc or --disable-objc-gc was given.
4335if test "${enable_objc_gc+set}" = set; then
4336 enableval="$enable_objc_gc"
4337 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4338 *,objc,*:*:yes:*target-boehm-gc*)
c6b750e1
DJ
4339 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4340echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4341 { (exit 1); exit 1; }; }
4f0ef2d8
CD
4342 ;;
4343esac
c6b750e1 4344fi;
4f0ef2d8
CD
4345
4346# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
4347case ,${enable_languages},:${enable_objc_gc} in
4348 *,objc,*:yes)
4f0ef2d8
CD
4349 # Keep target-boehm-gc if requested for Objective-C.
4350 ;;
4f0ef2d8 4351 *)
d42c4017
DA
4352 # Otherwise remove target-boehm-gc depending on target-libjava.
4353 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4354 noconfigdirs="$noconfigdirs target-boehm-gc"
4355 fi
4f0ef2d8
CD
4356 ;;
4357esac
4358
caeba88f
AL
4359# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4360# $build_configdirs and $target_configdirs.
9e07f89d
NN
4361# If we have the source for $noconfigdirs entries, add them to $notsupp.
4362
4363notsupp=""
4364for dir in . $skipdirs $noconfigdirs ; do
caeba88f 4365 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
4366 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4367 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4368 if test -r $srcdir/$dirname/configure ; then
4369 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4370 true
4371 else
4372 notsupp="$notsupp $dir"
4373 fi
4374 fi
4375 fi
caeba88f
AL
4376 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4377 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4378 if test -r $srcdir/$dirname/configure ; then
4379 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4380 true
4381 else
4382 notsupp="$notsupp $dir"
4383 fi
4384 fi
4385 fi
9e07f89d
NN
4386 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4387 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4388 if test -r $srcdir/$dirname/configure ; then
4389 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4390 true
4391 else
4392 notsupp="$notsupp $dir"
4393 fi
4394 fi
4395 fi
4396done
4397
4398# Sometimes the tools are distributed with libiberty but with no other
4399# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 4400# Don't let libgcc imply libiberty either.
9e07f89d 4401if test -n "${target_configdirs}" ; then
f86e35b8 4402 libgcc=
9e07f89d
NN
4403 others=
4404 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
4405 if test "$i" = "libgcc"; then
4406 libgcc=target-libgcc
4407 elif test "$i" != "libiberty" ; then
9e07f89d
NN
4408 if test -r $srcdir/$i/configure ; then
4409 others=yes;
4410 break;
4411 fi
4412 fi
4413 done
4414 if test -z "${others}" ; then
f86e35b8 4415 target_configdirs=$libgcc
9e07f89d
NN
4416 fi
4417fi
4418
4419# Quietly strip out all directories which aren't configurable in this tree.
4420# This relies on all configurable subdirectories being autoconfiscated, which
4421# is now the case.
6a9cf61e
PB
4422build_configdirs_all="$build_configdirs"
4423build_configdirs=
4424for i in ${build_configdirs_all} ; do
c6b750e1 4425 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
4426 if test -f ${srcdir}/$j/configure ; then
4427 build_configdirs="${build_configdirs} $i"
4428 fi
4429done
4430
9e07f89d
NN
4431configdirs_all="$configdirs"
4432configdirs=
4433for i in ${configdirs_all} ; do
4434 if test -f ${srcdir}/$i/configure ; then
4435 configdirs="${configdirs} $i"
4436 fi
4437done
6a9cf61e 4438
9e07f89d
NN
4439target_configdirs_all="$target_configdirs"
4440target_configdirs=
4441for i in ${target_configdirs_all} ; do
c6b750e1 4442 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
4443 if test -f ${srcdir}/$j/configure ; then
4444 target_configdirs="${target_configdirs} $i"
4445 fi
4446done
4447
4448# Produce a warning message for the subdirs we can't configure.
4449# This isn't especially interesting in the Cygnus tree, but in the individual
4450# FSF releases, it's important to let people know when their machine isn't
4451# supported by the one or two programs in a package.
4452
4453if test -n "${notsupp}" && test -z "${norecursion}" ; then
4454 # If $appdirs is non-empty, at least one of those directories must still
4455 # be configured, or we error out. (E.g., if the gas release supports a
4456 # specified target in some subdirs but not the gas subdir, we shouldn't
4457 # pretend that all is well.)
4458 if test -n "$appdirs" ; then
4459 for dir in $appdirs ; do
4460 if test -r $dir/Makefile.in ; then
4461 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4462 appdirs=""
4463 break
4464 fi
6a9cf61e 4465 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
4466 appdirs=""
4467 break
4468 fi
4469 fi
4470 done
4471 if test -n "$appdirs" ; then
4472 echo "*** This configuration is not supported by this package." 1>&2
4473 exit 1
4474 fi
4475 fi
4476 # Okay, some application will build, or we don't care to check. Still
4477 # notify of subdirs not getting built.
4478 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4479 echo " ${notsupp}" 1>&2
4480 echo " (Any other directories should still work fine.)" 1>&2
4481fi
4482
4483case "$host" in
4484 *msdosdjgpp*)
4485 enable_gdbtk=no ;;
4486esac
4487
4488copy_dirs=
4489
c6b750e1 4490
a19b6204
MM
4491# Check whether --with-build-sysroot or --without-build-sysroot was given.
4492if test "${with_build_sysroot+set}" = set; then
4493 withval="$with_build_sysroot"
4494 if test x"$withval" != x ; then
4495 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4496 fi
4497else
4498 SYSROOT_CFLAGS_FOR_TARGET=
c6b750e1 4499fi;
a19b6204
MM
4500
4501
9e07f89d
NN
4502# Handle --with-headers=XXX. If the value is not "yes", the contents of
4503# the named directory are copied to $(tooldir)/sys-include.
4504if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4505 if test x${is_cross_compiler} = xno ; then
4506 echo 1>&2 '***' --with-headers is only supported when cross compiling
4507 exit 1
4508 fi
4509 if test x"${with_headers}" != xyes ; then
4510 case "${exec_prefixoption}" in
4511 "") x=${prefix} ;;
4512 *) x=${exec_prefix} ;;
4513 esac
c6b750e1 4514 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
4515 fi
4516fi
4517
4518# Handle --with-libs=XXX. If the value is not "yes", the contents of
4519# the name directories are copied to $(tooldir)/lib. Multiple directories
4520# are permitted.
4521if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4522 if test x${is_cross_compiler} = xno ; then
4523 echo 1>&2 '***' --with-libs is only supported when cross compiling
4524 exit 1
4525 fi
4526 if test x"${with_libs}" != xyes ; then
4527 # Copy the libraries in reverse order, so that files in the first named
4528 # library override files in subsequent libraries.
4529 case "${exec_prefixoption}" in
4530 "") x=${prefix} ;;
4531 *) x=${exec_prefix} ;;
4532 esac
4533 for l in ${with_libs}; do
c6b750e1 4534 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
4535 done
4536 fi
4537fi
4538
2429c060
PB
4539# Set with_gnu_as and with_gnu_ld as appropriate.
4540#
4541# This is done by determining whether or not the appropriate directory
4542# is available, and by checking whether or not specific configurations
4543# have requested that this magic not happen.
c6b750e1
DJ
4544#
4545# The command line options always override the explicit settings in
2429c060
PB
4546# configure.in, and the settings in configure.in override this magic.
4547#
c6b750e1 4548# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
4549# want to do that, then you should use the --without-gnu-as and
4550# --without-gnu-ld options for the configure script.
4551
4552if test x${use_gnu_as} = x &&
4553 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4554 with_gnu_as=yes
4555 extra_host_args="$extra_host_args --with-gnu-as"
4556fi
4557
4558if test x${use_gnu_ld} = x &&
4559 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4560 with_gnu_ld=yes
4561 extra_host_args="$extra_host_args --with-gnu-ld"
4562fi
4563
4564# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4565# can detect this case.
4566
4567if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4568 with_newlib=yes
4569 extra_host_args="$extra_host_args --with-newlib"
4570fi
4571
9e07f89d
NN
4572# Handle ${copy_dirs}
4573set fnord ${copy_dirs}
4574shift
4575while test $# != 0 ; do
4576 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4577 :
4578 else
4579 echo Copying $1 to $2
4580
4581 # Use the install script to create the directory and all required
4582 # parent directories.
4583 if test -d $2 ; then
4584 :
4585 else
4586 echo >config.temp
4587 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4588 fi
4589
4590 # Copy the directory, assuming we have tar.
4591 # FIXME: Should we use B in the second tar? Not all systems support it.
4592 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4593
4594 # It is the responsibility of the user to correctly adjust all
4595 # symlinks. If somebody can figure out how to handle them correctly
4596 # here, feel free to add the code.
4597
4598 echo $1 > $2/COPIED
4599 fi
4600 shift; shift
4601done
4602
2429c060
PB
4603# Determine a target-dependent exec_prefix that the installed
4604# gcc will search in. Keep this list sorted by triplet, with
4605# the *-*-osname triplets last.
4606md_exec_prefix=
4607case "${target}" in
4608 alpha*-*-*vms*)
4609 md_exec_prefix=/gnu/lib/gcc-lib
4610 ;;
4611 i3456786-pc-msdosdjgpp*)
4612 md_exec_prefix=/dev/env/DJDIR/bin
4613 ;;
4614 i3456786-*-sco3.2v5*)
4615 if test $with_gnu_as = yes; then
4616 md_exec_prefix=/usr/gnu/bin
4617 else
4618 md_exec_prefix=/usr/ccs/bin/elf
4619 fi
4620 ;;
4621
4622 mn10300-*-* | \
4623 powerpc-*-chorusos* | \
4624 powerpc*-*-eabi* | \
4625 powerpc*-*-sysv* | \
4626 powerpc*-*-kaos* | \
4627 s390x-ibm-tpf*)
4628 md_exec_prefix=/usr/ccs/bin
4629 ;;
4630 sparc64-*-elf*)
4631 ;;
4632 v850*-*-*)
4633 md_exec_prefix=/usr/ccs/bin
4634 ;;
4635 xtensa-*-elf*)
4636 ;;
4637
4638 *-*-beos* | \
4639 *-*-elf* | \
4640 *-*-hpux* | \
4641 *-*-netware* | \
4642 *-*-nto-qnx* | \
4643 *-*-rtems* | \
4644 *-*-solaris2* | \
4645 *-*-sysv45* | \
4646 *-*-vxworks* | \
4647 *-wrs-windiss)
4648 md_exec_prefix=/usr/ccs/bin
4649 ;;
4650esac
4651
a0da8069
NN
4652extra_arflags_for_target=
4653extra_nmflags_for_target=
4654extra_ranlibflags_for_target=
4655target_makefile_frag=/dev/null
4656case "${target}" in
4e206d7e
DB
4657 mep*-*-*)
4658 target_makefile_frag="config/mt-mep"
4659 ;;
77d7106f
AM
4660 spu-*-*)
4661 target_makefile_frag="config/mt-spu"
4662 ;;
2a3124ca 4663 *-*-netware*)
a0da8069
NN
4664 target_makefile_frag="config/mt-netware"
4665 ;;
3d6dfe0f
NN
4666 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4667 target_makefile_frag="config/mt-gnu"
a0da8069
NN
4668 ;;
4669 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 4670 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
4671 # commands to handle both 32-bit and 64-bit objects. These flags are
4672 # harmless if we're using GNU nm or ar.
4673 extra_arflags_for_target=" -X32_64"
4674 extra_nmflags_for_target=" -B -X32_64"
4675 ;;
4676 *-*-darwin*)
4677 # ranlib from Darwin requires the -c flag to look at common symbols.
4678 extra_ranlibflags_for_target=" -c"
4679 ;;
4680 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
4681 target_makefile_frag="config/mt-wince"
4682 ;;
4683esac
4684
4685alphaieee_frag=/dev/null
4686case $target in
4687 alpha*-*-*)
4688 # This just makes sure to use the -mieee option to build target libs.
4689 # This should probably be set individually by each library.
4690 alphaieee_frag="config/mt-alphaieee"
4691 ;;
4692esac
4693
4694# If --enable-target-optspace always use -Os instead of -O2 to build
4695# the target libraries, similarly if it is not specified, use -Os
4696# on selected platforms.
4697ospace_frag=/dev/null
4698case "${enable_target_optspace}:${target}" in
4699 yes:*)
4700 ospace_frag="config/mt-ospace"
4701 ;;
4702 :d30v-*)
4703 ospace_frag="config/mt-d30v"
4704 ;;
4705 :m32r-* | :d10v-* | :fr30-*)
4706 ospace_frag="config/mt-ospace"
4707 ;;
4708 no:* | :*)
4709 ;;
4710 *)
4711 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
4712 ;;
4713esac
4714
a0da8069
NN
4715# Default to using --with-stabs for certain targets.
4716if test x${with_stabs} = x ; then
4717 case "${target}" in
e31d1ea3 4718 mips*-*-irix[56]*)
a0da8069
NN
4719 ;;
4720 mips*-*-* | alpha*-*-osf*)
4721 with_stabs=yes;
4722 extra_host_args="${extra_host_args} --with-stabs"
4723 ;;
4724 esac
4725fi
4726
4727# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
4728# them automatically.
4729case "${host}" in
c6b750e1 4730 hppa*64*-*-hpux11*)
a0da8069
NN
4731 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
4732 ;;
4733esac
4734
a0da8069
NN
4735# Some systems (e.g., one of the i386-aix systems the gas testers are
4736# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 4737tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
4738build_tooldir=${tooldir}
4739
a0da8069
NN
4740# Create a .gdbinit file which runs the one in srcdir
4741# and tells GDB to look there for source files.
4742
4743if test -r ${srcdir}/.gdbinit ; then
4744 case ${srcdir} in
4745 .) ;;
4746 *) cat > ./.gdbinit <<EOF
4747# ${NO_EDIT}
4748dir ${srcdir}
4749dir .
4750source ${srcdir}/.gdbinit
4751EOF
4752 ;;
4753 esac
4754fi
4755
a0da8069
NN
4756# Make sure that the compiler is able to generate an executable. If it
4757# can't, we are probably in trouble. We don't care whether we can run the
4758# executable--we might be using a cross compiler--we only care whether it
4759# can be created. At this point the main configure script has set CC.
4760we_are_ok=no
4761echo "int main () { return 0; }" > conftest.c
4762${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
4763if test $? = 0 ; then
4764 if test -s conftest || test -s conftest.exe ; then
4765 we_are_ok=yes
4766 fi
c6b750e1 4767fi
a0da8069
NN
4768case $we_are_ok in
4769 no)
4770 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
4771 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
4772 rm -f conftest*
4773 exit 1
4774 ;;
4775esac
4776rm -f conftest*
4777
4778# The Solaris /usr/ucb/cc compiler does not appear to work.
4779case "${host}" in
4780 sparc-sun-solaris2*)
4781 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
4782 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
4783 could_use=
4784 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
4785 if test -d /opt/cygnus/bin ; then
4786 if test "$could_use" = "" ; then
4787 could_use="/opt/cygnus/bin"
4788 else
4789 could_use="$could_use or /opt/cygnus/bin"
4790 fi
4791 fi
4792 if test "$could_use" = "" ; then
4793 echo "Warning: compilation may fail because you're using"
4794 echo "/usr/ucb/cc. You should change your PATH or CC "
4795 echo "variable and rerun configure."
4796 else
4797 echo "Warning: compilation may fail because you're using"
4798 echo "/usr/ucb/cc, when you should use the C compiler from"
4799 echo "$could_use. You should change your"
4800 echo "PATH or CC variable and rerun configure."
4801 fi
4802 fi
4803 ;;
4804esac
4805
a0da8069
NN
4806case "${host}" in
4807 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 4808 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
a0da8069
NN
4809 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
4810esac
4811
4812# Record target_configdirs and the configure arguments for target and
4813# build configuration in Makefile.
4814target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 4815build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 4816
a0da8069
NN
4817# Determine whether gdb needs tk/tcl or not.
4818# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
4819# and in that case we want gdb to be built without tk. Ugh!
4820# In fact I believe gdb is the *only* package directly dependent on tk,
4821# so we should be able to put the 'maybe's in unconditionally and
4822# leave out the maybe dependencies when enable_gdbtk is false. I'm not
4823# 100% sure that that's safe though.
c180f501 4824
675c6968 4825gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
4826case "$enable_gdbtk" in
4827 no)
4828 GDB_TK="" ;;
c180f501
AC
4829 yes)
4830 GDB_TK="${gdb_tk}" ;;
a0da8069 4831 *)
c180f501
AC
4832 # Only add the dependency on gdbtk when GDBtk is part of the gdb
4833 # distro. Eventually someone will fix this and move Insight, nee
4834 # gdbtk to a separate directory.
4835 if test -d ${srcdir}/gdb/gdbtk ; then
4836 GDB_TK="${gdb_tk}"
4837 else
4838 GDB_TK=""
4839 fi
4840 ;;
a0da8069 4841esac
907be67c
DJ
4842CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
4843INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 4844
6bd3dfaa 4845# Strip out unwanted targets.
dd12c3a8
NN
4846
4847# While at that, we remove Makefiles if we were started for recursive
4848# configuration, so that the top-level Makefile reconfigures them,
4849# like we used to do when configure itself was recursive.
dd12c3a8 4850
6bd3dfaa
PB
4851# Loop over modules. $extrasub must be used with care, limiting as
4852# much as possible the usage of range addresses. That's because autoconf
4853# splits the sed script to overcome limits in the number of commands,
4854# and relying on carefully-timed sed passes may turn out to be very hard
4855# to maintain later. In this particular case, you just have to be careful
4856# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 4857
319cab08
PB
4858# Check whether --enable-bootstrap or --disable-bootstrap was given.
4859if test "${enable_bootstrap+set}" = set; then
4860 enableval="$enable_bootstrap"
c6b750e1 4861
319cab08 4862else
9cb3fa6f 4863 enable_bootstrap=default
c6b750e1 4864fi;
319cab08 4865
9cb3fa6f
PB
4866# Issue errors and warnings for invalid/strange bootstrap combinations.
4867case "$configdirs" in
4868 *gcc*) have_compiler=yes ;;
4869 *) have_compiler=no ;;
4870esac
4871
4872case "$have_compiler:$host:$target:$enable_bootstrap" in
4873 *:*:*:no) ;;
4874
0aed8855 4875 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
4876 # and we are in a native configuration.
4877 yes:$build:$build:default)
0aed8855 4878 enable_bootstrap=yes ;;
9cb3fa6f
PB
4879
4880 *:*:*:default)
4881 enable_bootstrap=no ;;
4882
4883 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 4884 yes:$build:$build:yes)
9cb3fa6f
PB
4885 ;;
4886
4887 # Other configurations, but we have a compiler. Assume the user knows
4888 # what he's doing.
80911fe1 4889 yes:*:*:yes)
c6b750e1
DJ
4890 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
4891echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
4892 ;;
4893
4894 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 4895 no:*:*:yes)
c6b750e1
DJ
4896 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
4897echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
4898 { (exit 1); exit 1; }; } ;;
9cb3fa6f
PB
4899
4900 # Fail if wrong command line
4901 *)
c6b750e1
DJ
4902 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
4903echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
4904 { (exit 1); exit 1; }; }
9cb3fa6f
PB
4905 ;;
4906esac
4907
4908# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
4909case "$enable_bootstrap" in
4910 yes)
498d4a71 4911 bootstrap_suffix=bootstrap ;;
319cab08 4912 no)
498d4a71 4913 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
4914esac
4915
6a9cf61e 4916for module in ${build_configdirs} ; do
498d4a71
CF
4917 if test -z "${no_recursion}" \
4918 && test -f ${build_subdir}/${module}/Makefile; then
4919 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
4920 rm -f ${build_subdir}/${module}/Makefile
4921 fi
4922 extrasub="$extrasub
4923/^@if build-$module\$/d
4924/^@endif build-$module\$/d
4925/^@if build-$module-$bootstrap_suffix\$/d
4926/^@endif build-$module-$bootstrap_suffix\$/d"
4927done
4928for module in ${configdirs} ; do
80911fe1 4929 if test -z "${no_recursion}"; then
8cf39b1b 4930 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
4931 if test -f ${file}; then
4932 echo 1>&2 "*** removing ${file} to force reconfigure"
4933 rm -f ${file}
4934 fi
4935 done
498d4a71
CF
4936 fi
4937 extrasub="$extrasub
4938/^@if $module\$/d
4939/^@endif $module\$/d
4940/^@if $module-$bootstrap_suffix\$/d
4941/^@endif $module-$bootstrap_suffix\$/d"
4942done
4943for module in ${target_configdirs} ; do
4944 if test -z "${no_recursion}" \
4945 && test -f ${target_subdir}/${module}/Makefile; then
4946 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
4947 rm -f ${target_subdir}/${module}/Makefile
4948 fi
4949 extrasub="$extrasub
4950/^@if target-$module\$/d
4951/^@endif target-$module\$/d
4952/^@if target-$module-$bootstrap_suffix\$/d
4953/^@endif target-$module-$bootstrap_suffix\$/d"
4954done
4955
6bd3dfaa
PB
4956extrasub="$extrasub
4957/^@if /,/^@endif /d"
a0da8069
NN
4958
4959# Create the serialization dependencies. This uses a temporary file.
4960
e6bfb94a
AO
4961# Check whether --enable-serial-configure or --disable-serial-configure was given.
4962if test "${enable_serial_configure+set}" = set; then
4963 enableval="$enable_serial_configure"
e6bfb94a 4964
c6b750e1 4965fi;
e6bfb94a 4966
1047cb91
DD
4967case ${enable_serial_configure} in
4968 yes)
4969 enable_serial_build_configure=yes
4970 enable_serial_host_configure=yes
4971 enable_serial_target_configure=yes
4972 ;;
4973esac
4974
a0da8069
NN
4975# These force 'configure's to be done one at a time, to avoid problems
4976# with contention over a shared config.cache.
4977rm -f serdep.tmp
e6bfb94a 4978echo '# serdep.tmp' > serdep.tmp
a0da8069 4979olditem=
1047cb91 4980test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
4981for item in ${build_configdirs} ; do
4982 case ${olditem} in
4983 "") ;;
e6bfb94a 4984 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
4985 esac
4986 olditem=${item}
4987done
4988olditem=
1047cb91 4989test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
4990for item in ${configdirs} ; do
4991 case ${olditem} in
4992 "") ;;
e6bfb94a 4993 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
4994 esac
4995 olditem=${item}
4996done
4997olditem=
1047cb91 4998test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
4999for item in ${target_configdirs} ; do
5000 case ${olditem} in
5001 "") ;;
e6bfb94a 5002 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
5003 esac
5004 olditem=${item}
5005done
5006serialization_dependencies=serdep.tmp
5007
5008
e6bfb94a 5009# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
5010# target, nonopt, and variable assignments. These are the ones we
5011# might not want to pass down to subconfigures. Also strip
5012# program-prefix, program-suffix, and program-transform-name, so that
5013# we can pass down a consistent program-transform-name.
5014baseargs=
5015keep_next=no
5016skip_next=no
5017eval "set -- $ac_configure_args"
7df2cd5d 5018for ac_arg; do
c6b750e1
DJ
5019 if test X"$skip_next" = X"yes"; then
5020 skip_next=no
5021 continue
5022 fi
5023 if test X"$keep_next" = X"yes"; then
5024 case $ac_arg in
5025 *\'*)
5026 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5027 esac
5028 baseargs="$baseargs '$ac_arg'"
5029 keep_next=no
5030 continue
5031 fi
5032
5033 # Handle separated arguments. Based on the logic generated by
5034 # autoconf 2.59.
5035 case $ac_arg in
5036 *=* | --config-cache | -C | -disable-* | --disable-* \
5037 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5038 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5039 | -with-* | --with-* | -without-* | --without-* | --x)
5040 separate_arg=no
5041 ;;
5042 -*)
5043 separate_arg=yes
5044 ;;
5045 *)
5046 separate_arg=no
5047 ;;
5048 esac
5049
5050 case "$ac_arg" in
5051 --no*)
5052 continue
5053 ;;
5054 --c* | \
5055 --sr* | \
5056 --ho* | \
5057 --bu* | \
5058 --t* | \
5059 --program-* | \
5060 -cache_file* | \
5061 -srcdir* | \
5062 -host* | \
5063 -build* | \
5064 -target* | \
5065 -program-prefix* | \
5066 -program-suffix* | \
5067 -program-transform-name* )
5068 skip_next=$separate_arg
5069 continue
5070 ;;
5071 -*)
5072 # An option. Add it.
5073 case $ac_arg in
5074 *\'*)
5075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5076 esac
5077 baseargs="$baseargs '$ac_arg'"
5078 keep_next=$separate_arg
5079 ;;
5080 *)
5081 # Either a variable assignment, or a nonopt (triplet). Don't
5082 # pass it down; let the Makefile handle this.
5083 continue
5084 ;;
5085 esac
5086done
5087# Remove the initial space we just introduced and, as these will be
5088# expanded by make, quote '$'.
5089baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 5090
f27d4f92
DJ
5091# Add in --program-transform-name, after --program-prefix and
5092# --program-suffix have been applied to it. Autoconf has already
5093# doubled dollar signs and backslashes in program_transform_name; we want
5094# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 5095# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
5096# Also, because we want to override the logic in subdir configure scripts to
5097# choose program_transform_name, replace any s,x,x, with s,y,y,.
5098sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5099${program_transform_name}
5100EOF_SED
5101gcc_transform_name=`cat conftestsed.out`
5102rm -f conftestsed.out
5103baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5104
a0da8069
NN
5105# For the build-side libraries, we just need to pretend we're native,
5106# and not use the same cache file. Multilibs are neither needed nor
5107# desired.
4b900473 5108build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
5109
5110# For host modules, accept cache file option, or specification as blank.
5111case "${cache_file}" in
5112"") # empty
5113 cache_file_option="" ;;
5114/* | [A-Za-z]:[\\/]* ) # absolute path
5115 cache_file_option="--cache-file=${cache_file}" ;;
5116*) # relative path
5117 cache_file_option="--cache-file=../${cache_file}" ;;
5118esac
5119
82252c06
NN
5120# Host dirs don't like to share a cache file either, horribly enough.
5121# This seems to be due to autoconf 2.5x stupidity.
4b900473 5122host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
5123
5124target_configargs=${baseargs}
5125
5126# Passing a --with-cross-host argument lets the target libraries know
5127# whether they are being built with a cross-compiler or being built
5128# native. However, it would be better to use other mechanisms to make the
5129# sorts of decisions they want to make on this basis. Please consider
5130# this option to be deprecated. FIXME.
5131if test x${is_cross_compiler} = xyes ; then
c6b750e1 5132 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
5133fi
5134
5135# Default to --enable-multilib.
5136if test x${enable_multilib} = x ; then
5137 target_configargs="--enable-multilib ${target_configargs}"
5138fi
5139
5140# Pass --with-newlib if appropriate. Note that target_configdirs has
5141# changed from the earlier setting of with_newlib.
5142if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5143 target_configargs="--with-newlib ${target_configargs}"
5144fi
5145
95036d20
NN
5146# Different target subdirs use different values of certain variables
5147# (notably CXX). Worse, multilibs use *lots* of different values.
5148# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5149# it doesn't automatically accept command-line overrides of them.
5150# This means it's not safe for target subdirs to share a cache file,
5151# which is disgusting, but there you have it. Hopefully this can be
5152# fixed in future. It's still worthwhile to use a cache file for each
5153# directory. I think.
5154
ae380b45
MS
5155# Pass the appropriate --build, --host, --target and --cache-file arguments.
5156# We need to pass --target, as newer autoconf's requires consistency
5157# for target_alias and gcc doesn't manage it consistently.
4b900473 5158target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 5159
a0da8069
NN
5160FLAGS_FOR_TARGET=
5161case " $target_configdirs " in
5162 *" newlib "*)
5163 case " $target_configargs " in
5164 *" --with-newlib "*)
5165 case "$target" in
5166 *-cygwin*)
564b43e5 5167 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
5168 esac
5169
5170 # If we're not building GCC, don't discard standard headers.
5171 if test -d ${srcdir}/gcc; then
5172 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5173
5174 if test "${build}" != "${host}"; then
5175 # On Canadian crosses, CC_FOR_TARGET will have already been set
5176 # by `configure', so we won't have an opportunity to add -Bgcc/
5177 # to it. This is right: we don't want to search that directory
5178 # for binaries, but we want the header files in there, so add
5179 # them explicitly.
b00612cc 5180 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
5181
5182 # Someone might think of using the pre-installed headers on
5183 # Canadian crosses, in case the installed compiler is not fully
5184 # compatible with the compiler being built. In this case, it
5185 # would be better to flag an error than risking having
5186 # incompatible object files being constructed. We can't
5187 # guarantee that an error will be flagged, but let's hope the
5188 # compiler will do it, when presented with incompatible header
5189 # files.
5190 fi
5191 fi
5192
5193 case "${target}-${is_cross_compiler}" in
ec11bdc6 5194 i[3456789]86-*-linux*-no)
a0da8069
NN
5195 # Here host == target, so we don't need to build gcc,
5196 # so we don't want to discard standard headers.
5197 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5198 ;;
5199 *)
5200 # If we're building newlib, use its generic headers last, but search
5201 # for any libc-related directories first (so make it the last -B
5202 # switch).
5203 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5204 ;;
5205 esac
5206 ;;
5207 esac
5208 ;;
5209esac
45055374
CV
5210case "$target" in
5211*-mingw*)
5212 # Can't be handled as Cygwin above since Mingw does not use newlib.
5213 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' ;;
5214esac
a0da8069 5215
5fbad20a
DD
5216# Allow the user to override the flags for
5217# our build compiler if desired.
5218CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5219
a0da8069
NN
5220# On Canadian crosses, we'll be searching the right directories for
5221# the previously-installed cross compiler, so don't bother to add
5222# flags for directories within the install tree of the compiler
5223# being built; programs in there won't even run.
5224if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5225 # Search for pre-installed headers if nothing else fits.
bba45b8b 5226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
5227fi
5228
5229if test "x${use_gnu_ld}" = x &&
5230 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5231 # Arrange for us to find uninstalled linker scripts.
b00612cc 5232 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
5233fi
5234
a481dbb7
DD
5235# Search for other target-specific linker scripts and such.
5236case "${target}" in
5237 m32c-*-* )
5238 if test -d ${srcdir}/libgloss/m32c; then
5239 # This is for crt0.o
5240 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5241 # This is for r8c.ld
5242 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5243 # This is for libnosys.a
5244 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5245 fi
5246 ;;
4e206d7e
DB
5247 mep*)
5248 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5249 ;;
5250esac
5251
a0da8069 5252# Makefile fragments.
3e707e94
PB
5253for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5254do
5255 eval fragval=\$$frag
5256 if test $fragval != /dev/null; then
5257 eval $frag=${srcdir}/$fragval
5258 fi
5259done
a0da8069
NN
5260
5261
5262
5263
5264
5265# Miscellanea: directories, flags, etc.
5266
5267
5268
5269
5270
5271
5272
6a9cf61e 5273# Build module lists & subconfigure args.
a0da8069
NN
5274
5275
5276
be01d343
PB
5277# Host module lists & subconfigure args.
5278
5279
5280
5281# Target module lists & subconfigure args.
5282
5283
5284
5285# Build tools.
5286
5287
5288
5289# Generate default definitions for YACC, M4, LEX and other programs that run
5290# on the build machine. These are used if the Makefile can't locate these
5291# programs in objdir.
5292MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5293
5294for ac_prog in 'bison -y' byacc yacc
5295do
c6b750e1 5296 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5297set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5298echo "$as_me:$LINENO: checking for $ac_word" >&5
5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300if test "${ac_cv_prog_YACC+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5302else
5303 if test -n "$YACC"; then
5304 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5305else
c6b750e1
DJ
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_YACC="$ac_prog"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318done
5319
be01d343
PB
5320fi
5321fi
c6b750e1 5322YACC=$ac_cv_prog_YACC
be01d343 5323if test -n "$YACC"; then
c6b750e1
DJ
5324 echo "$as_me:$LINENO: result: $YACC" >&5
5325echo "${ECHO_T}$YACC" >&6
be01d343 5326else
c6b750e1
DJ
5327 echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6
be01d343
PB
5329fi
5330
c6b750e1 5331 test -n "$YACC" && break
be01d343
PB
5332done
5333test -n "$YACC" || YACC="$MISSING bison -y"
5334
5335case " $build_configdirs " in
5336 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5337 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5338esac
5339
5340for ac_prog in bison
5341do
c6b750e1 5342 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5343set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346if test "${ac_cv_prog_BISON+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5348else
5349 if test -n "$BISON"; then
5350 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5351else
c6b750e1
DJ
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_BISON="$ac_prog"
5360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363done
5364done
5365
be01d343
PB
5366fi
5367fi
c6b750e1 5368BISON=$ac_cv_prog_BISON
be01d343 5369if test -n "$BISON"; then
c6b750e1
DJ
5370 echo "$as_me:$LINENO: result: $BISON" >&5
5371echo "${ECHO_T}$BISON" >&6
be01d343 5372else
c6b750e1
DJ
5373 echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
be01d343
PB
5375fi
5376
c6b750e1 5377 test -n "$BISON" && break
be01d343
PB
5378done
5379test -n "$BISON" || BISON="$MISSING bison"
5380
5381case " $build_configdirs " in
5382 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5383esac
5384
5385for ac_prog in gm4 gnum4 m4
5386do
c6b750e1 5387 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5388set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5389echo "$as_me:$LINENO: checking for $ac_word" >&5
5390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391if test "${ac_cv_prog_M4+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5393else
5394 if test -n "$M4"; then
5395 ac_cv_prog_M4="$M4" # Let the user override the test.
5396else
c6b750e1
DJ
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_M4="$ac_prog"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408done
5409done
5410
be01d343
PB
5411fi
5412fi
c6b750e1 5413M4=$ac_cv_prog_M4
be01d343 5414if test -n "$M4"; then
c6b750e1
DJ
5415 echo "$as_me:$LINENO: result: $M4" >&5
5416echo "${ECHO_T}$M4" >&6
be01d343 5417else
c6b750e1
DJ
5418 echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
be01d343
PB
5420fi
5421
c6b750e1 5422 test -n "$M4" && break
be01d343
PB
5423done
5424test -n "$M4" || M4="$MISSING m4"
5425
5426case " $build_configdirs " in
5427 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5428esac
5429
5430for ac_prog in flex lex
5431do
c6b750e1 5432 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5433set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5434echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436if test "${ac_cv_prog_LEX+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5438else
5439 if test -n "$LEX"; then
5440 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5441else
c6b750e1
DJ
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_LEX="$ac_prog"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454done
5455
be01d343
PB
5456fi
5457fi
c6b750e1 5458LEX=$ac_cv_prog_LEX
be01d343 5459if test -n "$LEX"; then
c6b750e1
DJ
5460 echo "$as_me:$LINENO: result: $LEX" >&5
5461echo "${ECHO_T}$LEX" >&6
be01d343 5462else
c6b750e1
DJ
5463 echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
be01d343
PB
5465fi
5466
c6b750e1 5467 test -n "$LEX" && break
be01d343
PB
5468done
5469test -n "$LEX" || LEX="$MISSING flex"
5470
5471case " $build_configdirs " in
5472 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5473 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5474esac
5475
5476for ac_prog in flex
5477do
c6b750e1 5478 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5479set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5480echo "$as_me:$LINENO: checking for $ac_word" >&5
5481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5482if test "${ac_cv_prog_FLEX+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5484else
5485 if test -n "$FLEX"; then
5486 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5487else
c6b750e1
DJ
5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_FLEX="$ac_prog"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499done
5500done
5501
be01d343
PB
5502fi
5503fi
c6b750e1 5504FLEX=$ac_cv_prog_FLEX
be01d343 5505if test -n "$FLEX"; then
c6b750e1
DJ
5506 echo "$as_me:$LINENO: result: $FLEX" >&5
5507echo "${ECHO_T}$FLEX" >&6
be01d343 5508else
c6b750e1
DJ
5509 echo "$as_me:$LINENO: result: no" >&5
5510echo "${ECHO_T}no" >&6
be01d343
PB
5511fi
5512
c6b750e1 5513 test -n "$FLEX" && break
be01d343
PB
5514done
5515test -n "$FLEX" || FLEX="$MISSING flex"
5516
5517case " $build_configdirs " in
5518 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5519esac
5520
5521for ac_prog in makeinfo
5522do
c6b750e1 5523 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5524set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5525echo "$as_me:$LINENO: checking for $ac_word" >&5
5526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5527if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5529else
5530 if test -n "$MAKEINFO"; then
5531 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5532else
c6b750e1
DJ
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_MAKEINFO="$ac_prog"
5541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544done
5545done
5546
be01d343
PB
5547fi
5548fi
c6b750e1 5549MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 5550if test -n "$MAKEINFO"; then
c6b750e1
DJ
5551 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5552echo "${ECHO_T}$MAKEINFO" >&6
be01d343 5553else
c6b750e1
DJ
5554 echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
be01d343
PB
5556fi
5557
c6b750e1 5558 test -n "$MAKEINFO" && break
be01d343
PB
5559done
5560test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5561
5562case " $build_configdirs " in
5563 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5564 *)
5565
a4ef73e9 5566 # For an installed makeinfo, we require it to be from texinfo 4.4 or
be01d343
PB
5567 # higher, else we use the "missing" dummy.
5568 if ${MAKEINFO} --version \
a4ef73e9 5569 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
be01d343
PB
5570 :
5571 else
5572 MAKEINFO="$MISSING makeinfo"
5573 fi
5574 ;;
5575
5576esac
a0da8069 5577
be01d343 5578# FIXME: expect and dejagnu may become build tools?
a0da8069 5579
be01d343
PB
5580for ac_prog in expect
5581do
c6b750e1 5582 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5583set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5584echo "$as_me:$LINENO: checking for $ac_word" >&5
5585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586if test "${ac_cv_prog_EXPECT+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5588else
5589 if test -n "$EXPECT"; then
5590 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5591else
c6b750e1
DJ
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_EXPECT="$ac_prog"
5600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603done
5604done
5605
be01d343
PB
5606fi
5607fi
c6b750e1 5608EXPECT=$ac_cv_prog_EXPECT
be01d343 5609if test -n "$EXPECT"; then
c6b750e1
DJ
5610 echo "$as_me:$LINENO: result: $EXPECT" >&5
5611echo "${ECHO_T}$EXPECT" >&6
be01d343 5612else
c6b750e1
DJ
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
be01d343 5615fi
a0da8069 5616
c6b750e1 5617 test -n "$EXPECT" && break
be01d343
PB
5618done
5619test -n "$EXPECT" || EXPECT="expect"
a0da8069 5620
be01d343
PB
5621case " $configdirs " in
5622 *" expect "*)
5623 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
5624 ;;
5625esac
a0da8069 5626
be01d343
PB
5627for ac_prog in runtest
5628do
c6b750e1 5629 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 5630set dummy $ac_prog; ac_word=$2
c6b750e1
DJ
5631echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633if test "${ac_cv_prog_RUNTEST+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
5635else
5636 if test -n "$RUNTEST"; then
5637 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
5638else
c6b750e1
DJ
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_RUNTEST="$ac_prog"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651done
5652
be01d343
PB
5653fi
5654fi
c6b750e1 5655RUNTEST=$ac_cv_prog_RUNTEST
be01d343 5656if test -n "$RUNTEST"; then
c6b750e1
DJ
5657 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5658echo "${ECHO_T}$RUNTEST" >&6
be01d343 5659else
c6b750e1
DJ
5660 echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
be01d343 5662fi
a0da8069 5663
c6b750e1 5664 test -n "$RUNTEST" && break
be01d343
PB
5665done
5666test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 5667
be01d343
PB
5668case " $configdirs " in
5669 *" dejagnu "*)
6b89cc21 5670 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
5671 ;;
5672esac
a0da8069
NN
5673
5674
a0da8069 5675# Host tools.
859789af
AC
5676ncn_tool_prefix=
5677test -n "$host_alias" && ncn_tool_prefix=$host_alias-
5678ncn_target_tool_prefix=
5679test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
5680
05cbd757
PB
5681 for ncn_progname in ar; do
5682 if test -n "$ncn_tool_prefix"; then
5683 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5684set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5685echo "$as_me:$LINENO: checking for $ac_word" >&5
5686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5687if test "${ac_cv_prog_AR+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5689else
5690 if test -n "$AR"; then
5691 ac_cv_prog_AR="$AR" # Let the user override the test.
5692else
c6b750e1
DJ
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704done
5705done
5706
859789af
AC
5707fi
5708fi
c6b750e1 5709AR=$ac_cv_prog_AR
859789af 5710if test -n "$AR"; then
c6b750e1
DJ
5711 echo "$as_me:$LINENO: result: $AR" >&5
5712echo "${ECHO_T}$AR" >&6
859789af 5713else
c6b750e1
DJ
5714 echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
859789af
AC
5716fi
5717
05cbd757
PB
5718 fi
5719 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
5720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5721set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5722echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724if test "${ac_cv_prog_AR+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5726else
05cbd757
PB
5727 if test -n "$AR"; then
5728 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 5729else
c6b750e1
DJ
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_AR="${ncn_progname}"
5738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5740 fi
5741done
5742done
5743
859789af
AC
5744fi
5745fi
c6b750e1 5746AR=$ac_cv_prog_AR
05cbd757 5747if test -n "$AR"; then
c6b750e1
DJ
5748 echo "$as_me:$LINENO: result: $AR" >&5
5749echo "${ECHO_T}$AR" >&6
859789af 5750else
c6b750e1
DJ
5751 echo "$as_me:$LINENO: result: no" >&5
5752echo "${ECHO_T}no" >&6
859789af 5753fi
c6b750e1 5754
05cbd757
PB
5755 fi
5756 test -n "$ac_cv_prog_AR" && break
5757done
5758
5759if test -z "$ac_cv_prog_AR" ; then
5760 set dummy ar
5761 if test $build = $host ; then
5762 AR="$2"
859789af 5763 else
05cbd757 5764 AR="${ncn_tool_prefix}$2"
859789af 5765 fi
859789af
AC
5766fi
5767
05cbd757
PB
5768 for ncn_progname in as; do
5769 if test -n "$ncn_tool_prefix"; then
5770 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5771set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5772echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774if test "${ac_cv_prog_AS+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5776else
5777 if test -n "$AS"; then
5778 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791done
5792done
5793
859789af
AC
5794fi
5795fi
c6b750e1 5796AS=$ac_cv_prog_AS
859789af 5797if test -n "$AS"; then
c6b750e1
DJ
5798 echo "$as_me:$LINENO: result: $AS" >&5
5799echo "${ECHO_T}$AS" >&6
859789af 5800else
c6b750e1
DJ
5801 echo "$as_me:$LINENO: result: no" >&5
5802echo "${ECHO_T}no" >&6
859789af
AC
5803fi
5804
05cbd757
PB
5805 fi
5806 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
5807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5808set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5809echo "$as_me:$LINENO: checking for $ac_word" >&5
5810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5811if test "${ac_cv_prog_AS+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5813else
05cbd757
PB
5814 if test -n "$AS"; then
5815 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 5816else
c6b750e1
DJ
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_AS="${ncn_progname}"
5825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829done
5830
859789af
AC
5831fi
5832fi
c6b750e1 5833AS=$ac_cv_prog_AS
05cbd757 5834if test -n "$AS"; then
c6b750e1
DJ
5835 echo "$as_me:$LINENO: result: $AS" >&5
5836echo "${ECHO_T}$AS" >&6
859789af 5837else
c6b750e1
DJ
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
859789af 5840fi
c6b750e1 5841
05cbd757
PB
5842 fi
5843 test -n "$ac_cv_prog_AS" && break
5844done
5845
5846if test -z "$ac_cv_prog_AS" ; then
5847 set dummy as
5848 if test $build = $host ; then
5849 AS="$2"
859789af 5850 else
05cbd757 5851 AS="${ncn_tool_prefix}$2"
859789af 5852 fi
859789af
AC
5853fi
5854
05cbd757
PB
5855 for ncn_progname in dlltool; do
5856 if test -n "$ncn_tool_prefix"; then
5857 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5858set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5859echo "$as_me:$LINENO: checking for $ac_word" >&5
5860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5863else
5864 if test -n "$DLLTOOL"; then
5865 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5866else
c6b750e1
DJ
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879done
5880
859789af
AC
5881fi
5882fi
c6b750e1 5883DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 5884if test -n "$DLLTOOL"; then
c6b750e1
DJ
5885 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5886echo "${ECHO_T}$DLLTOOL" >&6
859789af 5887else
c6b750e1
DJ
5888 echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
859789af
AC
5890fi
5891
05cbd757
PB
5892 fi
5893 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
5894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5895set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5896echo "$as_me:$LINENO: checking for $ac_word" >&5
5897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5898if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5900else
05cbd757
PB
5901 if test -n "$DLLTOOL"; then
5902 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 5903else
c6b750e1
DJ
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_DLLTOOL="${ncn_progname}"
5912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915done
5916done
5917
859789af
AC
5918fi
5919fi
c6b750e1 5920DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 5921if test -n "$DLLTOOL"; then
c6b750e1
DJ
5922 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5923echo "${ECHO_T}$DLLTOOL" >&6
859789af 5924else
c6b750e1
DJ
5925 echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
859789af 5927fi
c6b750e1 5928
05cbd757
PB
5929 fi
5930 test -n "$ac_cv_prog_DLLTOOL" && break
5931done
5932
5933if test -z "$ac_cv_prog_DLLTOOL" ; then
5934 set dummy dlltool
5935 if test $build = $host ; then
5936 DLLTOOL="$2"
859789af 5937 else
05cbd757 5938 DLLTOOL="${ncn_tool_prefix}$2"
859789af 5939 fi
859789af
AC
5940fi
5941
05cbd757
PB
5942 for ncn_progname in ld; do
5943 if test -n "$ncn_tool_prefix"; then
5944 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
5945set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
5946echo "$as_me:$LINENO: checking for $ac_word" >&5
5947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948if test "${ac_cv_prog_LD+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
5950else
5951 if test -n "$LD"; then
5952 ac_cv_prog_LD="$LD" # Let the user override the test.
5953else
c6b750e1
DJ
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965done
5966done
5967
859789af
AC
5968fi
5969fi
c6b750e1 5970LD=$ac_cv_prog_LD
859789af 5971if test -n "$LD"; then
c6b750e1
DJ
5972 echo "$as_me:$LINENO: result: $LD" >&5
5973echo "${ECHO_T}$LD" >&6
859789af 5974else
c6b750e1
DJ
5975 echo "$as_me:$LINENO: result: no" >&5
5976echo "${ECHO_T}no" >&6
859789af
AC
5977fi
5978
05cbd757
PB
5979 fi
5980 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
5981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5982set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
5983echo "$as_me:$LINENO: checking for $ac_word" >&5
5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5985if test "${ac_cv_prog_LD+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 5987else
05cbd757
PB
5988 if test -n "$LD"; then
5989 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 5990else
c6b750e1
DJ
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_LD="${ncn_progname}"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002done
6003done
6004
859789af
AC
6005fi
6006fi
c6b750e1 6007LD=$ac_cv_prog_LD
05cbd757 6008if test -n "$LD"; then
c6b750e1
DJ
6009 echo "$as_me:$LINENO: result: $LD" >&5
6010echo "${ECHO_T}$LD" >&6
859789af 6011else
c6b750e1
DJ
6012 echo "$as_me:$LINENO: result: no" >&5
6013echo "${ECHO_T}no" >&6
859789af 6014fi
c6b750e1 6015
05cbd757
PB
6016 fi
6017 test -n "$ac_cv_prog_LD" && break
6018done
6019
6020if test -z "$ac_cv_prog_LD" ; then
6021 set dummy ld
6022 if test $build = $host ; then
6023 LD="$2"
859789af 6024 else
05cbd757 6025 LD="${ncn_tool_prefix}$2"
859789af 6026 fi
859789af
AC
6027fi
6028
be01d343
PB
6029 for ncn_progname in lipo; do
6030 if test -n "$ncn_tool_prefix"; then
6031 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6032set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6033echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6035if test "${ac_cv_prog_LIPO+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6037else
6038 if test -n "$LIPO"; then
6039 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6040else
c6b750e1
DJ
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054
be01d343
PB
6055fi
6056fi
c6b750e1 6057LIPO=$ac_cv_prog_LIPO
be01d343 6058if test -n "$LIPO"; then
c6b750e1
DJ
6059 echo "$as_me:$LINENO: result: $LIPO" >&5
6060echo "${ECHO_T}$LIPO" >&6
be01d343 6061else
c6b750e1
DJ
6062 echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
be01d343
PB
6064fi
6065
6066 fi
6067 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6069set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6070echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6072if test "${ac_cv_prog_LIPO+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6074else
6075 if test -n "$LIPO"; then
6076 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6077else
c6b750e1
DJ
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_LIPO="${ncn_progname}"
6086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089done
6090done
6091
be01d343
PB
6092fi
6093fi
c6b750e1 6094LIPO=$ac_cv_prog_LIPO
be01d343 6095if test -n "$LIPO"; then
c6b750e1
DJ
6096 echo "$as_me:$LINENO: result: $LIPO" >&5
6097echo "${ECHO_T}$LIPO" >&6
be01d343 6098else
c6b750e1
DJ
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
be01d343 6101fi
c6b750e1 6102
be01d343
PB
6103 fi
6104 test -n "$ac_cv_prog_LIPO" && break
6105done
6106
6107if test -z "$ac_cv_prog_LIPO" ; then
6108 set dummy lipo
6109 if test $build = $host ; then
6110 LIPO="$2"
6111 else
6112 LIPO="${ncn_tool_prefix}$2"
6113 fi
6114fi
6115
05cbd757
PB
6116 for ncn_progname in nm; do
6117 if test -n "$ncn_tool_prefix"; then
6118 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6119set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6120echo "$as_me:$LINENO: checking for $ac_word" >&5
6121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6122if test "${ac_cv_prog_NM+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6124else
6125 if test -n "$NM"; then
6126 ac_cv_prog_NM="$NM" # Let the user override the test.
6127else
c6b750e1
DJ
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_NM="${ncn_tool_prefix}${ncn_progname}"
6136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139done
6140done
6141
859789af
AC
6142fi
6143fi
c6b750e1 6144NM=$ac_cv_prog_NM
859789af 6145if test -n "$NM"; then
c6b750e1
DJ
6146 echo "$as_me:$LINENO: result: $NM" >&5
6147echo "${ECHO_T}$NM" >&6
859789af 6148else
c6b750e1
DJ
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
859789af
AC
6151fi
6152
05cbd757
PB
6153 fi
6154 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6156set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6157echo "$as_me:$LINENO: checking for $ac_word" >&5
6158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6159if test "${ac_cv_prog_NM+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6161else
05cbd757
PB
6162 if test -n "$NM"; then
6163 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 6164else
c6b750e1
DJ
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_NM="${ncn_progname}"
6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177done
6178
859789af
AC
6179fi
6180fi
c6b750e1 6181NM=$ac_cv_prog_NM
05cbd757 6182if test -n "$NM"; then
c6b750e1
DJ
6183 echo "$as_me:$LINENO: result: $NM" >&5
6184echo "${ECHO_T}$NM" >&6
859789af 6185else
c6b750e1
DJ
6186 echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6
859789af 6188fi
c6b750e1 6189
05cbd757
PB
6190 fi
6191 test -n "$ac_cv_prog_NM" && break
6192done
6193
6194if test -z "$ac_cv_prog_NM" ; then
6195 set dummy nm
6196 if test $build = $host ; then
6197 NM="$2"
859789af 6198 else
05cbd757 6199 NM="${ncn_tool_prefix}$2"
859789af 6200 fi
859789af
AC
6201fi
6202
05cbd757
PB
6203 for ncn_progname in ranlib; do
6204 if test -n "$ncn_tool_prefix"; then
6205 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6206set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6207echo "$as_me:$LINENO: checking for $ac_word" >&5
6208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6209if test "${ac_cv_prog_RANLIB+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6211else
6212 if test -n "$RANLIB"; then
6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6214else
c6b750e1
DJ
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_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226done
6227done
6228
859789af
AC
6229fi
6230fi
c6b750e1 6231RANLIB=$ac_cv_prog_RANLIB
859789af 6232if test -n "$RANLIB"; then
c6b750e1
DJ
6233 echo "$as_me:$LINENO: result: $RANLIB" >&5
6234echo "${ECHO_T}$RANLIB" >&6
859789af 6235else
c6b750e1
DJ
6236 echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6
859789af
AC
6238fi
6239
05cbd757
PB
6240 fi
6241 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6243set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6244echo "$as_me:$LINENO: checking for $ac_word" >&5
6245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6246if test "${ac_cv_prog_RANLIB+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6248else
05cbd757
PB
6249 if test -n "$RANLIB"; then
6250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 6251else
c6b750e1
DJ
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_RANLIB="${ncn_progname}"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264done
6265
859789af
AC
6266fi
6267fi
c6b750e1 6268RANLIB=$ac_cv_prog_RANLIB
05cbd757 6269if test -n "$RANLIB"; then
c6b750e1
DJ
6270 echo "$as_me:$LINENO: result: $RANLIB" >&5
6271echo "${ECHO_T}$RANLIB" >&6
859789af 6272else
c6b750e1
DJ
6273 echo "$as_me:$LINENO: result: no" >&5
6274echo "${ECHO_T}no" >&6
859789af 6275fi
c6b750e1 6276
859789af 6277 fi
05cbd757
PB
6278 test -n "$ac_cv_prog_RANLIB" && break
6279done
6280
6281if test -z "$ac_cv_prog_RANLIB" ; then
6282 RANLIB=":"
859789af
AC
6283fi
6284
be01d343
PB
6285 for ncn_progname in strip; do
6286 if test -n "$ncn_tool_prefix"; then
6287 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6288set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6289echo "$as_me:$LINENO: checking for $ac_word" >&5
6290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291if test "${ac_cv_prog_STRIP+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6293else
6294 if test -n "$STRIP"; then
6295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6296else
c6b750e1
DJ
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308done
6309done
6310
be01d343
PB
6311fi
6312fi
c6b750e1 6313STRIP=$ac_cv_prog_STRIP
be01d343 6314if test -n "$STRIP"; then
c6b750e1
DJ
6315 echo "$as_me:$LINENO: result: $STRIP" >&5
6316echo "${ECHO_T}$STRIP" >&6
be01d343 6317else
c6b750e1
DJ
6318 echo "$as_me:$LINENO: result: no" >&5
6319echo "${ECHO_T}no" >&6
be01d343
PB
6320fi
6321
6322 fi
6323 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6325set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6326echo "$as_me:$LINENO: checking for $ac_word" >&5
6327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6328if test "${ac_cv_prog_STRIP+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
be01d343
PB
6330else
6331 if test -n "$STRIP"; then
6332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6333else
c6b750e1
DJ
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_STRIP="${ncn_progname}"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345done
6346done
6347
be01d343
PB
6348fi
6349fi
c6b750e1 6350STRIP=$ac_cv_prog_STRIP
be01d343 6351if test -n "$STRIP"; then
c6b750e1
DJ
6352 echo "$as_me:$LINENO: result: $STRIP" >&5
6353echo "${ECHO_T}$STRIP" >&6
be01d343 6354else
c6b750e1
DJ
6355 echo "$as_me:$LINENO: result: no" >&5
6356echo "${ECHO_T}no" >&6
be01d343 6357fi
c6b750e1 6358
be01d343
PB
6359 fi
6360 test -n "$ac_cv_prog_STRIP" && break
6361done
6362
6363if test -z "$ac_cv_prog_STRIP" ; then
6364 STRIP=":"
6365fi
6366
05cbd757
PB
6367 for ncn_progname in windres; do
6368 if test -n "$ncn_tool_prefix"; then
6369 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6370set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6371echo "$as_me:$LINENO: checking for $ac_word" >&5
6372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6373if test "${ac_cv_prog_WINDRES+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6375else
6376 if test -n "$WINDRES"; then
6377 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6378else
c6b750e1
DJ
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390done
6391done
6392
859789af
AC
6393fi
6394fi
c6b750e1 6395WINDRES=$ac_cv_prog_WINDRES
859789af 6396if test -n "$WINDRES"; then
c6b750e1
DJ
6397 echo "$as_me:$LINENO: result: $WINDRES" >&5
6398echo "${ECHO_T}$WINDRES" >&6
859789af 6399else
c6b750e1
DJ
6400 echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6
859789af
AC
6402fi
6403
05cbd757
PB
6404 fi
6405 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6407set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6408echo "$as_me:$LINENO: checking for $ac_word" >&5
6409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6410if test "${ac_cv_prog_WINDRES+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6412else
05cbd757
PB
6413 if test -n "$WINDRES"; then
6414 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 6415else
c6b750e1
DJ
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_WINDRES="${ncn_progname}"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428done
6429
859789af
AC
6430fi
6431fi
c6b750e1 6432WINDRES=$ac_cv_prog_WINDRES
05cbd757 6433if test -n "$WINDRES"; then
c6b750e1
DJ
6434 echo "$as_me:$LINENO: result: $WINDRES" >&5
6435echo "${ECHO_T}$WINDRES" >&6
859789af 6436else
c6b750e1
DJ
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
859789af 6439fi
c6b750e1 6440
05cbd757
PB
6441 fi
6442 test -n "$ac_cv_prog_WINDRES" && break
6443done
6444
6445if test -z "$ac_cv_prog_WINDRES" ; then
6446 set dummy windres
6447 if test $build = $host ; then
6448 WINDRES="$2"
859789af 6449 else
05cbd757 6450 WINDRES="${ncn_tool_prefix}$2"
859789af 6451 fi
859789af
AC
6452fi
6453
05cbd757
PB
6454 for ncn_progname in objcopy; do
6455 if test -n "$ncn_tool_prefix"; then
6456 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6457set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6458echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6462else
6463 if test -n "$OBJCOPY"; then
6464 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6465else
c6b750e1
DJ
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477done
6478done
6479
859789af
AC
6480fi
6481fi
c6b750e1 6482OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 6483if test -n "$OBJCOPY"; then
c6b750e1
DJ
6484 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6485echo "${ECHO_T}$OBJCOPY" >&6
859789af 6486else
c6b750e1
DJ
6487 echo "$as_me:$LINENO: result: no" >&5
6488echo "${ECHO_T}no" >&6
859789af
AC
6489fi
6490
05cbd757
PB
6491 fi
6492 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6494set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6495echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6497if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6499else
05cbd757
PB
6500 if test -n "$OBJCOPY"; then
6501 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 6502else
c6b750e1
DJ
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_OBJCOPY="${ncn_progname}"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6513 fi
6514done
6515done
6516
859789af
AC
6517fi
6518fi
c6b750e1 6519OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 6520if test -n "$OBJCOPY"; then
c6b750e1
DJ
6521 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6522echo "${ECHO_T}$OBJCOPY" >&6
859789af 6523else
c6b750e1
DJ
6524 echo "$as_me:$LINENO: result: no" >&5
6525echo "${ECHO_T}no" >&6
859789af 6526fi
c6b750e1 6527
05cbd757
PB
6528 fi
6529 test -n "$ac_cv_prog_OBJCOPY" && break
6530done
6531
6532if test -z "$ac_cv_prog_OBJCOPY" ; then
6533 set dummy objcopy
6534 if test $build = $host ; then
6535 OBJCOPY="$2"
859789af 6536 else
05cbd757 6537 OBJCOPY="${ncn_tool_prefix}$2"
859789af 6538 fi
859789af
AC
6539fi
6540
05cbd757
PB
6541 for ncn_progname in objdump; do
6542 if test -n "$ncn_tool_prefix"; then
6543 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6544set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6545echo "$as_me:$LINENO: checking for $ac_word" >&5
6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6547if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af
AC
6549else
6550 if test -n "$OBJDUMP"; then
6551 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6552else
c6b750e1
DJ
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564done
6565done
6566
859789af
AC
6567fi
6568fi
c6b750e1 6569OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 6570if test -n "$OBJDUMP"; then
c6b750e1
DJ
6571 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6572echo "${ECHO_T}$OBJDUMP" >&6
859789af 6573else
c6b750e1
DJ
6574 echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6
859789af
AC
6576fi
6577
05cbd757
PB
6578 fi
6579 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6581set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6582echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6584if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6586else
05cbd757
PB
6587 if test -n "$OBJDUMP"; then
6588 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 6589else
c6b750e1
DJ
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_OBJDUMP="${ncn_progname}"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602done
6603
859789af
AC
6604fi
6605fi
c6b750e1 6606OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 6607if test -n "$OBJDUMP"; then
c6b750e1
DJ
6608 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6609echo "${ECHO_T}$OBJDUMP" >&6
859789af 6610else
c6b750e1
DJ
6611 echo "$as_me:$LINENO: result: no" >&5
6612echo "${ECHO_T}no" >&6
859789af 6613fi
c6b750e1 6614
05cbd757
PB
6615 fi
6616 test -n "$ac_cv_prog_OBJDUMP" && break
6617done
6618
6619if test -z "$ac_cv_prog_OBJDUMP" ; then
6620 set dummy objdump
6621 if test $build = $host ; then
6622 OBJDUMP="$2"
859789af 6623 else
05cbd757 6624 OBJDUMP="${ncn_tool_prefix}$2"
859789af 6625 fi
859789af
AC
6626fi
6627
a0da8069
NN
6628
6629
6630
6631
6632
6633
be01d343 6634# Target tools.
c6b750e1 6635
2429c060
PB
6636# Check whether --with-build-time-tools or --without-build-time-tools was given.
6637if test "${with_build_time_tools+set}" = set; then
6638 withval="$with_build_time_tools"
6639 case x"$withval" in
6640 x/*) ;;
6641 *)
6642 with_build_time_tools=
c6b750e1
DJ
6643 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
6644echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
6645 ;;
6646 esac
859789af 6647else
2429c060 6648 with_build_time_tools=
c6b750e1 6649fi;
859789af 6650
2429c060
PB
6651 if test -n "$with_build_time_tools"; then
6652 for ncn_progname in cc gcc; do
c6b750e1
DJ
6653 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6654echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6655 if test -x $with_build_time_tools/${ncn_progname}; then
6656 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
cac3d6c4 6659 break
2429c060 6660 else
c6b750e1
DJ
6661 echo "$as_me:$LINENO: result: no" >&5
6662echo "${ECHO_T}no" >&6
cac3d6c4
CM
6663 fi
6664 done
55db4b87
PB
6665fi
6666
2429c060
PB
6667if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
6668 for ncn_progname in cc gcc; do
6669 if test -n "$ncn_target_tool_prefix"; then
6670 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6671set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6672echo "$as_me:$LINENO: checking for $ac_word" >&5
6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6674if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
6676else
6677 if test -n "$CC_FOR_TARGET"; then
6678 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
6679else
c6b750e1
DJ
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691done
6692done
6693
55db4b87
PB
6694fi
6695fi
c6b750e1 6696CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 6697if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
6698 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6699echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 6700else
c6b750e1
DJ
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
55db4b87
PB
6703fi
6704
2429c060
PB
6705 fi
6706 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
6707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6708set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6709echo "$as_me:$LINENO: checking for $ac_word" >&5
6710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6711if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 6713else
05cbd757
PB
6714 if test -n "$CC_FOR_TARGET"; then
6715 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 6716else
c6b750e1
DJ
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729done
6730
55db4b87
PB
6731fi
6732fi
c6b750e1 6733CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 6734if test -n "$CC_FOR_TARGET"; then
c6b750e1
DJ
6735 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
6736echo "${ECHO_T}$CC_FOR_TARGET" >&6
55db4b87 6737else
c6b750e1
DJ
6738 echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6
55db4b87 6740fi
c6b750e1 6741
2429c060
PB
6742 fi
6743 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
6744 done
6745fi
c6b750e1 6746
05cbd757
PB
6747if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
6748 set dummy cc gcc
6749 if test $build = $target ; then
6750 CC_FOR_TARGET="$2"
55db4b87 6751 else
05cbd757 6752 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 6753 fi
55db4b87
PB
6754fi
6755
2429c060
PB
6756 if test -n "$with_build_time_tools"; then
6757 for ncn_progname in c++ g++ cxx gxx; do
c6b750e1
DJ
6758 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6759echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6760 if test -x $with_build_time_tools/${ncn_progname}; then
6761 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6762 echo "$as_me:$LINENO: result: yes" >&5
6763echo "${ECHO_T}yes" >&6
2429c060
PB
6764 break
6765 else
c6b750e1
DJ
6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
2429c060
PB
6768 fi
6769 done
6770fi
6771
6772if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
6773 for ncn_progname in c++ g++ cxx gxx; do
6774 if test -n "$ncn_target_tool_prefix"; then
6775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6777echo "$as_me:$LINENO: checking for $ac_word" >&5
6778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
6781else
6782 if test -n "$CXX_FOR_TARGET"; then
6783 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
6784else
c6b750e1
DJ
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796done
6797done
6798
55db4b87
PB
6799fi
6800fi
c6b750e1 6801CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 6802if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
6803 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6804echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 6805else
c6b750e1
DJ
6806 echo "$as_me:$LINENO: result: no" >&5
6807echo "${ECHO_T}no" >&6
55db4b87
PB
6808fi
6809
2429c060
PB
6810 fi
6811 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
6812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6813set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6814echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6816if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 6818else
05cbd757
PB
6819 if test -n "$CXX_FOR_TARGET"; then
6820 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 6821else
c6b750e1
DJ
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834done
6835
55db4b87
PB
6836fi
6837fi
c6b750e1 6838CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 6839if test -n "$CXX_FOR_TARGET"; then
c6b750e1
DJ
6840 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
6841echo "${ECHO_T}$CXX_FOR_TARGET" >&6
55db4b87 6842else
c6b750e1
DJ
6843 echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6
55db4b87 6845fi
c6b750e1 6846
2429c060
PB
6847 fi
6848 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
6849 done
6850fi
c6b750e1 6851
05cbd757
PB
6852if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
6853 set dummy c++ g++ cxx gxx
6854 if test $build = $target ; then
6855 CXX_FOR_TARGET="$2"
55db4b87 6856 else
05cbd757 6857 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 6858 fi
859789af
AC
6859fi
6860
2429c060
PB
6861 if test -n "$with_build_time_tools"; then
6862 for ncn_progname in gcc; do
c6b750e1
DJ
6863 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6864echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6865 if test -x $with_build_time_tools/${ncn_progname}; then
6866 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6867 echo "$as_me:$LINENO: result: yes" >&5
6868echo "${ECHO_T}yes" >&6
2429c060
PB
6869 break
6870 else
c6b750e1
DJ
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
2429c060
PB
6873 fi
6874 done
6875fi
6876
6877if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
6878 for ncn_progname in gcc; do
6879 if test -n "$ncn_target_tool_prefix"; then
6880 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6881set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6882echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6884if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 6886else
2429c060
PB
6887 if test -n "$GCC_FOR_TARGET"; then
6888 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 6889else
c6b750e1
DJ
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901done
6902done
6903
55db4b87
PB
6904fi
6905fi
c6b750e1 6906GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 6907if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
6908 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6909echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 6910else
c6b750e1
DJ
6911 echo "$as_me:$LINENO: result: no" >&5
6912echo "${ECHO_T}no" >&6
55db4b87
PB
6913fi
6914
2429c060
PB
6915 fi
6916 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
6917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 6918set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
6919echo "$as_me:$LINENO: checking for $ac_word" >&5
6920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6921if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 6923else
05cbd757
PB
6924 if test -n "$GCC_FOR_TARGET"; then
6925 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 6926else
c6b750e1
DJ
6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928for as_dir in $PATH
6929do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
6935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938done
6939done
6940
55db4b87
PB
6941fi
6942fi
c6b750e1 6943GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 6944if test -n "$GCC_FOR_TARGET"; then
c6b750e1
DJ
6945 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
6946echo "${ECHO_T}$GCC_FOR_TARGET" >&6
55db4b87 6947else
c6b750e1
DJ
6948 echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6
55db4b87 6950fi
c6b750e1 6951
2429c060
PB
6952 fi
6953 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
6954 done
6955fi
c6b750e1 6956
05cbd757
PB
6957if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
6958 GCC_FOR_TARGET="${CC_FOR_TARGET}"
55db4b87
PB
6959fi
6960
2429c060
PB
6961 if test -n "$with_build_time_tools"; then
6962 for ncn_progname in gcj; do
c6b750e1
DJ
6963 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
6964echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
6965 if test -x $with_build_time_tools/${ncn_progname}; then
6966 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
6967 echo "$as_me:$LINENO: result: yes" >&5
6968echo "${ECHO_T}yes" >&6
2429c060
PB
6969 break
6970 else
c6b750e1
DJ
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
2429c060
PB
6973 fi
6974 done
6975fi
6976
6977if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
6978 for ncn_progname in gcj; do
6979 if test -n "$ncn_target_tool_prefix"; then
6980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 6981set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
6982echo "$as_me:$LINENO: checking for $ac_word" >&5
6983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6984if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
6986else
6987 if test -n "$GCJ_FOR_TARGET"; then
6988 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
6989else
c6b750e1
DJ
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001done
7002done
7003
55db4b87
PB
7004fi
7005fi
c6b750e1 7006GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
55db4b87 7007if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
7008 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7009echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 7010else
c6b750e1
DJ
7011 echo "$as_me:$LINENO: result: no" >&5
7012echo "${ECHO_T}no" >&6
55db4b87
PB
7013fi
7014
2429c060
PB
7015 fi
7016 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7018set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7019echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7021if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7023else
05cbd757
PB
7024 if test -n "$GCJ_FOR_TARGET"; then
7025 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
55db4b87 7026else
c6b750e1
DJ
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038done
7039done
7040
55db4b87
PB
7041fi
7042fi
c6b750e1 7043GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
05cbd757 7044if test -n "$GCJ_FOR_TARGET"; then
c6b750e1
DJ
7045 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7046echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
55db4b87 7047else
c6b750e1
DJ
7048 echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6
55db4b87 7050fi
c6b750e1 7051
2429c060
PB
7052 fi
7053 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7054 done
7055fi
c6b750e1 7056
05cbd757
PB
7057if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7058 set dummy gcj
7059 if test $build = $target ; then
7060 GCJ_FOR_TARGET="$2"
55db4b87 7061 else
05cbd757 7062 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7063 fi
55db4b87
PB
7064fi
7065
2429c060
PB
7066 if test -n "$with_build_time_tools"; then
7067 for ncn_progname in gfortran; do
c6b750e1
DJ
7068 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7069echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7070 if test -x $with_build_time_tools/${ncn_progname}; then
7071 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7072 echo "$as_me:$LINENO: result: yes" >&5
7073echo "${ECHO_T}yes" >&6
2429c060
PB
7074 break
7075 else
c6b750e1
DJ
7076 echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6
2429c060
PB
7078 fi
7079 done
7080fi
7081
7082if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7083 for ncn_progname in gfortran; do
7084 if test -n "$ncn_target_tool_prefix"; then
7085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7086set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7087echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7089if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87
PB
7091else
7092 if test -n "$GFORTRAN_FOR_TARGET"; then
7093 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7094else
c6b750e1
DJ
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106done
7107done
7108
55db4b87
PB
7109fi
7110fi
c6b750e1 7111GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 7112if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7113 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7114echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7115else
c6b750e1
DJ
7116 echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6
55db4b87
PB
7118fi
7119
2429c060
PB
7120 fi
7121 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 7123set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7124echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
55db4b87 7128else
05cbd757 7129 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7130 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145
55db4b87
PB
7146fi
7147fi
c6b750e1 7148GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 7149if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
7150 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7151echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
55db4b87 7152else
c6b750e1
DJ
7153 echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6
55db4b87 7155fi
c6b750e1 7156
2429c060
PB
7157 fi
7158 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7159 done
7160fi
c6b750e1 7161
05cbd757
PB
7162if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7163 set dummy gfortran
7164 if test $build = $target ; then
7165 GFORTRAN_FOR_TARGET="$2"
55db4b87 7166 else
05cbd757 7167 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 7168 fi
859789af
AC
7169fi
7170
2429c060
PB
7171
7172
7173# The user is always right.
7174if test "${PATH_SEPARATOR+set}" != set; then
7175 echo "#! /bin/sh" >conf$$.sh
7176 echo "exit 0" >>conf$$.sh
7177 chmod +x conf$$.sh
7178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7179 PATH_SEPARATOR=';'
7180 else
c6b750e1 7181 PATH_SEPARATOR=:
2429c060
PB
7182 fi
7183 rm -f conf$$.sh
7184fi
7185
7186
7187
7188if test "x$exec_prefix" = xNONE; then
7189 if test "x$prefix" = xNONE; then
7190 gcc_cv_tool_prefix=$ac_default_prefix
7191 else
7192 gcc_cv_tool_prefix=$prefix
7193 fi
859789af 7194else
2429c060
PB
7195 gcc_cv_tool_prefix=$exec_prefix
7196fi
7197
7198# If there is no compiler in the tree, use the PATH only. In any
7199# case, if there is no compiler in the tree nobody should use
7200# AS_FOR_TARGET and LD_FOR_TARGET.
7201if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7202 gcc_version=`cat $srcdir/gcc/BASE-VER`
7203 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7204 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7205 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7206 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7207 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7208 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
859789af 7209else
2429c060 7210 gcc_cv_tool_dirs=
859789af 7211fi
2429c060
PB
7212
7213if test x$build = x$target && test -n "$md_exec_prefix"; then
7214 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
859789af 7215fi
2429c060
PB
7216
7217
7218
7219cat > conftest.c << \EOF
7220#ifdef __GNUC__
7221 gcc_yay;
7222#endif
7223EOF
7224if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7225 have_gcc_for_target=yes
859789af 7226else
2429c060
PB
7227 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7228 have_gcc_for_target=no
859789af 7229fi
2429c060
PB
7230rm conftest.c
7231
7232
7233
859789af 7234
2429c060
PB
7235if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7236 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7237 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7238echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7239 if test -x $with_build_time_tools/ar; then
7240 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7241 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c6b750e1
DJ
7242 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7243echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
3a35eeb3 7244 else
c6b750e1
DJ
7245 echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6
3a35eeb3 7247 fi
2429c060
PB
7248 elif test $build != $host && test $have_gcc_for_target = yes; then
7249 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7250 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7251 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 7252 fi
2429c060 7253fi
c6b750e1 7254if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7255 # Extract the first word of "ar", so it can be a program name with args.
7256set dummy ar; ac_word=$2
c6b750e1
DJ
7257echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7259if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 7261else
c6b750e1
DJ
7262 case $AR_FOR_TARGET in
7263 [\\/]* | ?:[\\/]*)
2429c060
PB
7264 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7265 ;;
2429c060 7266 *)
c6b750e1
DJ
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $gcc_cv_tool_dirs
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279done
7280
2429c060
PB
7281 ;;
7282esac
859789af 7283fi
c6b750e1
DJ
7284AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7285
2429c060 7286if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7287 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7288echo "${ECHO_T}$AR_FOR_TARGET" >&6
859789af 7289else
c6b750e1
DJ
7290 echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6
859789af 7292fi
05cbd757 7293
2429c060
PB
7294fi
7295if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7296 if test -n "$with_build_time_tools"; then
7297 for ncn_progname in ar; do
c6b750e1
DJ
7298 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7299echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7300 if test -x $with_build_time_tools/${ncn_progname}; then
7301 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7302 echo "$as_me:$LINENO: result: yes" >&5
7303echo "${ECHO_T}yes" >&6
2429c060
PB
7304 break
7305 else
c6b750e1
DJ
7306 echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6
2429c060
PB
7308 fi
7309 done
859789af
AC
7310fi
7311
2429c060
PB
7312if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7313 for ncn_progname in ar; do
7314 if test -n "$ncn_target_tool_prefix"; then
7315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 7316set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7317echo "$as_me:$LINENO: checking for $ac_word" >&5
7318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7319if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7321else
2429c060
PB
7322 if test -n "$AR_FOR_TARGET"; then
7323 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 7324else
c6b750e1
DJ
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
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_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336done
7337done
7338
7e0f7140
GK
7339fi
7340fi
c6b750e1 7341AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7342if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7343 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7344echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7345else
c6b750e1
DJ
7346 echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6
7e0f7140
GK
7348fi
7349
2429c060
PB
7350 fi
7351 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 7353set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7354echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7356if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140 7358else
2429c060
PB
7359 if test -n "$AR_FOR_TARGET"; then
7360 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 7361else
c6b750e1
DJ
7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363for as_dir in $PATH
7364do
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7372 fi
7373done
7374done
7375
7e0f7140
GK
7376fi
7377fi
c6b750e1 7378AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 7379if test -n "$AR_FOR_TARGET"; then
c6b750e1
DJ
7380 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7381echo "${ECHO_T}$AR_FOR_TARGET" >&6
7e0f7140 7382else
c6b750e1
DJ
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7e0f7140 7385fi
c6b750e1 7386
2429c060
PB
7387 fi
7388 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7389 done
7390fi
c6b750e1 7391
2429c060
PB
7392if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7393 set dummy ar
7e0f7140 7394 if test $build = $target ; then
2429c060 7395 AR_FOR_TARGET="$2"
7e0f7140 7396 else
2429c060 7397 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140
GK
7398 fi
7399fi
7400
3a35eeb3
PB
7401else
7402 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
7403fi
7404
7405
7406
7407
7408if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7409 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7410 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7411echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7412 if test -x $with_build_time_tools/as; then
7413 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7414 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c6b750e1
DJ
7415 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7416echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
3a35eeb3 7417 else
c6b750e1
DJ
7418 echo "$as_me:$LINENO: result: no" >&5
7419echo "${ECHO_T}no" >&6
3a35eeb3 7420 fi
2429c060
PB
7421 elif test $build != $host && test $have_gcc_for_target = yes; then
7422 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7423 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7424 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7425 fi
7426fi
c6b750e1 7427if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7428 # Extract the first word of "as", so it can be a program name with args.
7429set dummy as; ac_word=$2
c6b750e1
DJ
7430echo "$as_me:$LINENO: checking for $ac_word" >&5
7431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7432if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7434else
c6b750e1
DJ
7435 case $AS_FOR_TARGET in
7436 [\\/]* | ?:[\\/]*)
2429c060
PB
7437 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7438 ;;
2429c060 7439 *)
c6b750e1
DJ
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441for as_dir in $gcc_cv_tool_dirs
7442do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451done
7452done
7453
2429c060
PB
7454 ;;
7455esac
7456fi
c6b750e1
DJ
7457AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7458
2429c060 7459if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7460 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7461echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7462else
c6b750e1
DJ
7463 echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6
2429c060
PB
7465fi
7466
7467fi
7468if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7469 if test -n "$with_build_time_tools"; then
7470 for ncn_progname in as; do
c6b750e1
DJ
7471 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7472echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7473 if test -x $with_build_time_tools/${ncn_progname}; then
7474 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
2429c060
PB
7477 break
7478 else
c6b750e1
DJ
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
2429c060
PB
7481 fi
7482 done
7483fi
7484
7485if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7486 for ncn_progname in as; do
7487 if test -n "$ncn_target_tool_prefix"; then
7488 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7489set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7490echo "$as_me:$LINENO: checking for $ac_word" >&5
7491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7492if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7494else
7495 if test -n "$AS_FOR_TARGET"; then
7496 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7497else
c6b750e1
DJ
7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
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_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511
2429c060
PB
7512fi
7513fi
c6b750e1 7514AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7515if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7516 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7517echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7518else
c6b750e1
DJ
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
2429c060
PB
7521fi
7522
7523 fi
7524 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7526set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7527echo "$as_me:$LINENO: checking for $ac_word" >&5
7528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7529if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7531else
7532 if test -n "$AS_FOR_TARGET"; then
7533 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7534else
c6b750e1
DJ
7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536for as_dir in $PATH
7537do
7538 IFS=$as_save_IFS
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546done
7547done
7548
2429c060
PB
7549fi
7550fi
c6b750e1 7551AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 7552if test -n "$AS_FOR_TARGET"; then
c6b750e1
DJ
7553 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7554echo "${ECHO_T}$AS_FOR_TARGET" >&6
2429c060 7555else
c6b750e1
DJ
7556 echo "$as_me:$LINENO: result: no" >&5
7557echo "${ECHO_T}no" >&6
2429c060 7558fi
c6b750e1 7559
2429c060
PB
7560 fi
7561 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7562 done
7563fi
c6b750e1 7564
2429c060
PB
7565if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7566 set dummy as
7567 if test $build = $target ; then
7568 AS_FOR_TARGET="$2"
7569 else
7570 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7571 fi
7572fi
7573
3a35eeb3
PB
7574else
7575 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
7576fi
7577
7578
7579
7580
7581if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7582 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7583 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7584echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7585 if test -x $with_build_time_tools/dlltool; then
7586 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7587 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c6b750e1
DJ
7588 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7589echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
3a35eeb3 7590 else
c6b750e1
DJ
7591 echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6
3a35eeb3 7593 fi
2429c060
PB
7594 elif test $build != $host && test $have_gcc_for_target = yes; then
7595 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7596 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7597 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7598 fi
7599fi
c6b750e1 7600if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7601 # Extract the first word of "dlltool", so it can be a program name with args.
7602set dummy dlltool; ac_word=$2
c6b750e1
DJ
7603echo "$as_me:$LINENO: checking for $ac_word" >&5
7604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7607else
c6b750e1
DJ
7608 case $DLLTOOL_FOR_TARGET in
7609 [\\/]* | ?:[\\/]*)
2429c060
PB
7610 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7611 ;;
2429c060 7612 *)
c6b750e1
DJ
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $gcc_cv_tool_dirs
7615do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624done
7625done
7626
2429c060
PB
7627 ;;
7628esac
7629fi
c6b750e1
DJ
7630DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7631
2429c060 7632if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7633 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7634echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7635else
c6b750e1
DJ
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
2429c060
PB
7638fi
7639
7640fi
7641if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7642 if test -n "$with_build_time_tools"; then
7643 for ncn_progname in dlltool; do
c6b750e1
DJ
7644 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7645echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7646 if test -x $with_build_time_tools/${ncn_progname}; then
7647 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7648 echo "$as_me:$LINENO: result: yes" >&5
7649echo "${ECHO_T}yes" >&6
2429c060
PB
7650 break
7651 else
c6b750e1
DJ
7652 echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
2429c060
PB
7654 fi
7655 done
7656fi
7657
7658if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
7659 for ncn_progname in dlltool; do
7660 if test -n "$ncn_target_tool_prefix"; then
7661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7663echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7667else
7668 if test -n "$DLLTOOL_FOR_TARGET"; then
7669 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7670else
c6b750e1
DJ
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682done
7683done
7684
2429c060
PB
7685fi
7686fi
c6b750e1 7687DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 7688if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7689 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7690echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7691else
c6b750e1
DJ
7692 echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6
2429c060
PB
7694fi
7695
7696 fi
7697 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
7698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7699set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7700echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7702if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7704else
7705 if test -n "$DLLTOOL_FOR_TARGET"; then
7706 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
7707else
c6b750e1
DJ
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720done
7721
2429c060
PB
7722fi
7723fi
c6b750e1 7724DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 7725if test -n "$DLLTOOL_FOR_TARGET"; then
c6b750e1
DJ
7726 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7727echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
2429c060 7728else
c6b750e1
DJ
7729 echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6
2429c060 7731fi
c6b750e1 7732
2429c060
PB
7733 fi
7734 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
7735 done
7736fi
c6b750e1 7737
2429c060
PB
7738if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
7739 set dummy dlltool
7740 if test $build = $target ; then
7741 DLLTOOL_FOR_TARGET="$2"
7742 else
7743 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
7744 fi
7745fi
7746
3a35eeb3
PB
7747else
7748 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
7749fi
7750
7751
7752
7753
7754if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7755 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7756 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
7757echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7758 if test -x $with_build_time_tools/ld; then
7759 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
7760 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
c6b750e1
DJ
7761 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
7762echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
3a35eeb3 7763 else
c6b750e1
DJ
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
3a35eeb3 7766 fi
2429c060
PB
7767 elif test $build != $host && test $have_gcc_for_target = yes; then
7768 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
7769 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
7770 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
7771 fi
7772fi
c6b750e1 7773if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7774 # Extract the first word of "ld", so it can be a program name with args.
7775set dummy ld; ac_word=$2
c6b750e1
DJ
7776echo "$as_me:$LINENO: checking for $ac_word" >&5
7777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7778if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7780else
c6b750e1
DJ
7781 case $LD_FOR_TARGET in
7782 [\\/]* | ?:[\\/]*)
2429c060
PB
7783 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
7784 ;;
2429c060 7785 *)
c6b750e1
DJ
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $gcc_cv_tool_dirs
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 break 2
7796 fi
7797done
7798done
7799
2429c060
PB
7800 ;;
7801esac
7802fi
c6b750e1
DJ
7803LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
7804
2429c060 7805if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
7806 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7807echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 7808else
c6b750e1
DJ
7809 echo "$as_me:$LINENO: result: no" >&5
7810echo "${ECHO_T}no" >&6
2429c060
PB
7811fi
7812
7813fi
7814if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
7815 if test -n "$with_build_time_tools"; then
7816 for ncn_progname in ld; do
c6b750e1
DJ
7817 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7818echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7819 if test -x $with_build_time_tools/${ncn_progname}; then
7820 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
2429c060
PB
7823 break
7824 else
c6b750e1
DJ
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
2429c060
PB
7827 fi
7828 done
7829fi
7830
7831if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
7832 for ncn_progname in ld; do
7833 if test -n "$ncn_target_tool_prefix"; then
7834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
7836echo "$as_me:$LINENO: checking for $ac_word" >&5
7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7840else
7841 if test -n "$LD_FOR_TARGET"; then
7842 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7843else
c6b750e1
DJ
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
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_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856done
7857
2429c060
PB
7858fi
7859fi
c6b750e1 7860LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 7861if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
7862 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7863echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 7864else
c6b750e1
DJ
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
2429c060
PB
7867fi
7868
7869 fi
7870 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
7871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7872set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
7877else
7878 if test -n "$LD_FOR_TARGET"; then
7879 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
7880else
c6b750e1
DJ
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
7889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892done
7893done
7894
2429c060
PB
7895fi
7896fi
c6b750e1 7897LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 7898if test -n "$LD_FOR_TARGET"; then
c6b750e1
DJ
7899 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
7900echo "${ECHO_T}$LD_FOR_TARGET" >&6
2429c060 7901else
c6b750e1
DJ
7902 echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
2429c060 7904fi
c6b750e1 7905
2429c060
PB
7906 fi
7907 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
7908 done
7909fi
c6b750e1 7910
2429c060
PB
7911if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
7912 set dummy ld
7913 if test $build = $target ; then
7914 LD_FOR_TARGET="$2"
7915 else
7916 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
7917 fi
7918fi
7919
3a35eeb3
PB
7920else
7921 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
7922fi
7923
7924
7925
7926
7927if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7928 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
7929 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
7930echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7931 if test -x $with_build_time_tools/lipo; then
7932 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
7933 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c6b750e1
DJ
7934 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
7935echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
3a35eeb3 7936 else
c6b750e1
DJ
7937 echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6
3a35eeb3 7939 fi
2429c060
PB
7940 elif test $build != $host && test $have_gcc_for_target = yes; then
7941 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
7942 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
7943 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
7944 fi
7945fi
c6b750e1 7946if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
7947 # Extract the first word of "lipo", so it can be a program name with args.
7948set dummy lipo; ac_word=$2
c6b750e1
DJ
7949echo "$as_me:$LINENO: checking for $ac_word" >&5
7950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 7953else
c6b750e1
DJ
7954 case $LIPO_FOR_TARGET in
7955 [\\/]* | ?:[\\/]*)
2429c060
PB
7956 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
7957 ;;
2429c060 7958 *)
c6b750e1
DJ
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $gcc_cv_tool_dirs
7961do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7969 fi
7970done
7971done
7972
2429c060
PB
7973 ;;
7974esac
7975fi
c6b750e1
DJ
7976LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
7977
2429c060 7978if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
7979 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
7980echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 7981else
c6b750e1
DJ
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
2429c060
PB
7984fi
7985
7986fi
7987if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
7988 if test -n "$with_build_time_tools"; then
7989 for ncn_progname in lipo; do
c6b750e1
DJ
7990 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7991echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
7992 if test -x $with_build_time_tools/${ncn_progname}; then
7993 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
7994 echo "$as_me:$LINENO: result: yes" >&5
7995echo "${ECHO_T}yes" >&6
2429c060
PB
7996 break
7997 else
c6b750e1
DJ
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
2429c060
PB
8000 fi
8001 done
8002fi
8003
8004if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8005 for ncn_progname in lipo; do
8006 if test -n "$ncn_target_tool_prefix"; then
8007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8008set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8009echo "$as_me:$LINENO: checking for $ac_word" >&5
8010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8011if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8013else
8014 if test -n "$LIPO_FOR_TARGET"; then
8015 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8016else
c6b750e1
DJ
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
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_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029done
8030
2429c060
PB
8031fi
8032fi
c6b750e1 8033LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 8034if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8035 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8036echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8037else
c6b750e1
DJ
8038 echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
2429c060
PB
8040fi
8041
8042 fi
8043 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8045set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8046echo "$as_me:$LINENO: checking for $ac_word" >&5
8047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8048if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060
PB
8050else
8051 if test -n "$LIPO_FOR_TARGET"; then
8052 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8053else
c6b750e1
DJ
8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065done
8066done
8067
2429c060
PB
8068fi
8069fi
c6b750e1 8070LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 8071if test -n "$LIPO_FOR_TARGET"; then
c6b750e1
DJ
8072 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8073echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
2429c060 8074else
c6b750e1
DJ
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
2429c060 8077fi
c6b750e1 8078
2429c060
PB
8079 fi
8080 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8081 done
8082fi
c6b750e1 8083
2429c060
PB
8084if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8085 set dummy lipo
8086 if test $build = $target ; then
8087 LIPO_FOR_TARGET="$2"
8088 else
8089 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8090 fi
8091fi
8092
3a35eeb3
PB
8093else
8094 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
8095fi
8096
8097
8098
8099
8100if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8101 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8102 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8103echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8104 if test -x $with_build_time_tools/nm; then
8105 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8106 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c6b750e1
DJ
8107 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8108echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
3a35eeb3 8109 else
c6b750e1
DJ
8110 echo "$as_me:$LINENO: result: no" >&5
8111echo "${ECHO_T}no" >&6
3a35eeb3 8112 fi
2429c060
PB
8113 elif test $build != $host && test $have_gcc_for_target = yes; then
8114 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8115 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8116 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8117 fi
8118fi
c6b750e1 8119if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8120 # Extract the first word of "nm", so it can be a program name with args.
8121set dummy nm; ac_word=$2
c6b750e1
DJ
8122echo "$as_me:$LINENO: checking for $ac_word" >&5
8123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8124if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8126else
c6b750e1
DJ
8127 case $NM_FOR_TARGET in
8128 [\\/]* | ?:[\\/]*)
2429c060
PB
8129 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8130 ;;
2429c060 8131 *)
c6b750e1
DJ
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $gcc_cv_tool_dirs
8134do
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8139 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8142 fi
8143done
8144done
8145
2429c060
PB
8146 ;;
8147esac
8148fi
c6b750e1
DJ
8149NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8150
2429c060 8151if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8152 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8153echo "${ECHO_T}$NM_FOR_TARGET" >&6
2429c060 8154else
c6b750e1
DJ
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
2429c060
PB
8157fi
8158
8159fi
8160if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8161 if test -n "$with_build_time_tools"; then
8162 for ncn_progname in nm; do
c6b750e1
DJ
8163 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8164echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8165 if test -x $with_build_time_tools/${ncn_progname}; then
8166 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8167 echo "$as_me:$LINENO: result: yes" >&5
8168echo "${ECHO_T}yes" >&6
2429c060
PB
8169 break
8170 else
c6b750e1
DJ
8171 echo "$as_me:$LINENO: result: no" >&5
8172echo "${ECHO_T}no" >&6
2429c060
PB
8173 fi
8174 done
8175fi
8176
8177if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8178 for ncn_progname in nm; do
8179 if test -n "$ncn_target_tool_prefix"; then
8180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 8181set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8182echo "$as_me:$LINENO: checking for $ac_word" >&5
8183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8186else
55db4b87
PB
8187 if test -n "$NM_FOR_TARGET"; then
8188 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8189else
c6b750e1
DJ
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
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_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201done
8202done
8203
859789af
AC
8204fi
8205fi
c6b750e1 8206NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 8207if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8208 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8209echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8210else
c6b750e1
DJ
8211 echo "$as_me:$LINENO: result: no" >&5
8212echo "${ECHO_T}no" >&6
859789af
AC
8213fi
8214
2429c060
PB
8215 fi
8216 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8218set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8219echo "$as_me:$LINENO: checking for $ac_word" >&5
8220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8221if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8223else
05cbd757
PB
8224 if test -n "$NM_FOR_TARGET"; then
8225 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 8226else
c6b750e1
DJ
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238done
8239done
8240
859789af
AC
8241fi
8242fi
c6b750e1 8243NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 8244if test -n "$NM_FOR_TARGET"; then
c6b750e1
DJ
8245 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8246echo "${ECHO_T}$NM_FOR_TARGET" >&6
859789af 8247else
c6b750e1
DJ
8248 echo "$as_me:$LINENO: result: no" >&5
8249echo "${ECHO_T}no" >&6
859789af 8250fi
c6b750e1 8251
2429c060
PB
8252 fi
8253 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8254 done
8255fi
c6b750e1 8256
05cbd757
PB
8257if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8258 set dummy nm
8259 if test $build = $target ; then
8260 NM_FOR_TARGET="$2"
859789af 8261 else
05cbd757 8262 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8263 fi
859789af
AC
8264fi
8265
3a35eeb3
PB
8266else
8267 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
8268fi
8269
8270
8271
8272
8273if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8274 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8275 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8276echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8277 if test -x $with_build_time_tools/objdump; then
8278 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8279 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c6b750e1
DJ
8280 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8281echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
3a35eeb3 8282 else
c6b750e1
DJ
8283 echo "$as_me:$LINENO: result: no" >&5
8284echo "${ECHO_T}no" >&6
3a35eeb3 8285 fi
2429c060
PB
8286 elif test $build != $host && test $have_gcc_for_target = yes; then
8287 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8288 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8289 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8290 fi
8291fi
c6b750e1 8292if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8293 # Extract the first word of "objdump", so it can be a program name with args.
8294set dummy objdump; ac_word=$2
c6b750e1
DJ
8295echo "$as_me:$LINENO: checking for $ac_word" >&5
8296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8297if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8299else
c6b750e1
DJ
8300 case $OBJDUMP_FOR_TARGET in
8301 [\\/]* | ?:[\\/]*)
2429c060
PB
8302 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8303 ;;
2429c060 8304 *)
c6b750e1
DJ
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306for as_dir in $gcc_cv_tool_dirs
8307do
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8312 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8315 fi
8316done
8317done
8318
2429c060
PB
8319 ;;
8320esac
8321fi
c6b750e1
DJ
8322OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8323
2429c060 8324if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8325 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8326echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
2429c060 8327else
c6b750e1
DJ
8328 echo "$as_me:$LINENO: result: no" >&5
8329echo "${ECHO_T}no" >&6
2429c060
PB
8330fi
8331
8332fi
8333if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8334 if test -n "$with_build_time_tools"; then
8335 for ncn_progname in objdump; do
c6b750e1
DJ
8336 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8337echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8338 if test -x $with_build_time_tools/${ncn_progname}; then
8339 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8340 echo "$as_me:$LINENO: result: yes" >&5
8341echo "${ECHO_T}yes" >&6
2429c060
PB
8342 break
8343 else
c6b750e1
DJ
8344 echo "$as_me:$LINENO: result: no" >&5
8345echo "${ECHO_T}no" >&6
2429c060
PB
8346 fi
8347 done
8348fi
8349
8350if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8351 for ncn_progname in objdump; do
8352 if test -n "$ncn_target_tool_prefix"; then
8353 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8354set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8355echo "$as_me:$LINENO: checking for $ac_word" >&5
8356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8357if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8359else
8360 if test -n "$OBJDUMP_FOR_TARGET"; then
8361 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8362else
c6b750e1
DJ
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
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_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374done
8375done
8376
5ae72758
DJ
8377fi
8378fi
c6b750e1 8379OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8380if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8381 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8382echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8383else
c6b750e1
DJ
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
5ae72758
DJ
8386fi
8387
2429c060
PB
8388 fi
8389 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 8391set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8392echo "$as_me:$LINENO: checking for $ac_word" >&5
8393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8394if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
5ae72758
DJ
8396else
8397 if test -n "$OBJDUMP_FOR_TARGET"; then
8398 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8399else
c6b750e1
DJ
8400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401for as_dir in $PATH
8402do
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8407 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8410 fi
8411done
8412done
8413
5ae72758
DJ
8414fi
8415fi
c6b750e1 8416OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 8417if test -n "$OBJDUMP_FOR_TARGET"; then
c6b750e1
DJ
8418 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8419echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
5ae72758 8420else
c6b750e1
DJ
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
5ae72758 8423fi
c6b750e1 8424
2429c060
PB
8425 fi
8426 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8427 done
8428fi
c6b750e1 8429
5ae72758
DJ
8430if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8431 set dummy objdump
8432 if test $build = $target ; then
8433 OBJDUMP_FOR_TARGET="$2"
8434 else
8435 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8436 fi
8437fi
8438
3a35eeb3
PB
8439else
8440 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
8441fi
8442
8443
8444
8445
8446if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8447 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8448 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8449echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8450 if test -x $with_build_time_tools/ranlib; then
8451 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8452 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c6b750e1
DJ
8453 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8454echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
3a35eeb3 8455 else
c6b750e1
DJ
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
3a35eeb3 8458 fi
2429c060
PB
8459 elif test $build != $host && test $have_gcc_for_target = yes; then
8460 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8461 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8462 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8463 fi
8464fi
c6b750e1 8465if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8466 # Extract the first word of "ranlib", so it can be a program name with args.
8467set dummy ranlib; ac_word=$2
c6b750e1
DJ
8468echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8470if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8472else
c6b750e1
DJ
8473 case $RANLIB_FOR_TARGET in
8474 [\\/]* | ?:[\\/]*)
2429c060
PB
8475 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8476 ;;
2429c060 8477 *)
c6b750e1
DJ
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $gcc_cv_tool_dirs
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489done
8490done
8491
2429c060
PB
8492 ;;
8493esac
8494fi
c6b750e1
DJ
8495RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8496
2429c060 8497if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8498 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8499echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
2429c060 8500else
c6b750e1
DJ
8501 echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6
2429c060
PB
8503fi
8504
8505fi
8506if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8507 if test -n "$with_build_time_tools"; then
8508 for ncn_progname in ranlib; do
c6b750e1
DJ
8509 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8510echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8511 if test -x $with_build_time_tools/${ncn_progname}; then
8512 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8513 echo "$as_me:$LINENO: result: yes" >&5
8514echo "${ECHO_T}yes" >&6
2429c060
PB
8515 break
8516 else
c6b750e1
DJ
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
2429c060
PB
8519 fi
8520 done
8521fi
8522
8523if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8524 for ncn_progname in ranlib; do
8525 if test -n "$ncn_target_tool_prefix"; then
8526 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 8527set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8528echo "$as_me:$LINENO: checking for $ac_word" >&5
8529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8530if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8532else
55db4b87
PB
8533 if test -n "$RANLIB_FOR_TARGET"; then
8534 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8535else
c6b750e1
DJ
8536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
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_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8546 fi
8547done
8548done
8549
859789af
AC
8550fi
8551fi
c6b750e1 8552RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 8553if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8554 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8555echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8556else
c6b750e1
DJ
8557 echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6
859789af
AC
8559fi
8560
2429c060
PB
8561 fi
8562 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8564set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8565echo "$as_me:$LINENO: checking for $ac_word" >&5
8566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8567if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8569else
05cbd757
PB
8570 if test -n "$RANLIB_FOR_TARGET"; then
8571 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 8572else
c6b750e1
DJ
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584done
8585done
8586
859789af
AC
8587fi
8588fi
c6b750e1 8589RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 8590if test -n "$RANLIB_FOR_TARGET"; then
c6b750e1
DJ
8591 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8592echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
859789af 8593else
c6b750e1
DJ
8594 echo "$as_me:$LINENO: result: no" >&5
8595echo "${ECHO_T}no" >&6
859789af 8596fi
c6b750e1 8597
2429c060
PB
8598 fi
8599 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8600 done
8601fi
c6b750e1 8602
2429c060
PB
8603if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8604 set dummy ranlib
8605 if test $build = $target ; then
8606 RANLIB_FOR_TARGET="$2"
8607 else
8608 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8609 fi
2429c060 8610fi
05cbd757 8611
3a35eeb3
PB
8612else
8613 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
8614fi
8615
2429c060
PB
8616
8617
8618
8619if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8620 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8621 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8622echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8623 if test -x $with_build_time_tools/strip; then
8624 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8625 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c6b750e1
DJ
8626 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8627echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
3a35eeb3 8628 else
c6b750e1
DJ
8629 echo "$as_me:$LINENO: result: no" >&5
8630echo "${ECHO_T}no" >&6
3a35eeb3 8631 fi
2429c060
PB
8632 elif test $build != $host && test $have_gcc_for_target = yes; then
8633 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8634 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8635 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8636 fi
8637fi
c6b750e1 8638if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8639 # Extract the first word of "strip", so it can be a program name with args.
8640set dummy strip; ac_word=$2
c6b750e1
DJ
8641echo "$as_me:$LINENO: checking for $ac_word" >&5
8642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8643if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8645else
c6b750e1
DJ
8646 case $STRIP_FOR_TARGET in
8647 [\\/]* | ?:[\\/]*)
2429c060
PB
8648 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
8649 ;;
2429c060 8650 *)
c6b750e1
DJ
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $gcc_cv_tool_dirs
8653do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8661 fi
8662done
8663done
8664
2429c060
PB
8665 ;;
8666esac
8667fi
c6b750e1
DJ
8668STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
8669
2429c060 8670if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8671 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8672echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
2429c060 8673else
c6b750e1
DJ
8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
2429c060
PB
8676fi
8677
8678fi
8679if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8680 if test -n "$with_build_time_tools"; then
8681 for ncn_progname in strip; do
c6b750e1
DJ
8682 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8683echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8684 if test -x $with_build_time_tools/${ncn_progname}; then
8685 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8686 echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
2429c060
PB
8688 break
8689 else
c6b750e1
DJ
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
2429c060
PB
8692 fi
8693 done
8694fi
8695
8696if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
8697 for ncn_progname in strip; do
8698 if test -n "$ncn_target_tool_prefix"; then
8699 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 8700set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8701echo "$as_me:$LINENO: checking for $ac_word" >&5
8702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8703if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
8705else
8706 if test -n "$STRIP_FOR_TARGET"; then
8707 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
8708else
8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8719 fi
8720done
8721done
8722
7e0f7140
GK
8723fi
8724fi
c6b750e1 8725STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 8726if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8727 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8728echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 8729else
c6b750e1
DJ
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
7e0f7140
GK
8732fi
8733
2429c060
PB
8734 fi
8735 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
8736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 8737set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8738echo "$as_me:$LINENO: checking for $ac_word" >&5
8739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8740if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
7e0f7140
GK
8742else
8743 if test -n "$STRIP_FOR_TARGET"; then
8744 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
8745else
c6b750e1
DJ
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
8754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8756 fi
8757done
8758done
8759
7e0f7140
GK
8760fi
8761fi
c6b750e1 8762STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 8763if test -n "$STRIP_FOR_TARGET"; then
c6b750e1
DJ
8764 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
8765echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
7e0f7140 8766else
c6b750e1
DJ
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
7e0f7140 8769fi
c6b750e1 8770
2429c060
PB
8771 fi
8772 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
8773 done
8774fi
c6b750e1 8775
7e0f7140
GK
8776if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
8777 set dummy strip
8778 if test $build = $target ; then
8779 STRIP_FOR_TARGET="$2"
8780 else
8781 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8782 fi
8783fi
8784
3a35eeb3
PB
8785else
8786 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
8787fi
8788
8789
8790
8791
8792if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8793 if test -n "$with_build_time_tools"; then
c6b750e1
DJ
8794 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
8795echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8796 if test -x $with_build_time_tools/windres; then
8797 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
8798 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c6b750e1
DJ
8799 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
8800echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
3a35eeb3 8801 else
c6b750e1
DJ
8802 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
3a35eeb3 8804 fi
2429c060
PB
8805 elif test $build != $host && test $have_gcc_for_target = yes; then
8806 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
8807 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
8808 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
8809 fi
8810fi
c6b750e1 8811if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
8812 # Extract the first word of "windres", so it can be a program name with args.
8813set dummy windres; ac_word=$2
c6b750e1
DJ
8814echo "$as_me:$LINENO: checking for $ac_word" >&5
8815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8816if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
2429c060 8818else
c6b750e1
DJ
8819 case $WINDRES_FOR_TARGET in
8820 [\\/]* | ?:[\\/]*)
2429c060
PB
8821 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
8822 ;;
2429c060 8823 *)
c6b750e1
DJ
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $gcc_cv_tool_dirs
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835done
8836done
8837
2429c060
PB
8838 ;;
8839esac
8840fi
c6b750e1
DJ
8841WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
8842
2429c060 8843if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
8844 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8845echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
2429c060 8846else
c6b750e1
DJ
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
2429c060
PB
8849fi
8850
8851fi
8852if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
8853 if test -n "$with_build_time_tools"; then
8854 for ncn_progname in windres; do
c6b750e1
DJ
8855 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8856echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
3a35eeb3
PB
8857 if test -x $with_build_time_tools/${ncn_progname}; then
8858 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
c6b750e1
DJ
8859 echo "$as_me:$LINENO: result: yes" >&5
8860echo "${ECHO_T}yes" >&6
2429c060
PB
8861 break
8862 else
c6b750e1
DJ
8863 echo "$as_me:$LINENO: result: no" >&5
8864echo "${ECHO_T}no" >&6
2429c060
PB
8865 fi
8866 done
8867fi
8868
8869if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
8870 for ncn_progname in windres; do
8871 if test -n "$ncn_target_tool_prefix"; then
8872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 8873set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
c6b750e1
DJ
8874echo "$as_me:$LINENO: checking for $ac_word" >&5
8875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8876if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8878else
55db4b87
PB
8879 if test -n "$WINDRES_FOR_TARGET"; then
8880 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 8881else
c6b750e1
DJ
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893done
8894done
8895
859789af
AC
8896fi
8897fi
c6b750e1 8898WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 8899if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
8900 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8901echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 8902else
c6b750e1
DJ
8903 echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
859789af
AC
8905fi
8906
2429c060
PB
8907 fi
8908 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
8909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 8910set dummy ${ncn_progname}; ac_word=$2
c6b750e1
DJ
8911echo "$as_me:$LINENO: checking for $ac_word" >&5
8912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8913if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
859789af 8915else
05cbd757
PB
8916 if test -n "$WINDRES_FOR_TARGET"; then
8917 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 8918else
c6b750e1
DJ
8919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920for as_dir in $PATH
8921do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
8927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8929 fi
8930done
8931done
8932
859789af
AC
8933fi
8934fi
c6b750e1 8935WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 8936if test -n "$WINDRES_FOR_TARGET"; then
c6b750e1
DJ
8937 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
8938echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
859789af 8939else
c6b750e1
DJ
8940 echo "$as_me:$LINENO: result: no" >&5
8941echo "${ECHO_T}no" >&6
859789af 8942fi
c6b750e1 8943
2429c060
PB
8944 fi
8945 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
8946 done
8947fi
c6b750e1 8948
05cbd757
PB
8949if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
8950 set dummy windres
8951 if test $build = $target ; then
8952 WINDRES_FOR_TARGET="$2"
859789af 8953 else
05cbd757 8954 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 8955 fi
859789af
AC
8956fi
8957
3a35eeb3
PB
8958else
8959 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
8960fi
8961
852e5f18 8962
be01d343
PB
8963RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
8964
c6b750e1
DJ
8965echo "$as_me:$LINENO: checking where to find the target ar" >&5
8966echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
be01d343 8967if test "x${build}" != "x${host}" ; then
2429c060
PB
8968 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8969 # We already found the complete path
c6b750e1
DJ
8970 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8971echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
2429c060
PB
8972 else
8973 # Canadian cross, just use what we found
c6b750e1
DJ
8974 echo "$as_me:$LINENO: result: pre-installed" >&5
8975echo "${ECHO_T}pre-installed" >&6
2429c060 8976 fi
be01d343
PB
8977else
8978 ok=yes
8979 case " ${configdirs} " in
8980 *" binutils "*) ;;
8981 *) ok=no ;;
8982 esac
c6b750e1 8983
be01d343
PB
8984 if test $ok = yes; then
8985 # An in-tree tool is available and we can use it
8986 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
c6b750e1
DJ
8987 echo "$as_me:$LINENO: result: just compiled" >&5
8988echo "${ECHO_T}just compiled" >&6
2429c060
PB
8989 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
8990 # We already found the complete path
c6b750e1
DJ
8991 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
8992echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
be01d343
PB
8993 elif test "x$target" = "x$host"; then
8994 # We can use an host tool
8995 AR_FOR_TARGET='$(AR)'
c6b750e1
DJ
8996 echo "$as_me:$LINENO: result: host tool" >&5
8997echo "${ECHO_T}host tool" >&6
be01d343
PB
8998 else
8999 # We need a cross tool
c6b750e1
DJ
9000 echo "$as_me:$LINENO: result: pre-installed" >&5
9001echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9002 fi
9003fi
4b900473 9004
c6b750e1
DJ
9005echo "$as_me:$LINENO: checking where to find the target as" >&5
9006echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
be01d343 9007if test "x${build}" != "x${host}" ; then
2429c060
PB
9008 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9009 # We already found the complete path
c6b750e1
DJ
9010 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9011echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
2429c060
PB
9012 else
9013 # Canadian cross, just use what we found
c6b750e1
DJ
9014 echo "$as_me:$LINENO: result: pre-installed" >&5
9015echo "${ECHO_T}pre-installed" >&6
2429c060 9016 fi
be01d343
PB
9017else
9018 ok=yes
9019 case " ${configdirs} " in
9020 *" gas "*) ;;
9021 *) ok=no ;;
9022 esac
c6b750e1 9023
be01d343
PB
9024 if test $ok = yes; then
9025 # An in-tree tool is available and we can use it
9026 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
c6b750e1
DJ
9027 echo "$as_me:$LINENO: result: just compiled" >&5
9028echo "${ECHO_T}just compiled" >&6
2429c060
PB
9029 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9030 # We already found the complete path
c6b750e1
DJ
9031 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9032echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
be01d343
PB
9033 elif test "x$target" = "x$host"; then
9034 # We can use an host tool
9035 AS_FOR_TARGET='$(AS)'
c6b750e1
DJ
9036 echo "$as_me:$LINENO: result: host tool" >&5
9037echo "${ECHO_T}host tool" >&6
be01d343
PB
9038 else
9039 # We need a cross tool
c6b750e1
DJ
9040 echo "$as_me:$LINENO: result: pre-installed" >&5
9041echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9042 fi
9043fi
4b900473 9044
c6b750e1
DJ
9045echo "$as_me:$LINENO: checking where to find the target cc" >&5
9046echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
be01d343 9047if test "x${build}" != "x${host}" ; then
2429c060
PB
9048 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9049 # We already found the complete path
c6b750e1
DJ
9050 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9051echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
2429c060
PB
9052 else
9053 # Canadian cross, just use what we found
c6b750e1
DJ
9054 echo "$as_me:$LINENO: result: pre-installed" >&5
9055echo "${ECHO_T}pre-installed" >&6
2429c060 9056 fi
be01d343
PB
9057else
9058 ok=yes
9059 case " ${configdirs} " in
9060 *" gcc "*) ;;
9061 *) ok=no ;;
9062 esac
c6b750e1 9063
be01d343
PB
9064 if test $ok = yes; then
9065 # An in-tree tool is available and we can use it
9066 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9067 echo "$as_me:$LINENO: result: just compiled" >&5
9068echo "${ECHO_T}just compiled" >&6
2429c060
PB
9069 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9070 # We already found the complete path
c6b750e1
DJ
9071 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9072echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
be01d343
PB
9073 elif test "x$target" = "x$host"; then
9074 # We can use an host tool
9075 CC_FOR_TARGET='$(CC)'
c6b750e1
DJ
9076 echo "$as_me:$LINENO: result: host tool" >&5
9077echo "${ECHO_T}host tool" >&6
be01d343
PB
9078 else
9079 # We need a cross tool
c6b750e1
DJ
9080 echo "$as_me:$LINENO: result: pre-installed" >&5
9081echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9082 fi
9083fi
4b900473 9084
c6b750e1
DJ
9085echo "$as_me:$LINENO: checking where to find the target c++" >&5
9086echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
be01d343 9087if test "x${build}" != "x${host}" ; then
2429c060
PB
9088 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9089 # We already found the complete path
c6b750e1
DJ
9090 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9091echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
2429c060
PB
9092 else
9093 # Canadian cross, just use what we found
c6b750e1
DJ
9094 echo "$as_me:$LINENO: result: pre-installed" >&5
9095echo "${ECHO_T}pre-installed" >&6
2429c060 9096 fi
be01d343
PB
9097else
9098 ok=yes
9099 case " ${configdirs} " in
9100 *" gcc "*) ;;
9101 *) ok=no ;;
9102 esac
9103 case ,${enable_languages}, in
9104 *,c++,*) ;;
9105 *) ok=no ;;
9106 esac
9107 if test $ok = yes; then
9108 # An in-tree tool is available and we can use it
9109 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
9110 echo "$as_me:$LINENO: result: just compiled" >&5
9111echo "${ECHO_T}just compiled" >&6
2429c060
PB
9112 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9113 # We already found the complete path
c6b750e1
DJ
9114 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9115echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
be01d343
PB
9116 elif test "x$target" = "x$host"; then
9117 # We can use an host tool
9118 CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9119 echo "$as_me:$LINENO: result: host tool" >&5
9120echo "${ECHO_T}host tool" >&6
be01d343
PB
9121 else
9122 # We need a cross tool
c6b750e1
DJ
9123 echo "$as_me:$LINENO: result: pre-installed" >&5
9124echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9125 fi
9126fi
4b900473 9127
c6b750e1
DJ
9128echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9129echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
be01d343 9130if test "x${build}" != "x${host}" ; then
2429c060
PB
9131 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9132 # We already found the complete path
c6b750e1
DJ
9133 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9134echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
2429c060
PB
9135 else
9136 # Canadian cross, just use what we found
c6b750e1
DJ
9137 echo "$as_me:$LINENO: result: pre-installed" >&5
9138echo "${ECHO_T}pre-installed" >&6
2429c060 9139 fi
be01d343
PB
9140else
9141 ok=yes
9142 case " ${configdirs} " in
9143 *" gcc "*) ;;
9144 *) ok=no ;;
9145 esac
9146 case ,${enable_languages}, in
9147 *,c++,*) ;;
9148 *) ok=no ;;
9149 esac
9150 if test $ok = yes; then
9151 # An in-tree tool is available and we can use it
9152 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
c6b750e1
DJ
9153 echo "$as_me:$LINENO: result: just compiled" >&5
9154echo "${ECHO_T}just compiled" >&6
2429c060
PB
9155 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9156 # We already found the complete path
c6b750e1
DJ
9157 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9158echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
be01d343
PB
9159 elif test "x$target" = "x$host"; then
9160 # We can use an host tool
9161 RAW_CXX_FOR_TARGET='$(CXX)'
c6b750e1
DJ
9162 echo "$as_me:$LINENO: result: host tool" >&5
9163echo "${ECHO_T}host tool" >&6
be01d343
PB
9164 else
9165 # We need a cross tool
c6b750e1
DJ
9166 echo "$as_me:$LINENO: result: pre-installed" >&5
9167echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9168 fi
9169fi
4b900473 9170
c6b750e1
DJ
9171echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9172echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
be01d343 9173if test "x${build}" != "x${host}" ; then
2429c060
PB
9174 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9175 # We already found the complete path
c6b750e1
DJ
9176 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9177echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
2429c060
PB
9178 else
9179 # Canadian cross, just use what we found
c6b750e1
DJ
9180 echo "$as_me:$LINENO: result: pre-installed" >&5
9181echo "${ECHO_T}pre-installed" >&6
2429c060 9182 fi
be01d343
PB
9183else
9184 ok=yes
9185 case " ${configdirs} " in
9186 *" binutils "*) ;;
9187 *) ok=no ;;
9188 esac
c6b750e1 9189
be01d343
PB
9190 if test $ok = yes; then
9191 # An in-tree tool is available and we can use it
9192 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
c6b750e1
DJ
9193 echo "$as_me:$LINENO: result: just compiled" >&5
9194echo "${ECHO_T}just compiled" >&6
2429c060
PB
9195 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9196 # We already found the complete path
c6b750e1
DJ
9197 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9198echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
be01d343
PB
9199 elif test "x$target" = "x$host"; then
9200 # We can use an host tool
9201 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
c6b750e1
DJ
9202 echo "$as_me:$LINENO: result: host tool" >&5
9203echo "${ECHO_T}host tool" >&6
be01d343
PB
9204 else
9205 # We need a cross tool
c6b750e1
DJ
9206 echo "$as_me:$LINENO: result: pre-installed" >&5
9207echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9208 fi
9209fi
4b900473 9210
c6b750e1
DJ
9211echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9212echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
be01d343 9213if test "x${build}" != "x${host}" ; then
2429c060
PB
9214 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9215 # We already found the complete path
c6b750e1
DJ
9216 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9217echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
2429c060
PB
9218 else
9219 # Canadian cross, just use what we found
c6b750e1
DJ
9220 echo "$as_me:$LINENO: result: pre-installed" >&5
9221echo "${ECHO_T}pre-installed" >&6
2429c060 9222 fi
be01d343
PB
9223else
9224 ok=yes
9225 case " ${configdirs} " in
9226 *" gcc "*) ;;
9227 *) ok=no ;;
9228 esac
c6b750e1 9229
be01d343
PB
9230 if test $ok = yes; then
9231 # An in-tree tool is available and we can use it
9232 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9233 echo "$as_me:$LINENO: result: just compiled" >&5
9234echo "${ECHO_T}just compiled" >&6
2429c060
PB
9235 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9236 # We already found the complete path
c6b750e1
DJ
9237 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9238echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
be01d343
PB
9239 elif test "x$target" = "x$host"; then
9240 # We can use an host tool
9241 GCC_FOR_TARGET='$()'
c6b750e1
DJ
9242 echo "$as_me:$LINENO: result: host tool" >&5
9243echo "${ECHO_T}host tool" >&6
be01d343
PB
9244 else
9245 # We need a cross tool
c6b750e1
DJ
9246 echo "$as_me:$LINENO: result: pre-installed" >&5
9247echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9248 fi
9249fi
4b900473 9250
c6b750e1
DJ
9251echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9252echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
be01d343 9253if test "x${build}" != "x${host}" ; then
2429c060
PB
9254 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9255 # We already found the complete path
c6b750e1
DJ
9256 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9257echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
2429c060
PB
9258 else
9259 # Canadian cross, just use what we found
c6b750e1
DJ
9260 echo "$as_me:$LINENO: result: pre-installed" >&5
9261echo "${ECHO_T}pre-installed" >&6
2429c060 9262 fi
be01d343
PB
9263else
9264 ok=yes
9265 case " ${configdirs} " in
9266 *" gcc "*) ;;
9267 *) ok=no ;;
9268 esac
9269 case ,${enable_languages}, in
9270 *,java,*) ;;
9271 *) ok=no ;;
9272 esac
9273 if test $ok = yes; then
9274 # An in-tree tool is available and we can use it
9275 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9276 echo "$as_me:$LINENO: result: just compiled" >&5
9277echo "${ECHO_T}just compiled" >&6
2429c060
PB
9278 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9279 # We already found the complete path
c6b750e1
DJ
9280 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9281echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
be01d343
PB
9282 elif test "x$target" = "x$host"; then
9283 # We can use an host tool
9284 GCJ_FOR_TARGET='$(GCJ)'
c6b750e1
DJ
9285 echo "$as_me:$LINENO: result: host tool" >&5
9286echo "${ECHO_T}host tool" >&6
be01d343
PB
9287 else
9288 # We need a cross tool
c6b750e1
DJ
9289 echo "$as_me:$LINENO: result: pre-installed" >&5
9290echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9291 fi
9292fi
4b900473 9293
c6b750e1
DJ
9294echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9295echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
be01d343 9296if test "x${build}" != "x${host}" ; then
2429c060
PB
9297 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9298 # We already found the complete path
c6b750e1
DJ
9299 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9300echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
2429c060
PB
9301 else
9302 # Canadian cross, just use what we found
c6b750e1
DJ
9303 echo "$as_me:$LINENO: result: pre-installed" >&5
9304echo "${ECHO_T}pre-installed" >&6
2429c060 9305 fi
be01d343
PB
9306else
9307 ok=yes
9308 case " ${configdirs} " in
9309 *" gcc "*) ;;
9310 *) ok=no ;;
9311 esac
9312 case ,${enable_languages}, in
9313 *,fortran,*) ;;
9314 *) ok=no ;;
9315 esac
9316 if test $ok = yes; then
9317 # An in-tree tool is available and we can use it
9318 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
c6b750e1
DJ
9319 echo "$as_me:$LINENO: result: just compiled" >&5
9320echo "${ECHO_T}just compiled" >&6
2429c060
PB
9321 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9322 # We already found the complete path
c6b750e1
DJ
9323 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9324echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
be01d343
PB
9325 elif test "x$target" = "x$host"; then
9326 # We can use an host tool
9327 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
c6b750e1
DJ
9328 echo "$as_me:$LINENO: result: host tool" >&5
9329echo "${ECHO_T}host tool" >&6
be01d343
PB
9330 else
9331 # We need a cross tool
c6b750e1
DJ
9332 echo "$as_me:$LINENO: result: pre-installed" >&5
9333echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9334 fi
9335fi
4b900473 9336
c6b750e1
DJ
9337echo "$as_me:$LINENO: checking where to find the target ld" >&5
9338echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
be01d343 9339if test "x${build}" != "x${host}" ; then
2429c060
PB
9340 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9341 # We already found the complete path
c6b750e1
DJ
9342 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9343echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
2429c060
PB
9344 else
9345 # Canadian cross, just use what we found
c6b750e1
DJ
9346 echo "$as_me:$LINENO: result: pre-installed" >&5
9347echo "${ECHO_T}pre-installed" >&6
2429c060 9348 fi
be01d343
PB
9349else
9350 ok=yes
9351 case " ${configdirs} " in
9352 *" ld "*) ;;
9353 *) ok=no ;;
9354 esac
c6b750e1 9355
be01d343
PB
9356 if test $ok = yes; then
9357 # An in-tree tool is available and we can use it
9358 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
c6b750e1
DJ
9359 echo "$as_me:$LINENO: result: just compiled" >&5
9360echo "${ECHO_T}just compiled" >&6
2429c060
PB
9361 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9362 # We already found the complete path
c6b750e1
DJ
9363 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9364echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
be01d343
PB
9365 elif test "x$target" = "x$host"; then
9366 # We can use an host tool
9367 LD_FOR_TARGET='$(LD)'
c6b750e1
DJ
9368 echo "$as_me:$LINENO: result: host tool" >&5
9369echo "${ECHO_T}host tool" >&6
be01d343
PB
9370 else
9371 # We need a cross tool
c6b750e1
DJ
9372 echo "$as_me:$LINENO: result: pre-installed" >&5
9373echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9374 fi
9375fi
4b900473 9376
c6b750e1
DJ
9377echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9378echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
be01d343 9379if test "x${build}" != "x${host}" ; then
2429c060
PB
9380 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9381 # We already found the complete path
c6b750e1
DJ
9382 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9383echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060
PB
9384 else
9385 # Canadian cross, just use what we found
c6b750e1
DJ
9386 echo "$as_me:$LINENO: result: pre-installed" >&5
9387echo "${ECHO_T}pre-installed" >&6
2429c060 9388 fi
be01d343 9389else
2429c060
PB
9390 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9391 # We already found the complete path
c6b750e1
DJ
9392 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9393echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
2429c060 9394 elif test "x$target" = "x$host"; then
be01d343
PB
9395 # We can use an host tool
9396 LIPO_FOR_TARGET='$(LIPO)'
c6b750e1
DJ
9397 echo "$as_me:$LINENO: result: host tool" >&5
9398echo "${ECHO_T}host tool" >&6
be01d343
PB
9399 else
9400 # We need a cross tool
c6b750e1
DJ
9401 echo "$as_me:$LINENO: result: pre-installed" >&5
9402echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9403 fi
9404fi
4b900473 9405
c6b750e1
DJ
9406echo "$as_me:$LINENO: checking where to find the target nm" >&5
9407echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
be01d343 9408if test "x${build}" != "x${host}" ; then
2429c060
PB
9409 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9410 # We already found the complete path
c6b750e1
DJ
9411 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9412echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
2429c060
PB
9413 else
9414 # Canadian cross, just use what we found
c6b750e1
DJ
9415 echo "$as_me:$LINENO: result: pre-installed" >&5
9416echo "${ECHO_T}pre-installed" >&6
2429c060 9417 fi
be01d343
PB
9418else
9419 ok=yes
9420 case " ${configdirs} " in
9421 *" binutils "*) ;;
9422 *) ok=no ;;
9423 esac
c6b750e1 9424
be01d343
PB
9425 if test $ok = yes; then
9426 # An in-tree tool is available and we can use it
9427 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
c6b750e1
DJ
9428 echo "$as_me:$LINENO: result: just compiled" >&5
9429echo "${ECHO_T}just compiled" >&6
2429c060
PB
9430 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9431 # We already found the complete path
c6b750e1
DJ
9432 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9433echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
be01d343
PB
9434 elif test "x$target" = "x$host"; then
9435 # We can use an host tool
9436 NM_FOR_TARGET='$(NM)'
c6b750e1
DJ
9437 echo "$as_me:$LINENO: result: host tool" >&5
9438echo "${ECHO_T}host tool" >&6
be01d343
PB
9439 else
9440 # We need a cross tool
c6b750e1
DJ
9441 echo "$as_me:$LINENO: result: pre-installed" >&5
9442echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9443 fi
9444fi
4b900473 9445
c6b750e1
DJ
9446echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9447echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
be01d343 9448if test "x${build}" != "x${host}" ; then
2429c060
PB
9449 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9450 # We already found the complete path
c6b750e1
DJ
9451 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9452echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
2429c060
PB
9453 else
9454 # Canadian cross, just use what we found
c6b750e1
DJ
9455 echo "$as_me:$LINENO: result: pre-installed" >&5
9456echo "${ECHO_T}pre-installed" >&6
2429c060 9457 fi
be01d343
PB
9458else
9459 ok=yes
9460 case " ${configdirs} " in
9461 *" binutils "*) ;;
9462 *) ok=no ;;
9463 esac
c6b750e1 9464
be01d343
PB
9465 if test $ok = yes; then
9466 # An in-tree tool is available and we can use it
9467 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
c6b750e1
DJ
9468 echo "$as_me:$LINENO: result: just compiled" >&5
9469echo "${ECHO_T}just compiled" >&6
2429c060
PB
9470 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9471 # We already found the complete path
c6b750e1
DJ
9472 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9473echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
be01d343
PB
9474 elif test "x$target" = "x$host"; then
9475 # We can use an host tool
9476 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
c6b750e1
DJ
9477 echo "$as_me:$LINENO: result: host tool" >&5
9478echo "${ECHO_T}host tool" >&6
be01d343
PB
9479 else
9480 # We need a cross tool
c6b750e1
DJ
9481 echo "$as_me:$LINENO: result: pre-installed" >&5
9482echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9483 fi
9484fi
4b900473 9485
c6b750e1
DJ
9486echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9487echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
be01d343 9488if test "x${build}" != "x${host}" ; then
2429c060
PB
9489 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9490 # We already found the complete path
c6b750e1
DJ
9491 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9492echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
2429c060
PB
9493 else
9494 # Canadian cross, just use what we found
c6b750e1
DJ
9495 echo "$as_me:$LINENO: result: pre-installed" >&5
9496echo "${ECHO_T}pre-installed" >&6
2429c060 9497 fi
be01d343
PB
9498else
9499 ok=yes
9500 case " ${configdirs} " in
9501 *" binutils "*) ;;
9502 *) ok=no ;;
9503 esac
c6b750e1 9504
be01d343
PB
9505 if test $ok = yes; then
9506 # An in-tree tool is available and we can use it
9507 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
c6b750e1
DJ
9508 echo "$as_me:$LINENO: result: just compiled" >&5
9509echo "${ECHO_T}just compiled" >&6
2429c060
PB
9510 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9511 # We already found the complete path
c6b750e1
DJ
9512 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9513echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
be01d343
PB
9514 elif test "x$target" = "x$host"; then
9515 # We can use an host tool
9516 RANLIB_FOR_TARGET='$(RANLIB)'
c6b750e1
DJ
9517 echo "$as_me:$LINENO: result: host tool" >&5
9518echo "${ECHO_T}host tool" >&6
be01d343
PB
9519 else
9520 # We need a cross tool
c6b750e1
DJ
9521 echo "$as_me:$LINENO: result: pre-installed" >&5
9522echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9523 fi
9524fi
4b900473 9525
c6b750e1
DJ
9526echo "$as_me:$LINENO: checking where to find the target strip" >&5
9527echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
be01d343 9528if test "x${build}" != "x${host}" ; then
2429c060
PB
9529 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9530 # We already found the complete path
c6b750e1
DJ
9531 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9532echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
2429c060
PB
9533 else
9534 # Canadian cross, just use what we found
c6b750e1
DJ
9535 echo "$as_me:$LINENO: result: pre-installed" >&5
9536echo "${ECHO_T}pre-installed" >&6
2429c060 9537 fi
be01d343
PB
9538else
9539 ok=yes
9540 case " ${configdirs} " in
9541 *" binutils "*) ;;
9542 *) ok=no ;;
9543 esac
c6b750e1 9544
be01d343
PB
9545 if test $ok = yes; then
9546 # An in-tree tool is available and we can use it
9547 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
c6b750e1
DJ
9548 echo "$as_me:$LINENO: result: just compiled" >&5
9549echo "${ECHO_T}just compiled" >&6
2429c060
PB
9550 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9551 # We already found the complete path
c6b750e1
DJ
9552 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9553echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
be01d343
PB
9554 elif test "x$target" = "x$host"; then
9555 # We can use an host tool
9556 STRIP_FOR_TARGET='$(STRIP)'
c6b750e1
DJ
9557 echo "$as_me:$LINENO: result: host tool" >&5
9558echo "${ECHO_T}host tool" >&6
be01d343
PB
9559 else
9560 # We need a cross tool
c6b750e1
DJ
9561 echo "$as_me:$LINENO: result: pre-installed" >&5
9562echo "${ECHO_T}pre-installed" >&6
be01d343
PB
9563 fi
9564fi
4b900473 9565
c6b750e1
DJ
9566echo "$as_me:$LINENO: checking where to find the target windres" >&5
9567echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
be01d343 9568if test "x${build}" != "x${host}" ; then
2429c060
PB
9569 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9570 # We already found the complete path
c6b750e1
DJ
9571 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9572echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
2429c060
PB
9573 else
9574 # Canadian cross, just use what we found
c6b750e1
DJ
9575 echo "$as_me:$LINENO: result: pre-installed" >&5
9576echo "${ECHO_T}pre-installed" >&6
2429c060 9577 fi
be01d343
PB
9578else
9579 ok=yes
9580 case " ${configdirs} " in
9581 *" binutils "*) ;;
9582 *) ok=no ;;
9583 esac
c6b750e1 9584
be01d343
PB
9585 if test $ok = yes; then
9586 # An in-tree tool is available and we can use it
9587 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
c6b750e1
DJ
9588 echo "$as_me:$LINENO: result: just compiled" >&5
9589echo "${ECHO_T}just compiled" >&6
2429c060
PB
9590 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9591 # We already found the complete path
c6b750e1
DJ
9592 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9593echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
be01d343
PB
9594 elif test "x$target" = "x$host"; then
9595 # We can use an host tool
9596 WINDRES_FOR_TARGET='$(WINDRES)'
c6b750e1
DJ
9597 echo "$as_me:$LINENO: result: host tool" >&5
9598echo "${ECHO_T}host tool" >&6
be01d343
PB
9599 else
9600 # We need a cross tool
c6b750e1
DJ
9601 echo "$as_me:$LINENO: result: pre-installed" >&5
9602echo "${ECHO_T}pre-installed" >&6
be01d343 9603 fi
a0da8069 9604fi
54752a6b
NN
9605
9606
9607
be01d343 9608
4b900473 9609
a0da8069
NN
9610# Certain tools may need extra flags.
9611AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9612RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9613NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9614
be01d343
PB
9615# When building target libraries, except in a Canadian cross, we use
9616# the same toolchain as the compiler we just built.
9617COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9618COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9619COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9620if test $host = $build; then
9621 case " $configdirs " in
9622 *" gcc "*)
9623 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9624 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9625 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9626 ;;
9627 esac
9628fi
9629
9630
9631
9632
9633
c6b750e1
DJ
9634echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9635echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3d5e36ae
AO
9636# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9637if test "${enable_maintainer_mode+set}" = set; then
9638 enableval="$enable_maintainer_mode"
9639 USE_MAINTAINER_MODE=$enableval
9640else
9641 USE_MAINTAINER_MODE=no
c6b750e1
DJ
9642fi;
9643echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9644echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3d5e36ae
AO
9645
9646
9647if test "$USE_MAINTAINER_MODE" = yes; then
9648 MAINTAINER_MODE_TRUE=
9649 MAINTAINER_MODE_FALSE='#'
9650else
9651 MAINTAINER_MODE_TRUE='#'
9652 MAINTAINER_MODE_FALSE=
c6b750e1 9653fi
3d5e36ae
AO
9654MAINT=$MAINTAINER_MODE_TRUE
9655
1d39f329
NN
9656# ---------------------
9657# GCC bootstrap support
9658# ---------------------
9659
9660# Stage specific cflags for build.
9661stage1_cflags="-g"
9662case $build in
9663 vax-*-*)
9664 case ${GCC} in
9665 yes) stage1_cflags="-g -Wa,-J" ;;
9666 *) stage1_cflags="-g -J" ;;
9667 esac ;;
1d39f329
NN
9668esac
9669
1d89b610
PB
9670# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
9671if test "$GCC" = yes; then
9672 saved_CFLAGS="$CFLAGS"
9673
9674 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
9675 CFLAGS="$CFLAGS -fkeep-inline-functions"
c6b750e1
DJ
9676 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
9677echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679/* confdefs.h. */
9680_ACEOF
9681cat confdefs.h >>conftest.$ac_ext
9682cat >>conftest.$ac_ext <<_ACEOF
9683/* end confdefs.h. */
9684
9685int
9686main ()
9687{
9688
9689 ;
9690 return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext
9694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695 (eval $ac_compile) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
9717else
9718 echo "$as_me: failed program was:" >&5
9719sed 's/^/| /' conftest.$ac_ext >&5
9720
9721echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723fi
9724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
9725
9726 CFLAGS="$saved_CFLAGS"
9727fi
9728
9729
1d39f329 9730
8a0d8a5c
PB
9731# Enable --enable-checking in stage1 of the compiler.
9732# Check whether --enable-stage1-checking or --disable-stage1-checking was given.
9733if test "${enable_stage1_checking+set}" = set; then
9734 enableval="$enable_stage1_checking"
9735 stage1_checking=--enable-checking=${enable_stage1_checking}
9736else
9737 if test "x$enable_checking" = xno; then
9738 stage1_checking=--enable-checking
9739else
9740 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
9741fi
c6b750e1 9742fi;
8a0d8a5c
PB
9743
9744
1d39f329 9745# Enable -Werror in bootstrap stage2 and later.
1d39f329
NN
9746# Check whether --enable-werror or --disable-werror was given.
9747if test "${enable_werror+set}" = set; then
9748 enableval="$enable_werror"
c6b750e1 9749
1d39f329 9750else
a0323144 9751 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 9752 enable_werror=yes
79fcd0ec
PB
9753else
9754 enable_werror=no
9755fi
c6b750e1 9756fi;
1a6f2dc7
NN
9757case ${enable_werror} in
9758 yes) stage2_werror_flag="--enable-werror-always" ;;
9759 *) stage2_werror_flag="" ;;
1d39f329
NN
9760esac
9761
9762
108a6f8e 9763# Flags needed to enable html installing and building
c6b750e1 9764
108a6f8e
CD
9765# Check whether --with-datarootdir or --without-datarootdir was given.
9766if test "${with_datarootdir+set}" = set; then
9767 withval="$with_datarootdir"
9768 datarootdir="\${prefix}/${withval}"
9769else
9770 datarootdir="\${prefix}/share"
c6b750e1 9771fi;
108a6f8e
CD
9772
9773
9774# Check whether --with-docdir or --without-docdir was given.
9775if test "${with_docdir+set}" = set; then
9776 withval="$with_docdir"
9777 docdir="\${prefix}/${withval}"
9778else
9779 docdir="\${datarootdir}/doc"
c6b750e1 9780fi;
108a6f8e
CD
9781
9782
9783# Check whether --with-htmldir or --without-htmldir was given.
9784if test "${with_htmldir+set}" = set; then
9785 withval="$with_htmldir"
9786 htmldir="\${prefix}/${withval}"
9787else
9788 htmldir="\${docdir}"
c6b750e1 9789fi;
108a6f8e
CD
9790
9791
9792
9793
9794
c6b750e1
DJ
9795 ac_config_files="$ac_config_files Makefile"
9796cat >confcache <<\_ACEOF
a0da8069
NN
9797# This file is a shell script that caches the results of configure
9798# tests run on this system so they can be shared between configure
c6b750e1
DJ
9799# scripts and configure runs, see configure's option --config-cache.
9800# It is not useful on other systems. If it contains results you don't
9801# want to keep, you may remove or edit it.
a0da8069 9802#
c6b750e1
DJ
9803# config.status only pays attention to the cache file if you give it
9804# the --recheck option to rerun configure.
a0da8069 9805#
c6b750e1
DJ
9806# `ac_cv_env_foo' variables (set or unset) will be overridden when
9807# loading this file, other *unset* `ac_cv_foo' will be assigned the
9808# following values.
9809
9810_ACEOF
9811
a0da8069
NN
9812# The following way of writing the cache mishandles newlines in values,
9813# but we know of no workaround that is simple, portable, and efficient.
9814# So, don't put newlines in cache variables' values.
9815# Ultrix sh set writes to stderr and can't be redirected directly,
9816# and sets the high bit in the cache file unless we assign to the vars.
c6b750e1
DJ
9817{
9818 (set) 2>&1 |
9819 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9820 *ac_space=\ *)
9821 # `set' does not quote correctly, so add quotes (double-quote
9822 # substitution turns \\\\ into \\, and sed turns \\ into \).
9823 sed -n \
9824 "s/'/'\\\\''/g;
9825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9826 ;;
9827 *)
9828 # `set' quotes correctly as required by POSIX, so do not add quotes.
9829 sed -n \
9830 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9831 ;;
9832 esac;
9833} |
9834 sed '
9835 t clear
9836 : clear
9837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9838 t end
9839 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9840 : end' >>confcache
9841if diff $cache_file confcache >/dev/null 2>&1; then :; else
a0da8069 9842 if test -w $cache_file; then
c6b750e1
DJ
9843 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9844 cat confcache >$cache_file
a0da8069
NN
9845 else
9846 echo "not updating unwritable cache $cache_file"
9847 fi
852e5f18 9848fi
a0da8069 9849rm -f confcache
852e5f18 9850
a0da8069
NN
9851test "x$prefix" = xNONE && prefix=$ac_default_prefix
9852# Let make expand exec_prefix.
9853test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 9854
c6b750e1
DJ
9855# VPATH may cause trouble with some makes, so we remove $(srcdir),
9856# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9857# trailing colons and then remove the whole line if VPATH becomes empty
9858# (actually we leave an empty line to preserve line numbers).
a0da8069 9859if test "x$srcdir" = x.; then
c6b750e1
DJ
9860 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9861s/:*\$(srcdir):*/:/;
9862s/:*\${srcdir}:*/:/;
9863s/:*@srcdir@:*/:/;
9864s/^\([^=]*=[ ]*\):*/\1/;
9865s/:*$//;
9866s/^[^=]*=[ ]*$//;
9867}'
a0da8069 9868fi
252b5132 9869
a0da8069
NN
9870# Transform confdefs.h into DEFS.
9871# Protect against shell expansion while executing Makefile rules.
9872# Protect against Makefile macro expansion.
c6b750e1
DJ
9873#
9874# If the first sed substitution is executed (which looks for macros that
9875# take arguments), then we branch to the quote section. Otherwise,
9876# look for a macro that doesn't take arguments.
9877cat >confdef2opt.sed <<\_ACEOF
9878t clear
9879: clear
9880s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9881t quote
9882s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9883t quote
9884d
9885: quote
9886s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9887s,\[,\\&,g
9888s,\],\\&,g
9889s,\$,$$,g
9890p
9891_ACEOF
9892# We use echo to avoid assuming a particular line-breaking character.
9893# The extra dot is to prevent the shell from consuming trailing
9894# line-breaks from the sub-command output. A line-break within
9895# single-quotes doesn't work because, if this script is created in a
9896# platform that uses two characters for line-breaks (e.g., DOS), tr
9897# would break.
9898ac_LF_and_DOT=`echo; echo .`
9899DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9900rm -f confdef2opt.sed
9901
9902
9903ac_libobjs=
9904ac_ltlibobjs=
9905for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9906 # 1. Remove the extension, and $U if already installed.
9907 ac_i=`echo "$ac_i" |
9908 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9909 # 2. Add them.
9910 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9911 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9912done
9913LIBOBJS=$ac_libobjs
852e5f18 9914
c6b750e1 9915LTLIBOBJS=$ac_ltlibobjs
376a0e54 9916
cac3d6c4 9917
c6b750e1
DJ
9918
9919: ${CONFIG_STATUS=./config.status}
9920ac_clean_files_save=$ac_clean_files
9921ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9922{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9923echo "$as_me: creating $CONFIG_STATUS" >&6;}
9924cat >$CONFIG_STATUS <<_ACEOF
9925#! $SHELL
9926# Generated by $as_me.
a0da8069 9927# Run this file to recreate the current configuration.
a0da8069 9928# Compiler output produced by configure, useful for debugging
c6b750e1 9929# configure, is in config.log if it exists.
376a0e54 9930
c6b750e1
DJ
9931debug=false
9932ac_cs_recheck=false
9933ac_cs_silent=false
9934SHELL=\${CONFIG_SHELL-$SHELL}
9935_ACEOF
9936
9937cat >>$CONFIG_STATUS <<\_ACEOF
9938## --------------------- ##
9939## M4sh Initialization. ##
9940## --------------------- ##
9941
9942# Be Bourne compatible
9943if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9944 emulate sh
9945 NULLCMD=:
9946 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9947 # is contrary to our usage. Disable this feature.
9948 alias -g '${1+"$@"}'='"$@"'
9949elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9950 set -o posix
9951fi
9952DUALCASE=1; export DUALCASE # for MKS sh
9953
9954# Support unset when possible.
9955if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9956 as_unset=unset
9957else
9958 as_unset=false
9959fi
9960
9961
9962# Work around bugs in pre-3.0 UWIN ksh.
9963$as_unset ENV MAIL MAILPATH
9964PS1='$ '
9965PS2='> '
9966PS4='+ '
9967
9968# NLS nuisances.
9969for as_var in \
9970 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9971 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9972 LC_TELEPHONE LC_TIME
9973do
9974 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9975 eval $as_var=C; export $as_var
9976 else
9977 $as_unset $as_var
9978 fi
9979done
9980
9981# Required to use basename.
9982if expr a : '\(a\)' >/dev/null 2>&1; then
9983 as_expr=expr
9984else
9985 as_expr=false
9986fi
9987
9988if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9989 as_basename=basename
9990else
9991 as_basename=false
9992fi
9993
9994
9995# Name of the executable.
9996as_me=`$as_basename "$0" ||
9997$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9998 X"$0" : 'X\(//\)$' \| \
9999 X"$0" : 'X\(/\)$' \| \
10000 . : '\(.\)' 2>/dev/null ||
10001echo X/"$0" |
10002 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10003 /^X\/\(\/\/\)$/{ s//\1/; q; }
10004 /^X\/\(\/\).*/{ s//\1/; q; }
10005 s/.*/./; q'`
10006
10007
10008# PATH needs CR, and LINENO needs CR and PATH.
10009# Avoid depending upon Character Ranges.
10010as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10012as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10013as_cr_digits='0123456789'
10014as_cr_alnum=$as_cr_Letters$as_cr_digits
10015
10016# The user is always right.
10017if test "${PATH_SEPARATOR+set}" != set; then
10018 echo "#! /bin/sh" >conf$$.sh
10019 echo "exit 0" >>conf$$.sh
10020 chmod +x conf$$.sh
10021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10022 PATH_SEPARATOR=';'
10023 else
10024 PATH_SEPARATOR=:
10025 fi
10026 rm -f conf$$.sh
10027fi
10028
10029
10030 as_lineno_1=$LINENO
10031 as_lineno_2=$LINENO
10032 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10033 test "x$as_lineno_1" != "x$as_lineno_2" &&
10034 test "x$as_lineno_3" = "x$as_lineno_2" || {
10035 # Find who we are. Look in the path if we contain no path at all
10036 # relative or not.
10037 case $0 in
10038 *[\\/]* ) as_myself=$0 ;;
10039 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040for as_dir in $PATH
10041do
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
10044 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10045done
10046
10047 ;;
10048 esac
10049 # We did not find ourselves, most probably we were run as `sh COMMAND'
10050 # in which case we are not to be found in the path.
10051 if test "x$as_myself" = x; then
10052 as_myself=$0
10053 fi
10054 if test ! -f "$as_myself"; then
10055 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10056echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10057 { (exit 1); exit 1; }; }
10058 fi
10059 case $CONFIG_SHELL in
10060 '')
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for as_base in sh bash ksh sh5; do
10067 case $as_dir in
10068 /*)
10069 if ("$as_dir/$as_base" -c '
10070 as_lineno_1=$LINENO
10071 as_lineno_2=$LINENO
10072 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10073 test "x$as_lineno_1" != "x$as_lineno_2" &&
10074 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10075 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10076 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10077 CONFIG_SHELL=$as_dir/$as_base
10078 export CONFIG_SHELL
10079 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10080 fi;;
10081 esac
10082 done
10083done
10084;;
10085 esac
10086
10087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10088 # uniformly replaced by the line number. The first 'sed' inserts a
10089 # line-number line before each line; the second 'sed' does the real
10090 # work. The second script uses 'N' to pair each line-number line
10091 # with the numbered line, and appends trailing '-' during
10092 # substitution so that $LINENO is not a special case at line end.
10093 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10094 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10095 sed '=' <$as_myself |
10096 sed '
10097 N
10098 s,$,-,
10099 : loop
10100 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10101 t loop
10102 s,-$,,
10103 s,^['$as_cr_digits']*\n,,
10104 ' >$as_me.lineno &&
10105 chmod +x $as_me.lineno ||
10106 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10107echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10108 { (exit 1); exit 1; }; }
10109
10110 # Don't try to exec as it changes $[0], causing all sort of problems
10111 # (the dirname of $[0] is not the place where we might find the
10112 # original and so on. Autoconf is especially sensible to this).
10113 . ./$as_me.lineno
10114 # Exit status is that of the last command.
10115 exit
10116}
10117
10118
10119case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10120 *c*,-n*) ECHO_N= ECHO_C='
10121' ECHO_T=' ' ;;
10122 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10123 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10124esac
10125
10126if expr a : '\(a\)' >/dev/null 2>&1; then
10127 as_expr=expr
10128else
10129 as_expr=false
10130fi
10131
10132rm -f conf$$ conf$$.exe conf$$.file
10133echo >conf$$.file
10134if ln -s conf$$.file conf$$ 2>/dev/null; then
10135 # We could just check for DJGPP; but this test a) works b) is more generic
10136 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10137 if test -f conf$$.exe; then
10138 # Don't use ln at all; we don't have any links
10139 as_ln_s='cp -p'
10140 else
10141 as_ln_s='ln -s'
10142 fi
10143elif ln conf$$.file conf$$ 2>/dev/null; then
10144 as_ln_s=ln
10145else
10146 as_ln_s='cp -p'
10147fi
10148rm -f conf$$ conf$$.exe conf$$.file
10149
10150if mkdir -p . 2>/dev/null; then
10151 as_mkdir_p=:
10152else
10153 test -d ./-p && rmdir ./-p
10154 as_mkdir_p=false
10155fi
10156
10157as_executable_p="test -f"
10158
10159# Sed expression to map a string onto a valid CPP name.
10160as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10161
10162# Sed expression to map a string onto a valid variable name.
10163as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10164
10165
10166# IFS
10167# We need space, tab and new line, in precisely that order.
10168as_nl='
10169'
10170IFS=" $as_nl"
10171
10172# CDPATH.
10173$as_unset CDPATH
10174
10175exec 6>&1
10176
10177# Open the log real soon, to keep \$[0] and so on meaningful, and to
10178# report actual input values of CONFIG_FILES etc. instead of their
10179# values after options handling. Logging --version etc. is OK.
10180exec 5>>config.log
10181{
10182 echo
10183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10184## Running $as_me. ##
10185_ASBOX
10186} >&5
10187cat >&5 <<_CSEOF
10188
10189This file was extended by $as_me, which was
10190generated by GNU Autoconf 2.59. Invocation command line was
10191
10192 CONFIG_FILES = $CONFIG_FILES
10193 CONFIG_HEADERS = $CONFIG_HEADERS
10194 CONFIG_LINKS = $CONFIG_LINKS
10195 CONFIG_COMMANDS = $CONFIG_COMMANDS
10196 $ $0 $@
10197
10198_CSEOF
10199echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10200echo >&5
10201_ACEOF
10202
10203# Files that config.status was made for.
10204if test -n "$ac_config_files"; then
10205 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10206fi
10207
10208if test -n "$ac_config_headers"; then
10209 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10210fi
10211
10212if test -n "$ac_config_links"; then
10213 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10214fi
10215
10216if test -n "$ac_config_commands"; then
10217 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10218fi
10219
10220cat >>$CONFIG_STATUS <<\_ACEOF
10221
10222ac_cs_usage="\
10223\`$as_me' instantiates files from templates according to the
10224current configuration.
10225
10226Usage: $0 [OPTIONS] [FILE]...
10227
10228 -h, --help print this help, then exit
10229 -V, --version print version number, then exit
10230 -q, --quiet do not print progress messages
10231 -d, --debug don't remove temporary files
10232 --recheck update $as_me by reconfiguring in the same conditions
10233 --file=FILE[:TEMPLATE]
10234 instantiate the configuration file FILE
10235
10236Configuration files:
10237$config_files
10238
10239Report bugs to <bug-autoconf@gnu.org>."
10240_ACEOF
10241
10242cat >>$CONFIG_STATUS <<_ACEOF
10243ac_cs_version="\\
10244config.status
10245configured by $0, generated by GNU Autoconf 2.59,
10246 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10247
10248Copyright (C) 2003 Free Software Foundation, Inc.
10249This config.status script is free software; the Free Software Foundation
10250gives unlimited permission to copy, distribute and modify it."
10251srcdir=$srcdir
10252INSTALL="$INSTALL"
10253_ACEOF
10254
10255cat >>$CONFIG_STATUS <<\_ACEOF
10256# If no file are specified by the user, then we need to provide default
10257# value. By we need to know if files were specified by the user.
10258ac_need_defaults=:
10259while test $# != 0
a0da8069 10260do
c6b750e1
DJ
10261 case $1 in
10262 --*=*)
10263 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10264 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10265 ac_shift=:
10266 ;;
10267 -*)
10268 ac_option=$1
10269 ac_optarg=$2
10270 ac_shift=shift
10271 ;;
10272 *) # This is not an option, so the user has probably given explicit
10273 # arguments.
10274 ac_option=$1
10275 ac_need_defaults=false;;
10276 esac
10277
10278 case $ac_option in
10279 # Handling of the options.
10280_ACEOF
10281cat >>$CONFIG_STATUS <<\_ACEOF
a0da8069 10282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1
DJ
10283 ac_cs_recheck=: ;;
10284 --version | --vers* | -V )
10285 echo "$ac_cs_version"; exit 0 ;;
10286 --he | --h)
10287 # Conflict between --help and --header
10288 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10289Try \`$0 --help' for more information." >&5
10290echo "$as_me: error: ambiguous option: $1
10291Try \`$0 --help' for more information." >&2;}
10292 { (exit 1); exit 1; }; };;
10293 --help | --hel | -h )
10294 echo "$ac_cs_usage"; exit 0 ;;
10295 --debug | --d* | -d )
10296 debug=: ;;
10297 --file | --fil | --fi | --f )
10298 $ac_shift
10299 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10300 ac_need_defaults=false;;
10301 --header | --heade | --head | --hea )
10302 $ac_shift
10303 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10304 ac_need_defaults=false;;
10305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10307 ac_cs_silent=: ;;
10308
10309 # This is an error.
10310 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10311Try \`$0 --help' for more information." >&5
10312echo "$as_me: error: unrecognized option: $1
10313Try \`$0 --help' for more information." >&2;}
10314 { (exit 1); exit 1; }; } ;;
10315
10316 *) ac_config_targets="$ac_config_targets $1" ;;
10317
376a0e54 10318 esac
c6b750e1 10319 shift
376a0e54
CM
10320done
10321
c6b750e1 10322ac_configure_extra_args=
376a0e54 10323
c6b750e1
DJ
10324if $ac_cs_silent; then
10325 exec 6>/dev/null
10326 ac_configure_extra_args="$ac_configure_extra_args --silent"
10327fi
376a0e54 10328
c6b750e1
DJ
10329_ACEOF
10330cat >>$CONFIG_STATUS <<_ACEOF
10331if \$ac_cs_recheck; then
10332 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10333 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10334fi
10335
10336_ACEOF
10337
10338
10339
10340
10341
10342cat >>$CONFIG_STATUS <<\_ACEOF
10343for ac_config_target in $ac_config_targets
10344do
10345 case "$ac_config_target" in
10346 # Handling of arguments.
10347 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10348 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10349echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10350 { (exit 1); exit 1; }; };;
10351 esac
10352done
10353
10354# If the user did not use the arguments to specify the items to instantiate,
10355# then the envvar interface is used. Set only those that are not.
10356# We use the long form for the default assignment because of an extremely
10357# bizarre bug on SunOS 4.1.3.
10358if $ac_need_defaults; then
10359 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10360fi
10361
10362# Have a temporary directory for convenience. Make it in the build tree
10363# simply because there is no reason to put it here, and in addition,
10364# creating and moving files from /tmp can sometimes cause problems.
10365# Create a temporary directory, and hook for its removal unless debugging.
10366$debug ||
10367{
10368 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10369 trap '{ (exit 1); exit 1; }' 1 2 13 15
10370}
10371
10372# Create a (secure) tmp directory for tmp files.
10373
10374{
10375 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10376 test -n "$tmp" && test -d "$tmp"
10377} ||
10378{
10379 tmp=./confstat$$-$RANDOM
10380 (umask 077 && mkdir $tmp)
10381} ||
10382{
10383 echo "$me: cannot create a temporary directory in ." >&2
10384 { (exit 1); exit 1; }
10385}
10386
10387_ACEOF
10388
10389cat >>$CONFIG_STATUS <<_ACEOF
10390
10391#
10392# CONFIG_FILES section.
10393#
10394
10395# No need to generate the scripts if there are no CONFIG_FILES.
10396# This happens for instance when ./config.status config.h
10397if test -n "\$CONFIG_FILES"; then
10398 # Protect against being on the right side of a sed subst in config.status.
10399 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10400 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10401s,@SHELL@,$SHELL,;t t
10402s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10403s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10404s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10405s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10406s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10407s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10408s,@exec_prefix@,$exec_prefix,;t t
10409s,@prefix@,$prefix,;t t
10410s,@program_transform_name@,$program_transform_name,;t t
10411s,@bindir@,$bindir,;t t
10412s,@sbindir@,$sbindir,;t t
10413s,@libexecdir@,$libexecdir,;t t
10414s,@datadir@,$datadir,;t t
10415s,@sysconfdir@,$sysconfdir,;t t
10416s,@sharedstatedir@,$sharedstatedir,;t t
10417s,@localstatedir@,$localstatedir,;t t
10418s,@libdir@,$libdir,;t t
10419s,@includedir@,$includedir,;t t
10420s,@oldincludedir@,$oldincludedir,;t t
10421s,@infodir@,$infodir,;t t
10422s,@mandir@,$mandir,;t t
10423s,@build_alias@,$build_alias,;t t
10424s,@host_alias@,$host_alias,;t t
10425s,@target_alias@,$target_alias,;t t
10426s,@DEFS@,$DEFS,;t t
10427s,@ECHO_C@,$ECHO_C,;t t
10428s,@ECHO_N@,$ECHO_N,;t t
10429s,@ECHO_T@,$ECHO_T,;t t
10430s,@LIBS@,$LIBS,;t t
10431s,@build@,$build,;t t
10432s,@build_cpu@,$build_cpu,;t t
10433s,@build_vendor@,$build_vendor,;t t
10434s,@build_os@,$build_os,;t t
10435s,@build_noncanonical@,$build_noncanonical,;t t
10436s,@host_noncanonical@,$host_noncanonical,;t t
10437s,@target_noncanonical@,$target_noncanonical,;t t
10438s,@host@,$host,;t t
10439s,@host_cpu@,$host_cpu,;t t
10440s,@host_vendor@,$host_vendor,;t t
10441s,@host_os@,$host_os,;t t
10442s,@target@,$target,;t t
10443s,@target_cpu@,$target_cpu,;t t
10444s,@target_vendor@,$target_vendor,;t t
10445s,@target_os@,$target_os,;t t
10446s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10447s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10448s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10449s,@LN@,$LN,;t t
10450s,@LN_S@,$LN_S,;t t
10451s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10452s,@build_libsubdir@,$build_libsubdir,;t t
10453s,@build_subdir@,$build_subdir,;t t
10454s,@host_subdir@,$host_subdir,;t t
10455s,@target_subdir@,$target_subdir,;t t
10456s,@CC@,$CC,;t t
10457s,@CFLAGS@,$CFLAGS,;t t
10458s,@LDFLAGS@,$LDFLAGS,;t t
10459s,@CPPFLAGS@,$CPPFLAGS,;t t
10460s,@ac_ct_CC@,$ac_ct_CC,;t t
10461s,@EXEEXT@,$EXEEXT,;t t
10462s,@OBJEXT@,$OBJEXT,;t t
10463s,@GNATBIND@,$GNATBIND,;t t
10464s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
7df2cd5d
PB
10465s,@GNATMAKE@,$GNATMAKE,;t t
10466s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
c6b750e1
DJ
10467s,@do_compare@,$do_compare,;t t
10468s,@gmplibs@,$gmplibs,;t t
10469s,@gmpinc@,$gmpinc,;t t
10470s,@stage1_languages@,$stage1_languages,;t t
10471s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10472s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10473s,@tooldir@,$tooldir,;t t
10474s,@build_tooldir@,$build_tooldir,;t t
10475s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10476s,@GDB_TK@,$GDB_TK,;t t
10477s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10478s,@build_configargs@,$build_configargs,;t t
10479s,@build_configdirs@,$build_configdirs,;t t
10480s,@host_configargs@,$host_configargs,;t t
10481s,@configdirs@,$configdirs,;t t
10482s,@target_configargs@,$target_configargs,;t t
10483s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10484s,@config_shell@,$config_shell,;t t
10485s,@YACC@,$YACC,;t t
10486s,@BISON@,$BISON,;t t
10487s,@M4@,$M4,;t t
10488s,@LEX@,$LEX,;t t
10489s,@FLEX@,$FLEX,;t t
10490s,@MAKEINFO@,$MAKEINFO,;t t
10491s,@EXPECT@,$EXPECT,;t t
10492s,@RUNTEST@,$RUNTEST,;t t
10493s,@AR@,$AR,;t t
10494s,@AS@,$AS,;t t
10495s,@DLLTOOL@,$DLLTOOL,;t t
10496s,@LD@,$LD,;t t
10497s,@LIPO@,$LIPO,;t t
10498s,@NM@,$NM,;t t
10499s,@RANLIB@,$RANLIB,;t t
10500s,@STRIP@,$STRIP,;t t
10501s,@WINDRES@,$WINDRES,;t t
10502s,@OBJCOPY@,$OBJCOPY,;t t
10503s,@OBJDUMP@,$OBJDUMP,;t t
10504s,@CXX@,$CXX,;t t
10505s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10506s,@CXXFLAGS@,$CXXFLAGS,;t t
10507s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10508s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10509s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10510s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10511s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10512s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10513s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10514s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10515s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10516s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10517s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10518s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10519s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10520s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10521s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10522s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10523s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10524s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10525s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10526s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10527s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10528s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10529s,@MAINT@,$MAINT,;t t
10530s,@stage1_cflags@,$stage1_cflags,;t t
10531s,@stage1_checking@,$stage1_checking,;t t
10532s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10533s,@datarootdir@,$datarootdir,;t t
10534s,@docdir@,$docdir,;t t
10535s,@htmldir@,$htmldir,;t t
10536s,@LIBOBJS@,$LIBOBJS,;t t
10537s,@LTLIBOBJS@,$LTLIBOBJS,;t t
a0da8069 10538/@serialization_dependencies@/r $serialization_dependencies
c6b750e1 10539s,@serialization_dependencies@,,;t t
a0da8069 10540/@host_makefile_frag@/r $host_makefile_frag
c6b750e1 10541s,@host_makefile_frag@,,;t t
a0da8069 10542/@target_makefile_frag@/r $target_makefile_frag
c6b750e1 10543s,@target_makefile_frag@,,;t t
a0da8069 10544/@alphaieee_frag@/r $alphaieee_frag
c6b750e1 10545s,@alphaieee_frag@,,;t t
a0da8069 10546/@ospace_frag@/r $ospace_frag
c6b750e1 10547s,@ospace_frag@,,;t t
a0da8069 10548CEOF
252b5132 10549
c6b750e1
DJ
10550_ACEOF
10551
10552 cat >>$CONFIG_STATUS <<\_ACEOF
10553 # Split the substitutions into bite-sized pieces for seds with
10554 # small command number limits, like on Digital OSF/1 and HP-UX.
10555 ac_max_sed_lines=48
10556 ac_sed_frag=1 # Number of current file.
10557 ac_beg=1 # First line for current file.
10558 ac_end=$ac_max_sed_lines # Line after last line for current file.
10559 ac_more_lines=:
10560 ac_sed_cmds=
10561 while $ac_more_lines; do
10562 if test $ac_beg -gt 1; then
10563 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10564 else
10565 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10566 fi
10567 if test ! -s $tmp/subs.frag; then
10568 ac_more_lines=false
a0da8069 10569 else
c6b750e1
DJ
10570 # The purpose of the label and of the branching condition is to
10571 # speed up the sed processing (if there are no `@' at all, there
10572 # is no need to browse any of the substitutions).
10573 # These are the two extra sed commands mentioned above.
10574 (echo ':t
10575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10576 if test -z "$ac_sed_cmds"; then
10577 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10578 else
10579 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10580 fi
10581 ac_sed_frag=`expr $ac_sed_frag + 1`
10582 ac_beg=$ac_end
10583 ac_end=`expr $ac_end + $ac_max_sed_lines`
a0da8069 10584 fi
c6b750e1
DJ
10585 done
10586 if test -z "$ac_sed_cmds"; then
10587 ac_sed_cmds=cat
852e5f18 10588 fi
c6b750e1 10589fi # test -n "$CONFIG_FILES"
cac3d6c4 10590
c6b750e1
DJ
10591_ACEOF
10592cat >>$CONFIG_STATUS <<\_ACEOF
10593for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0da8069 10594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
c6b750e1
DJ
10595 case $ac_file in
10596 - | *:- | *:-:* ) # input from stdin
10597 cat >$tmp/stdin
10598 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10600 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10602 * ) ac_file_in=$ac_file.in ;;
a0da8069 10603 esac
252b5132 10604
c6b750e1
DJ
10605 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10606 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10607$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10608 X"$ac_file" : 'X\(//\)[^/]' \| \
10609 X"$ac_file" : 'X\(//\)$' \| \
10610 X"$ac_file" : 'X\(/\)' \| \
10611 . : '\(.\)' 2>/dev/null ||
10612echo X"$ac_file" |
10613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10615 /^X\(\/\/\)$/{ s//\1/; q; }
10616 /^X\(\/\).*/{ s//\1/; q; }
10617 s/.*/./; q'`
10618 { if $as_mkdir_p; then
10619 mkdir -p "$ac_dir"
cac3d6c4 10620 else
c6b750e1
DJ
10621 as_dir="$ac_dir"
10622 as_dirs=
10623 while test ! -d "$as_dir"; do
10624 as_dirs="$as_dir $as_dirs"
10625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10626$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10627 X"$as_dir" : 'X\(//\)[^/]' \| \
10628 X"$as_dir" : 'X\(//\)$' \| \
10629 X"$as_dir" : 'X\(/\)' \| \
10630 . : '\(.\)' 2>/dev/null ||
10631echo X"$as_dir" |
10632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10634 /^X\(\/\/\)$/{ s//\1/; q; }
10635 /^X\(\/\).*/{ s//\1/; q; }
10636 s/.*/./; q'`
10637 done
10638 test ! -n "$as_dirs" || mkdir $as_dirs
10639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10640echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10641 { (exit 1); exit 1; }; }; }
10642
10643 ac_builddir=.
252b5132 10644
c6b750e1
DJ
10645if test "$ac_dir" != .; then
10646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10647 # A "../" for each directory in $ac_dir_suffix.
10648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10649else
10650 ac_dir_suffix= ac_top_builddir=
10651fi
10652
10653case $srcdir in
10654 .) # No --srcdir option. We are building in place.
10655 ac_srcdir=.
10656 if test -z "$ac_top_builddir"; then
10657 ac_top_srcdir=.
10658 else
10659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10660 fi ;;
10661 [\\/]* | ?:[\\/]* ) # Absolute path.
10662 ac_srcdir=$srcdir$ac_dir_suffix;
10663 ac_top_srcdir=$srcdir ;;
a0da8069 10664 *) # Relative path.
c6b750e1
DJ
10665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10667esac
252b5132 10668
c6b750e1
DJ
10669# Do not use `cd foo && pwd` to compute absolute paths, because
10670# the directories may not exist.
10671case `pwd` in
10672.) ac_abs_builddir="$ac_dir";;
10673*)
10674 case "$ac_dir" in
10675 .) ac_abs_builddir=`pwd`;;
10676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10678 esac;;
10679esac
10680case $ac_abs_builddir in
10681.) ac_abs_top_builddir=${ac_top_builddir}.;;
10682*)
10683 case ${ac_top_builddir}. in
10684 .) ac_abs_top_builddir=$ac_abs_builddir;;
10685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10687 esac;;
10688esac
10689case $ac_abs_builddir in
10690.) ac_abs_srcdir=$ac_srcdir;;
10691*)
10692 case $ac_srcdir in
10693 .) ac_abs_srcdir=$ac_abs_builddir;;
10694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10696 esac;;
10697esac
10698case $ac_abs_builddir in
10699.) ac_abs_top_srcdir=$ac_top_srcdir;;
10700*)
10701 case $ac_top_srcdir in
10702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10705 esac;;
10706esac
252b5132 10707
c6b750e1
DJ
10708
10709 case $INSTALL in
10710 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10711 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0da8069 10712 esac
252b5132 10713
c6b750e1
DJ
10714 if test x"$ac_file" != x-; then
10715 { echo "$as_me:$LINENO: creating $ac_file" >&5
10716echo "$as_me: creating $ac_file" >&6;}
10717 rm -f "$ac_file"
10718 fi
10719 # Let's still pretend it is `configure' which instantiates (i.e., don't
10720 # use $as_me), people would be surprised to read:
10721 # /* config.h. Generated by config.status. */
10722 if test x"$ac_file" = x-; then
10723 configure_input=
10724 else
10725 configure_input="$ac_file. "
10726 fi
10727 configure_input=$configure_input"Generated from `echo $ac_file_in |
10728 sed 's,.*/,,'` by configure."
10729
10730 # First look for the input files in the build tree, otherwise in the
10731 # src tree.
10732 ac_file_inputs=`IFS=:
10733 for f in $ac_file_in; do
10734 case $f in
10735 -) echo $tmp/stdin ;;
10736 [\\/$]*)
10737 # Absolute (can't be DOS-style, as IFS=:)
10738 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10739echo "$as_me: error: cannot find input file: $f" >&2;}
10740 { (exit 1); exit 1; }; }
10741 echo "$f";;
10742 *) # Relative
10743 if test -f "$f"; then
10744 # Build tree
10745 echo "$f"
10746 elif test -f "$srcdir/$f"; then
10747 # Source tree
10748 echo "$srcdir/$f"
10749 else
10750 # /dev/null tree
10751 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10752echo "$as_me: error: cannot find input file: $f" >&2;}
10753 { (exit 1); exit 1; }; }
10754 fi;;
10755 esac
10756 done` || { (exit 1); exit 1; }
10757_ACEOF
10758cat >>$CONFIG_STATUS <<_ACEOF
10759 sed "$ac_vpsub
10760$extrasub
10761_ACEOF
10762cat >>$CONFIG_STATUS <<\_ACEOF
10763:t
10764/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10765s,@configure_input@,$configure_input,;t t
10766s,@srcdir@,$ac_srcdir,;t t
10767s,@abs_srcdir@,$ac_abs_srcdir,;t t
10768s,@top_srcdir@,$ac_top_srcdir,;t t
10769s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10770s,@builddir@,$ac_builddir,;t t
10771s,@abs_builddir@,$ac_abs_builddir,;t t
10772s,@top_builddir@,$ac_top_builddir,;t t
10773s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10774s,@INSTALL@,$ac_INSTALL,;t t
10775" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10776 rm -f $tmp/stdin
10777 if test x"$ac_file" != x-; then
10778 mv $tmp/out $ac_file
10779 else
10780 cat $tmp/out
10781 rm -f $tmp/out
10782 fi
c148b4cb 10783
c6b750e1
DJ
10784done
10785_ACEOF
c148b4cb 10786
c6b750e1 10787cat >>$CONFIG_STATUS <<\_ACEOF
c148b4cb 10788
c6b750e1
DJ
10789{ (exit 0); exit 0; }
10790_ACEOF
c148b4cb 10791chmod +x $CONFIG_STATUS
c6b750e1
DJ
10792ac_clean_files=$ac_clean_files_save
10793
10794
10795# configure is writing to config.log, and then calls config.status.
10796# config.status does its own redirection, appending to config.log.
10797# Unfortunately, on DOS this fails, as config.log is still kept open
10798# by configure, so config.status won't be able to write to it; its
10799# output is simply discarded. So we exec the FD to /dev/null,
10800# effectively closing config.log, so it can be properly (re)opened and
10801# appended to by config.status. When coming back to configure, we
10802# need to make the FD available again.
10803if test "$no_create" != yes; then
10804 ac_cs_success=:
10805 ac_config_status_args=
10806 test "$silent" = yes &&
10807 ac_config_status_args="$ac_config_status_args --quiet"
10808 exec 5>/dev/null
10809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10810 exec 5>>config.log
10811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10812 # would make configure fail if this is the last instruction.
10813 $ac_cs_success || { (exit 1); exit 1; }
10814fi
c148b4cb 10815
This page took 0.927328 seconds and 4 git commands to generate.